28139 Parallax Inc, 28139 Datasheet - Page 155

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
' -----[ EEPROM Data ]------------------------------------------------
' Set aside data for lists of Maneuver_List and Distance_List.
Maneuver_List DATA @ 15
Distance_List DATA @ 35
Copy these declarations into the Pin Definitions section:
' Boe-Bot Servo Pins
ServoLeft
ServoRight
Copy these declarations into the Variables section:
' Boe-Bot navigation variables
direction
counter
eeIndex
Replace the
DO
If you examine this next
and structure as the main routine from DebugRecordBoeBotPlayback.bs2.
DEBUG "Press POWER to record", CR,
GOSUB Get_Ir_Remote_Code
IF remoteCode = Power THEN
' Routine - Record data
GOSUB Beep_Valid
eeIndex = 0
DO UNTIL eeIndex = 19
DEBUG "Menu: ", CR,
"or ENTER to playback", CR, CR
DO…LOOP
"
"
"
"
"
PIN
PIN
VAR
VAR
VAR
CH+
CH-
VOL+
VOL-
ENTER = Done recording", CR, CR
in the main routine with this one.
DO…LOOP
= Forward", CR,
= Backward", CR,
= Right", CR,
= Left", CR,
13
12
Byte
Word
Byte
closely, you will see that it has the same overall function
' 20 bytes for Maneuver_List.
' 20 bytes for Distance_List.

Related parts for 28139