wheels clockwise and counterclockwise
SAMYTRIX
Posts: 11
I have this program
LOW 12
LOW 13
DO
PULSOUT 12, 500
PAUSE 20
PULSOUT 13, 500
PAUSE 20
LOOP
but the wheels go opposite direction, one clockwise and one counterclockwise, however when I use 500ms for one wheel and 1000ms for the other wheel, they both go the same direction, but each wheel's speed is different so bot doesn't go a straight line. What am I doing wrong? thank you
LOW 12
LOW 13
DO
PULSOUT 12, 500
PAUSE 20
PULSOUT 13, 500
PAUSE 20
LOOP
but the wheels go opposite direction, one clockwise and one counterclockwise, however when I use 500ms for one wheel and 1000ms for the other wheel, they both go the same direction, but each wheel's speed is different so bot doesn't go a straight line. What am I doing wrong? thank you
Comments
Finally, you only need one PAUSE in your code:
Test:
· DO
··· PULSOUT 12, 500
··· PULSOUT 13,·1000
··· PAUSE 20
· LOOP
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax