IR Remote transmitter using Arduino
In the previous article we learned about how to decode the IR Remote signals using Arduino. Now in this blog we are going to see about how to transmit the decoded IR signal values by using the IR transmitter sensor through the Arduino Microcontroller. For this project you will need an IR transmitter sensor or IR LED. You can buy this here :
or you can use the IR sensor module which comes with the robotics kit or the Arduino kit or the home automation kit or even you can purchase the sensor alone.
Connect the circuit as per the diagram given below :
Before uploading the code to the Arduino you have to install the IR remote library
Open the Arduino IDE go to sketch then click Include Library and click Manage Libraries
A new page open up.
In that page type IR remote in the search bar click on the first result and select the latest version and then install it.
The Program code for this projects is given below :
PROGRAM CODE:
#include <IRremote.h>
IRsend irsend;
void setup()
{
}
void loop() {
for (int i = 0; i < 3; i++) {
irsend.sendSony(0xa90, 12); // Give your decoded value of the remote button which you wnat to send through the arduino.
delay(40);
}
delay(5000); //5 second delay between each signal burst
}
This program sends the IR remote button value throught the IR transmitter connected to the Arduino 3 times with a delay of 40 milliseconds you can modify this according to your own needs.
In the next blog we can see how to make the Wifi remote by using ESP3266 microcontroller. By this you can change your TV channels using your webpage which then send the signals remotely through wifi into the ESP3266 which in turn sends it to the IR transmitter led connected to it.
Hope you guys enjoyed this article and hope that learned something new !!!!
0 Comments