Servo control

Hi every one!

I 'm new user of Arduino and I'm working on a project with servo motor. I use a HBS 770 BB MG servo and I wanted to make it sweep until 15 degrees and then come back. The code is the same as in the example of servo provided with the arduino IDE the only change is instead of 180 I put 15 degrees. Note that with the original code the motor sweeps until 90 degrees and then comes back! So is there some one how has experience with servo and arduino and can help me to find a solution to my problem?

Thank you in advance :)


When I looked it up here it looks as if the max travel is 90 deg.

Try using servo.writeMicroseconds() and see if that makes more sense.