Mini Project On: Bangalore Institute of Technology

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 33

Bangalore Institute of Technology

K R Road, V V Pura, Bengaluru – 560004


Department of Electronics and Instrumentation Engineering

Mini Project on
Home Automation and Security using IoT
Submitted By
Anirban Das 1BI19EI005
Hitesh Hatwar B S 1BI19EI015
K S Subramanian 1BI19EI016
Tanya Thaker 1BI19EI040

Mini Project Coordinator Project Guide Head of Department


Prof. Venkatesh Murthy N K Prof. Anjan Kumar B S Dr. H N Suresh
Assistant Professor Assistant Professor Professor and Head
Department of E&IE Department of E&IE Department of E&IE
TABLE OF CONTENTS
SL. NO. CONTENTS SLIDE NO.
1. ABSTRACT 03
2. LITERATURE REVIEW 04
3. PROBLEM IDENTIFICATION 05
4. OBJECTIVE 06
5. INTRODUCTION 07-09
6. BLOCK DIAGRAM-SOFTWARE 10
7. BLOCK DIAGRAM-HARDWARE 11
8. COMPONENTS 12-15
9. METHODLOGY-FLOWCHART 16
10. METHODLOGY-STEPS 17
FINAL OUTCOME/CODE SNIPPET/ ADVANTAGES/
11. 18-29
LIMITATIONS
12. APPLICATIONS 30
13. FUTURE SCOPE 31
14. CONCLUSION 32
ABSTRACT

• Well, the goal of our project is to make a device that would directly fit into the existing classic old-school switches in any
household. The idea is to make use of the IoT concept in the Home automation environment and also to provide some
amount of security against theft.

• The proposed system tackles these two problems very effectively, as the entire system will be a direct application that fits
into the centre of the existing network of old appliances, and also provide scope to expand the automation features for the
future appliances.

Department of Electronics and Instrumentation Engineering


LITERATURE REVIEW

YEAR AUTHORS CONTENT

2018 Sudha Kousalya, G. Reddi Priya IOT Based Smart Security and Smart Home Automation IoT
interfaced with Arduino and NodeMCU.
Advantage: Low Power, Easy Installation
Disadvantages: Less Scalability

2020 Mubasir Ali, Zarsha Nazim An IoT based Approach for Efficient Home Automation with
ThingSpeak- A comprehensive IoT setup using Arduino connected to
ThingSpeak MQTT Server.
Advantage: Compact
Disadvantages: No Sample Case

2021 J. Vijaya Kumari, Pavithra Neelam IOT Based Smart Home Automation System
Local hosted IoT using NodeMCU.
Advantage: Low Power, Easy Installation
Disadvantages: Can’t be used for centralising the network.
PROBLEM IDENTIFICATION

Because there is a requirement for two distinct automation and security modules and services.
We have no choice but to replace all existing gadgets with smart devices that will be
automated. Updating real-time data also aids in keeping track of the current state of all linked
devices. Existing industrial automation solutions have the issue of interfacing, which
necessitates the purchase of a new device after the setup is complete.
Product name with drawbacks: Alexa, Google Home, Philiphs Smart Bulb

Department of Electronics and Instrumentation Engineering


OBJECTIVES

• The main objective of the project is that the users will be able to log in to the database and
get all the necessary information about the current working state of the device without
needing to send any requests.
• A user will be able to switch ON or OFF home appliances, through the website in a
centralized form.
• They will get a security alert in case of a breach in the house.
• Reducing the economic impact on user when they wish to implement home automation
solutions.

Department of Electronics and Instrumentation Engineering


INTRODUCTION

• The Internet of Things (IoT) is the technology that connects everything. The devices are cleverly
linked together, enabling new forms of communication between people and objects, as well as
among themselves.
• IoT has been widely used, for example, in Agriculture, Smart Home, Comfort, Safety, Security, and
Energy. People's needs are increasing these days. They all need to be able to control everything
with one hand. They require a safe, secure, and intelligent house.
• IoT is network of interconnected computing devices which are embedded in everyday objects,
enabling them to send and receive data. Over 9 billion ‘Things’ (physical objects) are currently
connected to the Internet, as of now. In the near future, this number is expected to rise to a
whopping 20 billion.

