Programming Continuous Rotation Servos.
Page 1 of 1

Author:  pnshore [ Mon Dec 01, 2014 4:02 pm ]
Post subject:  Programming Continuous Rotation Servos.

Hey everyone my team and I have been having having trouble figuring out how to program continuous rotation servos in our tele-op program. we want to beable to press a button (say button 1) and have the servo spin in one direction and then stop when the button is no longer being pressed. I have looked EVERY where on the internet or information on this but have yet to find something usefull! please help if you can! Thanks

Author:  BurningLights [ Mon Dec 01, 2014 9:46 pm ]
Post subject:  Re: Programming Continuous Rotation Servos.

Continuous rotation servos don't seem to be very well documented on their use. My team had the same problems our first year, when we tried to use them. The coding is actually pretty simple, once you know how it works. A value of 0-126 makes the servo turn "backwards" (counter-clockwise I do believe). A value of 127 makes it stationary. And 128-255 make it rotate "forwards" (clockwise, if I remember correctly). So, the usage would be like:
// "Go" button is pressed
servo[servo1] = 255; // Full steam ahead!
// "Stop" button is pressed
servo[servo1] = 127; // STOP!!!

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group