Shop OBEX P1 Docs P2 Docs Learn Events
Probem whith sevomotors on boe bot!! — Parallax Forums

Probem whith sevomotors on boe bot!!

armarm Posts: 23
edited 2010-11-21 10:34 in Robotics
Hello,
I have a problem with my boe bot;
The servo are turning, stopping, turning, stopping,...:confused:
I am using this simple program::smhair:

' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "!! "

DO
PULSOUT 12,650
PULSOUT 13, 850
LOOP

Comments

  • WhitWhit Posts: 4,191
    edited 2010-11-21 05:29
    Did you calibrate the servos? (I know you may have done this - but it is best to start with simple solutions first).
  • hover1hover1 Posts: 1,929
    edited 2010-11-21 06:28
    Try this:
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    DEBUG "!! "
    
    DO
    PULSOUT 12,650
    [B]PAUSE 20[/B]
    PULSOUT 13, 850
    [B]PAUSE 20[/B]
     LOOP
    

    Jim
    arm wrote: »
    Hello,
    I have a problem with my boe bot;
    The servo are turning, stopping, turning, stopping,...:confused:
    I am using this simple program::smhair:

    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    DEBUG "!! "

    DO
    PULSOUT 12,650
    PULSOUT 13, 850
    LOOP
  • ercoerco Posts: 20,256
    edited 2010-11-21 07:22
    Good call Hover1; that PAUSE 20 command is necessary between pulsouts. For multiple servos, you can combine them like this:

    DO
    PULSOUT 12,650
    PULSOUT 13, 850
    PAUSE 20
    LOOP

    In this manner, each servo still gets a 20 ms PAUSE.
  • ercoerco Posts: 20,256
    edited 2010-11-21 07:30
    @arm: You have a few posts here about your Poe Bot. Happy that you are so excited, sounds like you are diving right in. Just take it slow and read every word in the manuals. They are extremely well written. You had one post about a "thingie" and a "connection to Vin or Vdd". VERY IMPORTANT DIFFERENCE! You CAN do permanent damage with even a brief connection to a wrong pin; that would be a shame. Take your time to assemble it properly, type in the code exactly as the book shows, and soon you'll be a BoeBot pro, answering other people's questions here, too!
  • armarm Posts: 23
    edited 2010-11-21 10:34
    Ok, thanks!
Sign In or Register to comment.