28139 Parallax Inc, 28139 Datasheet - Page 95

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 the initialization routine for the Boe-Bot's start/reset indicator along with
some operation instructions for the Debug Terminal. This section should be
placed just before the Main Routine section.
' -----[ Initialization ]---------------------------------------------
DEBUG "Program Starting...", CR, CR
FREQOUT Speaker, 2000, 3000
DEBUG "Use CH/VOL for direction,", CR,
Replace the code in the Main Routine section with this:
DO
DEBUG "Select direction (CH/VOL):", CR
DO
LOOP UNTIL (remoteCode >= ChUp) AND (remoteCode <= VolDn)
direction = remoteCode
GOSUB Beep_Valid
DEBUG "Enter number of pulses: ", CR
GOSUB Get_Multi_Digit_Value
DEBUG "The value is: ", DEC value, CR
DEBUG "Running...", CR, CR
FOR counter = 1 TO value
GOSUB Get_Ir_Remote_Code
IF (remoteCode < ChUp) OR (remoteCode > VolDn) THEN
ENDIF
SELECT direction
"then type distance (up to ", CR,
"255) then press ENTER.", CR, CR
DEBUG "Select direction (CH/VOL):", CR
GOSUB Beep_Error
CASE ChUp
CASE ChDn
PULSOUT ServoLeft, 850
PULSOUT ServoRight, 650
PULSOUT ServoLeft, 650
' Start/reset indicator.
' Debug instructions.

Related parts for 28139