You are on page 1of 21

1

ADAPTIVE HOME AUTOMATION SYSTEM

by

ANSHUMAAN SHANKAR 18BEC1028


AMSHUMAN GOPALAKRISHNAN 18BEC1075
SANJAY THOLANI 18BLC1090

A project report submitted to

Dr. BERLIN HENCY.V

SCHOOL OF ELECTRONICS ENGINEERING

in partial fulfilment of the requirements for the course of

ECE3501 – IoT FUNDAMENTALS

in

B.Tech. ELECTRONICS AND COMMUNICATION


ENGINEERING

Vandalur – Kelambakkam Road

Chennai – 600127

OCTOBER 2020
2

BONAFIDE CERTIFICATE

Certified that this project report entitled “LIVING ROOM


SIMULATOR” is a bonafide work of ANSHUMAAN SHANKAR –
18BEC1028, AMSHUMAN GOPALAKRISHNAN – 18BEC1075,
SANJAY THOLANI – 18BLC1090 who carried out the Project work
under my supervision and guidance for ECE3501 -IoT
FUNDAMENTALS.

Dr. BERLIN HENCY.V

Associate Professor

School of Electronics Engineering (SENSE),

VIT University, Chennai

Chennai – 600 127.


3

ABSTRACT

With the advancements in IoT being multifold, simplification of the daily


life of human becomes possible through performing common operations
without active intervention by the use for the same. Simple tasks that do not
necessarily require human intervention can be programmed to occur
depending on the criterion to be satisfied for the given task to be done.

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 are extremely grateful to Dr. Sivasubramanian. A, Dean of School of


Electronics Engineering, VIT Chennai, for extending the facilities of the School
towards our project and for her unstinting support.

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.

ANSHUMAAN AMSHUMAN SANJAY


5

TABLE OF CONTENTS

SERIAL TITLE PAGE


NO. NO.
ABSTRACT 3
ACKNOWLEDGEMENT 4

1 INTRODUCTION 6
1.1 OBJECTIVES AND GOALS 6
1.2 APPLICATIONS 6

2 PROPOSED 7
ARCHITECTURE

3 3 SOFTWARE 8-15

3.1 WORK FLOWS AND 8-17


OUTPUT SNAPSHOTS
4 CONCLUSION AND 16
FUTURE WORK
4.1 RESULT, CONCLUSION 16
AND INFERENCE
4.2 FUTURE WORK 17
5 REFERENCES 22
6

1. INTRODUCTION

1.1 OBJECTIVES AND GOALS

- Design a IoT system that is used to remotely access various devices


with an added security layer for safety
- Detect the presence of an individual in order to activate security
measures, requiring a password for entry into the room.
- Check for the presence of a mask with the individual, in order to
ensure the safety of all concerned from being susceptible to infectious
diseases that spread through the air.
- Design a room fitted with appliances that are connected to sensors
which automatically turn the appliance on whenever the sensor is
activated.
- Design a User Interface that gives real time updates about device
operation and notifies the owner of the house about any changes in the
house, including entry by persons.

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.

Flow 1 (Entrance Door):

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

Dashboard for Flow 1:

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

Flow 2(Guest Entrance):

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.

Dashboard for Flow 2

1. If the owner is not in the home


The status is displayed and it asks for the guest to enter his name and also
a message when the guest submits both the details the owner receives a
Email.
12
13

2. If the owner is at home:

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.

Dashboard for Flow 4 (Dashboard for the owner):

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:

Mask Detection for Visitors

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

Dashboard for Mask Detection:


18

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

Dashboard for Admin Flow:


20

4. CONCLUSION

4.1 RESULT AND 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

Name : ANSHUMAAN SHANKAR

Mobile Number : +91 9790973844

E-mail : anshumaan.shankar2018@vitstudent.ac.in

Name : AMSHUMAN GOPALAKRISHNAN

Mobile Number : +91 8925622099

E-mail : amshuman.gopal2018@vitstudent.ac.in

Name :

Mobile Number :

E-mail :

You might also like