Your servo probably cannot move as far as 0 degrees and is therefore continually trying to do so. What happens if instead of 0 degrees you try say 10 degrees ?
#include <Servo.h> //include servo library
Servo servo; //create servo object
void setup() {
servo.attach(9); //attach servo to pin 9
}
void loop() {
servo.write(110); //set servo position to 0 degrees
delay(1000); //wait for 1 second
servo.write(90);
}
now the servo rotates first clockwise and then counterclockwise but jittering is still there
but i dont have any control its just rotating back and forth the delay between rotations is not 1 sec(ca 3-5min)
ok i corrected to code didnt change much what do you mean with having common GND between the Arduino and Servo power supply the arduino is only sending the signals to the servos
Signal current goes thru the yellow wire to the servo input.
This current needs to return to the Arduino.
We connect a common ground wire between the servo GND (i.e. servo power supply GND) and the Arduino GND to facilitate this returning signal current.