I am trying to get my continuous servo to do a 45 degree spin pause then spin back to 0
I am new to servos and I cant seem to figure it out could anyone help me out? Maybe show me what it should look like.
#include <SoftwareServo.h>
SoftwareServo myservo; // create servo object to control a servo
void setup()
{
myservo.attach(2); // attaches the servo on pin 2 to the servo object
}
void loop()
{
myservo.write(45);
SoftwareServo::refresh();
delay(500);
myservo.write(0);
SoftwareServo::refresh();
delay(500);
}
Once you make a servo "continuous", you lose the positional feedback and can no longer "spin 45 degrees." You can only do forward, backward, and stop...
oops, i didnt read the first post enough, scratch what i said westfw is correct