VOICE CONTROLLED HOME AUTOMATION USING GOOGLE ASSISTANT

3,000.00

Description

VOICE CONTROLLED HOME AUTOMATION

USING GOOGLE ASSISTANT

BY

CANDIDATE’S FULL NAME

REG. NO

A PROJECT SUBMITTED TO THE DEPARTMENT OF
ELECTRICAL/ELECTRONIC ENGINEERING

SCHOOL OF ENGINEERING TECHNOLOGY,
KOGI STATE POLYTECHNIC, LOKOJA NIGERIA

IN PARTIAL FULFILMENT OF THE NATIONAL BOARD FOR
TECHNICAL EDUCATION (NBTE) REQUIREMENT FOR THE AWARD
OF HIGHER NATIONAL DIPLOMA (HND) IN ELECTRICAL/

ELECTRONICS ENGINEERING.
SCHOOL OF ENGINEERING TECHNOLOGY

KOGI STATE POLYTECHNIC, LOKOJA

FEBRUARY, 2022.

CERTIFICATION

This is to certify that the project titled “Voice Controlled Home Automation

Using

Google Assistant” by candidate’s full name meets the requirements and
regulations governing the award of Higher National Diploma (HND) in
Electrical/Electronic Engineering of Kogi State Polytechnics, Lokoja and is

approved for its literary presentation.

Supervisor Signature Date

Head of Dept. Signature Date

External Examiner Signature Date

DECLARATION

I hereby declare that I carried out the work reported in this report in the
Department of Electrical/Electronic Engineering, Kogi State Polytechnic,

Lokoja,

under the supervision of Supervisor’s name. I also declare that to the best of

my

knowledge, no part of this report has been submitted elsewhere in a previous
application for award of a degree. All literature consulted have been duly

acknowledged.

———————————————————

CANDIDATE’S NAME
(CANDIDATE’S MATRIC NUMBER)

DEDICATION

This project is dedicated to God Almighty and to the people who have

supported

me throughout my education.

Thanks for making me see this adventure through to the end.

 

ACKNOWLEDGEMENT

The satisfaction and euphoria that accompany a successful completion of
any work will be incomplete without mentioning people who made it possible,
success is the epitome of hard work and perseverance, but steadfast of all is

encouraging guidance.

So with gratitude, we acknowledge all those who guidance and
encouragement served as beacon of light and crowed our effort with success.

ABSTRACT

The project Voice controlled home automation project helps to control the
electrical loads based on Bluetooth input signal. The Bluetooth device

receives this

input signal from android device. This system is especially beneficial in case

of

handicapped or aged people who find it difficult to walk and operate the

electrical

switches to turn on or off the loads. This system solves this issue as now the

user

just has to give voice commands to turn on or off the loads. Here 3 loads are

used

to demonstrate First Load, second load and third load. All these loads can be
individually turned ON/OFF or all loads at the same time. This system solves

the

issue by interfacing a unit with home appliances that switches these loads

based on

the input received from android device. The Android app also provides an

effective

GUI for providing this functionality. This system makes use of Arduino

microcontroller. The Bluetooth receiver is interfaced with microcontroller in

order

to accept the commands and then react accordingly. It operates the loads

through

a set of relays. Relays are used between loads and the control unit. This

system

thus can be used in many domestic applications and in industrial setups. The
power supply setup of the system contains a step down transformer of

230/12V,

used to step down the voltage to 12VAC. To convert it to DC, a bridge

rectifier is

used. Capacitive filter is used which makes use of 7805 voltage regulator to
regulate it to +5V that will be needed for microcontroller and other

components

operation, in order to remove ripples.

TABLE OF CONTENTS

COVER PAGE ………………………………………………………… i
TITLE PAGE ……………………………………………………….. ii

CERTIFICATION/APPROVAL PAGE ……………………………… iii
DECLARATION PAGE ………………………………………………… iv
DEDICATION ……………………………………………………… v
ACKNOWLEDGEMENT ………………………………………. vi
ABSTRACT………………………………………………………….. vii
TABLE OF CONTENTS ……………………………………………….. viii –

x

