Shop OBEX P1 Docs P2 Docs Learn Events
Coding to Control Continuous Servo Controller — Parallax Forums

Coding to Control Continuous Servo Controller

Rudy108Rudy108 Posts: 1
edited 2007-06-28 14:05 in BASIC Stamp
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

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2007-06-28 11:40
    Rudy,

    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
    ·
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-06-28 14:05
    Rudy -

    To produce the motion you're explaining, folks usually use a stepper motor. Parallax sells stepper motors as well.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sign In or Register to comment.