Controlling Servomotor (continuous rotation) to return exactly to its initial p

Hello Guys,
I am facing a certain problem in controlling the servo motor to return to its exact initial position...
Part of my project is to read from a force sensor and according to this reading the servo motor shall rotate either clockwise or anti-clockwise. So I managed to control this with the code below in the attachment , but after many trials successively the motor does not return back to its initial position , there is a slight difference in the degrees (1 - 5 degrees) so if you please can help me to solve this problem. Thank you in advance

test_servo_weight.ino (968 Bytes)

#7 below tells how to post code so it will be more widely looked at:

http://forum.arduino.cc/index.php/topic,148850.0.html

You don't have position control of a continuous rotation servo. Either use a standard servo or use an external detector (such as a microswitch) to let the Arduino know when the HOME position is reached.

A sail winch servo can do about 3 rotations with position control.

...R

Thank you very much , I brought a standard servo and found another use for the continuously rotating servo :slight_smile:

A sail winch servo can do about 3 rotations with position control.

I don't have one, but the below servo seems to have some of both continuous and standard servo functions.

http://www.robotshop.com/ca/en/hitec-hs785hb-servo-motor.html

I'll bet the HS785 is a multi-turn one. Or maybe it has an encoder.

Its a 3.5 turn sail winch servo.