70016 Parallax Inc, 70016 Datasheet - Page 48

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 - 3BitRemoteBoeBot.bs2
' Control your Boe-Bot with keys 1-8 on a remote set to control a SONY TV.
'{$STAMP BS2}
'{$PBASIC 2.5}
time
FREQOUT 4, 2000, 3000
DEBUG "Press and hold a digit key (1-8)..."
DO
DO
LOOP UNTIL time(0) > 1000
PULSIN 9, 0, time(0)
PULSIN 9, 0, time(1)
PULSIN 9, 0, time(2)
' Decide which maneuver to execute depending on the combination
' of pulse durations stored in the first three pulse measurements.
IF (time(2) < 500) AND (time(1) < 500) AND (time(0) < 500) THEN
ELSEIF (time(2) < 500) AND (time(1) < 500) AND (time(0) > 500) THEN
ELSEIF (time(2) < 500) AND (time(1) > 500) AND (time(0) < 500) THEN
ELSEIF (time(2) < 500) AND (time(1) > 500) AND (time(0) > 500) THEN
ELSEIF (time(2) > 500) AND (time(1) < 500) AND (time(0) < 500) THEN
ELSEIF (time(2) > 500) AND (time(1) < 500) AND (time(0) > 500) THEN
ELSEIF (time(2) > 500) AND (time(1) > 500) AND (time(0) < 500) THEN
ELSEIF (time(2) > 500) AND (time(1) > 500) AND (time(0) > 500) THEN
RCTIME 9, 1, time(0)
PULSOUT 13, 750
PULSOUT 12, 650
PULSOUT 13, 850
PULSOUT 12, 650
PULSOUT 13, 850
PULSOUT 12, 750
PULSOUT 13, 650
PULSOUT 12, 650
PULSOUT 13, 750
PULSOUT 12, 750
PULSOUT 13, 850
PULSOUT 12, 850
PULSOUT 13, 750
PULSOUT 12, 850
PULSOUT 13, 650
PULSOUT 12, 850
Explain the problem with the 9 key using Table 1-1 as a reference.
VAR
Word(3)
' SONY TV remote variables.
' Start/reset indicator.
' Beginning of main loop.
' Wait for rest between messages.
' Measure/store data pulses.

Related parts for 70016