70016 Parallax Inc, 70016 Datasheet - Page 69
70016
Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet
1.70016.pdf
(212 pages)
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
- Current page: 69 of 212
- Download datasheet (3Mb)
Your Turn – Correcting the Keypad Values
The rules for how numeric values correspond to keys on the keypad can be a little
confusing. When
the key pressed is really 2 , and so on up until
was pressed. But wait, when
You can fix this problem with a couple of
statements can adjust the value stored in the
key value on the keypad. In other words, when you press 5 ,
you press 8 ,
stores 0.
√
√
√
√
√
RCTIME 9, 0, time
IF time > 300 THEN remoteCode.BIT1 = 1
RCTIME 9, 0, time
IF time > 300 THEN remoteCode.BIT2 = 1
RCTIME 9, 0, time
IF time > 300 THEN remoteCode.BIT3 = 1
RCTIME 9, 0, time
IF time > 300 THEN remoteCode.BIT4 = 1
RCTIME 9, 0, time
IF time > 300 THEN remoteCode.BIT5 = 1
RCTIME 9, 0, time
IF time > 300 THEN remoteCode.BIT6 = 1
Save PulsesToByteValue.bs2 as PulsesToByteValueYourTurn.bs2.
Modify the program by inserting these two commands between the last
IF...THEN
IF (remoteCode < 10) THEN remoteCode = remoteCode + 1
IF (remoteCode = 10) THEN remoteCode = 0
Run the program and verify that the value stored by
the number of the key pressed on the IR remote's keypad.
Write a brief report explaining how these two commands get the job done.
Update Table 2-1 below, and mark this page for reference on how the numeric
values correspond to the keys pressed on the keypad.
remoteCode
remoteCode
statement and the
stores 8. More importantly, when you press 0 ,
remoteCode
is 0, the key pressed is really 1 . When
DEBUG
stores 9, it means the 0 key is pressed!
remoteCode
command.
remoteCode
IF…THEN
' Measure next pulse
' Set (or leave clear) bit-1
' etc.
variable so that it matches the
statements.
remoteCode
is 8, which means the 9 key
remoteCode
remoteCode
These
stores 5. When
now matches
remoteCode
IF…THEN
is 1,
Related parts for 70016
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories Breadboard Set
Manufacturer:
Parallax Inc
Part Number:
Description:
Power Entry Modules 4AA Battery Holder
Manufacturer:
Parallax Inc
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:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: