70016 Parallax Inc, 70016 Datasheet - Page 121

TEXT INFRARED REMOTE FOR BOE-BOT

70016

Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 70016

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
For Use With
29122 - KIT PARTS IR REMOTE FOR BOE-BOT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
70016SE
Manufacturer:
ST
0
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 70016