PDA

View Full Version : Newbie w/BS2 and Parallax (continuous rotation) servo



CBinVa
01-13-2006, 10:58 AM
Just got the kit and samples I've tried so far aren't working as expected.

I have the Professional development board with a BS2 and a Parallax (continuous rotation) servo

I've flashed LEDs and got tones to the speaker just fine... But I must be missing something re: the servos...

Looking for a simple example that moves the servo (slowly) about 120-degrees, stops, then returns (slowly) to original position.

Sample code I've tried so far have it spinning and spinning...

Can anyone provide a quick simple of code that would do that?

Thanks!
-Chris

Chris Savage
01-13-2006, 11:11 AM
Continuous rotation servos cannot move to a specific position. They are modified to spin continuously when given positions away from the center position corresponding to direction. So your results are normal for that type of servo. Sounds like you need a standard servo.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com (mailto:csavage@parallax.com)