Home Automation
Home Automation
Automation
Using
Arduino
and
Bluetooth Control
ABOUT THE PROJECT
In today's era, technology can enhance human life.
Technology is evolving decade by decade. Automation was a science
fiction earlier but not today. By combining latest technology with home,
we can build an awesome home. With the Arduino uno and Windows
10, we can build a home automation system that is capable of operating
home devices automatically.
Serial.begin(9600); if(Serial.available()){
pinMode(3,OUTPUT); //SOCKET val = Serial.read();
pinMode(4,OUTPUT); //FAN Serial.println(val);
pinMode(5,OUTPUT); //LIGHT }
lcd.begin(16, 2); if(val=='1'){
lcd.setCursor(0,0); digitalWrite(3,HIGH);
lcd.print("WELCOME TO"); lcd.setCursor(0,1);
lcd.setCursor(0,1); lcd.print(“ ON ");
lcd.print("HOME AUTOMATION"); delay(200);
delay(10000); }
else if(val=='2’)
{
if(val=='5’)
digitalWrite(3,LOW);
{
lcd.setCursor(0,1);
digitalWrite(5,HIGH);
lcd.print("OFF");
lcd.setCursor(9,1);
delay(200);
lcd.print("ON");
delay(200);
}
if(val=='3'){
}
digitalWrite(4,HIGH);
else if(val=='6’)
lcd.setCursor(4,1);
{
lcd.print("ON ");
digitalWrite(5,LOW);
delay(200);
lcd.setCursor(9,1);
lcd.print("OFF");
}
delay(200);
else if(val=='4’)
{
}
digitalWrite(4,LOW);
lcd.setCursor(4,1);
lcd.print("OFF");
delay(100);
delay(200);
}
}
Demonstration
Make sure you choose the correct board and COM port before uploading your code to the
board. Go to Tools > Board and select Arduino UNO. Next, go to Tools > Port and select the
appropriate port through which your board is connected.