LIST OF FIGURES ……………………………………………… i
LIST OF TABLES …………………………………………………… i
LIST OF SYMBOLS/ABBREVIATION ………………………… i
LIST OF APPENDICES …………………………………………… i

CHAPTER ONE:

1.0 INTRODUCTION …………………………………………… 1
1.1. BACKGROUND …………………………………………… 1 – 2
1.2. PROBLEM STATEMENT ……………………………… 2 – 3
1.3. AIM/OBJECTIVES OF THE STUDY ……………………… 3 – 4
1.4. INTERNET OF THINGS ……………………………………. 4
1.5. BASIC APPLICATIONS OF HOME AUTOMATION ……. 4 – 6
1.6. SCOPE OF THE PROJECT ………………………………… 6 -7

1.7.

 

CHAPTER TWO: LITERATURE REVIEW

2.0. LITERATURE REVIEW AND PROBLEMS IDENTIFICATION … 7
2.1 INVENTIONS TO HOME AUTOMATION ……………………….. 7 -8
2.2 LITERATURE REVIEW …………………………………………… 8 -10
2.3 MICROPROCESSOR AND MICRO-CONTROLLER ………….. 10
2.4 EXISTING METHOD ……………………………………………. 10 –

2.5 DC POWER SUPPLY ……………………………………………. 11
2.6. ARDUINO ………………………………………………………… 11-

2.7 RELAY ……………………………………………………………. 12
2.8 BLUETOOTH MODULE …………………………………………. 12–13
2.9 PROPOSED METHOD …………………………………………… 13-14
CHAPTER THREE: DESIGN AND ANALYSIS OF THE PROJECT
3.0. INTRODUCTION ………………………………………………… 15
3.1. ANDROID BASED PHONE …………………………………….. 16
3.2. ARDUINO UNO …………………………………………………. 17

3.3. BLUETOOTH MODULE ………………………………………… 17
3.4. RELAY BOARDS ……………………………………………….. 18
3.5 CONDUCTOR PROCESS ………………………………………. 18-23
3.6 MOBILE PHONE APP CONFIGURATION ……………………. 24
3.7 ARDUINO SOURCE CODE ………………………………………. 25 -28

CHAPTER FOUR: TESTING AND RESULTS

4.0 SYSTEM FLOATCHART ………………………………… 30
4.1. TEST AND RESULT ………………………………… 31
4.2 DATAANALYSIS……………………………………………… 51
4.2.1 READING A TABLE OF TECHNICAL DATA FOR LED…… 52
4.3 SYSTEM FLOWCHART……………………………………….. 55
CHAPTER FIVE: CONCLUSIONS AND RECOMMENDATIONS

5.1. CONCLUSION ………………………………………………. 32 –

33

5.2. APPLICATIONS ………………………………………………. 33
5.2. RECOMMENDATIONS ……………………………………………. 33

REFERENCES
APPENDICE

LIST OF FIGURES

Fig 3.1 Block Diagram of the System 15
Fig 3.2 Android APP 16
Fig 3.3 Circuit Diagram of System 19
Fig 3.4 Connecting Relay With Arduino 23
Fig 3.5 Bread boarding Pictorial Diagram 29
Fig 3.6 Voice Controlled Home Automation 29

Fig 4.1 System Flowchat 30
Fig 4.2 Test and Result 31

LIST OF TABLES

TABLE 3.0: Component and Their Value 28 -29

TABLE 4.1 Test and Result 31

LIST OF APPENDICES

CHAPTER ONE

1.0 INTRODUCTION
1.1 BACKGROUND
“Home automation” refers to the automatic and electronic control of household
features, activities, and appliances. The utilities and features of our home can be
easily controlled via Internet. There are three main elements of a home automation
system: sensors, controllers, and actuators.
Having day to day developing technology is a proud moment to the whole world.
The foremost aim of the technology is to increase the efficiency and to decrease
the effort. In this trending world, Internet of Things is being given extreme
importance. In that, Automation, leads to have less effort and much efficiency.
By using IoT, we are successful in controlling the appliances in various areas, in
which one of them is to control the home automation by using Node
Microcontroller. We can also use other boards like raspberry pi, beagle bone etc.,
In the present-day technology, the whole work is done through communication so
the effective way of communication can be done through voice.
Even though the technology is developing in our day to day life, there is no help
coming into existence for the people who are physically not good on the basis of
technology. As the speech enabled, home automation system deploys the use of
voice to control the devices. It mainly targets the physically disabled and elderly
persons. The home automation will not work if the speech recognition is poor. The
speech given by the user will be given as input to the Microphone. Microphone
recognizes the speech given by the person and sends it to the recognizing module.
It searches for the nearest word even if there are any disturbances in it. If the
command (ON/OFF) is given, the action is done. Similarly, the line following

