system
September 19, 2013, 7:50pm
1
hi guys!
I'm here with a problem. it's next:
i'm using a ARDUINO ATMega 328, and SERVO with 360º, with code below, but the servos doesn't stop, he contiunes to rotation to 360º, nevers stop.
somebody help-me.
note: sorry my English, i speak portuguese(portugal)
THANKS(OBRIGADO)
code.
#include <Servo.h>
Servo servo1;
void setup()
{
servo1.attach(3);
}
void loop()
{
servo1.write(0);
delay(2000);
servo1.write(30);
delay(2000);
}
system
September 19, 2013, 7:53pm
2
[quote]
#include <Servo.h>
Servo servo1;
void setup()
{
servo1.attach(3);
}
void loop()
{
servo1.write(0);
delay(2000);
servo1.write(30);
delay(2000);
}
for
#include <Servo.h>
Servo servo1;
void setup()
{
servo1.attach(3);
}
void loop()
{
servo1.write(30);
delay(2000);
servo1.write(150);
delay(2000);
}
system
September 19, 2013, 8:08pm
3
hi,
tanks for fast answer,
the stop and go back, but never do the real degree, i want just 30º.
i wanna something like this:Arduino : Controlando Un Servo - YouTube
thanks
system
September 19, 2013, 8:23pm
4
What do you mean by "servo with 360". That sounds like continuous rotation.
the servo doesn't stop
That is what "continuous" means. Where did you get the servo? You may be using the wrong type.
system
September 20, 2013, 12:59am
5
oliveira1991:
the stop and go back, but never do the real degree
Can you explain that a bit more clearly? The code should move the servo backwards and forwards between two fixed positions. Does it?