Arduino - Control Your LEDs With TV or IR Remote

by MertArduino in Circuits > Arduino

2808 Views, 20 Favorites, 0 Comments

Arduino - Control Your LEDs With TV or IR Remote

Arduino Tutorial 32: Control your LEDs with TV or IR Remote

In this tutorial we will learn how to control our LEDs with using TV or IR remote.

After this tutorial, you can control everything with your TV or IR remote.

Required Hardware

vlcsnap-2017-05-31-01h38m41s256.png

Connection Infrared (IR)

vlcsnap-2017-05-31-01h38m50s246.png
vlcsnap-2017-05-31-01h39m24s145.png

Infrared (IR) controls are often used in most electronic devices.

The 38 kHz infrared receiver we use in the project demodulates the signal it receives and sends the button code to the Arduino. We can use with this receiver as long as different brand and model remote controls have 38 kHz carrier signal. The receiver has 3 pins. These are GND - VCC - Signal respectively.

Find Hex Code

vlcsnap-2017-05-31-01h40m46s803.png
vlcsnap-2017-05-31-01h41m07s199.png

First we must find the hex codes of the buttons of remote controller.

This way you can use another remote control instead of the included in the kit. So if you have only receiver, you can use any TV remote control. We will use the IRrecvDump example code.

Get the IR Library

vlcsnap-2017-05-31-01h40m02s638.png
vlcsnap-2017-05-31-01h40m21s297.png

Download IR library - https://goo.gl/INTfWC

Uncompress the ZIP or RAR file onto your desktop

Place the folder into your arduinosketchfolder/libraries folder

Rename the uncompressed folder IRremote

Connection

vlcsnap-2017-05-31-01h41m36s717.png
vlcsnap-2017-05-31-01h41m53s461.png

The receiver has 3 pins. These are GND - VCC - Signal respectively.

We use 220 ohm resistor for the LEDs

Source Code

vlcsnap-2017-05-31-01h42m05s555.png
vlcsnap-2017-05-31-01h42m15s722.png

Get the Code - https://goo.gl/76SCDJ

First we must find the hex codes of the buttons of remote controller. We will use the IRrecvDump example code.

You Can Subscribe to My YouTube Channel

mert arduino.png

You can subscribe to the my YouTube channel for more tutorials and projects. Subscribe for support. Thank you.

Go to my YouTube Channel - https://goo.gl/f0RHmR