28125 Parallax Inc, 28125 Datasheet - Page 274

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
The
pulseRight
forward.
Else, if the right IR detector does not see the tabletop, rotate left 10 pulses.
Else, if the left IR detector does not see the tabletop, rotate right 10 pulses.
Else, if neither detector can see the table top, back up 15 pulses and try again, hoping that
one of the detectors will see the drop-off before the other.
Now that the value of
loop delivers the specified number of pulses for the maneuver determined by the
pulseLeft
IF…THEN
pulseCount
IF (irDetectLeft = 0) AND (irDetectRight = 0) THEN
ELSEIF (irDetectRight = 1) THEN
ELSEIF (irDetectLeft = 1) THEN
ELSE
ENDIF
FOR loopCount = 1 TO pulseCount
and
and
pulseCount = 1
pulseLeft = 850
pulseRight =
pulseCount = 10
pulseLeft = 650
pulseRight =
pulseCount = 10
pulseLeft = 850
pulseRight =
pulseCount = 15
pulseLeft = 650
pulseRight =
PULSOUT 13,pulseLeft
PULSOUT 12,pulseRight
PAUSE 20
statements now set the value of
pulseRight
pulseLeft
pulseCount
VAR
. If both detectors can see the table, take one cautious pulse
variable.
650
650
850
850
,
pulseLeft
Byte
, and
pulseCount
pulseRight
as well as the values of
are set, this
FOR…NEXT

Related parts for 28125