If you’ve ever needed a short-range remote control for a project, [firestorm] is here to help you out. He put up a great tutorial on using an IR remote to do just about anything with everyone’s favorite microcontroller platform.
[firestorm] used the Arduino IRremote library to decode the button presses on his remote. After uploading the IR receive demo included in the library, the Arduino spit out hex codes of what the IR receiver was seeing. [firestorm] wrote these down, and was able to program his Arduino to respond to each individual button press.
After figuring out the IR codes for his remote, [firestorm] threw a shift register into his bread board and attached a seven-segment LED. Since [firestorm] knows the codes for the number buttons on his remote, it’s very easy to have the LED display flash a number when the corresponding button on the remote is pressed.
A single seven-segment display might not be extremely useful, but with [firestorm]’s tutorial, it’s easy to give your Arduino some remote control capabilities with a simple IR receiver. Not bad for a few dollars in parts.
How is this a hack?
In a nutshell, he decoded a third party remote himself and repurposed it to control a different device with custom commands.
That, is why its a hack.
This has been available for a long time. Check out Ken Shirriff’s blog http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
He has the infrared library and instructions on how to use it there.
This is one of those why didn’t I think of that. I have arduino I have many spare IR remotes….
Someone needs to make an IR library that doesn’t disable functionality of the board. Haven’t looked through this particular library too much, but I notice it is using the timer + interrupts, which tends to block PWM functionality on some of the pins.
Is it possible to use two different remotes(with different codes) at same time with one adrduino IR receiver? … thinking to make some kind of quiz responder
sir,after copying the library files when i tried to compile it showing error written below plz give some solution:
e:/softwares/arduino/new folder (2)/isenso new/arduino-1.0.1/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: sketch_apr03a.cpp.elf section .text will not fit in region text
e:/softwares/arduino/new folder (2)/isenso new/arduino-1.0.1/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: region text overflowed by 208 bytes
Hi.
I am getting different readings in every press of the same button.
How am I able to use the codes?
Please help.
Thank you.
Hi Alain,
I a know your comment is dated but it could be useful to another newbie like me. I also encountered the same error. The IR sensor was pointing up. So I moved it 90% pointing to my transmitter and it worked. I dont really know what caused the problem and whether repositioning the sensor really fixed the problem.. Hope this helps.