Arduino ProjectsESP32 Projects

Make Arduino Home automation System Using TV Remote

 Introduction

In this project, we will be making an Arduino Home automation system using a TV remote. This system will be able to control various appliances in your home, such as lights, fans, and TVs. You will be able to turn these appliances on or off using the TV remote. This project is perfect for those who want to have a simple and convenient way to control their home appliances. check out GSM Based Home Automation System Using Arduino.

Material Used

Components 

  1. Arduino Nano ————————- https://amzn.to/3PoC5bg
  2. IR Sensor (TSOP1738) ——————– https://amzn.to/3sCiniz
  3. 4-Channel Relay module ————– https://amzn.to/3yE1vMd
  4. IR Remote —————————– https://amzn.to/38xDiwp
  5. 12v 1A SMPS————————- https://amzn.to/3yHj8e7

Full Video Tutorial:

What is a home automation system?

Home automation systems are designed to automate various tasks in the home. These systems can be used to control lighting, appliances, security systems, and other devices in the home. Home automation systems can be controlled via a mobile app, web browser, or voice control. You can use a home automation system to make your life easier and save energy.

Ad

How can a home automation system using a TV remote be beneficial?

A home automation system can be beneficial because it can be used to control a variety of devices in the home, including the TV.  be useful In this era of technology, a home automation system using a TV remote can be useful in various ways. 

How to set up a home automation system using a TV remote.?

In this guide, we’ll guide you on how to set up an Arduino home automation system using a TV remote. You’ll need a TV remote and an Arduino controller. We’ll assume you have a basic understanding of home automation. 

Schematic Diagram

Ad

Prepare Circuit diagram 

Make the circuit by following the schematic diagram shown in the above photo. after all, connections secure the whole circuit in upload code. now it is ready to use.

Arduino Home automation

Source Code

//for 4channel IR Remote Controler
#include <IRremote.h>

int RECV_PIN = 3 ;
int L1 = 5;
int L2 = 6;
int L3 = 7;
int L4 = 8;


int V1=0;
int V2=0;
int V3=0;
int V4=0;
int V5=0;



long Vc1= 2534850111; //put your button code here. Example "2534850111, 1033561079, 1635910171, 3855596927"
long Vc2= 1033561079; //put your button code here    
long Vc3= 1635910171; //put your button code here
long Vc4= 2351064443; //put your button code here
long Vc5= 1217346747; //put your button code here


IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver E318261B

  pinMode(L1,OUTPUT);
  pinMode(L2,OUTPUT);
  pinMode(L3,OUTPUT);
  pinMode(L4,OUTPUT);
 
  
  digitalWrite(L1,HIGH);
  digitalWrite(L2,HIGH);
  digitalWrite(L3,HIGH);
  digitalWrite(L4,HIGH);
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value);
    irrecv.resume(); // Receive the next value 3810010651

  }
  if((results.value== Vc1) && V1==0)
  {digitalWrite(L1,LOW);
   V1=1;
   results.value=0;
   delay(50);
  }
  if((results.value== Vc1) && V1==1)
  {digitalWrite(L1,HIGH);
   V1=0;
   results.value=0;
   delay(50);
  }
  if((results.value== Vc2) && V2==0)
  {digitalWrite(L2,LOW);
   V2=1;
   results.value=0;
   delay(50);
  }
  if((results.value== Vc2) && V2==1)
  {digitalWrite(L2,HIGH);
   V2=0;
   results.value=0;
   delay(50);
  }
  if((results.value== Vc3) && V3==0)
  {digitalWrite(L3,LOW);
   V3=1;
   results.value=0;
   delay(50);
  }
  if((results.value== Vc3) && V3==1)
  {digitalWrite(L3,HIGH);
   V3=0;
   results.value=0;
   delay(50);
  }
  if((results.value== Vc4) && V4==0)
  {digitalWrite(L4,LOW);
   V4=1;
   results.value=0;
   delay(50);
  }
  if((results.value== Vc4) && V4==1)
  {digitalWrite(L4,HIGH);
   V4=0;
   results.value=0;
   delay(50);
  }
  
   if((results.value== Vc5) && V5==0)
  { 
    digitalWrite(L1,LOW);
    digitalWrite(L2,LOW);
    digitalWrite(L3,LOW);
    digitalWrite(L4,LOW);
   V1=1;
   V2=1;
   V3=1;
   V4=1;
   V5=1;
   
   results.value=0;
   delay(50);
  }
  if((results.value== Vc5) && V5==1)
  {  digitalWrite(L1,HIGH);
   digitalWrite(L2,HIGH);
   digitalWrite(L3,HIGH);
   digitalWrite(L4,HIGH);
   V1=0;
   V2=0;
   V3=0;
   V4=0;
   V5=0;
   results.value=0;
   delay(50);
  }
  
  delay(100);
}

Arduino home automation Conclusion

Control After extensive testing and research, it can be concluded that the Arduino home automation system using TV remote control is reliable, efficient, and easy to use. It is an affordable solution for those who want to automate their homes.

Check our latest Arduino Projects:

Leave a Reply

Your email address will not be published.

Related Articles

Ad
Back to top button