Shop OBEX P1 Docs P2 Docs Learn Events
Simultaneous Starting of Continuous Servo Motors — Parallax Forums

Simultaneous Starting of Continuous Servo Motors

thebigoc5thebigoc5 Posts: 2
edited 2006-04-02 14:52 in BASIC Stamp
hi

im wondering how i can activate 3 servo motors at the same time using BS2.
i tried using pulsout but it starts them sequentially not simultaneously

I am using the board of education

thanks

Comments

  • Tricky NekroTricky Nekro Posts: 218
    edited 2006-04-01 21:45
    Try this...

    PULSOUT Servo1 : PULSOUT Servo2 : PULSOUT Servo3

    Provas, Greece

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Rule your Destiny-
    --Be Good. Be Bad. Be Provas--
  • Mike GreenMike Green Posts: 23,101
    edited 2006-04-01 21:53
    Strictly speaking, you can't do more than one function at a time with the Basic Stamps. There is leeway in the requirements for controlling servos. They need a pulse from about 0.5ms to 2.5ms in length every 20ms or so. That leaves room to put out several pulses sequentially. The servos will start moving within a few milliseconds of each other, but that's not much time compared to how long it takes them to actually move. So, do a PULSOUT for each servo of the proper width for the movement you want, do a PAUSE for about 12ms, and repeat. If you need to do other processing (like looking at buttons or accessing other devices), you can do that to fill out the 12ms period rather than a PAUSE. Does that make sense?
  • thebigoc5thebigoc5 Posts: 2
    edited 2006-04-02 00:20
    thanks for the reply

    ill try it out

    also, someone was telling me to alter the baud using SEROUT

    does anyone know anything about that?
  • Mike GreenMike Green Posts: 23,101
    edited 2006-04-02 01:26
    You'll have to say more about what you're trying to do, particularly about the SEROUT.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-04-02 14:52
    Please start a new thread for you SEROUT question.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.