Parallax Boe-Bot Student Manual page 148

Hide thumbs Also See for Boe-Bot:
Table of Contents

Advertisement

Page 134 · Robotics with the Boe-Bot
Place your Boe-Bot next to a ruler as shown in Figure 4-3.
Make sure to line up the point where the wheel touches the ground with the 0
in/cm mark on the ruler.
6-9VDC
9 Vdc
Battery
Pwr
Vss
Vss
P0
P1
P2
P3
P4
P5
P6
P7
TM
P8
P9
1
P11
P1 0
Sout
Vin
P1 3
P1 2
Sin
Vss
P1 4
P1 5
ATN
Rst
Vin
Vd d
Vss
Vdd
X1
P0
P15
P1
P14
U1
P2
P13
P3
P12
P4
P11
Reset
P5
P10
P6
P9
P7
P8
0
1 2
www.stampsinclass.com
Press the Reset button on your board to re-run the program.
Measure how far your Boe-Bot traveled by recording the measurement where the
wheel is now touching the ground here:__________________ in / cm.
Example Program: ForwardOneSecond.bs2
' Robotics with the Boe-Bot - ForwardOneSecond.bs2
' Make the Boe-Bot roll forward for one second.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
counter
VAR
FREQOUT 4, 2000, 3000
FOR counter = 1 TO 41
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
Figure 4-3: Measuring Boe-Bot Distance
15 14
Vdd
1 3 12
Red
Black
X4
X5
Vdd
Vin
Vss
X3
P1 5
P1 4
P1 3
P1 2
P11
P1 0
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X2
Board of Education
Rev C
© 2000-2003
Measured Distance
inch
1
2
3
1
2
3
4
5
6
7
8
9 10 11 12 13 14 15
cm
Word
4
5
6
7
8
16 17 18 19 20 21 22 23 24 25
' Signal program start/reset.
9
10

Advertisement

Table of Contents
loading

Table of Contents