28139 Parallax Inc, 28139 Datasheet - Page 85

KIT REMOTE IR FOR BOE-BOT W/TEXT

28139

Manufacturer Part Number
28139
Description
KIT REMOTE IR FOR BOE-BOT W/TEXT
Manufacturer
Parallax Inc
Datasheets

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
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 28139