' -----[ Subroutine – Right_Turn ]--------------------------------------------
Right_Turn:
FOR pulseCount = 1 TO 24
PULSOUT 13, 850
PULSOUT 12, 850
PAUSE 20
NEXT
RETURN
Did your Boe-Bot drive in a rectangle, going forward on the first two sides and
backwards on the second two? If it looked more like a trapezoid, you may want to adjust
the
...
loop's
FOR
NEXT
EndValue
degree turns.
Your Turn
√
With EepromNavigation.bs2 active in the BASIC Stamp Editor, click Run and
select Memory Map .
Your stored instructions will appear highlighted in blue at the beginning of the Detailed
EEPROM Map as shown in Figure 4-7. The numbers shown are the hexadecimal ASCII
(American Standard Code for Information Interchange) codes that correspond to the
characters you entered in your
√
Click the Display ASCII checkbox near the lower left corner of the Memory Map
window.
Chapter 4: Boe-Bot Navigation · Page 151
' right turn subroutine.
' Send 24 right rotate pulses.
' 1.7 ms pulse to left servo.
' 1.7 ms pulse to right servo.
' Pause for 20 ms.
' Return to Main Routine section.
arguments in the turning subroutines to make precise 90-
statement.
DATA
Figure 4-7
Memory Map
with Stored
Instructions
Visible in
EEPROM Map
Need help?
Do you have a question about the Boe-Bot and is the answer not in the manual?
Questions and answers