SAMUEL Front Page-Merged
SAMUEL Front Page-Merged
BY
ACP/ND/EEE/23/0001
SEPTEMBER, 2025
i
CONSTRUCTION OF SMART HOME AUTOMATION SYSTEMS
BY
ACP/ND/EEE/23/0001
SUBMITTED
TO
SEPTEMBER, 2025
ii
CERTIFICATION
This is to certify that, this project work was carried out by SAMUEL ABIODUN ODESEYI,
Engineering, Allover Central Polytechnic, Ota in partial fulfillment of the requirements for the
………………………… …………………..
Project Supervisor
…………………………… …………………
Head of Department
iii
iv
v
vi
HOME AUTOMATION SYSTEMS
CHAPTER ONE
INTRODUCTION
includes the control and computerization of lighting, warming, (for example, brilliant
indoor regulators), ventilation, aerating and cooling (HVAC), and security, and also home
for remote checking and control. Home devices, when remotely observed and
controlled through the Internet, are an essential constituent of the Internet of Things.
smartness into dwellings for comfort, healthcare, safety, security, and energy conservation.
Early home automation began with labor-saving machines. Self-contained electric or gas-
powered home appliances became viable in the 1900s with the introduction of electric power
distribution, and led to the introduction of washing machines (1904), water heaters (1889),
refrigerators, sewing machines, dishwashers, and clothes dryers (Pasha, K. Takeda, 2014).
The automation has existed for many years. It began with a student connecting two electric
wires to the hands of an alarm clock in order to close a circuit of a battery and light bulb. Later,
companies developed automated systems of their own to control alarms, sensors, actuators and
video cameras and, in so doing, created the first automated buildings. (Armando Roy
Delgado,2013)
Home automation systems are developed in recent years that make use of emerging
technologies for the development. Home automation has become a one of the upcoming field
that introduces many technologies for making the automation easy and with good performance.
Most of the systems make use of a web server and mobile communication for controlling the
The vision of the system is to provide an efficient internet based system to control everyday
home appliances. The system offers users an easy & effective means of controlling their various
home appliances from a remote location i.e. without physically being present at home. The
system makes use of the internet to enable remote access to the various home appliances. Apart
from merely turning the appliances ON & OFF, the scope of the system can be extended to
regulate their output power & set their usage time. (Rich Picking,2012)
Home automation is an umbrella term used to describe the use of specific automation
techniques in private homes for enhanced convenience, comfort, energy efficiency and security
of the residents. Prevalent techniques used in home automation include control of lighting,
surveillance and other systems. With the vast number of the household electronic and electrical
appliances used in modern homes, the undertaking of home automation systems has become
extensive and hefty. Home Automation as a Service (HAS) can simplify this scenario by
connecting each sub-system of a home automation system directly to the cloud, and thus not only
reduce the setup and maintenance cost by eliminating the need of specialized gateway and web
providers to deliver advanced automation services to the home automation system. Multi-user
home automation services must be necessarily based on the standard cloud computing model, in
which services are made available to the general public over the Internet as long as they use the
specified web application programming interface (API). Cloud computing refers to the online
services provided over the Internet together with the hardware and software infrastructure of the
data centers that offer those services. The services offered by existent cloud providers can be
The idea of home automation has been around since many decades ago. However, its
implementation has slow progress due to the expensive cost of hardware and installation.
Nevertheless, the introduction of smart living and smart home concepts get the home automation
back on track. Moreover, smart home systems are increasingly sophisticated in recent years (M.
Alaa and A. Zaidan,2017). The emerging of the Internet of Things (IoT) has led smart home
conventional sensors and remote controls as well as various smart appliances and robots with
the help of electrical appliances industry that introduces Wi-Fi-enabled home appliances to
the market which consequently offers an alternative for implementing smart home automation
smartphones to control electrical appliances remotely causes the manufacturers to deploy cloud
services for their consumers’ data storage and application hosting. In the case of smart home, the
manufacturers used cloud services for hosting applications for controlling the appliances using
the cloud providers’ system software and hardware (H. Hassan and M. Nasir,2017).
In the current context, home automation system has less to do with its predecessor, the do- motic
system, because it is based on arevolu- tionary concept: IoT (“Internet of Things”), which
represented the beginning of a new era for technology. It represented the moment when the
technology had the capacity to change fiction into reality through simple de- velopments of
automated systems, wirelessly interconnected and managed using only one mobile device, a
better idea than domotics, which required a multitude of interconnected computers to manage
related applications of domestic appliances. Before describing the system and its function- alities
I want to clarify the difference between home automation” and “smart home”, be- cause I
noticed they are usually used as syno- nyms by general public and even by experts. The first
concept was designed to integrate household appliances, relying solely on the use of subroutines
in order to ease and im- prove people's lifestyles. The system I have implemented and I will
present in the next sec- tions is based on this concept, because it has no intelligence, the devices
being automated according to my preferences using program- ming languages. “Smart home”
was a term used for the first time in the mid-1980s during the boom of the domotic system and
has its origins in “home automation”, but it is a much wider concept that includes a large range
of features, technologies and industries, all inter- connected through Internet of things (IoT) (M.
Miller,2017).
A home is a part of an environments. A home automation system based-on IoT is a system that
employs an electronics devices, such as personal computers (PC), gadgets and mobile
devices to control basic functions. Further, some features of such home can be controlled
automatically through internet anywhere, everywhere, and anytime. This system is usually called
as a smart home system. The smart home system is meant to reduce the utilization of resources
and human activities on its operation, making it is possible for client to operate systems from
anywhere all over the world through internet access. The IoT is applied in the integration of
several technologies for communication and performing some actions. In the previous years, the
usage of IoT gadgets have increased significantly in the productions (Ramlee and Leong, 2013).
The developed system has mainly three parts that are monitor, control and security parts. The
devices of the home can be monitored and controlled by different systems. Through the internet
the automation system can send and re- ceive data from the remote user by online or offline. The
user can control and monitor the status concerning On/OFF of the devices of the home. The
homeowner can observe the house temperature, humidity, and flame condition from anywhere
and anytime by using a smart-phone or desktop or laptop. If any trespasses enter into the house
gate camera take a picture automatically and send the picture to the homeowner through email.
This has revolutionized the area of home automation with respect to an increased level of
affordability and simplicity through the integration of home appliances with smart phone and
tablet connectivity. Smart phones are already feature-perfect and can be made to communicate
to any other devices in an ad hoc network with a connectivity options like Bluetooth. With the
advent of mobile phones, Mobile applications development has seen a major outbreak. Utilizing
the opportunity of automating tasks for a smart home, mobile phone commonly found in normal
household can be joined in a temporary network inside a home with the electronic equipments.
(http://www.android.com).
In today century, where automation is playing an important role in human life. Home automation
allows us to control household appliances like light, door, fan, AC etc. It also provides home
security and emergency system to be activated. Home automation not only refers to reducing
human efforts but also energy efficiency and time saving.Home Automation and Security System
based on GSM and Android application implies that whenever a person tries to enter into the
house then a SMS will be sent to house owner’s mobile phone indicating the presence of some
person inside the house and the house owner can take some preventive measure in order to
protect his house from the burglar. Moreover the person can control the home appliances using
an android application present in the mobile phone which will reduce the human hard work. The
list of various home appliances along with TURN ON and TURNOFF buttons will be provided
in an android application. By clicking on that particular button the person will be able to TURN
ON and TURN OFF the home appliances using an android application.(Mahesh N. Jivani and
Gujarat,2014).
This idea has been developed for years, but it wasn't given a name until 1999. A Coke machine
at Carnegie Melon University was the first internet appliance. Programmers have the ability to
connect to the machine via the internet, check its status, and ascertain whether a cool drink will
be waiting for them if they choose to visit the machine. The idea behind the Internet of Things
(IoT) is to connect any item, such as smartphones, Internet TVs, sensors, and actuators, to the
Internet. By doing so, new kinds of communication between objects and people as well as
between objects themselves are made possible. Since it has given the field of information and
communication technologies a new dimension, the Internet of Things (IoT) has grown in
popularity during the past few years. In the upcoming years, it is anticipated that there will be
two billion devices online, up from the current 100 million. 80% of machine-to-machine (M2M)
connections were made in 2011, and this number is predicted to rise in the future because M2M
over mobile networks is significantly less expensive than fixed networks.( Akhil Jain, Prerit
Mathur, 2014).
These days, security systems are crucial for safeguarding investments and people's lives. This is
control, fire detection, etc., into the security system under a single control unit. A smart home is
one that has electronic devices, lighting, and heating that can be controlled from a distance using
operate household electronics from anywhere in the house. The capacity to remotely or
automatically control many aspects of the home is provided by home automation. An instrument
or gadget intended to carry out a certain task is called a home appliance. Electrical devices, like
refrigerators, are particularly useful in the home. Devices and appliances are interchangeable
The popularity of network enabled home automation has been increasing greatly in recent years
due to simplicity and much higher affordability. Moreover, with the rapid expansion of the
Internet, there is the potential for the remote control and monitoring of such network enabled
appliances. However, the new and exciting opportunities to increase the connectivity of devices
within the home for the purpose of home automation through internet are yet to be explored.(Ali
M and Vlaskamp,2013).
1.2.1 Aims
1.2.2 Objectives
The main objectives of this research is to design and to implement a a low cost and open-source
home automation that’s able to lead most of the home and sustain the home automation system.
To use wireless reliable technology to interconnecting many modules to the server of the home
1.High Cost: Automating a full home setup can be expensive due to the number of components
4.Power Supply Instability: The system may fail or reset if there is any power fluctuation or
outage.
This project involves the development of a distributed home automation system that integrates a
central server with multiple hardware interface units. The system is intended to remotely control
and monitor electrical appliances within a household, such as lights, fans, and sensors. Each
hardware module is linked to the server, which coordinates their operations and can be expanded
between the server and modules may be carried out through either wired or wireless means. The
project is focused on essential automation functions like device switching, system monitoring,
1. Home Automation System (HAS): A system that allows automated control of household
internet.
3. Artificial Intelligence (AI): The simulation of human intelligence in machines for decision-
4. Smart Home: A residence equipped with interconnected devices for remote monitoring and
control.
5. Sensors: Devices that detect changes in the environment, such as temperature, motion,
and light.
6. Cloud Computing: The use of remote servers to store and process data for accessibility from
multiple devices.
7. Bluetooth: This is a wireless personal area network (PAN) technology that allows devices to
8. Zigbee: A wireless protocol mainly used for smart home automation and various IoT
applications.
9. Wi-Fi: Wireless technology that uses radio waves to deliver high-speed internet access
without cables.
10. Arduino: A programmable device that enables interaction with external hardware devices
using software programs, devices that can be connected to Arduino include lights, sensors,
11. Relay: An electrically operated switch. It uses a small electrical signal to control a larger
12. Distributed System: A system where control components are spread across different
locations.
LITERATURE REVIEW
Yekhande, et. al. 2022, proposed the architecture for smart home control and monitoring
systems using Arduino is proposed and implemented. It gives a basic idea of how to control
different home appliances and provide security by using Arduino Uno controlled from a desktop
application. In our project, we tried to implement an embedded system that meets the main
functions of home automation for the management of lighting, habitat security, and temperature
& humidity control. For these reasons, a desktop application was created to interact with an
K Eeswari et. al. 2017, the light sensor was properly configured to detect when the laser was
broken, while not accidentally tripping due to different ambient light environments. In addition,
the temperature and light control subsystem outputs are confirmed to be working. Specifically,
the firmware has been tested and is confirmed to be outputting the appropriate signals to the
subsystem BJT switches which control lighting and furnace operations. Overall, the project has
been working to design specifications and has maintained a high-quality standard which can be
Kausalya et. al. 2018, suggest, we found out that in this era of computers, smart home
technology has become imminent. It’s a smart technology that gives us a different level of living
standard. We are fully dependent on a system where everything is fully automatic. We are using
sun tracking technology so we can get maximum efficiency of solar power. It has two
different user functions; one is controlled manually and other automatically. Security is
password and/or biometrically protected and sensing ability gives this home strength to protect
itself.
Sahoo et. al. 2019, in this paper present a Home Automation system (HAS) using Intel Galileo
that employs the integration of cloud networking, wireless communication to provide the user
with remote control of various lights, fans, and appliances within their home and storing the data
in the cloud. With this internet of things project, 6 you can control 4 relays from ArduinoIoT
Cloud dashboard, Alexa, IR remote, and manual switches. You can also monitor the real-time
room temperature in the Arduino cloud dashboard and Amazon Alexa app. If there is no internet
available still, you can control the appliances from the IR remote and switches. I have used all
the FREE tools and you do not need any Alexa devices or Amazon Echo Dot for this voice
El-Hajj M. et. al. 2020, proposed the system focuses on the a near complete and up-to-date view
of the IoT authentication field. It provides a summary of a large range of authentication protocols
proposed in the literature. Using a multi-criteria classification previously introduced in our work,
it compares and evaluates the proposed authentication protocols, showing their strengths
and weaknesses, which constitutes a fundamental first step for researchers and developers
Ahmed et. al. 2021, introduce the system that will automatically change on the basis of sensors’
data. This system is designed to below cost and expandable allowing a variety of devices to be
controlled Such as, E-commerce, Coal Mine, Wearable device, Smart Grid, Laboratory
Monitoring, Agriculture, and many other domains. The process of controlling or operating
various equipment, machinery, industrial processes, and other applications using various control
Kasbekaret. al. 2021,, define as the Arduino UNO, ESP wi-fi module, Thing speak, relay module
monitors and schedule any old electronic device through a mobile application. The process of
applications using various control systems and also with less or no human intervention is termed
as automation. There are various types of automation based on the application they can be
automation, etc.
Smart home is not new new term for science society however, it is still for more away from
people’s vision and audition. As electronic technologies are converging, the field of
home automation is expanding. Smart home automation is very popular due to its numerous
benefits in most area or house. These techniques will control all the electronic devices
which will reduce the human involvement to get minimize. It will provide various benefits
such as good safety, comfort, lower cost, more rational use of energy and other resources
contributing to a significant saving. The system is very friendly with the dramatic increase in
smart phones users, which is smart phones have gradually turned into portable devices where the
people can provide for their daily. In this research, a low cost wireless controlled smart home
This system makes the operations of various home appliances more convenient and saves energy.
With the energy-saving concept, home automation or building automation makes life very
equipment, air conditioning and heating and all other equipment used in home systems is
https://link.springer.com/chapter/10.1007/978-981-13-8614-5_12
There is also a system is mainly implemented by sensors, controlling devices and actuators. The
sensors detect light, motion, temperature and other sensing elements, and then send that
data to the main controlling devices. These sensors can be thermocouples or thermistors, level
sensors, pressure sensors, current transformers, IR sensors and manymore which need
controlling devices like programmable logic controllers that receive the information from the
sensors, and based on the program, control the actuators. This program can be modified based on
load operations. The programmable controller allows connecting various sensors and actuators
through various input and output modules whether they are analog or digital. Actuators are
the final controlling devices like limit switches, relays, motors, and other controlling
mechanisms which finally control the home equipment. Communication plays an important
role in this home automation system for remote access to these operations.
1. Power Line Home Automation System: This automation is inexpensive and doesn’t
require additional cables to transfer the information, but uses existing power lines to
transfer the data. However, this system involves a large complexity and necessitates additional
2. Wired Home Automation System: In this type of automation, all the home equipment
communication cable. The equipment is attached with actuators to communicate with the main
controller. The entire operations are centralized by the computer that continuously communicates
3. Wireless Home Automation: This is the expansion and advancement of wired automation
which uses wireless technologies like IR, Zigbee, Wi-Fi, GSM, Bluetooth, etc., for achieving
remote operation. As a practical example, the following home automation system research, in
1. Safety: The ability to control small appliances and lighting with your fingertips anywhere you
are will add safety in your home. You can make sure appliances are off when it’s needed to be
2. Convenience: The ability to control everything with your fingertips is very convenient. You
never leave the house without your wallet, keys and of course your smart phone. With our smart
phone always with us, we can easily monitor our home and control everything with just touch of
a finger.
3. Save Time: Since we are living in a very fast-paced environment, we don’t even have time to
worry about our home. With home automation, we can save time going back to our home and
make sure everything is order, like if the kids or anyone at home turn on/off the lights, fans
when they are use it or not use it when you are not at home.
4. Save Money: This is the biggest advantage of home automation. With the ability to control
the light, whether turning on/off on specific time will saves homeowner a great ton of
money. You can save money through household temperature, with proper automation of
fan device at home. In addition, you can save electricity, by not driving back home if
The term ‘Internet of Things’ is represent electrical and electronic devices, of varying
sizes and capabilities, that are connected to the Internet.The scope of the connections is
a broad array of networking protocols, applications and network domains. The rising of
facilitated by physical objects being linked to the internet by various types of short range
wireless technologies such as Zigbee, RFID, sensor networks, arduino and manymore. IoT
will make the impact of the internet even more pervasive, personal and intimate in daily life.
According to the CISCO Internet Business Solutions Group (IBSG), when more inanimate
objects were connected to the internet than human users, the IoT entity was achieved.
https://slideplayer.com/slide/18089019/
Internet of Things become important part in our daily life, some of the interesting research are.
Zariman, et al 2019, develop a garbage monitoring using Arduino and ESP WiFi that can be
Azahar, et al 2020, develop intelligent egg incubator using Arduino Uno, PIR Sensor,
and ESP8266 that can be used to control the temperature of the incubator.
Ismail, et al 2020, develop smart water level indicator using Arduino Uno, Servo Motor,
and NodeMCU ESP32 that can be used to provide early warnings and control the dam of the
river.
Husin and Hisham,2019 develop smart charger that can be used to control the charging time
Latif, et al 2020, develop smart mirror using Arduino Uno, Raspberry Pi 3, and NodeMCU that
can be used to provide latest news updates while the user do activity in front of mirror.
Ghani and Zariman 2019, develop smart cane to help provide safe navigation for user with vision
disability.
Hazhari, et al 2020, develop smart delivery that help delivery items faster.
Azizi and Zariman,2020 develop health display based on ESP 8266 NodeMCU and pulse sensor
Saidatin, et al 2020, develop automate feeder using ESP 8266 to help feeding birds.
Hermansyah, et al 2020, develop a remote monitoring and control system to switch main energy
Each company is trying to implement their own technology into the market. Internet of Things
(IoT) is the communication platform for light-weight microcontroller based devices. Each
company or industries has its own unique way of implementing IOT based solutions. Some have
their Zigbee based routers needed to communicate with their in-house manufactured devices,
whereas some industries use Wi-Fi as its base wireless network, connected android or iOS
connected with sensors and arduino and bluetooth also widely used for designing IoT based
networks. So, what is important here is fragemented in current times, which include
Wi-Fi, Zigbee, Bluetooth, Arduino, Sensors, and other wireless techniques to from a
* The system is cost-effective and flexible, when compared to CCTV or other methods.
* It works wirelessly.
Nowadays, we can see a lot of research that implied IoT concept. There are many components
NodeMCU is an open source LUA based firmware developed for ESP8266 Wi-Fi chip. By
exploring functionality with ESP8266 chip, NodeMCU firmware comes with ESP8266
consist of ESP8266 Wi-Fi enabled chip. The ESP8266 is a low-cost Wi-Fi chip developed by
based on famous ESP8266 chip, which is a 32-bit controller with built-in WiFi transceiver. And
it is very low cost. Best of all, this board is Arduino IDE compatible, you can utilize the
millions of example code and library on NodeMCU. Besides Arduino IDE or Arduino
programming langauge, NodeMCU supports many other languages like LUA script,
microPython etc. With these scripting languages, you can develop your prototype within a few
script lines.
https://www.google.com/hardware component
1.Access Point (AP) - The Wi-Fi module acts as a wireless network or access point (hence the
name), allowing other devices to connect to it. A bidirectional communication is estab- lished
router used in the home. This allows any device connected at the same Wi-Fi net- work to
3. Access point and station - in this mode, it acts both in AP and STA mode.
In the system I implemented, I used the Wi-Fi module in STA mode, to represent a control point
between the objects connected to the network and the mobile device, also con- nected to the
same network as ESP8266. This module allows the users to create an autono- mous web server
using various libraries by which the client (the mobile application) can efficiently control and
manage the LEDs, light sensor, motion sensor and the stepper motor attached to the gate,
receiving power through the 8-relay module. Thus, through the mobile application that connects
to the HTTP server and sends requests, various responses are re- turned depending on the needs
of each user.
application (for Windows, Mac OS, Linux) that is written in the programming language Java. It
originated from the IDE for the languages Processing and Wiring. It includes a code editor
with features such as text cutting and pasting, searching and replacing text, automatic
indenting, brace matching, and syntax highlighting, and provides simple one click
message area, a text console, a toolbar with buttons for common functions and a hierarchy
of operation menus. The source code for the IDE is released under the GNU General Public
License, version 2. The Arduino IDE supports the languages C and C++ using special rules of
code structuring. The Arduino IDE supplies a software library from the Wiring research,
which provides many common input and output procedures. User-written code only requires
two basic functions, for starting the sketch and the main program loop, that are compiled and
linked with a program stubmain into an executable cyclic executive program with the
GNU toolchain, also included with the IDE distribution. The Arduino IDE employs the
program avrdude to convert the executable code into a text file in hexadecimal encoding that
is loaded into the Arduino board by a loader program in the board's firmware.
https://support.arduino.cc
2.4.3. Breadboard
interconnected metal clips that allow components to be inserted and easily connected. It
promotes rapid experimentation and testing of electronic circuits due to consistent spacing for
DIP (dual in-line package) components. Because of the breadboard’s design, engineers
and hobbyists can quickly prototype and change circuits for efficient electrical
development
https://www.campuscomponent.com
A 4-channel relay module is a versatile electronic component that can control several high-
power devices. Each channel normally provides a switching voltage of 250V alternating current
and a current of 10A, making it appropriate for a wide range of applications. The module is
frequently powered by a low-level input signal (5V) and includes isolation to safeguard
sensitive control circuits. Its four independent relay channels provide an easy-to-use
solution for controlling and automating various electrical loads in applications, including
The Blynk app, built for home automation in this project, provides a dynamic platform
for easy management of smart devices. It is compatible with various microcontrollers and IoT
hardware, allowing users to create customized dashboards for monitoring and controlling
time data visualization, push notification features, and easy connection with top IoT
platforms, solidifying its position as a powerful tool for developing successful and engaging
https://dke.vn/blog/blynk-server-v1
The stepper motor module is used to automate the gates from the front yard. Their control is
done by a simple click, representing a great benefit for the homeowners, since it will be much
easier for them to come into with their cars or if they have luggage and it is not at their fingertips
https://.app.goo.gl/igittAbUQfHKbVpk6
Analog pin 6 1
Flash memory 32 KB 1 MB
SRAM 2 KB 64 KB
EEPROM 1 KB -
The hardware part consists of a digital computer, an Arduino Uno board, Light Detecting
Resistors, motion sensor, an infrared receiver and a transmitter, temperature humidity sensor
https://.app.goo.gl/PmN2HVDB5KiJEUEXA
In a traditional electrical installation, the switch and the lamp are connected by the same wire.
So, to realize an evolutionary lighting system, we used 5 lamps, one reserved for the
garden which will be controlled by a photo-resistance according to the degree of the luminosity
(It will be ON as soon as it gets dark). The other 4 lamps will be controlled manually and by the
application (the application checks the state of the lamps and controls them). Each lamp is
connected to a relay connected to the Arduino, when it is powered by a voltage of 5V; it will
open its contact which will allow the necessary electric current to light the lamp.
2.5.2. The Door Control System
This part requires the use of a driver called L293D to manage the motors. The L293D circuit is
In this system, it was only necessary to use a presence sensor and a buzzer. The sensor detects
the change at the infrared of the objects if there is a change, its value takes 1 otherwise it takes 0.
To calculate the temperature and humidity, the DHT11 sensor was used, which provides a digital
signal proportional to the temperature and humidity measured by the sensor. This ensures high
The motion sensor is based on IR (Infrared) technology and is used to detect the presence of a
human/object at a distance up to 7m. It's use to control the automatic lighting in the garden.
When it gets dark and a person arrive at home or leaves, the LEDs will light up,
The light sensor is a component that is use to retrieves data from the environment and Iused it to
control the lighting system around the house. It detects intensity changes of light, and helps the
users to achieve an optimal energy control along with the motion sensor.
2.5.7. Remote control system
For the remote control system, two components are needed: an infrared receiver and a
transmitter. The receiver is used for the cloning of a remote control and its storage in the
database and the transmitter to use the remotes available on the database. When a button on the
remote control is pressed, it emits an infrared signal that will be captured by the receiver and
with the IRemote library the signal will be converted to hexadecimal or integer.
CHAPTER THREE
METHODOLOGY
The smart home appliance system serves as an interface between user-operated remote controls
(such as smartphones or dedicated remotes) and home electrical devices. This system design
integrates microcontrollers such as Arduino and NodeMCU to manage device control either
manually via a mobile app or automatically using sensors. Each application within the home
automation setup is built with careful consideration for connectivity, control logic, and energy
efficiency.
The block diagram of the complete Smart Home Automation System (SHAS) is presented in
Figure 3.1. The architecture consists of various hardware modules controlled by microcontrollers
(e.g., Arduino Uno, NodeMCU ESP8266), which interface with external sensors and relays.
Wireless communication between the user interface and hardware modules is achieved using
remotely. Through this application, the user can send commands over the internet or local Wi-Fi
network, which are then received and processed by the NodeMCU microcontroller, triggering
https://app.goo.gl/YKwutBKRF1Rv417g9
The proposed smart home automation system is built using low-power electronic components
that focus on controlling and monitoring light current devices such as lights and sensors. The
modules, and an Android mobile interface for remote access. Below is an overview of the key
components involved:
The ATmega328P is an 8-bit AVR microcontroller used to interface and control low-voltage
appliances. It features 32KB flash memory, 1KB EEPROM, and 2KB SRAM. It has several
digital I/O pins, ADC channels, PWM outputs, and serial communication interfaces. In this
system, it acts as the core control unit for switching appliances based on user commands or
sensor inputs. The microcontroller receives serial data via Bluetooth or Wi-Fi and responds by
activating relays to switch lights or read sensor values. A 16 MHz crystal oscillator provides its
clock source.
The NodeMCU is a low-cost microcontroller with built-in Wi-Fi capability, enabling wireless
communication between the central server (or cloud database) and home devices. It is
programmed using the Arduino IDE and supports remote control and monitoring through a
mobile app. In the system, it handles Wi-Fi communication, retrieves control commands from
the cloud, and sends sensor status updates for remote monitoring.
An Android-based mobile application serves as the user interface for controlling the home
automation system. The app is designed to send commands to the microcontroller via Bluetooth
or Wi-Fi and display feedback from sensors. Through this app, the user can turn on/off lights,
monitor environmental conditions, and receive alerts on abnormalities like gas leaks or fire
detection. The app ensures real-time communication and enhances the usability of the system.
The HC-05 Bluetooth module allows wireless serial communication between the smartphone and
the ATmega328P. It operates in slave mode, receiving commands sent from the Android app.
These commands are forwarded to the microcontroller, which then takes the necessary action,
such as switching a light. Since the module communicates using the UART protocol, voltage
level converters are used to match the TTL levels of the microcontroller.
DHT11 Temperature Sensor: Monitors ambient temperature for data logging and alerts.
Flame Sensor: Detects fire and alerts the user through the app and buzzer system.
https://app.goo.gl/qv2gD3xz39BVFQ2A8
This section explains the design and operation of the smart home lighting control system, which
enables users to control household lighting either manually using a smartphone or automatically
through a PIR (Passive Infrared) sensor. Figure 3.2 shows the structure of the lighting control
system. The system allows the user to turn lights ON/OFF or adjust brightness levels through a
dimmer control on a smartphone interface. Dimmers are electronic devices used to regulate the
brightness of lights by adjusting the RMS voltage supplied to the lighting load. Modern dimmer
circuits utilize silicon-controlled rectifiers (SCRs), which offer higher efficiency compared to
older resistive methods. Because an SCR switches between ON (low resistance) and OFF (high
resistance) states, it dissipates very little power. The Arduino Uno microcontroller is used as the
core of the control system. It supports both USB and serial communication, making it suitable
for Bluetooth connectivity with Android applications. A Bluetooth module enables wireless
communication between the Arduino board and a smartphone. The control signal from the phone
is processed by the Arduino, which in turn activates relays connected to light fixtures. The
electrical power is routed through a main control board that houses a voltage regulation and relay
circuit. A transformer and rectifier are used to convert AC to DC voltage, and linear regulators
ensure stable 5V and 3.3V outputs needed by various components. Low-voltage switches are
also integrated for easier installation and user convenience. The system is designed to mount
directly beside existing wall switches. It eliminates the need for extensive rewiring and allows
multiple control boards to be installed across the home. The Android app, developed on versions
2.2 and 4.0.4 (Froyo and Ice Cream Sandwich), provides a simple interface where users can tap
https://www.google.com/imgres?imgurl=x-raw-image
Managing home appliances for comfort and convenience is one of the core objectives of home
automation systems. In this project, emphasis is placed on the intelligent and remote
management of light-current appliances such as electric lights and sensors to create a more
responsive and user-friendly living environment. A good example is the automatic lighting
control based on room occupancy or ambient light level. The system integrates a PIR (Passive
Infrared) motion sensor and/or light sensor to detect human presence and environmental light
conditions. When a user enters a room, the sensor detects motion and sends a signal to the
Arduino microcontroller, which then triggers a relay to switch on the light. When no motion is
detected for a set time, the light is automatically turned off to conserve energy.
1. Closed-loop design – sensors collect environmental data and feed it back to the controller for
2. Sensors – the PIR and LDR (Light Dependent Resistor) sensors serve as input devices to
3. Actuators – relays or solid-state switches are used to turn lights on or off based on control
signals.
4. Microcontroller (Knowledge Base) – Arduino acts as the processing unit that receives sensor
lays the foundation for future expansion. For example, machine learning algorithms could be
integrated in future designs to adapt lighting preferences based on user habits or time of day. By
combining user control (via smartphone) with automated responses (via sensors), the system
enhances home comfort, ensures energy efficiency, and reduces the need for manual switching of
devices.
https://.app.goo.gl/24i2rGj7M6w74meYA
In this section, we illustrate the technique used to calculate RMS (Root Mean Square) values of
voltage and current. For voltage measurement, the ZMPT101B voltage transformer is used. It
converts the AC voltage signal into a DC-biased sinusoidal waveform centered around 2.5V. To
compute the RMS value, 40 samples are taken per cycle (i.e., one sample every 500
microseconds). The RMS value of the measured cycle is then calculated using the following
equation:
process is refreshed every 10 seconds. The same method is used for current measurement, using
Every 10 seconds, the apparent power (S) is calculated and added to the energy variable to track
To calculate the power factor (PF), the system measures the time difference between the voltage
Then,
θ = 18 × N .................................................................... (3.5.4)
The system tracks total energy consumption using the average power and the 10-second refresh
interval:
Another major feature of the home automation system is remote control, which allows users to
manage their appliances even when they are not physically present at home. In the proposed
system, the user can control light-current devices such as electric bulbs, PIR-triggered lighting,
or simple curtain motors through a smartphone application or RF-based remote. For example, if
the user is on their way home and wants the room lights to be switched on before arrival, they
can send a command using the mobile app. The Arduino microcontroller receives this command
via Bluetooth or RF communication module and triggers the appropriate relay circuit to switch
connected to the Arduino listens for authenticated input from the smartphone or remote. While
the current implementation is basic, future improvements may involve encrypted signals to
microcontroller to act based on predefined logic. For instance, a received signal for "Turn On
Light 1" will activate relay 1, while a “Turn Off All” command deactivates all relays.
3. Actuator Unit – The actuator part of the system includes relays or triacs that switch light-
current appliances like bulbs and small motors on or off, based on signals from the
microcontroller.
This remote functionality enhances the convenience and energy efficiency of home appliances,
giving users control over their environment without needing to be physically present.
CHAPTER FOUR
RESULT, TESTING AND DISCUSSION
This chapter presents the testing outcomes, evaluation, and discussion of the implemented smart
home automation system. The system was tested for responsiveness, power measurement, and
control efficiency of connected light-current devices using remote and sensor-based inputs.
Results were recorded, analyzed, and interpreted to verify that the design goals were achieved.
The developed smart home automation system was tested in a controlled environment. The
testing was carried out to evaluate various functionalities of the system, including:
phone tapped
Bluetooth Light Bluetooth paired Light turn OFF Light turned OFF PASS
phone tapped
PIR Sensor No No movement in Light turn OFF Light turned OFF PASS
The smart home system performed successfully during all test cases. The response time from the
smartphone app was nearly instantaneous (under 1 second) due to the use of efficient Bluetooth
communication. The PIR sensor correctly detected human movement and controlled the lights as
intended, enhancing automation and energy saving. Manual switch overrides worked in parallel
with the microcontroller control, offering redundancy and flexibility. Voltage and current
sensing modules (ZMPT101B and ACS712 respectively) provided accurate readings with
tolerances within ±2%, sufficient for real-time monitoring. Power factor measurements and
energy consumption calculations were verified by comparing with standard multimeter and smart
energy meters, and showed over 95% accuracy. This confirms the reliability of the
microcontroller-based energy monitoring approach using RMS sampling and power factor
The flowchart below illustrates the operation of the home automation system. It shows how the
system transitions from standby mode to active control, based on either motion detection or
https://www.researchgate.net/figure/General-flow-diagram-of-mobile-software_fig5_373452372
Start: The system initializes all components including sensors and Bluetooth module.
appliances.
Motion Sensing: If no Bluetooth signal is received, the system checks for motion using
PIR.
Auto Light Control: When motion is detected, lights are automatically turned ON.
Timer Condition: If no motion is detected within a preset timeout, the system turns the lights
OFF.
Manual Override: The system continuously allows manual switches to override any automation
Loop Back: The process repeats for continuous monitoring and control.