28139 Parallax Inc, 28139 Datasheet - Page 94

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
Your Turn – Making Application Backup Copies
You will use and re-use the application programs you have developed in Activity #2
through Activity #4.
ACTIVITY #5: KEYPAD BOE-BOT DIRECTION AND DISTANCE
In this activity, you will program the Boe-Bot to receive direction and distance
information from the infrared remote. Here is how the program will work:
By writing a Boe-Bot main routine for IrRemoteKeypad.bs2, you can make use of its
button code and keypad entry subroutine features. This will make writing a main routine
that allows you to choose the direction with CH and VOL keys and then enter a number of
pulses with the keypad much easier to develop.
Get_Ir_Remote_Code
can call the
Example Program – KeypadDirectionDistance.bs2
Create a separate folder for your application programs.
Make backup copies of IrRemoteButtons.bs2, 7BitRemoteBoeBot.bs2, and
IrRemoteKeypad.bs2.
Press/release a CH or VOL key to select one of four maneuvers: forward,
backward, rotate left, or rotate right.
Next, use the keypad to enter the number of pulses to deliver.
When the ENTER button is pressed/released, the Boe-Bot executes the maneuver.
Open IrRemoteKeypad.bs2 and save it as KeypadDirectionDistance.bs2.
Add these
' Boe-Bot Servo Pins
ServoLeft
ServoRight
Add these declarations to the Variables section.
' Boe-Bot navigation variables
direction
counter
Get_Multi_Digit_Value
PIN
directives:
subroutine to get the CH/VOL key for direction. After that, you
PIN
PIN
VAR
VAR
13
12
Byte
Byte
subroutine to get the number of pulses.
You will have to call the

Related parts for 28139