70016 Parallax Inc, 70016 Datasheet - Page 42

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
' IR Remote for the Boe-Bot - 2BitRemoteBoeBot.bs2
' Control your Boe-Bot with an IR remote set to control a SONY TV
' with the 1-4 or CH+/- and VOL+/- keys.
'{$STAMP BS2}
'{$PBASIC 2.5}
time
DEBUG "Press and hold a digit key (1-4) or CH+/- and VOL+/-..."
FREQOUT 4, 2000, 3000
DO
DO
LOOP UNTIL time(0) > 1000
PULSIN 9, 0, time(0)
PULSIN 9, 0, time(1)
' Decide which maneuver to execute depending on the combination
' of pulse durations stored in the first two pulse measurements.
IF (time(1) < 500) AND
PULSIN 9, 1, time(0)
PULSOUT 13, 850
PULSOUT 12, 650
Enter, save, and run 2BitRemoteBoeBot.bs2.
Make sure the power switch on the Board of Education is in position-2.
While pointing the remote at the Boe-Bot, press and hold the CH+ button, and
verify that the Boe-Bot rolls forward.
Repeat the test with the 1 key, it should have the same effect.
Test the CH+ , 1 , CH- , 2 , VOL+ , 3 , VOL- , and 4 keys.
Have fun driving the Boe-Bot around.
These programs are written for Boe-Bots with Parallax Continuous Rotation servos. If
your Boe-Bot is labeled with the letters "PM" highlighted in blue, you will need to use
different
servos, use 500 in place of 650 and 1000 in place of 850.
For some of the maneuvers, my Boe-Bot seems jittery, why is that? It has to do with the
way the program detects the start of the IR message. It doesn't always get detected on the
first try. We'll fix that in the next activity.
VAR
PULSOUT Duration
Word(2)
(time(0) < 500) THEN
arguments in your programs. If you have Parallax PM
' SONY TV remote variables.
' Start/reset indicator.
' Beginning of main loop.
' Wait for rest between messages.
' Measure/store data pulses.
' Forward

Related parts for 70016