Page 128 ·
Robotics with the Boe-Bot
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
NEXT
PAUSE 200
FOR counter = 1 TO 24 ' Rotate left - about 1/4 turn
PULSOUT 13, 650
PULSOUT 12, 650
PAUSE 20
NEXT
PAUSE 200
FOR counter = 1 TO 24 ' Rotate right - about 1/4 turn
PULSOUT 13, 850
PULSOUT 12, 850
PAUSE 20
NEXT
PAUSE 200
FOR counter = 1 TO 64 ' Backward
PULSOUT 13, 650
PULSOUT 12, 850
PAUSE 20
NEXT
END
Your Turn - Pivoting
You can make the Boe-Bot turn by pivoting around one wheel. The trick is to keep one
wheel still while the other rotates. For example, if you keep the left wheel still and make
the right wheel turn clockwise (forward), the Boe-Bot will pivot to the left.
PULSOUT 13, 750
PULSOUT 12, 650
If you want to pivot forward and to the right, simply stop the right wheel, and make the
left wheel turn counterclockwise (forward).