Shop OBEX P1 Docs P2 Docs Learn Events
forward and turning — Parallax Forums

forward and turning

tyhuffman99tyhuffman99 Posts: 2
edited 2006-12-01 02:24 in Learn with BlocklyProp
jumpin.gif· i'm new at this robotics stuff and i need to know how to make the robot move forward and then turn 90 degrees left and then keep going forward?·· if anyone could help me i would be very pleased

Comments

  • A.C. fishingA.C. fishing Posts: 262
    edited 2006-12-01 01:21
    If you are using the boe-bot:
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    counter VAR Word
    FOR counter = 1 TO 300'The bigger this number, the longer the forward
    PULSOUT 12, 650
    PULSOUT 13, 850
    Next
    FOR counter = 1 TO 100'the bigger this number, the longer the turn
    PULSOUT 12, 650
    PULSOUT 13, 850
    Next
    Do
    PULSOUT 12, 650
    PULSOUT 13, 850
    loop
    
    



    Have you read Robotics With The Boe-bot? It teaches you all of this information and much more:
    http://www.parallax.com/dl/docs/books/edu/Roboticsv2_2.pdf
    -ACfishing

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    Somebody said...
    -Never Underestimate the power of human stupidity.
    ·
  • A.C. fishingA.C. fishing Posts: 262
    edited 2006-12-01 01:22
    oh... I forgot to mention that you will have to calibrate the 100 to make it turn exactly 90 degrees.
    -ACfishing

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    Somebody said...
    -Never Underestimate the power of human stupidity.
    ·
  • tyhuffman99tyhuffman99 Posts: 2
    edited 2006-12-01 02:24
    thanks
Sign In or Register to comment.