Shop OBEX P1 Docs P2 Docs Learn Events
Boe-Bot servo probleme — Parallax Forums

Boe-Bot servo probleme

GhostintherobotGhostintherobot Posts: 16
edited 2007-08-20 00:25 in Robotics
HI

I centered my Boe-Bot servo but when i make this command one go clockwise and the other conterclockwise

PLX HELP

' {$STAMP BS2}
' {$PBASIC 2.5}
DO

PULSOUT 12 , 650
PULSOUT 13 , 650

LOOP

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sorry for my BASIC english ( It's not my native language)

Comments

  • MightorMightor Posts: 338
    edited 2007-07-30 04:46
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    DO
    
    PULSOUT 12 , 850
    PULSOUT 13 , 650
    PAUSE 20
    
    LOOP
    
    



    This will make the robot go either forward or backward [noparse]:)[/noparse] Switch the two values around to make the bot go the other direction. Make sure you have a 20-30ms pause between pulses.

    Gr,
    Mightor

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    | What the world needs is more geniuses with humility, there are so few of us left.
    | "Wait...if that was a compliment, why is my fist of death tingling?"
    | - Alice from Dilbert
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-07-30 14:29
    +1 Mightor.

    What's happening is, the BOE-Bot has the two servo's mounted back-to-back. This means, if they both spin in the SAME direction, then on the right side, if the servo wheel goes 'right', it pulls that side forward. On the left side, when the servo wheel goes 'right', it pulls that side backwards.

    Thus, to make it go straight, you command one with a 650 "right", and the other with an 850 "left". Then both servo's will pull "forward" at the same time.
  • MightorMightor Posts: 338
    edited 2007-07-30 14:45
    Ghost,

    Do you have the Boe-Bot book that usually comes with the package? It's really very good. I know it can be very tempting to skip ahead and try to do all the really cool stuff first but that book is really great at explaining how the robot's servos work. If you don't have a copy of it, you can find it here: http://www.parallax.com/dl/docs/books/edu/Roboticsv2_2.pdf. You mentioned that your mother tongue is not English. I believe there are translations of this book available. Perhaps one of the Parallax staff can tell you where to download those.

    Remember to have fun [noparse]:)[/noparse]

    Gr,
    Mightor

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    | What the world needs is more geniuses with humility, there are so few of us left.
    | "Wait...if that was a compliment, why is my fist of death tingling?"
    | - Alice from Dilbert
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2007-07-30 18:08
    "Robotics with the Boe-Bot" v2.0 or higher has been translated into German, Italian, Traditonal Chinese, Simplified Chinese, and Korean.

    Scroll through this page to see our complete list of volunteer-translated Stamps in Class downloads:
    http://www.parallax.com/html_pages/downloads/siccurriculum/documentation_sic_curriculum.asp



    -Stephanie Lindsay
    Editor, Parallax Inc.

    P.S. The Propeller Manual v1.0 has also been translated, to Russian and Simplified Chinese.
    http://www.parallax.com/propeller/downloads.asp
  • David H.David H. Posts: 78
    edited 2007-08-09 21:30
    Speaking of servo trouble,... I had the experience of my Boebot was working fine. Then the next minute, no matter what pulses I sent, it would just spin in a circle. Even a PULSOUT 12 , 750 and PULSOUT 13 , 750. Still spun in the same directions. To solve it, I had to disassemble my Bot, and recenter both servos. Been working fine since. Not sure what happened or why. Just thought I'd share [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    David


    There are 10 types of people in this world,...
    Those that understand binary numbers, and those that don't!!!
  • D FaustD Faust Posts: 608
    edited 2007-08-09 21:53
    Mabey, you bumped it and it moved the pots because they were loose.
    PS-I love your signature

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    LOOKDOWN ThisThread, [noparse][[/noparse]Your_?, My_?, Cool_Thing], looknum
    LOOKUP looknum, [noparse][[/noparse]1, 2, 3], subnum
    ON subnum GOTO Hope_this_helps, Thanks!, WOW!!
    END 
    
  • David H.David H. Posts: 78
    edited 2007-08-10 13:30
    D Faust;
    Thanks. I don't remember bumping them, and it was when I was in class going from one program to the other, and both got messed up at the same time. Not sure, but I thought I'd have to replace the servos. Just glad they adjusted back to center. Both pots seemed tight, and had tension when adjusted.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    David


    There are 10 types of people in this world,...
    Those that understand binary numbers, and those that don't!!!
  • GhostintherobotGhostintherobot Posts: 16
    edited 2007-08-19 17:31
    Sry this is not the good code that i send:

    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    
    counter           VAR    Word
    
    FOR counter = 1 TO 122
    PULSOUT 13 , 650
    PAUSE 20
    NEXT
    
    FOR counter = 1 TO 40
    PULSOUT 13, 750
    PAUSE 20
    NEXT
    
    FOR counter = 1 TO 122
    PULSOUT 13, 850
    PAUSE 20
    NEXT
    
    END
    



    When I make this in my Boe-Bot it gos counterclockwise than stop than clockwise. But it normaly it whil do that : clockwise, stop, counterclockwise

    But if i do that:

    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    
    counter           VAR    Word
    
    FOR counter = 1 TO 122
    PULSOUT 12 , 650
    PAUSE 20
    NEXT
    
    FOR counter = 1 TO 40
    PULSOUT 12, 750
    PAUSE 20
    NEXT
    
    FOR counter = 1 TO 122
    PULSOUT 12, 850
    PAUSE 20
    NEXT
    
    END
    



    my boe-bot gose normaly: clockwise stop than counterclockwise.

    Thanks

    Ps: I'm using the book:robotic whit the Boe-Bot wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sorry for my BASIC english ( It's not my native language)
  • Mike GreenMike Green Posts: 23,101
    edited 2007-08-19 17:51
    What you describe is what is supposed to happen. Pick up the BOE-BOT and run the first program ... look at the servo that's moving ... you'll see that the servo moves in one direction, stops, then reverses. Run the second program and turn the BOE-BOT so that you're looking at the other servo the same way. It moves in one direction, stops, then reverses. The directions are the same as the first time ... relative to the servo motor. The motors are mounted on opposite sides of the BOE-BOT. When one servo moves in one direction, it pushes the BOE-BOT forward. If the other servo moves in the same direction relative to the servo, it pushes the BOE-BOT backwards. Think about it.
  • GhostintherobotGhostintherobot Posts: 16
    edited 2007-08-19 18:03
    So it's normal so I have to change the motor code every time?

    THANKS A LOT MIKE I WAS LOST [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sorry for my BASIC english ( It's not my native language)
  • Mike GreenMike Green Posts: 23,101
    edited 2007-08-19 19:09
    To move the BOE-BOT forward, it is normal to have to use PULSOUT values < 750 on one servo and > 750 on the other servo.
    To move the BOE-BOT backwards, reverse the values.
  • GhostintherobotGhostintherobot Posts: 16
    edited 2007-08-20 00:25
    Thanks Mike for THis help[noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sorry for my BASIC english ( It's not my native language: I speak french)
Sign In or Register to comment.