Hey guys so Im using this code
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
myservo.write(0);
delay(3000);
}
void loop() {
myservo.write(90);
delay(3000);
myservo.write(0);
delay(3000);
}
When I run the code on the HS-311 Servo the servo correctly turns 0 to 90 degrees. However when I use the HS-5055MG Servo the servo twitches and does a few random degrees and then stops working. Any help would be greatly appreciated!