Shop OBEX P1 Docs P2 Docs Learn Events
control the precise rotation of a Continuous Rotation Servo? — Parallax Forums

control the precise rotation of a Continuous Rotation Servo?

playinmyblues_nsccplayinmyblues_nscc Posts: 38
edited 2008-11-27 20:01 in BASIC Stamp
After searching the forums for a while and not finding what I am looking for, does anybody know of a simple way to control the precise rotation of a Continuous Rotation Servo? I am using a BS2.

I have already tried the following:
1) Measured the time it took the cts servo to rotate 20 times. Determined the time for a single rotation. Divided the time by 3 to get the time for one motion through 120 degrees.
2) Calculated the total time for a pulse with the PAUSE 20 command; PULSOUT pin, 760 (same cts servo speed as measured for step·· 1).
3) Used a FOR NEXT loop to run the cts servo through approximately 120 degrees. FOR NEXT is counter = 1 to 75.

The problem is that it does not return to the same spot after 3 movements so the cts servo is not controlled precisely.

Post Edited By Moderator (Joshua Donelson (Parallax)) : 10/23/2009 4:10:44 AM GMT

Comments

Sign In or Register to comment.