Shop OBEX P1 Docs P2 Docs Learn Events
Continuos rotation serv — Parallax Forums

Continuos rotation serv

bhavbhav Posts: 2
edited 2004-12-02 17:22 in BASIC Stamp
I need some quick help on a project that I have fallen behind on. The application is simple, but I'm new to the BASIC stamps. I have a Futaba S3003 servo that I have modified for full rotation and I need this to turn clockwise 90 degrees, pause for a few seconds and turn back to its starting point. I have tried some of the FOR NEXT loops, but have not been successful. Any help would be appreciated.

Thank you

Comments

  • NewzedNewzed Posts: 2,503
    edited 2004-12-02 16:28
    If you are using a continuous rotation servo try this:

    pos con 750

    pulsout servo, pos
    pause 5000

    This gets the servo to the center position

    pulsout servo, pos + 30
    pause 5000

    Pos + 30 is a guess.· Adjust the 30 until servo rotates 90 degrees.· After it is adjusted to 90 degrees, write:

    pulsout servo, pos

    end

    This should get you back to the center position.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    New Combo LCD Backpack

    http://hometown.aol.com/newzed/index.html
    ·
  • NewzedNewzed Posts: 2,503
    edited 2004-12-02 16:35
    Come on, Bruce - a continuous servo will rotate in either direction.· How do you think I run my BoeBot in reverse ?

    What were you thinking of, Mr. Bates, sir [noparse]:)[/noparse])

    Sid
  • bhavbhav Posts: 2
    edited 2004-12-02 16:52
    Thank you Sid I will try this when I get home.

    ·
  • NewzedNewzed Posts: 2,503
    edited 2004-12-02 16:56
    bhav, let me know how it works.· Once you determine the 90 degree point, I will show you how to move the servo slowly instead of "snapping" it to a position.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    New Combo LCD Backpack

    http://hometown.aol.com/newzed/index.html
    ·
  • allanlane5allanlane5 Posts: 3,815
    edited 2004-12-02 17:22
    Well, a 'standard' servo will rotate to a position. A 'continuous' rotation servo will let you rotate forward, backward, or stop it. When you 'modify' it for full rotation, you lose the absolute position feedback.

    It sounds like you either need an un-modified servo, or some encoder or limit-switch on the output shaft which will tell you when you've moved your 'modified' servo far enough.

    In theory, doing:

    HoldPos:
    PULSOUT ServoPin, 750 ' Send a 1.5 mSec signal to the servo
    Pause 20
    GOTO HoldPos

    Should 'center' an un-modified servo, or 'stop' a modified servo from rotating.
Sign In or Register to comment.