28139 Parallax Inc, 28139 Datasheet - Page 26
28139
Manufacturer Part Number
28139
Description
KIT REMOTE IR FOR BOE-BOT W/TEXT
Manufacturer
Parallax Inc
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
- Current page: 26 of 212
- Download datasheet (3Mb)
' IR Remote for the Boe-Bot - CountRestingStates.bs2
' Capture and count the number of 20 ms+ (high) resting states.
'{$STAMP BS2}
'{$PBASIC 2.5}
time
counter
DEBUG "RESTING STATE", CR,
DO
LOOP
How CountRestingStates.bs2 Works
CountRestingStates.bs2 is just CountStartPulses.bs2 with a few modifications. The first
change was just the display heading for the information in the Debug Terminal. The
command
CR,
instead of low pulses that only last 2.4 ms. To accommodate for high pulses instead of
low pulses, the command
To search for 20-35 ms durations instead of 2.4 ms durations, the condition for the
IF…ENDIF
THEN
PULSIN 9, 1, time
IF (time > 1000) THEN
ENDIF
. Next, the program has to search for high pulses that last between 20 and 35 ms
counter = counter + 1
DEBUG CRSRXY, 0, 4,
to
"Repetitions
"
"-----------
IF (time > 1000) THEN
DEBUG "START PULSES", CR,
code block was changed from
DEC counter,
CRSRXY, 13, 4,
DEC5 time * 2
VAR
VAR
Word
Word
Current Duration", CR,
(microseconds)
----------------"
PULSIN 9, 0, time
.
", CR,
IF (time > 975) AND (time < 1425)
was changed to
was changed to
DEBUG "RESTING STATE",
PULSIN 9, 1, time
.
Related parts for 28139
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: