sumanskd
Published © GPL3+

Simulation of Home Automation Project using Arduino

Simulation of Home Automation Project using Arduino and Android App in Proteus

IntermediateFull instructions provided229
Simulation of Home Automation Project using Arduino

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Resistor 1k ohm
Resistor 1k ohm
×1
2N2222
×1
Relay (generic)
×1
5 mm LED: Yellow
5 mm LED: Yellow
×1
DC motor (generic)
×1
ac lamp
×1

Software apps and online services

BT_Display

Hand tools and fabrication machines

Proteus Circuit Simulator

Story

Read more

Schematics

HomeAutoCircuit

Circuit Diagram

HomeAutoCircuit

proteus file

Code

HomeAutoCode

Arduino
CODE
String voice;
void setup() {
Serial.begin(9600);
pinMode(6, OUTPUT);
pinMode(5, OUTPUT);
pinMode(4, OUTPUT);
}

void loop() {
while(Serial.available()){
  delay(3);
  char c = Serial.read();
  voice+=c;}

if(voice.length() >0){
  Serial.println(voice);
  if(voice == "light on")
  {digitalWrite(6, HIGH);}
  else if(voice == "light off")
  {digitalWrite(6, LOW);}
  else if(voice == "fan on")
  {digitalWrite(5, HIGH);}
  else if(voice == "fan off")
  {digitalWrite(5, LOW);}
  else if(voice == "night lamp on")
  {digitalWrite(4, HIGH);}
  else if(voice == "night lamp off")
  {digitalWrite(4, LOW);}
  else if(voice == "all on")
  {digitalWrite(4, HIGH);
    digitalWrite(5, HIGH);
  digitalWrite(6, HIGH);}
  else if(voice == "all off")
  {digitalWrite(4, LOW);
    digitalWrite(5, LOW);
  digitalWrite(6, LOW);}
  voice = "";}
}

Credits

sumanskd

sumanskd

2 projects • 3 followers

Comments