robot functions with respect to the speech commands given to it. The line
following robot moves forward and backward with the help of sensors and a
motor driver board.
Home is the place where one desires to be rest after a long tiring day. People come
home exhausted after a long hard-working day. Some are way too tired that they
find it hard to move once they land on their couch, sofa or bed. So, any small
device/technology that would help them switch theirs lights on or off, or play their
favorite music etc. on a go with their voice with the aid of their smart phones
would make their home more comfortable. Moreover, it would be better if
everything such as warming bath water and adjusting the room temperature were
already done before they reach their home just by giving a voice command. So,
when people would arrive home, they would find the room temperature, the bath
water adjusted to their suitable preferences, and they could relax right away and
feel cozier and rather, feel more homely. Human assistants like housekeepers were
a way for millionaires to keep up their homes in the past. Even now when
technology is handy enough only the well to do people of the society are blessed
with their new smart home devices, as these devices costs are a bit high. However,
not everyone is wealthy enough to be able to afford a human assistant, or some
smart home kit. Hence, the need for finding an inexpensive and smart assistant for
normal families keeps growing.
1.2 PROBLEMS STATEMENT
Wired or wireless systems, while in the house not very likely to face many
problems. However, when controlling through the application locally or remotely,
we can face problems such as delays in performance and that is frustrating. Delays
could be due to poor internet connection and planning in the house. If we are
having battery operated devices and their usage is more than normal, then battery

problems could be another issue for what we to deal with and also the
voice-recognition of Google assistant is not up-to the mark if there is noisy
Environment. Due to Interference of the nearby noise, the Google assistant
commands may also not work properly. Home Automation is still an expensive
product, by Indian consumer standards, and there’s a lot of scope of the prices to
be whittled down by an order of magnitude at least in the next few years. This will
happen as more companies manufacture the key components of Automation
systems (controllers, Gateways etc.,) and economies of scale takes over.
1.3 AIMS AND OBJECTIVE OF STUDY
Firstly, Home Automation will save time in daily recursive activities like turning
of lights, geysers and other home appliances. Users don’t need to think about
whether the lights are turned off or did geyser or AC turned off or not while they
are in office. Users can sit anywhere in the globe access our home away from
home.
Secondly, security, users can secure their home while they are away from home.
There are devices which keep monitoring the home and notify them when any
incident occurs. The notification can be a simple SMS or a voice call which can
alert and take necessary action. These devices can also run on Batteries. So need
not worry about even when electricity is turned off.
Thirdly, Convenience, users don’t need to manually go-to each and every room to
see if any light or fan is switched on and turn off, instead they can on/ off all lights
in a room or entire home. Users will have the convenience of controlling devices
through smart phone or tablet.
The next one is Safety, in every home, situation arise when parents have to leave
outstation and kids stay alone at home. In this scenario, Automation helps in

securing kids’ safety. One can install surveillance cameras and keep monitoring
through mobile from anywhere in the globe. Also, there are devices which won’t
allow to unlock the main door from outside once it is locked from inside. Also,
Sensors can be placed outside which can turn on light automatically in the night if
someone try to intrude into home. These are the main problems resolve using the
Home automation devices. There are many more benefits from Home
Automation..
1.4 INTERNET OF THINGS
The major concept using in the Google assistant-controlled Home automation is
the Internet of Things. The Internet of Things (IoT) can be connecting various
types of objects like smart phones, personal computer and tablets to the internet,
which brings new-fangled type of communication between things and things, and
things and people. The Fig 1.1 shows the Home automation system.
Any man-made objects that can be assigned an IP address and it has the ability to
transfer data successfully over a network, the interaction through a network is
called IoT. The internet helps us to bring immediate solutions for many problems
and able to connect from any of the remote places. The Internets of Things
technology is used to come in with innovative idea and large development space
for smart homes to improve the living standards of life. The growth of the Internet
of Things will reform a number of sectors, like healthcare, automation energy,
transportation, etc. The cloud computing can be used in such case to implement
the IoT infrastructure that augmented with sensors and actuators to monitor and
control “things” from anywhere.
1.5 BASIC APPLICATIONS OF HOME AUTOMATION

