Professional Documents
Culture Documents
Smart Home Automation Using Arduino and Android Application
Smart Home Automation Using Arduino and Android Application
CERTIFICATE
Project Guide
(Prof. Pranita Chavan)
HOD Principal
PHCET Department of Electrical Engineering
The Project titled “Smart Home Automation using Arduino and Android
Application” Submitted by the students
Mr. Pratik Bhosale
Ms.Nisarga Kadam
Ms. Shweta Tade
Ms. Leena Vichare
Date:
Place: RASAYANI
PHCET Department of Electrical Engineering
DECLARATION
--------------------
(Signature)
ACKNOWLEDGEMENT
CONTENT
ABSTRACT
Chapter No. Chapter Name Page No
Chapter 1 Introduction 1
Literature Review
Chapter 2 2.1 Review of Related Literature 2-3
2.2 Review of Studies
Design Methodology
3.1 Block Diagram
Chapter 3 4-10
3.2 Circuit diagram
3.3 HC-05 Bluetooth module
Chapter 4 Design ARDUINO UNO 11
Chapter 5 Software Implementation 12-15
Chapter 6 2 -Two channel relay 16-17
Chapter 7 Flow chart 18
Chapter 8 Result 19-20
Chapter 9 Application 21
Chapter 10 Conclusion 22
Chapter 11 Future scope 23
Chapter 12 Reference 24
PHCET Department of Electrical Engineering
I. ABSTRACT
This project presents a design and prototype implementation of new
home automation system that use Wi-Fi technology as a network
infrastructure connecting its parts. The proposed system consists of
two main components; the first part is the server (web server), which
presents system core that manages, controls, and monitors users’
home. Users and system administrator can locally (LAN) or remotely
(internet) manage and control system code. Second part is hardware
interface module which provides appropriate interface to sensors and
actuator of home automation system. Unlike most of available home
automation system in the market the proposed system is scalable that
one server can manage many hardware interface modules as long as it
exists on Wi-Fi network coverage. System supports a wide range of
home automation devices like power management components, and
security
components. The proposed system is better from the scalability and
flexibility point of view than the commercially available home
automation systems.
PHCET Department of Electrical Engineering
CHAPTER 1
INTRODUCTION
CHAPTER 2
LITERATURE REVIEW
2.1 Review of Related Literature:
When people think about home automation, most of them may imagine living in
a smart home: One remote controller for every household appliance, cooking the
rice automatically, starting air conditioner automatically, heating water for bath
automatically and shading the window automatically when night coming. To
some extent home automation equals to smart home. They both bring out smart
living condition and make our life more convenient and faster.
Appliances Based on Time and Speech Interaction” that controls the home
appliances using the personal computer. This system is developed by using the
Visual Basic 6.0 as programming language and Microsoft voice engine tools for
speech recognition purpose. Appliances can be either controlled by timer or by
voice command. 14 Ciubotaru-Petrescu, Chiciudean, Cioarga, and Stanescu
(2006) present a design and implementation of SMS based control for
monitoring systems. The paper has three modules involving sensing unit for
monitoring the complex applications. A processing unit, that is microcontroller
and a communication module that uses GPRS modem or cell phone via serial
port RS-232. The SMS is used for status reporting such as power failure.
CHAPTER 3
DESIGN METHODOLOGY
Fig 1. Block Diagram of Smart Home Automation using Arduino and Android
Application
2. HC-05 Bluetooth module: - It is very easy to pair the HC-05 module with
microcontrollers because it operates using the Serial Port Protocol (SPP).
Simply power the module with +5V and connect the Rx pin of the module to the
Tx of MCU and Tx pin of module to Rx of MC
3.Arduino: - Arduino is a tool for making computers that can sense and control
more of the physical world than your desktop computer. It's an open-source
physical computing platform based on a simple microcontroller board, and a
development environment for writing software for the board. Arduino can be
used to develop interactive objects, taking inputs from a variety of switches or
sensors, and controlling a variety of lights, motors, and other physical outputs.
Arduino projects can be stand-alone, or they can communicate with software
running on your computer (e.g., Flash, Processing.)
4.2 channel relay: - This is a 5V, 10A 2-Channel Relay interface board. It can
be used to control various appliances, and other equipment's with large current.
It can be controlled directly with 3.3V or 5V logic signals from a
microcontroller (Arduino, 8051, AVR, PIC, DSP, ARM, ARM, MSP430, TTL
logic).
VCC and GND pin of the Bluetooth module is connected to the 5V and
TX pin of Arduino. The rest of the pins of the Bluetooth module are
remained open.
VCC and GND of the relay module are connected to the 5V and GND pin
Now connections for the light and fan. We are taking light and fan which
are operated in 220 to 230V. So, one wire (preferably -Ve or neutral wire)
of the power supply is connected to the light and the other wire
(preferably +Ve or phase) is cut and one end is connected to the common
pin of the relay. The same is done for the fan keeping it parallel with light.
Range: <100m
Bluetooth.
CHAPTER 4
Arduino is a tool for making computers that can sense and control more of the
physical world than your desktop computer. It's an open-source physical
computing platform based on a simple microcontroller board, and a
development environment for writing software for the board. Arduino can be
used to develop interactive objects, taking inputs from a variety of switches or
sensors, and controlling a variety of lights, motors, and other physical outputs.
Arduino projects can be stand-alone, or they can communicate with software
running on your computer (e.g., Flash, Processing.
CHAPTER 5
Software implementation
String inputs;
#define relay1 2 //Connect relay1 to pin 9
#define relay2 3 //Connect relay2 to pin 8
#define relay3 4 //Connect relay3 to pin 7
#define relay4 5 //Connect relay4 to pin 6
#define relay5 6 //Connect relay5 to pin 5
#define relay6 7 //Connect relay6 to pin 4
#define relay7 8 //Connect relay7 to pin 3
#define relay8 9 //Connect relay8 to pin 2
void setup()
{
Serial.begin(9600); //Set rate for communicating with phone
pinMode(relay1, OUTPUT); //Set relay1 as an output
pinMode(relay2, OUTPUT); //Set relay2 as an output
pinMode(relay3, OUTPUT); //Set relay1 as an output
pinMode(relay4, OUTPUT); //Set relay2 as an output
pinMode(relay5, OUTPUT); //Set relay1 as an output
pinMode(relay6, OUTPUT); //Set relay2 as an output
pinMode(relay7, OUTPUT); //Set relay1 as an output
pinMode(relay8, OUTPUT); //Set relay2 as an output
digitalWrite(relay1, LOW); //Switch relay1 off
digitalWrite(relay2, LOW); //Swtich relay2 off
digitalWrite(relay3, LOW); //Switch relay1 off
digitalWrite(relay4, LOW); //Swtich relay2 off
digitalWrite(relay5, LOW); //Switch relay1 off
digitalWrite(relay6, LOW); //Swtich relay2 off
}
void loop()
{
while(Serial.available()) //Check if there are available bytes to
read
{
delay(10); //Delay to make it stable
char c = Serial.read(); //Conduct a serial read
if (c == '#'){
break; //Stop the loop once # is detected after a word
}
inputs += c; //Means inputs = inputs + c
}
if (inputs.length() >0)
{
Serial.println(inputs);
if(inputs == "A")
{
digitalWrite(relay1, LOW);
}
else if(inputs == "a")
{
digitalWrite(relay1, HIGH);
}
else if(inputs == "B")
{
digitalWrite(relay2, LOW);
}
else if(inputs == "b")
{
digitalWrite(relay2, HIGH);
}
else if(inputs == "C")
{
digitalWrite(relay3, LOW);
}
else if(inputs == "c")
{
digitalWrite(relay3, HIGH);
}
else if(inputs == "D")
{
digitalWrite(relay4, LOW)
}
else if(inputs == "d")
{
digitalWrite(relay4, HIGH);
}
else if(inputs == "E")
{
digitalWrite(relay5, LOW);
}
else if(inputs == "e")
{
digitalWrite(relay5, HIGH);
}
else if(inputs == "F")
{
digitalWrite(relay6, LOW);
}
else if(inputs == "f")
{
digitalWrite(relay6, HIGH);
}
else if(inputs == "G")
{
digitalWrite(relay7, LOW);
}
else if(inputs == "g")
{
digitalWrite(relay7, HIGH);
}
else if(inputs == "H")
{
digitalWrite(relay8, LOW);
}
else if(inputs == "h")
{
digitalWrite(relay8, HIGH);
}
inputs="";
}
}
CHAPTER 6
This is a 5V, 10A 2-Channel Relay interface board. It can be used to control
various appliances, and other equipment's with large current. It can be controlled
directly with 3.3V or 5V logic signals from a microcontroller (Arduino, 8051,
AVR, PIC, DSP, ARM, ARM, MSP430, TTL logic).
It has a 1x4 (2.54mm pitch) pin header for connecting power (5V and 0V), and
for controlling the 2 relays.
IN1 - Controls relay 1, active Low Relay will turn on when this input goes
below about 2.0V
IN2 - Controls relay 2, active Low Relay will turn on when this input goes
below about 2.0V
Specifications: -
CHAPTER 7
Flow chart
CHAPTER 8
Result
CHAPTER 9
Application
CHAPTER 10
Conclusion
While wearing down this endeavor we have grabbed a lot of finding out about
various modules being used in this errand. We are glad we can Built this Project
as apart in this endeavor and set up new musings. We believe the assignment
completes as needed and the data grabbed in the midst of this period will be
used in our future corporate life. Additionally, we might want to include that
home computerization is the fate of places of new world. Home automation is a
resource which can make home environment Automated. People can control
their electrical devices via. Smartphone These home automation devices and set-
up controlling action through mobile. In future these products may have high
potential for marketing.
CHAPTER 11
Future scope
1) The going with stage for home robotization advertise will happen subject to a
couple of key overhauls in the progression open in Automation, for example,
improvement in Wireless Automation blueprints and moreover bringing down of
regard appears as the market starts perceive home mechanization use in more
noteworthy volumes. A couple of examples that we foresee for this time of the
business are,
2) Big associations like Philips, Siemens and Schneider will as time go on bring
out truly mass-market mechanization things with interfacing with UI in any case
at lower esteem point as contrast with today, and more people will be able to
bear the cost of the things.
3) Solution commitments will bit by bit move to an all the more straightforward
structure, where next to two or three key parts, customers will have the ability to
buy and use the Automation things themselves without the guide of any specific
ace.
4) Future Scope for the home automation system involves making homes even
smarter. If, this is actually implemented everywhere in the future like classroom,
labs of the respective colleges etc. There will be a huge saving of electricity and
that is all we need is “TO SAVE ELECTRICITY’’.
5) More energy can be conserved by ensuring occupation of the house before
turning on devices and checking the brightness and turning off the light if not
necessary.
6) The system can be integrated closely with the home security solutions
enhancing the safety for home owners.
CHAPTER 12
References