- Discrete LEDs
- Dot/Bar LEDs
- Matrix LEDs
- 7-Seg LEDs
- LCDs
- Switches
- KBDs
- Sensors
- Motors
- Analog
-
Comm
- Serial -- Software
- Serial -- Hardware
- RS-232 via the MAX3232
- I2C -- EEPROM
- I2C -- DS1307 Real Time Clock
- 1-Wire -- DS18B20, Powered, Single-Drop
- 1-Wire -- DS18B20, Powered, Multi-Drop
- 1-Wire -- DS18B20, Parasitic, Multi-Drop
- TI Link Protocol -- Calculator Demo
- Infrared Communication
- MIDI -- Output Demo
- MIDI -- Input Demo
- MIDI to Analog Synth
- Miscellaneous
IR Remote Control
In this exercise we see how to use an IR (infrared) remote control as the input keyboard. Any television remote control may be used, so long as it obeys the Sony code format, which is actually very common. Here are the devices I've tested it with:
On the left is a Westinghouse remote which I bought surplus for $2 from All Electronics several years ago. In the middle is one of those programmable universal units; I got it from Amazon and set it to send Sony codes. Finally, on the right is a weird little thing, which I also secured from Amazon. It's intended for gags like changing the television channel in airports or at sports bars (right when something crucial is happening on the screen!). But it also works quite well with this circuit. Speaking of which, here's the schematic:
At the heart of it is an IR receiver operating on a 38 kHz carrier frequency. These are a dime a dozen anymore. I've picked up two different styles, made by two different manufacturers, surplus from All Electronics in the past, and both perform flawlessly.
As part of this project, I've written a complete library unit for the IR receiver. Be sure to read it over, for it explains the many possibilities at your disposal.
Click to get the source code.
Click to get the schematic PDF.
Next Project: PS/2 Keyboard
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment