28139 Parallax Inc, 28139 Datasheet - Page 121

KIT REMOTE IR FOR BOE-BOT W/TEXT

28139

Manufacturer Part Number
28139
Description
KIT REMOTE IR FOR BOE-BOT W/TEXT
Manufacturer
Parallax Inc
Datasheets

Specifications of 28139

Accessory Type
IR Remote
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Add an Initialization section with this startup code for the Boe-Bot just before
the main routine section.
' -----[ Initialization ]----------------------------------------------
' Boe-Bot initialization.
Replace the
DO
DEBUG "Starting...", CR, CR
FREQOUT 4, 2000, 3000
speed = 0
IF (IN9 = 0) OR (speed = 0) THEN
ENDIF
FREQOUT 8, 1, 38500
irDetectLeft = IN9
FREQOUT 2, 1, 38500
irDetectRight = IN0
FREQOUT Speaker, 100, 3500
PAUSE 100
FREQOUT Speaker, 100, 3500
PAUSE 200
DEBUG "Speed range: 0 to 100", CR, CR,
GOSUB Get_Multi_Digit_Value
speed = value
DEBUG ? speed, CR
DEBUG "Running...", CR,
PAUSE 250
"Type speed on remote", CR,
"keypad, then press", CR,
"ENTER", CR, CR
"Press any key to", CR,
"interrupt roaming", CR, CR
DO…LOOP
in the main routine with this one:
' Signal program start/reset.
' Initial speed is zero.
' Main Routine.
' Check for IR message.
' Signal remote message
' detected.
' Get new speed.
' Set new speed.
' Pause for debounce.
' Check IR Detectors.
' Decide how to navigate.

Related parts for 28139