I’m trying to write a simple program for a servo:
But no matter what I try there is some sort of jittery spin that doesn’t go the whole distance.
I tried this basic code:
Servo servo; // create servo object to control a servo
// a maximum of eight servo objects can be created
int pos = 0; // variable to store the servo position
servo.attach(11, 0, 180); // attaches the servo on pin 9 to the servo object
It doesn’t even have a delay right now. It doesn’t seem to be paying attention to the code at all.
I tried the sweeper code and nothing worked.