28125 Parallax Inc, 28125 Datasheet - Page 282

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
' -----[ Subroutines ] ------------------------------------------------
Sniff:
Roam:
IF (IN0 = 0) OR (IN9 = 0) THEN
ENDIF
RETURN
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
PULSOUT 13,pulseLeft
PULSOUT 12,pulseRight
PAUSE 15
RETURN
FOR counter = 1 TO 5
NEXT
pulseLeft = 650
pulseRight = 850
pulseLeft = 850
pulseRight = 850
pulseLeft = 650
pulseRight = 650
pulseLeft = 850
pulseRight = 650
HIGH 1
HIGH 10
FREQOUT 4, 50, 4000
LOW 1
LOW 10
PAUSE 20
' From IrInterferenceSniffer.bs2
' Beep 5 times
' and flash LEDs
' From FastIrRoaming.bs2
' Check IR Detectors
' Decide how to navigate.
' Apply the pulse.

Related parts for 28125