Well, I'm trying to learn servos so I'm toying around a micro servo 9G.
I'm using an arduino one board and the following code:
#include <Servo.h>
Servo neckServo; // Define the Servo object
void setup()
{
neckServo.attach(10); // attach the servo on pin 10 to the servo object
neckServo.write(90); // "favorite" default position
}
void loop()
{
neckServo.write(0);
//neckServo.write(90);
//neckServo.write(180);
delay(3000);
}
whereas in the loop() I vary among those positions (one at a time). My problems/questions are:
1) at angle 0 or very small angles I hear a sort of buzzing, which make me think that the servo motor is in stress or something, in other words does not seem to be healthy for the servo.
2) aditionally the 180º position does seem to be quite a few degrees short of what I think it should be (when compared with the 0 or 90º positions)
So any ideas on these issues above?
~thanks