Professional Documents
Culture Documents
by
in
Chennai – 600127
OCTOBER 2020
2
BONAFIDE CERTIFICATE
Associate Professor
ABSTRACT
A living room automation system that involves a node red based system that
controls various devices present in the room with an added security feature
in order to prevent entrance to undesirable elements not only brings about
ease of life, but contact less operation of devices in today’s world also
prevents spread of disease through these surfaces, reducing the risk of
infection. In order to further recue the chance of contracting diseases spread
through the air, the project accounts for a mask detection system, without
which a visitor is not permitted into the house.
This project involves the usage of multiple sensors for the control of the
various applications that will be controlled remotely upon a person entering
the room, with the option of manual control also available to the user, in
order to suit the convenience of the user.
4
ACKNOWLEDGEMENT
We wish to express our sincere thanks and deep sense of gratitude to our project
guide, Dr. Berlin Hency.V, Associate Professor, School of Electronics
Engineering, for his consistent encouragement and valuable guidance offered to
us in a pleasant manner throughout the course of the project work.
We express our thanks to our Head of the Department Dr. Vetrivelan. P for his
support throughout the course of this project.
We also take this opportunity to thank all the faculty of the School for their
support and their wisdom imparted to us throughout the course.
We thank our parents, family, and friends for bearing with us throughout the
course of our project and for the opportunity they provided us in undergoing
this course in such a prestigious institution.
TABLE OF CONTENTS
1 INTRODUCTION 6
1.1 OBJECTIVES AND GOALS 6
1.2 APPLICATIONS 6
2 PROPOSED 7
ARCHITECTURE
3 3 SOFTWARE 8-15
1. INTRODUCTION
1.2 APPLICATIONS
- In all forms of life, with the advancement in IoT the number of simple
tasks to be done by humans actively can be reduced in order to bring
about ease of life. This project can be implemented in houses and
public spaces in order to facilitate easy operation of appliances
without the active human interference. Further, the layer of security
ensures safety is ensured
2.PROPOSED ARCHETECTURE
7
8
3.SOFTWARE
We Have used Node-red for the project which is a flow-based development tool
for visual programming developed originally by IBM for wiring together
hardware devices, APIs and online services as part of the Internet of Things.
We have used four different flows and all are connected with MQTT which
works on publish-subscribe based messaging protocol.
In this flow we take a password from the user and if he enters a wrong password
then an Email will be sent to the owner. Here we have used
domiyob136@gmajs.net as a temporary Email. And If he enters the correct
password the door status will be updated as open and the owner will get a Email
message.
The DoorStatus and lockdoor are MQTT nodes which are used to communicate
with other flows. The form node is used to accept the password from the user
and Password Status node is used to display if the password is correct or wrong
and the Door node is used to display if the door is open or closed. Taking input
and displaying the status is done in the dashboard.
9
The password field will take an password as input and the Password status and
Door status will be updated depending on the password.
Wrong Password:
The door won’t open as the password is wrong and an Email notification will be
sent.
Correct Password:
10
As the password is correct it displays the message correct password and the
door status gets updated. An Email notification will be sent to the owner.
Email Notification
Here are the outputs for the successful opening of the door and failed attempt as
well.
The Email is sent using an Email node which can be downloaded using npm
package manager.
11
This flow is used if a guest has come for a visit. Here the guest can see if the
owner is there or not from the dashboard. If the owner is there the guest can
enter his name and the owner will be notified that someone has come for a visit.
If the owner is not at available then the guest can send a message with his name
and it will be sent to the owner.
All the inputs and the status will be displayed in the dashboard.
Here the owner is at his home so the guest has to enter his name and the
owner will be notified with an Email and also in his dashboard
(Dashboard for flow 4).
14
Flow 3:
In this flow we get values for turning the lights and fan on or off. And the
values are passes as an JSON file to the next flow with MQTT node
(homesensors). The temperature values is generated randomly (which is similar
to the values provided in a temperature sensor) which is also the first parameter
in JSON file and the time (which is the actual time and not randomly generated)
is passed as a second parameter in the JSON file.
Flow 4:
15
In this flow all the values from the homesensors is converted into an JavaScript
object and are then used to turn on the lights and fan and all the inputs like the
guest name are displayed in the dashboard. The owner can control the door
lights and fan manually with a single click.
The lights will turn on when its 5PM and the fan will turn on when the
temperature is greater than 20 °C and it can manually be turned on or off by
toggling the button
A message with name of the guest is displayed here which is similar to the
Email. And the owner can open or closed the door by toggling the button and
the status will also be updated in the dashboard for the flow1.
16
If the owner has closed the door it gets updated in the dashboard for flow 1:
Flow:
Upon capturing the image of the person, it detects whether he/she is wearing a
mask. If they are wearing a mask they are given access, else it insists them to
wear one before trying again. Then it proceeds to accept the guests details such
as name and reason for visit upon successfully detection a mask.
17
Sensor Values
Flow 1:
This flow obtains values from the sensor which is inturn fed to the admin flow
mentioned below which can automatically control the working of fans and
lights in the house. They can be manually adjusted by the user as well using the
dashboard.
Admin Flow:
19
4. CONCLUSION
The Project makes use of node red flows in order to simulate a living room
operation, involving operation of various devices depending on the sensor
activation for each of them and an added layer of security in order to prevent
loss of safety.
The above flow diagrams depict the working of the project for various cases,
namely the presence or absence of the owner in the house, which alters the
operation of the security. In addition to security features, a system in order to
detect the presence or absence of a mask in the individual seeking to ensure the
house is put in place to prevent spreading of infectious diseases.
Apart from this, the flow diagrams also depict the operation of the appliances
and the conditions to be met by the sensors for the operation of each of these
appliances. Further, each of these interfaces also show an option to manually
change the state of the device without the use of sensor activation, thus enabling
user control over the appliance in order to remove total dependency on the
sensor which could prove problematic in the event that the sensor does to
operate as it is required to.
21
BIODATA
E-mail : anshumaan.shankar2018@vitstudent.ac.in
E-mail : amshuman.gopal2018@vitstudent.ac.in
Name :
Mobile Number :
E-mail :