Random Nerd Tutorials
Shares

Arduino – Control LEDs with IR Remote Control

Shares

Today I will talk about how you can control any device using a remote control and your Arduino.

First you need to go to this page and download the IR library. Simply follow the read me file to install. I think that any IR remote control can do this, I’ll be using a Philips Universal remote control.

Parts required

You can use the preceding links or go directly to MakerAdvisor.com/tools to find all the parts for your projects at the best price!

Infrared receiver 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.

Schematics

LED's IR

And go to your 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 those hexadecimal numbers to decimal, you can use this tool for that. Then just need to change your remote control values from my arduino code.

Upload the code below

Watch the video demonstration


Thanks for reading, you can contact me by leaving a comment. If you like this post probably you might like my next ones, so please support me by subscribing my blog and my Facebook Page.

Recommended Resources

Home Automation using ESP8266 »
Build IoT projects and home automation gadgets with the ESP8266 Wi-Fi module.

Build a Home Automation System »
Learn how to build a automation system using open-source hardware and software from scratch.

Arduino Step-by-Step Projects »
Build 25 cool Arduino projects with our couse even with no prior experience!

Leave a Comment:

Add Your Reply