28125 Parallax Inc, 28125 Datasheet - Page 268

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
command’s worth of time, the IR detector will return to the not detected (1 state),
regardless of whether or not it detected an object.
In the
this program sets variable values that will be used in
arguments.
Before the
that the
checking the IR LEDs.
Your Turn
IF…THEN
PAUSE
Save FastIrRoaming.bs2 as FastIrRoamingYourTurn.bs2.
Use the LEDs to broadcast that the Boe-Bot has detected an object.
Try modifying the values that pulseLeft and pulseRight are set to so that the
Boe-Bot does everything at half speed.
FREQOUT 8, 1, 38500
irDetectLeft = IN9
FREQOUT 2, 1, 38500
irDetectRight = IN0
IF (irDetectLeft = 0) AND (irDetectRight = 0) THEN
ELSEIF (irDetectLeft = 0) THEN
ELSEIF (irDetectRight = 0) THEN
ELSE
ENDIF
DO…LOOP
PULSOUT 13,pulseLeft
PULSOUT 12,pulseRight
PAUSE 15
pulseLeft = 650
pulseRight = 850
pulseLeft = 850
pulseRight = 850
pulseLeft = 650
pulseRight = 650
pulseLeft = 850
pulseRight = 650
command is no longer 20. Instead, it’s 15 since roughly 5 ms is taken
statements, instead of delivering pulses or calling navigation routines,
repeats, the last thing to do is to deliver pulses to the servos. Notice
PULSOUT
' Apply the pulse.
commands’
Duration

Related parts for 28125