70016 Parallax Inc, 70016 Datasheet - Page 58

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
Example Program – BinaryToDecimal.bs2
Although you can write a PBASIC program that follows each of the steps just discussed,
the
' IR Remote for the Boe-Bot - BinaryToDecimal.bs2
' Enter a binary value into the Debug Terminal's Transmit Windowpane,
' and get the decimal value in the Receive Windowpane.
'{$STAMP BS2}
'{$PBASIC 2.5}
value
DO
LOOP
Your Turn – Counting in Binary
By entering each of the binary numbers listed beginning on page 46, you will get practice
counting in binary. Especially if you delve further into inventions with microcontrollers,
the ability to count in binary will be a skill you will rely on over and over again.
Setting and Clearing Bits with the .BIT Modifier
Although the
Terminal, it's not very helpful for converting a series of pulses into a binary number.
Each pulse corresponds to a different bit in the binary number the remote is transmitting.
DEBUG "Enter binary value: "
DEBUGIN BIN value
DEBUG "Decimal value is: ", DEC value, CR
BIN
and
Enter and run BinaryToDecimal.bs2.
Click the Debug Terminal's Transmit Windowpane.
Type in up to eight binary digits (ones and zeros), then press Enter .
Hand-calculate the value using the steps shown in Figure 2-2.
Compare your hand calculated result to the one in the Debug Terminal result.
While the program is running, enter each of the twenty-one binary values listed
beginning on page 46 into the Debug Terminal's Transmit Windowpane.
Make sure that the decimal conversion verifies that you are up-counting
correctly.
DEC
BIN
modifiers make the job easy.
VAR
modifier made it easy to enter binary numbers into the Debug
Byte

Related parts for 70016