b.e-ece-19-23-batchno-145
b.e-ece-19-23-batchno-145
ANDROID APPLICATION
by
SATHYABAMA
INSTITUTE OF SCIENCE AND TECHNOLOGY
(DEEMED TO BE UNIVERSITY)
Accredited with Grade “A” by NAAC
JEPPIAAR NAGAR, RAJIV GANDHI SALAI, CHENNAI - 600 119
APRIL - 2023
2
i
SATHYABAMA
INSTITUTE OF SCIENCE AND TECHNOLOGY
(DEEMED TO BE UNIVERSITY)
Accredited with “A” grade by NAAC
Jeppiaar Nagar, Rajiv Gandhi Salai, Chennai – 600 119
www.sathyabama.ac.in
BONAFIDE CERTIFICATE
This is to certify that this Project Report is the bonafide work of Mothe Rakesh
(39130294), who carried out the project entitled “IOT BASED HOME AUTOMATION
SYSTEM USING ANDROID APPLICATION” under our supervision from November 2022
to April 2023.
Internal Guide
20.04.2023
Submitted for Viva voce Examination held on
ii
DECLARATION
I Mothe Rakesh (39130294), here by declare that the Project Report entitled “IOT
BASED HOME AUTOMATION SYSTEM USING ANDROID APPLICATION” done by us
under the guidance of Dr.I Rexiline Sheeba, M.E., Ph.D., is submitted in partial fulfillment of
the requirements for the award of Bachelor of Engineering degree in Electronics and
Communication Engineering.
DATE: 20.04.23
1.
iii
ACKNOWLEDGEMENT
We convey our thanks to Dr. N. M. NANDHITHA, M.E., Ph.D., Professor & Dean,
School of Electrical and Electronics and Dr. T. RAVI, Ph.D., Professor & Head,
Department of Electronics and Communication Engineering for providing us necessary
support and details at the right time during the progressive reviews.
We would like to express my sincere and deep sense of gratitude to our Project Guide
Dr.I.Rexiline Sheeba, M.E., Ph.D., for her valuable guidance, suggestions and constant
encouragement paved way for the successful completion of our project work.
We wish to express our thanks to all Teaching and Non-teaching staff members of the
Department of Electronics and Communication Engineering who were helpful in many ways
for the completion of the project.
iv
ABSTRACT
Now a day's technology becomes ever more invasive, the design challenges in home
automation are increasingly apparent. Seamless controlling home, monitoring and
programming by the end user have yet to enter the mainstream. This could be legitimate
to the challenge of developing a fully independent and extensible home system that can
support devices and technologies of differing functionalities and protocols. This paper
describes how to control and monitor home appliances using Android application over the
internet. There are number of commercial home automation systems available in market.
However, these are designed for limited use. Therefore, home appliances can individually
be controlled both from within the home and remotely. This is very helpful to physically
challenged people. The practical goal of this paper has been to create a virtual, but
practically usable, android home automation system. The android mobile is used to send
the commands to the Arduino to control all the home appliances. The main feature of this
system is to control the voltage levels of home appliance in home like speed of fan based
on temperature, intensity of light based on light intensity etc. and another feature is we may
get the status of our home appliances from our android mobile phone. In this system we
use different sensors like temperature, rain sensor and LDR for different applications. The
main control system implements wireless technology .to provide remote access from smart
phone. We are using a cloud server-based communication that would add to the practicality
of the project by enabling unrestricted access of the appliances to the user irrespective of
the distance factor. We provided a data transmission network to create a stronger
automation. The system intended to control electrical appliances and devices in house with
relatively low cost design, user-friendly interface and ease of installation. The status of the
appliance would be available, along with the control on an android platform.
v
TABLE OF CONTENTS
5 CONCLUSION 30
REFERENCES 32
vi
LIST OF FIGURES
FIGURE Page
FIGURE NAME
NO No.
vii
CHAPTER 1
INTRODUCTION
1
receive data from a smartphone. The relay module is used to control AC
devices. The 16×2 LCD module is used to display the status (turn ON or turn
OFF) of the home appliances. Also, we need to download and install the
Bluetooth Controller App on our Smartphone, Which is sending data to the
HC-05 Bluetooth Module.
SECURITY SETTINGS
Active automatic light controller for garden
1.2 BACKGROUND
The concept of “Home Automation” has been in existence for several
years. “Smart Home”, “Intelligent Home” are terms that followed and is been
used to introduce the concept of networking appliance within the house. Home
Automation Systems (HASs) includes centralized control and distance status
2
monitoring of lighting, security system, and other appliances and systems
within a house. HASs enables energy efficiency, improves the security
systems, and certainly the comfort and ease of users. In the present emerging
market, HASs is gaining popularity and has attracted the interests of many
users. HASs comes with its own challenges. Mainly being, in the present day,
end users especially elderly and disabled, even though hugely benefited,
aren’t seen to accept the system due to the complexity and cost factors.
3
Fig 1.2 Model of phases in project management
This phase involved discussions regarding necessary equipment
regarding the project. The study of related already existing projects, gathering
required theoretical learning. It also included figuring out the coding part, by
developing simple algorithms and flowcharts to design the whole process. This
phase was, designing layout of the application, and the necessary features to
be included. This involved the complete hardware assembly and installing the
code to Node MCU. The power strip was designed to connect the home
appliances that can be controlled via GPIO pins.
This phase had the development of the application. The android device
was connected to the NodeMCU via wireless network (WiFi) and the whole
prototype was tested for identification and removal of bugs. The prototype was
ready to be tested into the real world and integrated with various real time
electrical appliances.Considering the increase in price of copper, thus
increases the possibility of the wire to be stolen. The use of a wireless remote
system to control home appliances means no wire for thieves to steal. As the
system establishes control over Wi-Fi, it was a generally considered descent
range.
4
That is 150 feet indoors. Outdoors it can be extended to 300 feet, but since the
application is of a HAS, an indoor range is considered.As the connection of
the control of the HAS is established over a secure network the system
ensures security to the maximum extent. The prototype designed can be
integrated to a larger scale. Also it has an extensive nature being able to add
or remove the appliances under control according to application.
5
CHAPTER 2
This chapter discusses about the survey done for Iot Based Home
Automation System Using Android Application
6
module that consists; smoke sensor motion sensor and camera module.
(2016).
This paper proposes an optimization of home power consumption
based on PLC (Power Line Communication) for an easy to access home
energy consumption. This also proposes a Zigbee and PLC based renewable
energy gateway to monitor the energy generation of renewable energies. ACS
and DDEM algorithm are proposed for the design of an intelligent distribution
of power management system to make sure ongoing power supply of home
networks. To provide efficient power management the power supply models of
home sensor network are classified groups viz. main supply only, main supply
and backup battery, rechargeable battery power and non-rechargeable battery
power. Devices with particular features are assigned to these groups. It
targets to establish real time processing scheme to address variable sensor
network topologies(2019).
This paper proposes a system that develops a model to reduce the
computation overhead in existing smart home solutions that uses various
encryption technologies like AES, ECHD, hybrid, etc. these solutions use
intermediate gateway for connecting various sensor devices. The proposed
model provides a method for automation with sensor based learning. The
system uses temperature sensor for development but other sensors can also
be used as per requirement. These smart home devices with sensors can
configure themselves autonomously and can operate without human
intervention. This work minimizes encryption decryption and focuses on
authentication and automation of smart home devices with learning. The
system bypasses local gateway mentioned in existing system to provide
better security for smart home devices and sensor data and save computation
overhead. The real time broker cloud is directly connected with smart home
and manages all incoming and outgoing request between users and devices.
The main purpose to use real time broker cloud is save time of cryptographic
operations. (2020)
The paper present a vision-based machine intelligence system to sense
on/off state of common home appliance. The proposed method of sensing the
state of appliances results on a novel home automation system. The
accessibility of the suite of devices in the home over a remote network is
7
facilitated by the IP Addressing methods in the IOT. This project uses two
boards viz. Raspberry Pi and Intel Galileo Gen 2. The communication between
the User devices, Raspberry Pi and the Intel Galileo boards happens over a
wireless network. The UDP protocol is deployed to facilitate the wireless
communication of the nodes present in the home automation network. A Pi
Cam and a USB Logitech camera attached to the rotating shaft of two different
servo motor capture snapshots that are passed as inputs to the Machine
Learning based models trained using dlib-C++ to detect the state of the
operation of the appliances. The proposed method uses visual modality to
automate the appliances, as privacy concerns may emerge while using the
images from some specific places, as a counter to this issue, an SPDT switch
is added to the Raspberry Pi which when turned off ensures that even if the
images are taken from the webcams, they are just passed as inputs to the
machine learning models and are not displayed on the website when the users
access the website on the server address obtained from Raspberry Pi. (2015)
This paper illustrates a methodology to provide a low cost Home
Automation System (HAS) using Wireless Fidelity (Wi-Fi).This crystallizes the
concept of internetworking of smart devices. A Wi-Fi based Wireless Sensor
Network (WSN) is designed for the purpose of monitoring and controlling
environmental, safety and electrical parameters of a smart interconnected
home. The different sections of the HAS are; temperature and humidity
sensor, gas leakage warning system, fire alarm system, burglar alarm system,
rain sensing, switching and regulation of load & voltage and current sensing.
The primary requirement of HAS to monitor and control of devices is
accomplished using a Smartphone application. The application is developed
using Android Studio based on JAVA platform and User Interface of those are
exemplified. The primary focus of the paper is to develop a solution cost
effective flexible in control of devices and implementing a wide range of
sensors to to capture various parameters. (2021)
8
all the appliances to a central console, i.e. the mobile device. The prototype
uses Arduino MK1000, known as Genuino MK1000. The NLP in this project
gives the user the freedom to interact with the home appliances with his/her
own voice and normal language rather than complicated computer commands.
The appliances are connected to the mobile device through an Arduino Board
that establishes the concept of Internet of Things. The Arduino Boards are
interfaced with the appliances and programmed in such a way that they
respond to mobile inputs. (2020)
Home automation system is gaining a significant research attention in
recent years. It helps us in leading a comfortable life and quality of lifestyle is
gradually uplifted. The different methodologies used in this system have been
discussed. In modern days, a smartphone having an android application is
used to supervise and control the appliances present in the home automation
system. In this paper different types of communication methodologies such as
GSM, IoT, Wi-Fi, and bluetooth are reviewed. The pros and cons of these
techniques along with their features have been presented. Based on this
paper the user can choose the best suitable methodology depending upon
their personal needs and specifications for implementing an efficient
automation system. (2021)
Home automation system achieved great popularity in the last decades
and it increases the comfort and quality of life. In this paper an overview of
current and emerging home automation systems is discussed. Nowadays
most home automation systems consist of a smartphone and microcontroller.
A smart phone application is used to control and monitor the home appliances
using different type of communication techniques. In this paper the working
principle of different type of wireless communication techniques such as
ZigBee, Wi-Fi, Bluetooth, EnOcean and GSM are studied and their features
are compared with each other so the users can choose their own choice of
technology to build home automation system. Moreover in this research work
the survey of different home automation systems is discussed and their
advantages and drawbacks are also highlighted. (2017)
We are living in the fourth industrial revolution. Our life is becoming
more comfortable and smarter with the help of rapid upgrade of technology.
Internet of things (IoT) is playing a massive role in this. One of the major sides
9
of IoT is a smart home. As we are in the era of never-ending growth of the
internet and its application, smart home system or home automation system is
highly increasing to provide comfort in life and improving the quality of life. In
this paper, we present an IoT based low-cost smart home automation system.
This system is based on a web portal which controlled by an ESP32 Wi-Fi
module. Also, a custom-made private home web server is developed for
maintaining the current states of home appliances. (2016)
In recent years, the advancements in Information and Communication
Technology (ICT) are mainly focused on the Internet of Things (IoT). In a real-
world scenario, IoT based services improve the domestic environment and are
used in various applications. Home automation based IoT is versatile and
popular applications. In home automation, all home appliances are networked
together and able to operate without human involvement. Home automation
gives a significant change in humans life which gives smart operating of home
appliances. This motivated us to develop a new solution which controls some
home appliances like light, fan, door cartons, energy consumption, and level of
the Gas cylinder using various sensors like LM35, IR sensors, LDR module,
Node MCU ESP8266, and
Arduino UNO. The proposed solution uses the sensor and detects the
presence or absence of a human object in the housework accordingly. Our
solution also provides information about the energy consumed by the house
owner regularly in the form of message. Also, it checks, the level of gas in the
gas cylinder if it reaches lesser than the threshold, it automatically books the
gas and sends a reference number as a message to the house owner. The
proposed solution is deployed and tested for various conditions. Finally, in this
paper, the working model of our proposed solution is developed as a prototype
and explained as a working model. (2014)
This paper presents the overall design of Home Automation System
(HAS) with low cost and wireless remote control. This system is designed to
assist and provide support in order to fulfil the needs of elderly and disabled in
home. Also, the smart home concept in the system improves the standard
living at home. The main control system implements wireless Bluetooth
technology to provide remote access from PC/laptop or smart phone. The
design remains the existing electrical switches and provides more safety
10
control on the switches with low voltage activating method. The switches
status is synchronized in all the control system whereby every user interface
indicates the real time existing switches status. The system intended to control
electrical appliances and devices in house with relatively low cost design,
user-friendly interface and ease of installation. (2019)
This paper presents a low-cost smart home system with an efficient
system. The hardware consists of NodeMCU Arduino, PIR sensor,
temperature sensor, light dependent resistor and a motion sensor in IP
Camera. The software includes ArduinoIDE and MIT app inventor II for
Android mobile phones. The system developed based on Android user
Interface for controlling a smart home. The NETPIE platform, which is a
network of IoT, is used for interfacing between a user and a smart home. This
system consists of lighting system, fan and security system. The notification is
through LINE Notify app. The system includes two control systems; manual
and automatic. From the results, it is shown that the control system is well
performance while it is developed just low-cost devices. (2021) The
development of global networking system and intelligent technology have a
great impact on smart devices. With the continuous and enormous
development of internet, the network enabled smart devices for the
development of home automation has been growing fast. Moreover, these
smart devices are integrated in such a way that they can sense, monitor and
control smart environment phenomena. This paper represents an integrated
framework is designed and implemented for this purpose. The proposed
framework is based on the development of a central server and a website.
This framework is used to achieve a supervisory control for smart home. A
microcontroller is used as base station for processing of all the functionality of
the system integrated system. This control approach can send and receive
data and instructions from environment and from the end user. Also, for the
monitoring of comfortable room temperature a Fuzzy logic based intelligent
decision-making algorithm is developed and implemented. (2018)
11
2.2 LITERATURE SUMMARY
12
2.3 PROBLEM STATEMENT
▸ The objective of this project is to implement a low cost, reliable and scalable
home automation system that can be used to remotely switch on or off any
household appliance, using a microcontroller to achieve hardware simplicity,
using Visual Basic by designing a GUI(Graphical User Interface).
- Improve comfort
- Ensure security
13
CHAPTER 3
EXISTING SYSTEM
Home automation systems face four main challenges; these are high
value of possession, inflexibility, poor manage ableness, and issue in
achieving security. The most objectives of this analysis is to style and
implement a home automation system mistreatment IOT that’s capable of
dominant and automating most of the house appliances through a
Straightforward manageable net interface. The planned system encompasses
a nice flexibility by mistreatment Wi-Fi technology to interconnect its
distributed sensors to home automation server. This may decrease the
preparation value and can increase the power of upgrading, and system
reconfiguration.
Implementation of web browser
14
Implementation for the application
15
Fig 1.5 System architecture
16
temperatures may influence security adversely. Because of the high
affectability of Distance sensor gadget, it is not prescribed to utilize the some
condition like quick ecological changes and solid stun or vibration and
furthermore in not working in coordinate daylight or direct breeze from a
warmer or aerate and cool. Home/office security frameworks have developed
in prominence as of late, a home/office proprietor's search for approaches to
ensure their own space and upgrade their home estimations. It is fundamental
for each mortgage holder to considering including a home security framework,
as robberies, burglaries and homicides have turned out to be normal in
enormous urban communities. Separation sensor are minimal effort security
framework for home applications in which Distance sensor has been
actualized to detect the movement of human through the location of infrared
radiation from that human body. Separation sensor gadget does not emanate
an infrared radiation but rather inactively acknowledges approaching infrared
radiation. Distance sensor see the nearness of human in the home and
produces flag which is perused by the Arduino. As indicated by the flag gotten
by Arduino, a call is recognized to portable station through an Internet and in
this way caution the nearness of human in the home to proprietor occupies.
17
CHAPTER 4
PROPOSED SYSTEM
18
Circuit Diagram:
19
Blynk App Setup:
For Fan, Light, Led and Led1
IFTTT Setup:
Authorization key (Provided by Blynk App) and server IP
Address is used in IFTTT for Webhook
20
1) To Control Light Both for ON and OFF Different condition is created on IFTTT
with Google Assistant and webhooks
21
22
• To Control LED 1 Both for ON and OFF Different condition is created on
IFTTT with Google Assistant and webhooks
23
24
25
26
The prototype aims to wireless control over home appliances with the technology
of IOT. As discussed earlier, IOT supports various wireless communication
protocols, like Bluetooth, ZWave, Zigbee etc. this prototype uses Wi-Fi as wireless
communication network to establish remote access over home 48 | P a g e
appliances. This is because Wi-Fi has its own advantages over other wireless
communication protocols
27
28
The prototype works in both switch mode and voice mode of control. The switch
mode is simply be accessing the radio buttons on the Blynk application, and the
process of control has been discussed earlier in this chapter in the section before.
Here we will discuss the voice mode control of the prototype. We use application
IFTTT and Google assistant on smart phone to achieve control by voice
commands.IFTTT stand for ‘If This Then That’, is an interface that provides web
based service in which devices are connected to mobile application. We cannot
connect the Google Assistant to the Node MCU directly, and that is the only reason
we are using the Blynk app. Blynk app can directly connect to the Node MCU and
send data to it. So, if we can send the voice commands interpreted by Google
assistant directly to the Blynk app, the Blynk app can then forward those commands
to the NodeMCU. But the problem is Google Assistant cannot directly understand
foreign commands like “turn on the fan” or “turn on relay one” etc. on its own. So, to
solve this we use another intermediate application/website called ‘IFTTT’. Simply, to
control our home appliances over the internet we are using Node MCU and to
connect Node MCU with the home appliances we use a relay board. Now to send on
or off signals to the Node MCU we use our smartphone, and we do this using the
Blynk app. But we want to send the on or off signals using voice commands. To do
this we use google assistant in our smartphone and an app called IFTTT. So, in the
end what will happen is, when we say a voice command like “ok google turn on the
light” to the Google Assistant, Google Assistant sends that this foreign command to
IFTTT. IFTTT interprets this command and sends an on or off signal to the Blynk app
via the Blynk Server. Blynk will then send this signal to the Node MCU and then to
our electrical appliances.
29
CHAPTER 5
CONCLUSION
the project "IoT based home automation system using android application" has
successfully demonstrated the integration of Internet of Things (IoT) technology and
mobile applications to provide convenient and efficient control over various home
appliances. Through the use of sensors, microcontrollers, and Wi-Fi modules, the
system is able to receive commands from an Android application and respond by
activating or deactivating devices such as lights, fans, and air conditioning units. The
project highlights the potential of IoT to transform the way we interact with our
surroundings and the role of mobile applications in enhancing the user experience.
Overall, this project serves as a proof of concept for the application of IoT in home
automation and opens up opportunities for further research and development in this
field. The IoT based home automation system using android application is a project
that showcases the capabilities of IoT and mobile applications in improving the
efficiency and convenience of managing home appliances. The system is made up
of various components that work together to provide the desired functionalities.
One of the key components of the system is the sensor module. The sensor module
consists of various sensors such as temperature sensors, humidity sensors, and
motion sensors. These sensors are used to detect changes in the environment and
provide feedback to the microcontroller.The microcontroller is another essential
component of the system. The microcontroller is responsible for processing the
sensor data and controlling the home appliances. It receives instructions from the
android application and sends signals to the Wi-Fi module to activate or deactivate
the devices. The Wi-Fi module is responsible for connecting the system to the
internet. It receives instructions from the microcontroller and sends data to the
android application. This allows the user to control the home appliances remotely
through the mobile application. The android application serves as the interface
between the user and the system. The application provides the user with various
options to control the home appliances. For instance, the user can turn on the lights
or air conditioning unit, adjust the temperature, and monitor the humidity levels.
30
Overall, the IoT based home automation system using android application is an
innovative project that demonstrates the potential of IoT and mobile applications in
transforming the way we interact with our homes. It has practical applications in
improving energy efficiency, reducing costs, and enhancing convenience. The
project serves as an excellent starting point for further research and development in
this field.
31
REFERENCES
7. The HiveMQ Team, “MQTT Essentials Part 5: MQTT Topics & Best
essentials-part5mqtt- topics-best-practices. [Accessed 22 /3 /2020].
9. T. L. Scott and A. Eleyan, “CoAP based IoT data transfer from a Raspberry Pi
to Cloud,” international Symposium on Networks, Computers and
Communications (ISNCC), 2019.
32
11. Islam, “Android Application Based Smart Home Automation System Using
Internet of Things,” in 3rd International Conference for Convergence in
Technology (I2CT), 2018.
33