70016 Parallax Inc, 70016 Datasheet - Page 85

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: EnterLargeValues.bs2
This example program behaves similarly to a microwave oven with a digital keypad.
You can build larger numbers, such as 635 by pressing and releasing the 6 , 3 , and 5 keys
followed by the ENTER key. This program makes the Boe-Bot's piezospeaker send a tone
to acknowledge each button press.
pushbutton.
Open IrRemoteButtons.bs2, then save it as EnterLargeValues.bs2.
Add this directive to the I/O Definitions section:
Speaker
Add this variable declaration to the program's Variables section.
' Main Routine Variables
value
What's "debounce"?
Electronic circuits operate at much higher speeds than human actions and mechanical
contacts. Circuit and embedded systems engineers have to take this fact into account when
designing circuits. When a switch is closed or pushbutton is pressed, there's a collision
between metal contacts. The metal surfaces bounce and scrape against each other before
settling down and maintaining contact. This in turn sends a rapid succession of ones and
zeros to the processor. A circuit or program routine that makes it impossible for these zeros
and ones to confuse the processor is called a debounced circuit. Humans also have a
tendency to hold down a button or switch for a certain amount of time. Especially when
entering the same digit several times, it's important to program the microcontroller to make
sure that a person's natural button pressing tendencies are recognized.
PIN
VAR
4
Word
The speaker also provides debouncing for the
' Stores multi-digit value

Related parts for 70016