Tutorials

1


As Title goes we gonna cover awesome Home Automation Project  From Scratch:
Project Description :- Control Home's Light and Fan Remotely using Smartphone with Voice recognition.


But you must be Questioning What is Home Automation?
What is Home Automation?
Home automation is the use and control of home appliances remotely or automatically. 

Early home automation began with labour-saving machines like washing machines. Some home automation appliances are stand alone and do not communicate, such as a programmable light switch, while others are part of the internet of things and are networked for remote control and data transfer. Hardware devices can include sensors (like cameras and thermometers), controllers, actuators (to do things), and communication systems. Remote control can range from a simple remote control to a smartphone with Bluetooth, to a computer on the other side of the world connected by internet. Home automation systems are available which consist of a suite of products designed to work together. These typically connected throughWi-Fi or power line communication to a hub which is then accessed with a software application. Popular applications include thermostats, security systems, blinds, lighting, and door locks. Popular suites of products include X10Z-Wave, and Zigbee all of which are incompatible with each other. Home automation is the domestic application of building automation.

Let's Start Revealing ............

 Components needed for Home Automation Project :-

1)Arduino UNO R3







If  you don't know What is Arduino? Do check our previous post INTRODUCTION TO ARDUINO


2)Bluetooth module HC 05


3) Relay Module 



4) Connecting Wires 
5) Computer : To upload Arduino Sketch



That's all you Need to Build your first Home Automation Project :-)


Now Let's study about Bluetooth HC05 module -

HC-05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for transparent wireless serial connection setup.
As you can in above picture that HC05 have 6 pinout.

Now What is Relay ?


A relay is an electrically operated switch. Many relays use an electromagnet to mechanically operate a switch, but other operating principles are also used, such as solid-state relays. Relays are used where it is necessary to control a circuit by a low-power signal (with complete electrical isolation between control and controlled circuits), or where several circuits must be controlled by one signal. The first relays were used in long distance telegraph circuits as amplifiers: they repeated the signal coming in from one circuit and re-transmitted it on another circuit. Relays were used extensively in telephone exchanges and early computers to perform logical operations.



Circuit Diagram:-


And take all precaution as you are dealing with 220 V AC source ..:( :(


Hope so you all done with above connection,now it's time to upload Sketch to our Arduino
Uploading Sketch :
To upload program Connect your Arduino to PC through USB cable.

Source Code

String voice;
#define relay1 2
#define relay2 3
void setup() {
Serial.begin(9600);
pinMode(relay1,OUTPUT);
pinMode(relay2,OUTPUT);
digitalWrite(relay1,HIGH);
digitalWrite(relay2,HIGH);
}
void loop() {
while(Serial.available())
{
delay(10);
char c = Serial.read();
if(c=='#'){
break;
}
voice +=c;
}
if(voice.length()>0)
{
Serial.println(voice);
if(voice=="*light on"){
lighton();
}
else if(voice=="*light off"){
lightoff();
}
else if(voice=="*fan on"){
fanon();
}
else if(voice=="*fan stop"){
fanoff();
}
voice="";
}
}
void lighton()
{
digitalWrite(relay1,LOW);
}
void lightoff()
{
digitalWrite(relay1,HIGH);
}
void fanon()
{
digitalWrite(relay2,LOW);
}
void fanoff()
{
digitalWrite(relay2,HIGH);

}

While uploading sketch you may get error as below :


How to debug it? 
Solution is simple you have to remove TX and RX pin from Arduino while uploading your sketch.

We are done with our connection and program. Now it's time to setup our Android phone for voice recognition .

Download this Android App : Amr Voice



Now you are Good to go Test your Home Automation Project and share with your friends :-)
And be Superhero of your School/office .. :-)


Home Automation Project Demonstration .




Have anything in mind? Share it in the comments section below.. And don't forget to check out the other posts of #ElectronicsRevealed..

Post By__ Pranav Nandankar  make sure you add me Facebook and follow me onTwitter...
So you can get latest update of my work ..... 
And don't forget to Subscribe .....

And Tweet your Awesome Revealing By #Erevealed.

Post a Comment

 
Top