Department of Electronics and Instrumentation Engineering


INTRODUCTION

Main components used in IoT:

• Low-power embedded systems


• Sensors
• Cloud computing
• Control Units
• Networking connection

• a. Different types of Sensors: Temperature Sensors, Image Sensors, Gyro Sensors, Obstacle
Sensors, RF Sensor, IR Sensor, MQ-02/05 Gas Sensor, LDR Sensor, Ultrasonic Distance Sensor

Department of Electronics and Instrumentation Engineering 0


BLOCK DIAGRAM

Fig: Schematic Block Diagram of Project Blueprint


Department of Electronics and Instrumentation Engineering
BLOCK DIAGRAM

Fig: Schematic Block Diagram of the Prototype

Department of Electronics and Instrumentation Engineering


COMPONENTS
The hardware components required for Home Automation and Security mini-
project are:
• Raspberry Pi
• MQ2 Flammable Gas and Smoke Detector
• PIR Motion Sensor
• IR Proximity Sensor
• HC-SR04 Ultrasound Distance Sensor
• MG995 Servo Motor
• Stepper Motor
• Analog Switch
• 5V Adapter
• Piezo Buzzer
Department of Electronics and Instrumentation Engineering
MICROCOMPUTER: RASPBERRY-PI

In this Home Automation and Security using Raspberry Pi, it is used for the intelligent control of this
system.

• All of them feature a Broadcom system on a chip (SoC) with an integrated ARM-compatible
central processing unit (CPU) and on-chip graphics processing unit (GPU).
• RPi also houses on the board HDMI port, 3.5 mm analogue audio/video jack, 4X USB 2.0,
Ethernet, Camera Serial Interface, Display Serial Interface.
• One of the most popular OSs used for the Raspberry Pi is the Raspbian Operating system. It is
based on the Debian OS, optimized for the RPi hardware.
• It has Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz.

Department of Electronics and Instrumentation Engineering 9


MICROCOMPUTER: RASPBERRY-PI

Fig. Pin Layout of Raspberry Pi Fig. Block Diagram of Raspberry Pi

Department of Electronics and Instrumentation Engineering 9


HARDWARE COMPONENTS

Fig. Gas Sensor Fig. PIR Motion Sensor Fig. IR Proximity Sensor Fig. Ultrasound Distance Sensor

Fig. Servo Motor Fig. Stepper Motor


Department of Electronics and Instrumentation Engineering
METHODOLOGY-FLOWCHART

Department of Electronics and Instrumentation Engineering


METHODOLOGY

Step 1: Interfacing the Raspberry Pi enhancement kit with various sensors and actuators.

Step 2: Authentication of the user using the authentication ID or API key and connecting the Dev-
Board to the Firebase.

Step 3: Reading the current state of devices and send the data to the Firebase-Realtime Database.

Step 4: Updating the data from Firebase-Realtime Database onto the website and sending control
commands to the Dev-Board through the Firebase-Realtime Database.

Department of Electronics and Instrumentation Engineering


FINAL OUTCOME
• The motion sensors give low if any motion is detected.
• The HC-SR04 measures the distance of the door from the sensors and determine if its fully closed partially
closed or fully open
• The MQ2 sensors detect if any gas leakage is present or not.
• The proximity sensors determine if the window is closed or not.
• The led1(switch activated and website activated), led2(Motion activated and website activated) are working
according to the use case.
• The relay is being triggered successfully either with LEDs or individual activation.
• All these data is sent to the firebase and the Real-Time-Database is being updated successfully every 2sec.
• The website when launched through VScode live-server connects to the firebase and gets and sets updates
successfully.
Department of Electronics and Instrumentation Engineering
FINAL OUTCOME

