How to control LEDs with TV remote – Arduino

Today I’m going to show you how to control any device with an Infrared remote(TV,DVD,AC etc.) and with the help of Arduino board. So lets get started.

Things you’ll need :-

  • Infrared receiver (I’m using one from the TSOP 17** series)
  • Arduino board.
  • Breadboard.
  • Couple of jumpers/single stranded wires.
  • A LED Any remote(AC, TV, DVD player).

Connections :-

Connections of Infrared receiver with Arduino

Connections of Infrared receiver with Arduino

Of Infrared reciever-
Pin 1 –                           GND (Ground pin of Arduino).
Pin 2/Middle pin –     VCC (5v supply of Arduino).
Pin 3 –                           Data pin (pin number 3 on Arduino).

Note :- The pin no. 3 is a bit separated from the other two ! Don’t misunderstand between pin1 & pin3 !

Procedure :-

  1. First things first, make the connections.
  2. Now to turn ON/OFF any LED with the help of any remote we must know the value/code of the button through which we are going to change the state !
  3. Download the IRemote library online from this link. Copy & paste the code I’ve provided. Upload it.
  4. After uploading, click on the Serial Moniter option in the top right corner of Arduino window.
    Press the buttons you wish to control your LED with. Note down the values which appear in the Serial monitor window.
  5. Making changes in your code by replacing YOUR values with “YOUR VALUE 1” & “YOUR VALUE 2” in the code.
    Again upload the code & test it out !

Code :-

Here’s a video tutorial which will definitely make things easier for you 😉

Please comment below if you face any difficulties. I’d love to solve them 🙂 .

One Comment

  1. It was a bit tough to understand just by reading
    But the video made it a lot simpler
    You should make more Ardino DIY

    P.S.- Do you know from where i should get this stuff

Leave a Reply

Your email address will not be published. Required fields are marked *