Their are lot of wireless communication based automation used in homes and industries. Now a days WIFI communication is used in most communication techniques, but IR is the parent for all kinds of wireless communication. In olden days,IR Remote Control for controlling home appliances can be easily made using Decade Counter CD4017, 555 Timer and TSOP1738 infrared receiver. But it can be used to control only one appliance.
In this article, we are going to control the home appliance or Industrial appliance with the help of arduino and TSOP 1838. so that we can control more number of appliance at a same time.
I have attached the image of the components which i used.
Two Channel relay (you can use 4 Channel too)
Before doing this project, we have to decode all the remote button values of the IR Remote. So please visit the article which i given below.
In the above article, you can learn how to decode the IR values of the remote.
Basic Hardware Construction:-
Power Supply connections which i shared from arduino uno
Connect the D2, D3 to the relay input
Connect the OUT pin of the TSOP sensor to D11 of the arduino
So that the basic connections are over. You can find the difference between the circuit diagram (four channel relay) and relay input (i used two channel). You can alter the code for more input.
const int RECV_PIN=11;
#define IN1 3
#define IN2 4
#define IN3 5
#define IN4 6
irrecv.resume(); // Receive the next value
NOTE:- you have to change the decoded value of your remote. Then download the code. To run the correct libraries, you have to view the mentioned article above.
Result and Observation:-
Press the button of the IR remote infront of the TSOP sensor, now you an view the relay will turn ON and OFF according to the button pressed by the user. If you have any doubts, feel free to comment below.