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.

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

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

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s