View unanswered posts | View active topics It is currently Sat Aug 18, 2018 6:03 am

 Page 1 of 1 [ 3 posts ]
 Print view Previous topic | Next topic
Continuous rotation servo problems
Author Message
Rookie

Joined: Mon Jan 14, 2013 2:50 pm
Posts: 12
Continuous rotation servo problems
I am having some trouble with a continuous rotation servo.
I have
 Code:if(joy1Btn(1)==1){ servo[servo1]=servo[servo1] + 1; wait1Msec(40);}  if(joy1Btn(3)==1){  servo[servo1]=servo[servo1] - 1;  wait1Msec(40);}

The code is supposed to make the servo move one degree at a time but it seems to want to make the servo turn 1 rotation at a time. Someone please tell me how continuous rotation servos are programmed.

Mon Feb 11, 2013 12:25 am
Rookie

Joined: Mon Jan 14, 2013 2:50 pm
Posts: 12
Re: Continuous rotation servo problems
Well, it seems in the debugger that if the desired servo value is much greater than 125 or so, that the servo turns so that the servo value moves up, and if the desired servo value is much less than 125, the servo turns so the servo value moves down.

Wed Feb 13, 2013 11:52 pm
Expert

Joined: Thu Sep 29, 2011 11:09 pm
Posts: 184
Location: Michigan USA
Re: Continuous rotation servo problems
A continuous rotation servo is only relative, it is not absolute. The values it receives are used to control speed and direction, not position.

_________________
Matt

Thu Feb 14, 2013 3:40 pm
Display posts from previous:  Sort by
 Page 1 of 1 [ 3 posts ]

#### Who is online

Users browsing this forum: No registered users and 2 guests

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

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge    2014 Robotics Academy Summer of Learning