28125 Parallax Inc, 28125 Datasheet - Page 174

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
Solutions
Q1. Left wheel counterclockwise, right wheel clockwise.
Q2. The right wheel is turning clockwise (forward), and the left wheel is not
Q3. You can slow down the right wheel to correct a veer to the left. The
Adjust the 650 to something closer to 750 to slow the wheel down.
Q4. Given:
Q5. The
Q6. The
Q7. The
Q8.
Q9.
E1.
E2.
moving.
command for the right wheel needs to be adjusted.
Boe-Bot speed = 11 in/s
Boe-Bot distance = 36 in/s
pulses = (Boe-Bot distance / Boe-Bot speed) * (40.65 pulses / s)
It should take 133 pulses to travel 36 inches.
minus) to 750 (the center position) in the
SELECT
UNTIL
= (36 / 11 ) * (40.65)
= 133.04
= 133
DATA
READ
FOR…NEXT
and
...
PULSOUT 13, 750
PULSOUT 12, 650
PULSOUT 12, 650
PULSOUT 12, 663
FOR pulseCount = 1 to 100
NEXT
FOR counter = 1 to 350
NEXT
FOR counter = 1 to 8 ' Rotate right 30 degrees
CASE
directive.
command.
PULSOUT 13, 750 + pulseCount
PULSOUT 12, 750 – pulseCount
PAUSE 20
PULSOUT 13, 650
PULSOUT 12, 850
PAUSE 20
PULSOUT 13, 850
WHILE
...
loop's
ENDSELECT
.
pulseCount
.
'
variable can be used as an offset (plus or
Backward
Duration
argument.
PULSOUT

Related parts for 28125