70016 Parallax Inc, 70016 Datasheet - Page 22

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 - CountStartPulses.bs2
' Capture and count the number of 2.4 ms (low) start pulses.
' {$STAMP BS2}
' {$PBASIC 2.5}
time
counter
DEBUG "START PULSES", CR,
DO
LOOP
How CountStartPulses.bs2 Works
This program starts by declaring two word variables,
duration, and
command adds some column headings for displaying the variables.
PULSIN 9, 0, time
IF (time > 975) AND (time < 1425) THEN
ENDIF
counter = counter + 1
DEBUG CRSRXY, 0, 4,
"Repetitions
"
"-----------
Do not press CBL, VCR, or TV/VCR. Your remote may or may not have these buttons. If it
does and you press one of those keys, it tells the remote to send messages to a different
device, either a VCR or cable box. In either case, the messages the remote sends will use a
non-SONY TV protocol. The result will be that the programs in this book will seem to stop
working.
If you accidentally press one of those keys: just press the TV key to get the remote back
to sending (SONY) TV signals.
DEC counter,
CRSRXY, 13, 4,
DEC5 time * 2
counter
VAR
VAR
Current Duration", CR,
(microseconds)
----------------"
to store the number of start pulses received. Then, a
Word
Word
", CR,
time
to store the start pulse
DEBUG

Related parts for 70016