// Include the library
#include "Servo.h"
// Create the servo object
Servo myservo;
// Setup section to run once
void setup() {
myservo.attach(9); // attach the servo to our servo object
myservo.write(90); // stop the motor
}
// Loop to keep the motor turning!
void loop() {
myservo.write(45); // rotate the motor counter-clockwise
delay(5000); // keep rotating for 5 seconds (5000 milliseconds)
myservo.write(90); // stop the motor
delay(5000); // stay stopped
myservo.write(135); // rotate the motor clockwise
delay(5000); // keep rotating
}
But it simply jerks about as if it is an unstable positional servo. i.e. it does not rotate continuously...
I have not connected the feedback wire, but I presume that does not matter...
By the way I think I made the mistake because it was AdaFruit and had a feedback wire in the photo. I should have noticed it did not say Parallax so was not the servo I thought it was.
Is the feedback wire on a normal servo because you can't trust the servo to get to where you sent it?
It is there to show you when it has stopped moving and therefore is at the position you want. Servos without this have to be given time to reach the required position and that is quite difficult to calculate exactly how much time to give it.
You use this pin by connecting it to an Analogue input pin and measuring the reading to show where it is at the moment. Nothing at all about trusting the motor.