Coding to Control Continuous Servo Controller
Rudy108
Posts: 1
Hi Everyone, I need help in writing the code in Basic Stamps, in order to control my servo (Continuous Rotation Servo by Parallax)
by pressing the button to go either to the left or Right in steps .
So if I Click (once) the left button , it will turn left· 1 step and if ·I Click (again) the button left, it will turn left· 1 more step and so on , same condition for the right button
Any help would be appreciated , thank you very much
Regards
Rudy
by pressing the button to go either to the left or Right in steps .
So if I Click (once) the left button , it will turn left· 1 step and if ·I Click (again) the button left, it will turn left· 1 more step and so on , same condition for the right button
Any help would be appreciated , thank you very much
Regards
Rudy
Comments
I think the Continuous rotation servos have been modified to act more like variable speed, reversible motors. They have been modified so as not to have position feedback.
Having said that, you can probably simulate what you want by writing a program to briefly tell the motor to go left then stop. The length of time spent running will determine how large each "step" is. The same thing can be done in the right direction.
Either a standard servo or a stepper will make things easier.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
To produce the motion you're explaining, folks usually use a stepper motor. Parallax sells stepper motors as well.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