Fig. Module Design (Left-View) Fig. Module Design (Right-View) Fig. Module Design (Sensors)

Department of Electronics and Instrumentation Engineering


FINAL OUTCOME

Fig. Outputs

Department of Electronics and Instrumentation Engineering


FINAL OUTCOME

Fig. Login/Signup Page

Department of Electronics and Instrumentation Engineering


CODE SNIPPET-HARDWARE

Department of Electronics and Instrumentation Engineering


CODE SNIPPET-FRONTEND

Department of Electronics and Instrumentation Engineering


CODE SNIPPET-FRONTEND

Department of Electronics and Instrumentation Engineering


CODE SNIPPET-BACKEND

Department of Electronics and Instrumentation Engineering


CODE SNIPPET-BACKEND

Department of Electronics and Instrumentation Engineering


CODE SNIPPET-FIREBASE

Department of Electronics and Instrumentation Engineering


ADVANTAGES

Home Automation and Security mini-project plays an important role for conserving the overall
consumer cost by centralizing the home automation system through a web-application, prototype and
server and it also increases the home security. Here some advantages are mention below:
• Increases Security
• Highly Centralized
• Cost-Effective
• Better use of available resources and assets.
• Increased energy efficiency.
• Improved appliance functionality

Department of Electronics and Instrumentation Engineering


LIMITATIONS

There are some limitation or drawback of this project below mentioned:

• Complex Installation
• Dependency on Professionals
• Dependency on Internet
• Lack Of Public Awareness And Social Responsibility

Department of Electronics and Instrumentation Engineering


APPLICATIONS

• This mini-project acts as a centralized hub for all the appliances one wish to automate.
• The presence of cameras, motion sensors, and other couple of sensors ensures the security updates by
reporting the breach.
• If one wishes to reduce the overall implementation cost of the system, the mini project is the best to
use.
• It can assist in the smarter control of homes and cities via mobile phones. It enhances security and
offers personal protection.
• By automating activities, it saves us a lot of time.
• Information is easily accessible, even if we are far away from our actual location, and it is updated
frequently in real time.
Department of Electronics and Instrumentation Engineering
FUTURE SCOPE

• Use of Raspberry Pi ensures the future prospect for utilizing powerful AI algorithms for better
security and control.
• The state of room (example- temperature, lighting) will change according to personalized
choices and preferences an individual.
• Will reduce the overall home automation implementation cost as compared to the current
market standards.
• Use of proprietary website to reduce the 3rd party charges.

Department of Electronics and Instrumentation Engineering


CONCLUSION

Based on all the research and survey of this project we come to the conclusion which is mentioned
below:

• The results of our project work support our hypothesis that the Home Automation and Security
mini-project would play an important role by solving the problem of overall consumer cost by
centralizing the home automation system through a web-application, prototype and server and
it also increases the home security and will solve the power consumption problem.

• The final conclusion drawn from our project work is that the prototype is very efficient and it
can be used in Indian households.

Department of Electronics and Instrumentation Engineering


REFERENCES

1) “IoT Based Smart Security and Home Automation System” Ravi Kishore Kodali, Vishal Jain, Suvadeep Bose and
Lakshmi Boppana Department of Electronics and Communications Engineering National Institute of
Technology, Warangal

2) Waheb A. Jabbar, Mohammed HayyanAlsibai, NurSyaira S. Amran, and Samiah K. Mahayadin, “Design and
Implementation of IoT- Based Automation System for Smart Home”, 19 June 2018

3) Dhiraj sunehra, M.Veena, “Implementation of interactive home automation systems based on Email and
Bluetooth technologies”, 2015 International Conference On Information Processing, Vishwakarma Institute of
Technology, Dec 16-19,2015

4) Application of Firebase in Android App Development-A Study Chunnu Khawas Department of Computer
Applications Sikkim University Gangtok, India Pritam Shah Department of Computer Applications Sikkim
University Gangtok, India

Department of Electronics and Instrumentation Engineering

You might also like