Introduction: SMART HOME AUTOMATION

Picture of SMART HOME AUTOMATION

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

Step 1: HARDWARE USED

Picture of HARDWARE USED

ATMEGA 328p-pu

TSOP (ir receiver)

Relays (12v)

tv remote(any ir remote)

Power supply

Step 2: Installation & Code

Picture of Installation & Code

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();

}

}

Step 3: Output

Comments

About This Instructable

5,491views

60favorites

License:

More by sathishk12:interface relay with arduinointerface lcd with arduinointerface keypad with arduino
Add instructable to: