28139 Parallax Inc, 28139 Datasheet - Page 120

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
Here's how it will work:
IrRoamingWithSpeedControl.bs2 already uses infrared to check for obstacles between
each pair of pulses to the servos. The key to detecting incoming messages from the
remote is to check the IR detectors before using the
objects. If the program checks to find out if IR is detected before checking for obstacles,
it can easily detect an incoming message from the remote. Here are the steps that should
be executed inside the main routine's
Example Program: RoamingWithRemoteSpeedControl.bs2
Follow these steps to write the program:
By pressing the any button, you will interrupt the Boe-Bot's roaming.
Then, you will use the numeric keypad to type in the new percent-speed.
To make the Boe-Bot resume roaming at the new speed, press the ENTER button.
Before testing for objects with the Boe-Bot's IRLED headlights, test the IR
detector's output pin to see if a signal is coming from the remote.
Check the IR detectors.
Use
Open IrRemoteKeypad.bs2.
Save a copy of it as RoamingWithRemoteSpeedControl.bs2.
Add these declarations to the variables section:
' Boe-Bot control variables.
irDetectLeft
irDetectRight
speed
You can copy and paste to transfer sections of code from your version of
IrRoamingWithSpeedControlYourTurn.bs2 into RoamingWithRemoteSpeedControl.bs2.
IF…THEN
If the IR detector is sending a low signal it means an infrared message is
coming in. Call the
If the IR detector is sending a high, move on to the next task, which is
object detection.
to control the servo directions and speeds.
VAR
VAR
VAR
Bit
Bit
Byte
Process_Ir_Message
DO…LOOP
:
FREQOUT
' IR detector bit storage
' Speed control variable
subroutine.
command to look for

Related parts for 28139