Remote home monitoring allows users to manage and control various aspects of
home. These include motion detection, water leak detection, monitoring
temperature against burglary and fire, and controls for lights, locks, fans and
more from Laptop or Tablet or Smartphone. The household activities are
automated by the development of special appliances such as water heaters to
reduce the time taken to boil water for bathing and automatic washing machines to
reduce manual labor of washing clothes. In developed countries, homes are wired
for electrical power, doorbell, TV outlets, and telephones. The different
application includes when a person enters the room, the light turns on. In
advanced technology, the room can sense the presence of the person and who the
person is. Taking into account the day of the week, time of the day and other such
factors it can also set apt lighting, temperature levels, television channels or music
levels. In the case of a smoke detector when fire or smoke is detected, the lights in
the entire house begin to blink to alert the resident to the probable fire. In case of a
home theatre, the home automation system can avoid distraction and lock the
audio and video components and can also make an announcement. The home
automation system can also dial up the house owner on their mobile phone to alert
them or call any alarm monitoring company. It is essential that the different
controllable appliances be interconnected and communicate with each other. The
basic aim of Home automation is to control or monitor signals from different
appliances, or basic services. A smart phone or web browser can be used to
control or monitor the home automation system. The household activities
such as food preservation and preparation are automated with the movement of
pre-packaged food or pre-made food. Automation of handling the food in the
home is possible to only standardized products. The use of electricity facilitated
the automation in heating which trim down the manual toil to gas stoves and fuel
heaters. The growth of thermostats enables automated control of heating and

cooling at a later stage. Other automated activity includes the air conditioner set to
an energy saving setting when the house is vacant and get back to the normal
setting when the resident is about to return home. The classy system preserves a
list of products, records the usage through bar codes or an RFID tag and replaces
the order automatically.
Many people today prefer smart devices which can be controlled remotely by the
Internet rather than the manual control to improve the standard of living. The
home appliances are expected to fully automatic and Internets of Things (IoT) is
projected to provide dramatic improvements in smart home appliances. The
internet technology is growing day by day and the internet connection is
accessible everywhere conditioning unit. The human motion detection is achieved
by the PIR sensor for security purpose in the world. The IoT is going to rule the
world within a few years. It presents an Internet of Things based real-time home
automation and security system using Node MCU and ESP8266 Wi-Fi module
which makes the system cost- effective and portable. It is used for controlling and
monitoring home appliances (Fans, Lights, etc.) from anywhere in the globe over
the Internet. The home automation system includes an integrated temperature and
humidity sensor module to control over the air. A voice recognition-based home
automation system was proposed and implemented.
1.6 SCOPE OF THE PROJECT
The hardware architecture of this system consists of Arduino board and
smartphone. The wireless communication between the smartphone and the
Arduino is done through Bluetooth. Android OS has a built-in voice recognizing
feature named Google assistant which is used to develop a smartphone application
which has ability to control the home appliances from user voice command. This
application converts the user voice command into text, then it transmit that text

message to Bluetooth libraries. One advantage of voice-controlled home
automation system is that user only pronounce the appliance name in smartphone
microphone and telling it to switch ON or OFF the appliances, in this way the
users can control home appliance easily without any effort. A voice recognition
application provided a user-friendly interface to users and it has ability to add
more home appliances into the system. This home automation system can be used
in every building using electrical appliances and devices. The main drawback of
system is that it is failed to work efficiently in a noisy environment. Another
advantage of using Google assistant controlled Home automation is that it is
totally of wireless communication as many existing system Home automation is
based on wired communication.