Professional Documents
Culture Documents
Project Thesis
Submitted By
February, 2022
Declaration
We declare that this thesis is our original work and has not been submitted in any form for
another degree or diploma at any university or other institute of tertiary education. Information
derived from the published and unpublished work of others has been acknowledged in the text
and a list of references is given.
_______________________________ _______________________________
17-33957-1 17-33936-1
_______________________________ _______________________________
17-33488-1 17-33966-1
The thesis titled “IoT Based Home Automation System” has been submitted to the following
respected members of the board of examiners of the department of computer science in partial
fulfilment of the requirements for the degree of Bachelor of Science in Computer Science on
(23/02/22) and has been accepted as satisfactory.
_______________________________ _______________________________
_____________________________ ______________________________
At first, we would like to thank to Almighty Allah for allowing us to complete this report on IoT-
based home automation with 24 hours monitoring system. we would like to thank the Faculty of
Science & Technology to keep thesis credit in the curriculum of the graduation program and give
us a scope of tasting the flavor of the research field according to our interests. Now, there is a
little effort to show my deep gratitude to our supervisor. We convey our sincere gratitude to our
supervisor Kazi Sadia (Lecturer, Department of Computer Science), she allowed us to research
this project which allow us to gain much knowledge in this field. Her valuable advice and
guidance have always been very helpful. In every phase of this research, her supervision and
guidance shaped this report to be completed perfectly.
Abstract
Home automation systems are becoming increasingly popular as a result of their various
advantages. Using the Internet of Things (IoT) and a night vision camera, this project suggests a
concept for a low-cost home automation system. Many of the planned solutions make it simple to
live in the house. However, this paper focuses on the more sophisticated system. This article
describes how to use motion detection algorithms to turn lights on and off, as well as sensors for
gas detection. The house is organized into four sections, each with its own function and system.
For processing and transferring the input data, the Raspberry Pi (RPi) is employed as the main
controller. The Internet of Things (IoT) offers massive storage for data collected from sensors and
residential appliances. Consumers' lives are made simpler, more pleasant, quicker, and more
secure with a Home Automation System based on the Internet of ThingsThis cutting-edge
technology allows customers to operate their home appliances and equipment from anywhere in
the globe using a web browser and an internet connection. The suggested method is extremely
adaptable and scalable while maintaining excellent accuracy.
Table of Contents
Chapter 1: Introduction
1.1 Introduction 8
1.1.1 IoT & Smart 8
Home/Home
automation.
9
1.1.2 Devices
9
1.2 Motivation
10
1.3 Objective
14
3.1 Introduction
3.2 Proposed Framework 14
Chapter 4: Analysis 20
4.1 Evaluation of Proposed Work 20
4.2 Characteristics Of devices being used 21
4.3 Comparison with Similar Works 24
4.4 Challenges 24
Chapter 5: Conclusion
25
5.1 Future Work 25
5.2 Conclusion 26
Chapter 6: Reference
List of Tables
Chapter 1: Introduction
1.1 Introduction
A home is a place where people spend the majority of their time. As a result, home automation is
being developed to improve people's comfort and quality of life. Home automation is also
referred to as "Demotics," and a home automation system (HAS) is referred to as a "smart home"
or "smart house." The system includes security components such as a fire alarm system, motion
detection, and others. [1].
• Monitoring and Control: The Internet of Things vastly improves the ability to control and
monitor all of the operations that occur in the house.
• Savings in both money and energy: To save money, users can simply optimize their use
and change their smart home settings. They can also delegate all of the functions of their
smart home system to it. Devices that are not in use will be turned off by the system. If
no one is at home, lower the power consumption.
• Impact on the Environment: It reduces energy waste, resulting in lower electricity bills
and energy savings, which help to reduce the negative impact on the environment.
• Improved Safety: A smart home security system is an excellent tool for securing the
property because it provides complete control over everything inside and outside the
home. Motion, smoke, and other sensors, as well as security cameras and smart locks, all
collaborate to notify the user if something goes wrong. Users can monitor what's going
on inside and outside their homes from anywhere in the world.
• Comfort: People have always wished for everything to be more comfortable and
convenient, and IoT in smart homes is perhaps the greatest achievement in this regard. It
is ideal for the task of simplifying and improving the lives of users.
1.1.2 Devices
IR sensor: The IR sensor emits or detects IR radiation to detect specific characteristics in its
surroundings. These sensors can also detect and measure a target's heat as well as its motion. The
IR sensor circuit is a critical component in many electronic devices. This type of sensor is similar
to the visionary senses used by humans to detect obstacles. Some of the advantages of using an
infrared sensor included: Low power consumption, excellent noise resistance, detects motion
whether the light is on or off, rust does not affect these sensors, they do not need to come into
contact with objects for detection, no data leakage due to the directionality of infrared radiation of
ray, these have a smaller size and are more moderate. In comparison to thermocouples, it
responds quickly and has a high level of dependability.
PIR sensor: A passive infrared sensor (PIR sensor) is an electronic sensor that detects the
amount of infrared (IR) light emitted by objects in its field of view. These are most commonly
found in motion detectors that use PIR technology. These are commonly found in security alarms
and automated lighting systems. PIR Sensors have been widely adopted by the open-source
hardware community for projects involving Arduino and Raspberry Pi because they are equipped
with powerful functions at a low cost. In general, PIR sensors can detect animal/human
movement within a specific range determined by the sensor's specifications. The detector does
not emit energy, but rather passively receives and detects infrared radiation from its surroundings.
Raspberry Pi: The Raspberry Pi is a line of single-board computers. They are inexpensive, high-
performance, and the size of a credit card. The Raspberry Pi comes in a variety of configurations,
each with its own set of features. Some Raspberry Pi models include an Ethernet connector for
connecting to the internet. Some models can also connect to the internet via Wi-Fi.
1.2 Motivation
Home automation systems are becoming more popular as a result of technological advancements
and more lively communication. Furthermore, this existing system can be controlled both locally
and remotely. It is also an easy-to-use tool. Smart home automation is used for many different
reasons, including convenience, security, and energy savings. The proposed idea is to develop a
safe automation system. IoT-based home automation systems that use smartphones and laptops to
control home appliances efficiently and easily. If something unusual happens in the house, users
will receive a notification. It is reassuring for a homeowner to know that someone is always
keeping an eye on them. This is especially true for families with elderly members or children who
require special care. Working women can monitor their children continuously through the
automation system from their office easily.
1.3 Objective
This is a proposed idea that will be very difficult to penetrate for any intruder. It will focus both
on controlling home appliances (i.e., fan, lights) and surveillance systems by using night vision
cameras, motion detectors some safety alert sensors such as gas and fire sensors when a user is
not home. The night vision camera with three types of the power system will ensure 24 hours
monitoring of the home. This system is tougher to break, there will be three different power
sources such as the Main grid, IPS, and an alternative solar panel connected to power up the
security system. Some devices will be used in this project such as an IR sensor, PIR sensor,
Raspberry pi as a main board, motion detector, and night vision camera. The primary goal of this
project is to create an unbreakable monitoring system using IoT. This proposed concept is
addressed at the following:(i) propose a continuous monitoring system. (ii)propose an automation
system to ensure security properly (iii) propose a web-based application that can be operated from
anyplace anytime.
Chapter 2: Literature Review
3.1 Introduction
This project tries to implement a home automation project which will be very difficult to
penetrate for any intruder. This project focuses both on controlling home appliances (i.e. fan,
lights) and surveillance system by using night vision camera, motion detectors along with some
safety alert sensors such as gas and fire sensors, when user is not home.
This particular proposed project will be controlled by World Wide Web so it can be accessed by
our user through an internet gateway (mobile, pc, laptop, tab) [1]. This project is unique due to its
dedicated power selecting capability, with three different power sources and a power selector, this
particular home automation project is hard to breach.
Key difference of this project is, we tried to make this project tougher to break, it comes with
three different power sources, main grid, IPS and an alternative solar panel connected to power
up. If anyone succeeds to cut the main grid, this whole project will be able to run for a significant
amount of time by its two alternative power sources, by the time an intruder breaks in thinking
he/she disabled power, our user still gets an alert. We used different sensors such as IR sensors to
control light, PIR sensors to control fan, safety alert sensors like fire and gas sensors along with
night vision camera and motion sensors, this project aims at controlling home appliances via
Smartphone using Wi-Fi as communication protocol and raspberry pi as server system. The user
here will move directly with the system through a web-based interface. Sensors are connected to
Raspberry Pi and Raspberry Pi is connected through router. We can classify our used sensors in
two categories, some sensors will be directly taking commands from user, user will see initial
state from the web first. Then if user wishes to change any state, for example user is seeing that
his fan is still turned on, now if user wishes to turn it off, user will send command through web
portal. Other type of sensors will be sending alert only when its necessary. Such as fire detector,
gas detector sensors and motion detector, if fire detector detects any fire, it will send an alert to
user and then user can take necessary step. In another scenario, motion detector will send alert to
user when it detects any motion, then user can access camera from room to room to check if it’s a
false alert or not, if there is any intruder then user will act.over the web, where home appliances
like lights, fan are remotely controlled through easy website[2]. Raspberry pi will be connected to
all the sensors to control this whole project, whenever user sends a command through web.
When this project is being turned on, power selector device will check if the main grid power is
available. If main grid power is available, our project will be running by main grid line, for some
cases if the main grid power is not available, for example load shedding, or any intruder
successfully disables the main grid power line, in these cases, Power selector will immediately
switch to IPS, Through IPS, our project can run for a significant time, If IPS is not available, then
power selector device will choose solar panel to power up this project. For any reason no power
sources are available which is very unlikely, still in our proposed system, user will get a system
failure notification.
In our proposed system, we have used four sensors, Lights on/off (IR Sensors), Fan on /off (PIR
sensors), Fire/Gas sensor (PIR SENSOR), Motion Detector and lastly, we have used night vision
camera. We can classify our used sensors/devices in two categories. One set of sensors will be
accessible by user. IR, PIR sensors are those types of sensors, these will work by getting a
command from user. Other category sensors will send alert to user when its necessary, like
fire/gas sensors, motion detector.
Case 1 : When user wants to interact with the system –
IR SENSORS (Light on/off) : User will be able to see initial state from the webpage whether
light is on or off, then if user wishes to send a command, that command will be received and
executed by raspberry pi, if user sends command to turn on the light, raspberry pi will receive
that command and by using IR sensors, light will be turned on. If user sends a command to turn
off the light, in same way by using IR sensors raspberry pi will turn off the light. For every room
user can navigate and check from room to room, what is status of each room’s light. If any guest
comes then user can access from web page and turn on light. If user leaves home in a rush then
user suddenly remembers that he/she did not turn off lights may be, user can check from outside
by logging in the web portal and then check each room’s light’s status whether they are on and
off and then take appropriate action according to user’s preference.
PIR SENSORS (Fan on/off) : User will be able to see initial state from the webpage whether
fan is on or off, then if user wishes to send a command, that command will be received and
executed by raspberry pi, if user sends command to turn on the fan, raspberry pi will receive that
command and by using PIR sensors, fan will be turned on. If user sends a command to turn off
the fan, in same way by using PIR sensors raspberry pi will turn off the fan. For every room user
can navigate and check from room to room, what is status of each room’s fan. If any guest comes
then user can access from web page and turn on fan. If user leaves home in a rush then user
suddenly remembers that he/she did not turn off fan may be, user can check from outside by
logging in the web portal and then check each room’s fan’s status whether they are on and off
and then take appropriate action according to user’s preference.
NIGHT VISION CAMERA: Night vision camera will be connected to Raspberry Pi. In idle
mood it will be recording everything. Which will be maintained by the user whether user wants
to keep the data or delete from time to time, but when user wants to see live feed from camera,
user will be able to send command from webpage to access live feed, camera footage will send
its live feed to raspberry pi and through router, raspberry pi will send live footage to user. User
can access live feed on web page easily when user wants. Night vision camera will come in
handy with motion detectors. It will serve total 3 purpose. It will be recording so if a incident
happens user can check recorded footage to obtain required information from camera. Second
night vision camera works well with motion detector, if motion detector sends an alert to user,
user will log in the portal and send command for live feed of camera, then user will check every
camera to determine the threat level, it can be an intruder or it can be a false alert caused by
rodent or non-threatening something. After checking the night vision camera if its an intruder
then user can contact police if its not an intruder user will try to determine what caused this false
alert. Then user may take actions to prevent this type of false alert. For example, false alert came
from rodent then user will get rid of rodents. If false alert came from wind then user will make
sure to seal door or window so that wind does not occur that anymore. Third usage of night
vision camera is related to users. If user want to check his home from time to time, user can
access live feed from web portal and then check every room. Night vision camera works in dark
condition too so user gets usable footage all the time.
MOTION DETECTOR: Motion detector sends an intruder alert to user through raspberry pi if
it detects any motion. After getting the alert user can check live feed from camera to check if his
home is okay or not, if it is an intruder then user can take necessary steps but if its from any
rodent or other non-threaten object, then user can ignore or take steps to stop getting false alerts.
If no motion is detected, motion detector will be in idle mode.
Chapter 4: Analysis
4.4 Challenges
This is a proposed system. While implementing this proposed system we might find some
challenges. First of all, we have focused a lot on the power segment and sensors but with ensuring
this, this is also a costly system to build. We may find another cheap alternative to implement this
project, so that it can be cost effective. Secondly, there is no system which is 100% hack proof.
Our entire system is controlled by raspberry pi and raspberry pi depends on router for internet
connectivity, while building this system we will need to ensure a secured network system, so that
it will be hard to hack or manipulate by any intruder.
Smart home automation is a modern technology that allows to control or monitor home
appliances such as lights, fans, and gas from afar. In today's world, smart home automation
system has become highly popular, particularly in urban areas. For the average person, smart
home automation systems are complicated. It necessitates training for those who are unfamiliar
with smart home technology. Power supply is another important issue with smart home
automation systems. The entire operation will fail if the system fails to give power to the IPS. So,
power supply is the big issue for the entire system to work properly.
Chapter 5: Conclusion
5.2 Conclusion
This system is appropriate for continuous home monitoring, controlling home appliances (i.e.,
fans, lights), and surveillance systems by using night vision cameras, motion detectors, and some
safety alert sensors such as gas and fire sensors when a user is not at home, as well as providing
security to the home using IoT, according to this research paper. The night vision camera with
three types of the power system will ensure 24 hours monitoring and provide security. The
technology uses the internet to regulate home appliances. Some devices will be used in this
project such as an IR sensor, PIR sensor, and Raspberry pi as a mainboard, motion detector, and
night vision camera. The proposed technology could be one of the most effective alternatives to
the old ways of home automation. In addition, the system sends an alarm message via an
application automatically. The messages provide the user the option to take additional actions.
With the use of the internet, you may monitor characteristics like humidity, temperature, light
intensity, gas, fire, and movements from anywhere.
Chapter 6: Reference
[1] Phaklen Ehkan, Nui Din Keraf, Virakwan Hai Kelian, Fazrul Faiz Zakaria."A Proposal of
Low-Cost Home Automation System Using IoT and Voice Recognition" IOP Conf. Series:
Materials Science and Engineering 767 (2020).
[2] Pavithra, D., and Ranjith Balakrishnan. "IoT based monitoring and control system for home
automation." In 2015 global conference on communication technologies (GCCT), pp. 169-173.
IEEE, 2015.
[3] Nerella Ome, Someswara Rao Gaddala." Internet of Things (IoT) Based Smart Home
Automation and Scrutiny System" International Journal for Research in Engineering Application
& Management (IJREAM) ISSN: 2454-9150 Vol-06, Issue-01, Apr 2020.
[4] Venkatesh, K., Rajkumar, P., Hemaswathi, S., & Rajalingam, B. (2018).” IoT based home
automation using raspberry Pi. Journal of adv research in dynamical & control systems”, 10(7),
1721-1728.
[5] Mubarak, Mohamed. (2016).” Internet of Things for Home Automation”. 10.131
HRG.2.2.15237.35046.
[6] Hoque, M.A. and Davidson, C., 2019. “Design and implementation of an IoT-based smart
home security system”. International Journal of Networked and Distributed Computing, 7(2),
pp.85-92.
[7] Al-Kuwari, M., Ramadan, A., Ismael, Y., Al-Sughair, L., Gastli, A. and Benammar, M., 2018,
April. “Smart-home automation using IoT-based sensing and monitoring platform”. In 2018 IEEE
12th International Conference on Compatibility, Power Electronics and Power Engineering (CPE-
POWERENG 2018) (pp. 1-6). IEEE.
[8] Vishwakarma, S.K., Upadhyaya, P., Kumari, B. and Mishra, A.K., 2019, April.” Smart energy
efficient home automation system using iot”. In 2019 4th international conference on internet of
things: Smart innovation and usages (IoT-SIU) (pp. 1-4). IEEE.
[9] Gupta, P. and Chhabra, J., 2016, February. “IoT based Smart Home design using power and
security management”. In 2016 International Conference on Innovation and Challenges in Cyber
Security (ICICCS-INBUSH) (pp. 6-10). IEEE.
[10] Mahamud, M.S., Zishan, M.S.R., Ahmad, S.I., Rahman, A.R., Hasan, M. and Rahman, M.L.,
2019, January. “Domicile-an IoT based smart home automation system”. In 2019 International
Conference on Robotics, Electrical and Signal Processing Techniques (ICREST) (pp. 493-497).
IEEE.
[11] Hidayat S and Firmanda S F (2015).” “Scheduler and voice recognition on home automation
control system”. 3rd IEEE Int. Conf. on Information and Communication Technology, p 150–
155.
[12] Vikram N, Harish K S, Nihaal M S, Umesh R, Shetty A and Kumar A (2017).” A Low-Cost
Home Automation System Using Wi-Fi Based Wireless Sensor Network Incorporating Internet of
Things (IoT)”. IEEE 7th Int. Advance Computing Conf. (IACC), p 174–178.
[13] Sadi Mahmud, Safayet Ahmed, Kawshik Shikder” A Smart Home Automation and Metering
System Using Internet of Things (IoT)." 2019 International Conference on Robotics, Electrical,
and Signal Processing Techniques (ICREST).
[14] Kalyani Pampattiwar, Mit Lakhani, Rinisha Marar, And Rhea Menon." Home Automation
Using Raspberry Pi Controlled Via an Android Application" International Journal of Current
Engineering and Technology, Vol.7, No.3 (June 2017).
[15] Al-Ali, Abdul-Rahman, and Mohammad Al-Rousan. "Java-based home automation system."
Consumer Electronics, IEEE Transactions on 50.2 (2004): 498-504.
[16] Moreno, M., et al. "A holistic IoT-based management platform for smart environments."
Communications (ICC), 2014 IEEE International Conference on. IEEE, 2014.