IR Remote Controlled Home Automation


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.

Materials Required:-

  1. Arduino uno
  2. TSOP 1838
  3. Relay module
  4. NEC Remote
  5. jumper wires

I have attached the image of the components which i used.

TSOP 1838

NEC remote

Two Channel relay (you can use 4 Channel too)

Arduino UNO

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.

Circuit Diagram:-

circuit diagram


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.


#include <IRremote.h>
const int RECV_PIN=11;
IRrecv irrecv(RECV_PIN);
decode_results results;
#define IN1 3
#define IN2 4
#define IN3 5
#define IN4 6
bool i=false;
bool j=false;
bool k=false;
bool l=false;
bool m=false;
void setup()
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);

void loop()
if (irrecv.decode(&results))
digitalWrite(IN1, i);

digitalWrite(IN2, j);

// delay(200);
digitalWrite(IN3, k);

// delay(200);
digitalWrite(IN4, l);

// delay(200);
digitalWrite(IN1, m);
digitalWrite(IN2, m);
digitalWrite(IN3, m);
digitalWrite(IN4, m);

// delay(200);
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.


Leave a Reply

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