I have big problem. I bought MG996R and when i set a simple program do control sevro.h it trys to move in one direction.
I think it can be sth wrong with possition of MG996 ?
0 - doesnt mean 0 in myservo.write(); ???
Iam newbie
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup()
{
Serial.begin(9600);
myservo.attach(9);
Serial.print(myservo.read()); // attaches the servo on pin 9 to the servo object
}
void loop()
{
myservo.write(10);
Serial.print(myservo.read()); // tell servo to go to position in variable 'pos'
delay(250);
myservo.write(50);
Serial.print(myservo.read()); // tell servo to go to position in variable 'pos'
}