70016 Parallax Inc, 70016 Datasheet - Page 101

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
How KeypadDirectionDistance.bs2 Works
Two variables have to be added to IrRemoteKeypad.bs2, one for storing the Boe-Bot's
direction, and the other for counting the number of pulses in a
The first command inside the main
CH/VOL direction.
The program calls the
remoteCode
some button that's not CH+/- or VOL+/- is pressed, the
lower pitched error beep along with a Debug Terminal prompt to press one of the CH or
VOL buttons.
After the
Bot with the remote is stored in the
in a different variable before another IR message is processed; otherwise, the value will
be lost. That's why the direction value stored in
variable, which is conveniently named
The right button had to have been pressed for the program to have exited the
that calls the
which makes the higher pitched acknowledgement beep to let you know the right key was
pressed.
' Boe-Bot navigation variables
direction
counter
Get_Ir_Remote_Code
DEBUG "Select direction (CH/VOL):", CR
DO
LOOP UNTIL (remoteCode >= ChUp) AND (remoteCode <= VolDn)
direction = remoteCode
GOSUB Get_Ir_Remote_Code
IF (remoteCode < ChUp) OR (remoteCode > VolDn) THEN
ENDIF
that falls between
Get_Ir_Remote_Code
DEBUG "Select direction (CH/VOL):", CR
GOSUB Beep_Error
Get_Ir_Remote_Code
VAR
VAR
ChUp
subroutine is called, the direction you sent to the Boe-
Byte
Byte
remoteCode
(16) and
. The program calls the
DO…LOOP
direction
VolDn
subroutine over and over again, until a
is a
remoteCode
variable. This value needs to get stored
.
(19) is received from the remote. If
DEBUG
IF…THEN
command prompting for a
FOR…NEXT
has to be copied to another
Beep_Valid
statement delivers the
loop.
subroutine,
DO…LOOP

Related parts for 70016