View unanswered posts | View active topics It is currently Sat Aug 15, 2020 10:39 am

Reply to topic  [ 2 posts ] 
Programming Continuous Rotation Servos. 
Author Message

Joined: Mon Dec 01, 2014 3:58 pm
Posts: 1
Post 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

Mon Dec 01, 2014 4:02 pm
User avatar

Joined: Sat Aug 31, 2013 9:15 am
Posts: 256
Post 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!!!

FTC Team 6100 Chariots of Fire - Programmer (2012-2013)
FTC Team 7468 Blue Chariots of Fire - Programmer (2013-2014)
FTC Team 7468 Blue Chariots of Fire - Mentor (2014-2015)
Check out our team website at

Mon Dec 01, 2014 9:46 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.