Arduino – Control LED’s with IR Remote Control

Hi guys,

Today I will talk about how you can control any device using a remote control and your Arduino. First I really recommend you to go to this page and download the IR library. You just need to follow the read me file to install. I think that any IR remote control can do this, I’ll be using a Philips Universal one.

Parts list:

  • 1x Arduino
  • 1x Breadboard
  • 1x Remote control
  • 1x IR receiver ( I’ll be using TSOP4838)
  • 4x LED’s
  • 4x 220ohm resistors
  • Jumper cables

The infrared receiver has 3 pins:

IR receiver labels

  • First pin: Vout, outputs HIGH when no signal is present and LOW when a mark is received.
  • Second pin: GND.
  • Third pin: Vcc.

First I’ve started to wire my circuit like this

LED's IR

 

And then I went to the arduino IDE > file>examples>IRremote> IRrecvDemo. You need to upload the sketch to your arduino, open the serial monitor and start using your remote control and see which values the arduino is receiving.

After a while I’ve wrote down which values appear in the serial monitor when you press the volume up key or any other key, and write it down for all the keys you want to use. And they were:

  • Power:  E240IMG_0177
  • Forward: E250
  • Reverse: E248
  • Volume+: E244
  • Volume-: E254
  • Mute: E24C7

You will need to convert these hexadecimal numbers to decimal, you can use this tool for that. Then just need to change your remote control values from my arduino code (click here to download my code). And upload the code!

Here is the demonstration:

Thanks for reading, leave a comment or send me an email. If you like this post probably you might like my next ones, so please support me by subscribing my blog and my Facebook page (you can find everything right column )

About Rui Santos

Arduino Tinkerer. Circuits Designer. Electronics Hobbyist. Blogger and Entrepeneur. I live in Portugal and I'm an Electrical and Computer Engineer.
This entry was posted in Arduino, Arduino Tutorials and tagged , , , , , , , , , . Bookmark the permalink.

6 Responses to Arduino – Control LED’s with IR Remote Control

  1. telmo says:

    dá me um erro a fazer o uploud para o arduino

  2. telmo says:

    secalhar nao

  3. telmo says:

    como é que se faz corretamente? Podes me dar os passos sff

  4. telmo says:

    depois ter feito isso fiz o uploud do codigo e deu me um erro nas tres ultimas chavetas do codigo

Leave a reply to telmo Cancel reply