28125 Parallax Inc, 28125 Datasheet - Page 148

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
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
FREQOUT 4, 2000, 3000
FOR counter = 1 TO 41
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
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.
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.
Battery
9 Vdc
Sout
Sin
ATN
Vss
P0
P1
P2
P3
P4
P5
P6
P7
www.stampsinclass.com
1
VAR
U1
6-9VDC
Vin
Vss
Rst
Vdd
P15
P14
P13
P12
P11
P10
P9
P8
TM
Vss
P0
P2
P4
P6
P8
P1 0
P1 2
P1 4
Vd d
0
Reset
X1
1 2
Vss
P1
P3
P5
P7
P9
P11
P1 3
P1 5
Vin
Pwr
P1 5
P1 4
P1 3
P1 2
P11
P1 0
P9
P8
P7
P6
P5
P4
P3
P2
P1
P0
X2
Word
X3
Board of Education
Rev C
inch
cm
Vdd
15 14
Figure 4-3: Measuring Boe-Bot Distance
1
X4
Vdd
Vin
© 2000-2003
1 3 12
2
X5
1
Vss
Red
Black
3
4
2
5
6
7
3
8
Measured Distance
9 10 11 12 13 14 15
4
' Signal program start/reset.
5
6
16 17 18 19 20 21 22 23 24 25
7
8
9
10

Related parts for 28125