Using An IR Remote With Your Arduino

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.

9 thoughts on “Using An IR Remote With Your Arduino

  1. 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.

  2. 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

    1. 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.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.