SMART HOME AUTOMATION

by sathishk12 in Circuits > Microcontrollers

6725 Views, 59 Favorites, 0 Comments

SMART HOME AUTOMATION

HOMEAUTOMATION USING IR.png

In present time there are many types of Home Automation Systems available in our market. Most of these are simple home appliances controlling systems like DTMF controlled home Appliances, RF based home appliances controlling, GSM based Home/Office Appliances Control (Home Automation System). This home automation allows the user to turn on or off the lights using ir remote controller.

In this system Arduino is the heart of this system which takes control over whole the system process. Here a ir receiver and transmitter is used for sending and receiving the data through wifi

HARDWARE USED

DSCN1015.JPG
DSCN0871.JPG
DSCN1025.JPG

ATMEGA 328p-pu

TSOP (ir receiver)

Relays (12v)

tv remote(any ir remote)

Power supply

Installation & Code

DSCN1018.JPG
DSCN1019.JPG
DSCN1020.JPG
DSCN1021.JPG
DSCN1029.JPG
DSCN1022.JPG

Code

#include

int RECV_PIN = 6;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()

{

//Serial.begin(9600);

pinMode(9,OUTPUT);

pinMode(2, OUTPUT);

pinMode(3, OUTPUT);

pinMode(4, OUTPUT);

pinMode(5, OUTPUT);

digitalWrite(9,HIGH);

irrecv.enableIRIn();

// Start the receiver

}

void loop()

{

if (irrecv.decode(&results))

{

// Serial.println(results.value, HEX);

switch(results.value)

{

case 0xC084:

digitalWrite(2, HIGH);

delay(1000);

break;

case 0xC044:

digitalWrite(2, LOW);

delay(1000);

break;

case 0xC0C4:

digitalWrite(3, HIGH);

delay(1000);

break;

case 0xC024:

digitalWrite(3, LOW);

delay(1000);

break;

case 0xC0A4:

digitalWrite(4, HIGH);

delay(1000);

break;

case 0xC064:

digitalWrite(4, LOW);

delay(1000);

break;

case 0xC0E4:

digitalWrite(5, HIGH);

delay(1000);

break;

case 0xC014:

digitalWrite(5, LOW);

delay(1000);

break;

case 0xC0E8:

digitalWrite(2, LOW);

digitalWrite(3, LOW);

digitalWrite(4, LOW);

digitalWrite(5, LOW);

delay(1000);

break;

}

irrecv.resume();

}

}

Output

homeautomation using arduino