Smart House IR Remote Controlled Home Automation Us Ing: Arduino

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

SMART HOUSE

IR Remote Controlled Home Automation us


ing
Arduino

Project presented by;


NGUM BREAYON KWE
• INTRODUCTION
In this project, we are using IR based wireless
communication for controlling home appliances. In this
project, Arduino is used for controlling whole the
process. We send some commands to the controlling
system by using IR TV/DVD/MP3 remote for controlling
AC home appliances. After receiving signal from IR
remote, Arduino sends related signal to relays which
are responsible for switching ON or OFF of the home
appliances through a relay driver.
• Working Explanation:
Working of this project is easily understandable. When we
press any button of IR Remote then remote sends a code in
form of train of encoded pulses using 38Khz modulating
frequency. These pulses are received by TSOP1738 sensor
and read by Arduino and then Arduino decodes received
train of pulse into a hex value and compares that decoded
value with the predefined hex value of the pressed button. If
any match occurs then Arduino perform relative operation
and the corresponding result is also displayed on 16x2 LCD by
using appropriate commands. Here in this project we have
used 3 bulbs of different colors, for demonstration which
indicates Fan, Light and TV.
• Components: 
1. Arduino UNO
2. TSOP1738
3. IR TV/DVD Remote
4. ULN2003
5. Relays 5 volt
6. Bulb with holder
7. Connecting wires
8. Bread board
9. 16x2 LCD
10. Power supply
11. PVT
12. IC 7805
Here in this project we have used 7, 8 and 9 number button
of IR remote, for controlling Fan, Light and TV respectively
and ON/OFF button (Power button) is used for turning ON
and OFF all the appliances simultaneously.
CIRCUIT DIAGRAM
• Circuit Description:
Connections of this circuit is very simple here a liquid
crystal display is used for displaying status of home
appliances which is directly connected to arduino in 4-bit
mode. Data pins of LCD namely RS, EN, D4, D5, D6, D7
are connected to arduino digital pin number 6, 7, 8, 9,
10, 11. And output pin of TSOP1738 is directly connected
at digital pin number 14 (A) of Arduino. And Vcc pin is
connected a +5 volt and GND pin connected at Ground
terminal of circuit. A relay driver namely ULN2003 is also
used for driving relays. 5 volt SPDT 3 relays are used for
controlling LIGHT, FAN and TV. And relays are connected
to arduino pin number 3, 4 and 5 through relay driver
ULN2003 for controlling LIGHT, FAN and TV respectively.
• PROGRAMMING CODE FOR THE ARDUINO (MICRO PROCESSOR)
#include<IRremote.h>

#define first_key 16460501

#define second_key 16476311

#define third_key 16492631

#define fourth_key 16452341

int receiver_pin = 11;

int first_led_pin = 7;

int second_led_pin = 6;

int third_led_pin = 5;

int fourth_led_pin = 4;

int led[] = {0,0,0,0,0};

IRrecv receiver(receiver_pin);

decode_results output;
void setup()
{
Serial.begin(9600);
 

receiver.enableIRIn();
pinMode(first_led_pin, OUTPUT);
pinMode(second_led_pin, OUTPUT);
pinMode(third_led_pin, OUTPUT);
pinMode(fourth_led_pin, OUTPUT);
}
 
void loop() {
if (receiver.decode(&output)) {
unsigned long int value = output.value;
if(value == 16460501)
{
if(led[1] == 1)
{
digitalWrite(first_led_pin, LOW);
led[1] = 0;
} else {
digitalWrite(first_led_pin, HIGH);
led[1] = 1;
}
}
else if(value == 16476311)
{
if(led[2] == 1)
{
digitalWrite(second_led_pin, LOW);
led[2] = 0;
}
else {
digitalWrite(second_led_pin, HIGH);
led[2] = 1;
}
}
else if(value == 16492631)
{
if(led[3] == 1)
{
digitalWrite(third_led_pin, LOW);
led[3] = 0;
} else {
digitalWrite(third_led_pin, HIGH);
led[3] = 1;
}
}
if(value == 16452341)
{
if(led[4] == 1)
{
digitalWrite(fourth_led_pin, LOW);
led[4] = 0;
} else {
digitalWrite(fourth_led_pin, HIGH);
led[4] = 1;
}
}
Serial.println(value);
receiver.resume();
}
}
//
• PROJECT AND CERCUIT SIMULATION

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy