Professional Documents
Culture Documents
2019-2020
on
Of
In
Archana Bomnale
(Deemed-to-be University)
Moble and Voice Controlled Home Automation System 2019-2020
2019-20
CERTIFICATE
This is to certify that the project entitled “Mobile and Voice Controlled Home
Automation”, has been done by Anmol Astana (J005), Arash Daruwala (J007),
Yash Dasgupta (J009) under my guidance and supervision & has been submitted in
partial fulfillment of degree of MBA Tech in Electronics and Telecommunication of
MPSTME, SVKM’s NMIMS (Deemed-to-be University), Mumbai, India.
______________
(Intenal Guide)
Date ______________
(HOD EXTC)
Moble and Voice Controlled Home Automation System 2019-2020
ACKNOWLEDGEMENT
First and foremost, we would like to take this opportunity to thank our lecturer Prof.
Archana Bomnale for her guidance and advice on this project. We are truly grateful
for the great feedback that she has given us through the process of development of the
project.
Last but not least, I am very grateful to our College, lecture sand friends where they
gave us enough of time to complete this project and at the same time I would like to
thank my friends and classmates who helps me a lot to complete this project.
Thank you to all those who have made valuable contributions to our project.
ABSTRACT
The main objective of this project is to develop a home automation system using an
Arduino board with Bluetooth being remotely controlled by any Android OS smart
phone. As technology is advancing so houses are also getting smarter. Modern houses
are gradually shifting from conventional switches to centralized control system,
involving remote controlled switches.
Presently, conventional wall switches located in different parts of the house makes it
difficult for the user to go near them to operate. Even more it becomes more difficult
for the elderly or physically handicapped people to do so. Remote controlled home
automation system provides a most modern solution with smart phones.
In order to achieve this, a Wi-Fi module is interfaced to the Arduino board at the
receiver end while on the transmitter end, a GUI application on the cell phone sends
ON/OFF commands to the receiver where loads are connected. By touching the
specified location on the GUI, the loads can be turned ON/OFF remotely through this
technology. The loads are operated by Arduino board through opto-isolators and
thyristors using triacs.
We further plan to integrate a intruder alarm system using infrared light to notify the
users when there is a security threat at their home.
Moble and Voice Controlled Home Automation System 2019-2020
Contents
CERTIFICATE.......................................................................................................3
1. Introduction.........................................................................................................8
1.1 Background of the project topic:.......................................................................8
1.2 Salient contribution...........................................................................................8
1.3 Organization of the Report................................................................................9
2. Literature survey...............................................................................................10
2.1 Introduction to overall topic.......................................................................10
2.2 Exhaustive literature survey.......................................................................11
3. Problem Statement............................................................................................14
4. Methodology.....................................................................................................15
5. System Analysis................................................................................................16
6. Software Description.........................................................................................22
7. Testing and Results...........................................................................................23
8. Advantages, Limitatons and Applications........................................................26
9. Conclusion and Future Scope............................................................................29
List of Figures
Figure 1: Home Automation based Architecture...........................................................................11
Figure 2 Online Processing Architecture...................................................................................... 12
Figure 3 Offline Voice Control System........................................................................................ 13
Figure 4: Methodology of the Project........................................................................................... 15
Figure 5 Arduino Nano................................................................................................................. 17
Figure 6 ESP8266......................................................................................................................... 18
Figure 7 Relay.............................................................................................................................. 19
Figure 8 Arduino Voice Module................................................................................................... 20
Figure 9 Temperature Sensor........................................................................................................ 20
Figure 10 IR Proximity Sensor..................................................................................................... 21
Figure 11: Coding For Mobile Based Automation........................................................................23
Figure 12: Coding For Voice Controlled Automation...................................................................26
Moble and Voice Controlled Home Automation System 2019-2020
1. Introduction
1.1 Background of the project topic:
The advancement in technology has led to advancing the automation in various fields.
Day by day, the effort for doing daily work is reducing and for people who are busy in
their everyday routine are looking for cost effective ways to reduce the daily manual
efforts. For example, washing machine has made the everyday life simple for an
individual. Instead of washing the clothes by using hands, one can now simply put the
clothes in the washing machine and can also dry it using a dryer function thus saving
the human effort and also saving time.
People who are physically handicapped or elderly people find it very difficult to reach
for the switch board for switching various appliances, closing doors, opening/closing
curtains etc. In our everyday lives, there are many situations where we tend to lock
the door and go outside only to realise that either the fan has remained switched on or
even worse the gas station is kept on. Also, it is of concern that small children tend to
put their fingers in the energy socket for fun purposes. However, this is very
dangerous as the child can be electrocuted. Housekeepers also tend to switch on/off
the fan using wet fingers which may again be a case of electrocution. In order to
prevent such mishaps and also to save the wastage of electricity and money, we can
resolve these problems. By introducing a Mobile and Voice Controlled Home
Automation System, every function of the home whether it is switching on a specific
light or switching on various lights, switching on/off the geyser for bath purposes,
controlling the speed of the fan and also to control the temperature of the AC
switched on, switching on the AC before hand so that when you enter the room, the
room will be chilled as per your liking or whether it is to switch off the gas station,
every function can be controlled with a flick of a finger on your smartphone. To make
matters even more simple, all of the above functions can be controlled via voice
control.
various technologies and current projects on Home Automation. The work also
included researching on hardware and software to be used.
b) Integrating the components, and coding work was done by Arash Daruwala. This
included establishing connection from the microprocessor to Wi-Fi, Mobile
device and Voice Control module. The other task is to perform coding to
integrate all applications of device on the computer as well as on Mobile.
c) The task of circuit designing and testing for the best feasible circuit was done by
Anmol Asthana. The main objective was to check for the best feasibility of the
circuit with minimum and simple wiring.
9
Moble and Voice Controlled Home Automation System 2019-2020
2. Literature survey
While there are many competing vendors, there are very few worldwide accepted
industry standards and the smart home space is heavily fragmented. [3] Manufacturers
often prevent independent implementations by withholding documentation and by
litigation.[4]
The home automation market was worth US$5.77 billion in 2013, predicted to reach a
market value of US$12.81 billion by the year 2020.[5]
People who are physically handicapped may find it very difficult to reach for the
switch board for switching various appliances, closing doors, opening/closing curtains
etc. In our everyday lives, there are many situations where we tend to lock the door
and go outside only to realise that either the fan has remained switched on or even
worse the gas station is kept on. It is also of concern that small children tend to put
their fingers in the energy socket for fun purposes. However this is very dangerous as
the child can be electrocuted. Housekeepers also tend to switch on/off the fan using
wet fingers which may again be a case of electrocution. In order to prevent such
mishaps and also to save the wastage of electricity and money, we can resolve these
problems. By introducing a Mobile and Voice Controlled Home Automation System,
every function of the home can be controlled with a flick of a finger on your
smartphone. To make matters even more simple, all of the above functions can be
controlled via voice control.
10
Moble and Voice Controlled Home Automation System 2019-2020
In 1975, the first general purpose home automation network technology, X10, was
developed. It is a communication protocol for electronic devices. It primarily
uses electric power transmission wiring for signalling and control, where the signals
involve brief radio frequency bursts of digital data, and remains the most widely
available.[7] By 1978, X10 products included a 16 channel command console, a lamp
module, and an appliance module. Soon after came the wall switch module and the
first X10 timer.
By 2012, in the United States, according to ABI Research, 1.5 million home
automation systems were installed.[8] As per research firm Statista[9] more than 45
million smart home devices will be installed in U.S. homes by the end of the year
2018.[10]
The word "domotics" (and "domotica" when used as a verb) is a contraction of the
Latin word for a home (domus) and the word robotics.[1]
In order to enable voice control in HA systems, we can either use the existing online
voice recognition engines, or focus on the ones that can be used offline. Depending on
the chosen voice recognition technology, we design the system architecture.
11
Moble and Voice Controlled Home Automation System 2019-2020
The other variation of the architecture using cloud voice recognition is depicted in
Figure 2. In this case, the HA gateway records the user message, sends it to the cloud
voice recognition service using the provided API, and then processes the results. All
of the message processing is done by the gateway.
Finally, if offline voice recognition tools are used, the home automation gateway can
be fully enabled to process the voice commands, and react to them. The architecture
of the system in this case is represented in Figure 3. This approach provides the full
autonomy of the HA system, which does not need to be connected to the Internet in
order for voice commands to function properly. However, real-time processing of
12
Moble and Voice Controlled Home Automation System 2019-2020
Google Speech API Google Cloud Speech can be used to connect to the online
service, which provides conversion of audio to text. The advantages of using this
speech API are its vast database, multi-language support (it supports more than 80
languages), and the possibility of easily integrating with the embedded devices. The
disadvantages are the price, and the limited number of requests per day. Also, as this
is the online voice recognition service, using it requires Internet connection.
Alexa Voice Service Alexa voice service is the heart of Alexa, an intelligent personal
assistant powering Amazon Echo. Alexa voice services provide the API that can be
used to enable Alexa assistant on the device. However, the service does not provide
arbitrary text as output. Rather, it triggers the Home Automation functionality, which
must be implemented as the cloud service. This service is not free. Also, the Internet
connection is required, for the system to work properly.
Bing Speech API Bing speech API also provides online speech to text conversion.
Although the service is easily integrated with various platforms by the REST API, our
experiments have shown that the error rate is higher for this engine, then for. Also, the
number of supported languages is significantly smaller. Table I sums up several
important characteristics of voice recognition engines. The large number of languages
supported as well as the possibility to integrate it with both Home Automation cloud
and Home Automation gateway, suggest that the future effort should be made to
integrate this voice recognition engine into our Home Automation solution.
13
Moble and Voice Controlled Home Automation System 2019-2020
3. Problem Statement
The main objective of this project is to develop a home automation system using an
Arduino board with Bluetooth being remotely controlled by any Android OS smart
phone. As technology is advancing so houses are also getting smarter. Modern houses
are gradually shifting from conventional switches to centralized control system,
involving remote controlled switches.
Presently, conventional wall switches located in different parts of the house makes it
difficult for the user to go near them to operate. Even more it becomes more difficult
for the elderly or physically handicapped people to do so. Remote controlled home
automation system provides a most modern solution with smart phones.
In order to achieve this, a Wi-Fi module is interfaced to the Arduino board at the
receiver end while on the transmitter end, a GUI application on the cell phone sends
ON/OFF commands to the receiver where loads are connected. By touching the
specified location on the GUI, the loads can be turned ON/OFF remotely through this
technology. The loads are operated by Arduino board through opto-isolators and
thyristors using triacs.
We further plan to integrate a intruder alarm system using infrared light to notify the
users when there is a security threat at their home.
14
Moble and Voice Controlled Home Automation System 2019-2020
4. Methodology
This project is one of the important Arduino Projects. Arduino based home
automation using Wi-Fi project helps the user to control any electronic device using
Blynk app on their Android Smartphone. The Android app Blynk sends commands to
the controller – Arduino, through wireless communication, namely, Wi-Fi. The
Arduino is connected to the main PCB which has four relays as shown in the block
diagram.
These relays can be connected to different electronic devices. As per the block
diagram, Device 1 – Fan, Device 2, 3 and 4 – Lights. When the user presses on the
‘On’ button displayed on the app for the device 1, the Fan is switched on. This Fan
can be switched off, by pressing the same button again.
Similarly, when the user presses on the ‘On’ button displayed on the app for the
device 2, the Light is switched on. The light can be switched off, by pressing the same
button again.
This project of home automation using Bluetooth and Arduino can be used for
controlling any AC or DC devices. In the demonstration, we have used DC motor for
a Fan and LED lights for Bulbs. To drive this DC motor and LED lights, a 9V battery
is connected.
15
Moble and Voice Controlled Home Automation System 2019-2020
5. System Analysis
Arduino Nano
The Arduino Nano is a microcontroller board based on the ATmega328P. It has 14
digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a
16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a
reset button. It contains everything needed to support the microcontroller; simply
connect it to a computer with a USB cable or power it with a AC-to-DC adapter or
battery to get started.
The Uno differs from all preceding boards in that it does not use the FTDI USB-to-
serial driver chip. Instead, it features the Atmega8U2 programmed as a USB-to-serial
converter.
16
Moble and Voice Controlled Home Automation System 2019-2020
11. EEPROM 1 KB
12. Clock Speed 16 MHz
ESP8266
17
Moble and Voice Controlled Home Automation System 2019-2020
Figure 6 ESP8266
Relay
18
Moble and Voice Controlled Home Automation System 2019-2020
Figure 7 Relay
This board has 2 controlling ways: Serial Port (full function), General Input Pins (part
of function). General Output Pins on the board could generate several kinds of waves
while corresponding voice command was recognized.
19
Moble and Voice Controlled Home Automation System 2019-2020
Temperature Sensor
The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It
uses a capacitive humidity sensor and a thermistor to measure the surrounding air,
and spits out a digital signal on the data pin (no analog input pins needed). Its
fairly simple to use, but requires careful timing to grab data. The only real
downside of this sensor is you can only get new data from it once every 2 seconds,
so when using our library, sensor readings can be up to 2 seconds old.
20
Moble and Voice Controlled Home Automation System 2019-2020
IR Proximity Sensor
Proximity Sensor are used to detect objects and obstacles in front of sensor. Sensor
keeps transmitting infrared light and when any object comes near, it is detected by the
sensor by monitoring the reflected light from the object. It can be used in robots for
obstacle avoidance, for automatic doors, for parking aid devices or for security alarm
systems, or contact less tachometer by measuring RPM of rotation objects like fan
blades.
21
Moble and Voice Controlled Home Automation System 2019-2020
22
Moble and Voice Controlled Home Automation System 2019-2020
6. Software Description
Arduino IDE
Blynk
Blynk was designed for the Internet of Things. It can control hardware remotely, it
can display sensor data, it can store data, vizualize it and do many other things.
There are three major components in the platform:
Blynk App - allows to you create amazing interfaces for your projects using
various widgets we provide.
Blynk Server - responsible for all the communications between the smartphone and
hardware. You can use our Blynk Cloud or run your private Blynk server locally.
It’s open-source, could easily handle thousands of devices and can even be
launched on a Raspberry Pi.
Blynk Libraries - for all the popular hardware platforms - enable communication
with the server and process all the incoming and outcoming commands.
23
Moble and Voice Controlled Home Automation System 2019-2020
For voice controlled system, we tried to implement Alexa module but it was not
compatible with our Arduino microcontroller.
Further testing for implementing voice module and syncing it with mobile control
function will be done in the later stage.
24
Moble and Voice Controlled Home Automation System 2019-2020
int redPin = 9;
int greenPin = 10;
com = 0;
void setup()
{
Serial.begin(9600);
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
delay(2000);
Serial.write(0xAA);
Serial.write(0x37);
delay(1000);
Serial.write(0xAA);
Serial.write(0x21);
void loop()
while(Serial.available())
25
Moble and Voice Controlled Home Automation System 2019-2020
com = Serial.read();
switch(com)
case 0x11:
digitalWrite(redPin, HIGH);
break;
case 0x12:
digitalWrite(greenPin, HIGH);
break;
case 0x13:
digitalWrite(redPin, HIGH);
digitalWrite(greenPin, HIGH);
break;
case 0x14:
digitalWrite(redPin, LOW);
digitalWrite(greenPin, LOW);
26
Moble and Voice Controlled Home Automation System 2019-2020
break;
ADVANTAGES
1. Security
The locks can be controlled by the Mobile And Voice Controlled Home
Automation System. So after stepping out of the house, one can lock the doors
with this and can safeguard their personal belongings. Also, if you have
forgotten to switch off the gas stove or something which can cause harm, you
can do it via your smartphone
2. Energy Efficiency
Increase your home’s energy efficiency by remotely powering off systems and
appliances when they aren’t in use. In addition to the standard home
automation products that give you active control, some products actively
monitor systems and arm the homeowner with knowledge, insight and
guidance to achieve greater control and energy efficiency. Unwanted usage of
electricity is thus saved
3. Savings
27
Moble and Voice Controlled Home Automation System 2019-2020
Home automation literally pays off. When you are able to use home systems
and appliances only when needed, the savings will be apparent in the first
utility bill. No more wasting money on lights left on when you aren’t home, or
spending money on gas to drive home because you forgot to lock the door.
Monetary savings are apparent, but you’ll also be saving time. No wasted trips
home, no running through the house turning everything off, no time spent
worrying about what was or wasn’t turned off.
4. Convenience
5. Comfort
Ever leave for work in the morning when it was a comfortable 68° outside
only to come home to a sweltering house because the temperature shot up to
90°? Connected home products lets you conveniently adjust your home
temperature from the mobile app so your family is always comfortable and
also when you come back home tired from work, your home will be chilled so
that you can relax in peace.
DISADVANTAGES
1. Cost of Intelligence
Installing state-of-the-art features inside a home results in a higher price
tag for the property. The cost of an intelligent home that makes our lives
28
Moble and Voice Controlled Home Automation System 2019-2020
APPLICATIONS
29
Moble and Voice Controlled Home Automation System 2019-2020
30
Moble and Voice Controlled Home Automation System 2019-2020
NodeMCU
5 V Relay X 2
Prototyping board (Bread board)
Connecting wires
9 V Power supply
Smartphone or tablet (Wi-Fi enabled)
Wi-Fi Connectivity
31
Moble and Voice Controlled Home Automation System 2019-2020
Appendix B: References
1. Hill, Jim (12 September 2015). "The smart home: a glossary guide for the
perplexed". T3. Retrieved 27 March 2017.
2. "Best Home Automation System - Consumer
Reports". www.consumerreports.org. Retrieved 2016-02-14.
3. "5 Open Source Home Automation Projects We Love". Fast Company.
2014-12-01. Retrieved 2016-11-22.
4. Fahmy, Hossam Mahmoud Ahmad (2016). Wireless Sensor Networks:
Concepts, Applications, Experimentation and Analysis. p. 108. ISBN 978-
9811004124. The use of standardized, with open standards over proprietary
protocols provides the industry with the freedom to choose between suppliers
with guaranteed interoperability. Standardized solutions usually have a much
longer lifespan than proprietary solutions.
5. "Research and Markets: Global Home Automation and Control Market 2014-
2020 - Lighting Control, Security & Access Control, HVAC Control Analysis
of the $5.77 Billion Industry". Reuters. 2015-01-19. Archived from the
original on 2016-05-05.
6. Home Automation & Wiring (1 ed.). New York: McGraw-Hill/TAB
Electronics. 1999-03-31. ISBN 9780070246744.
7. Rye, Dave (October 1999). "My Life at X10". AV and Automation Industry
eMagazine. AV and Automation Industry eMagazine. Archived from the
original on September 30, 2014. Retrieved October 8, 2014.
8. Brush, A. J.; Lee, Bongshin; Mahajan, Ratul; Agarwal, Sharad; Saroiu, Stefan; Dixon,
Colin (2011-05-01). "Home Automation in the Wild: Challenges and
Opportunities". Microsoft Research.
32
Moble and Voice Controlled Home Automation System 2019-2020
33