0% found this document useful (0 votes)
43 views25 pages

Final IIot Project Report

Uploaded by

aashrithsai7.dkm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views25 pages

Final IIot Project Report

Uploaded by

aashrithsai7.dkm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

SMART HOME SECURITY SYSTEM

A PROJECT REPORT
Submitted by
D SAI SUBRAHMANYA AASHRITH 221801120002
S SRIVALLI 221801380029
PRAVEEN 221801380021
SAI KIRAN 221801380034
BALA SAI 221801120005
3

in partial fulfilment for the award of the degree of

BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE AND ENGINEERING

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

SCHOOL OF ENGINEERING AND TECHNOLOGY


VIZIANAGARAM CAMPUS
CENTURION UNIVERSITY OF TECHNOLOGY AND MANAGEMENT
ANDHRA PRADESH
NOVEMBER 2023

1
BONAFIDE CERTIFICATE

Certified that this project report “Smart Home Security System” is the bonafide work of
D Sai Subrahmanya Aashrith(221801120002), Srivalli (221801380029),
Praveen(221801380021),Sai Kiran(221801380034),Bala sai(221801120005) who
carried out the project work under my supervision. This is to further certify to the best of my
knowledge, that this project has not been carried out earlier in this institute and the
university.

SIGNATURE
(Dr. P. A. SUNNY DAYAL)
Associate Professor of Electronics and Communication Engineering

Certified that the above-mentioned project has been duly carried out as per the
norms of the college and statutes of the university.

SIGNATURE
(Dr. P. SUBRAT KUMAR PARIDA)

HEAD OF THE DEPARTMENT


Professor of Computer Science and Engineering

DEPARTMENT SEAL

2
DECLARATION

I hereby declare that the project entitled “ Smart Home Security System” submitted

for the “Subject Project” of 3rd semester B. Tech in Computer Science and

Engineering is my original work and the project has not formed the basis for the

award of any Degree or any other similar titles in any other University / Institute.

Name of the Student: D Sai Subrahmanya Aashrith

Signature of the Student:

Registration No: 221801120002

Place: VIZIANAGARAM

Date: 25-11-2023

3
ACKNOWLEDGEMENTS

I wish to express my profound and sincere gratitude to Dr. P. A. Sunny


Dayal, Department of Electronics and Communication Engineering, SoET,
Vizianagaram Campus, who guided me into the intricacies of this project
nonchalantly with matchless magnanimity.
I thank Dr. P. Subrat Kumar, Head of the Dept. of Department of
Computer Science and Engineering, SoET, Vizianagaram Campus and Dr. P.
A. Sunny Dayal, Dean, School of Engineering and Technology, Vizianagaram
Campus for extending their support during Course of this investigation.

I would be failing in my duty if I don’t acknowledge the cooperation


rendered during various stages of image interpretation by Dr. P.K. Mohanty,
Vice-Chancellor.

I am highly grateful to my project guide and my project team


members who evinced keen interest and invaluable support in the progress and
successful completion of my project work.
I am indebted to faculty of Computer Science and Engineering for
their constant encouragement, co-operation and help. Words of gratitude are
not enough to describe the accommodation and fortitude which they have
shown throughout my endeavour.

Name of the Student: D Sai Subrahmanya Aashrith

Signature of the Student:

Registration No: 221801120002

Place: VIZIANAGARAM

Date: 25-11-2023

4
` i
ABSTRACT

Revolutionizing home security, our SmartGuard System dynamically activates a chime and LED
display upon detecting motion, offering a visually striking and sonically pleasant alert. This
innovative system employs a SIM900A module for autonomous phone call initiation, swiftly
notifying homeowners of potential security events with seamless motion detection and automated
notifications. The SmartGuard System represents a paradigm shift in home security, delivering
unparalleled sophistication and ease of use.With its integration of cutting-edge technology, the
SmartGuard System ensures real-time monitoring and instant response, empowering homeowners
with a heightened sense of security. Through its user-friendly mobile application, users can
remotely access and control the system, providing an unprecedented level of convenience and
peace of mind. The SmartGuard System redefines the landscape of home security, setting a new
standard for comprehensive and intelligent protection.Designed with privacy in mind, the
SmartGuard System employs advanced encryption protocols, safeguarding sensitive data and
ensuring secure communication between devices. Its modular architecture allows for seamless
scalability, accommodating the evolving needs of homeowners.

` ii

5
Table of Contents
ACKNOWLEDGEMENTS...........................................................................................I
ABSTRACT................................................................................................................... II
CHAPTER 1: INTRODUCTION................................................................................. 8
1.1 PURPOSE.................................................................................................................. 8
1.2 INTENDED AUDIENCE+............................................................................................. 8
1.3 SCOPE...................................................................................................................... 9
CHAPTER 2: LITERATURE SURVEY..................................................................... 10-11
CHAPTER 3: OVERALL DESCRIPTION.................................................................6
3.1 EXISTING SYSTEM: -..................................................................................................12
3.1.1 Proposed System:-...........................................................................................12
3.1.2 Operational Environment................................................................................12
3.1.3 User Characteristics:......................................................................................13
3.1.4 System Requirements Specification.................................................................13
3.1.5 Functional Requirements.................................................................................13
3.1.6 Non- Functional Requirements........................................................................13
3.1.7 Hardware Requirements..................................................................................14
3.1.8 Software Requirements....................................................................................14
3.2 UML DIAGRAMS......................................................................................................14
3.2.1 Usecase Diagram..........................................................................................15
3.2.2 Sequence Diagram.........................................................................................16
3.2.3 Flow Chart.....................................................................................................17
CHAPTER 4: SAMPLE CODE..................................................................................18-
................................................................................................................................
CHAPTER 5: MODEL AND OUTPUTS……………………………………………
CHAPTER 6.CONCLUSIONS................................................................................... 23
REFERENCES............................................................................................................. 24

6
` iii
LIST OF FIGURES

Fig 3.1.Showing Use Case Diagram.............................................................................. 10


Fig 3.2 Showing Sequential Diagram.............................................................................11
Fig 3.3 Showing Flow chart of the project.....................................................................12
Fig 5.1 :Our Model Demo1……………………………………………………………………20
Fig 5.2 :Our Model Demo2……………………………………………………………………20
Fig 5.3 :Our Model Demo3……………………………………………………………………20
Fig 5.4 :Output1………………………………………………………………………………….21
Fig 5.5 :Output2………………………………………………………………………………….21

7
` iv
CHAPTER 1: INTRODUCTION

The Smart Home Security System, equipped with a PIR sensor, triggers a buzzer and red LED
upon detecting motion, providing immediate audible and visual alerts. This system goes beyond
conventional measures by autonomously initiating a phone call through a SIM900A module,
ensuring homeowners receive real-time notifications of potential security breaches. To streamline
user experience, the call is intelligently terminated after a predefined duration, presenting a
comprehensive and user-friendly smart home security solution.

1.1 Purpose

The project aims to create a Smart Home Security System using Arduino and a SIM800L
module. The system incorporates a PIR sensor for motion detection, triggering visual and audible
alerts. The SIM800L module facilitates autonomous phone call initiation, notifying homeowners
of security breaches. The code establishes communication between the Arduino and SIM800L,
checks SIM card status, and initiates a call if motion is detected. The project focuses on
enhancing home security through real-time notifications and user-friendly integration, providing
a robust and accessible solution for modern households.
1.2 Intended Audience
The intended audience for this project is individuals interested in implementing a do-it-yourself
(DIY) smart home security system. This includes enthusiasts with a basic understanding of
programming and electronics who seek a customizable and affordable solution for enhancing
their home security.
Tech-Savvy Homeowners:
Homeowners seeking a heightened sense of security through the integration of technology,
especially those with a basic understanding of programming and electronics.
Hobbyists and Makers:
Those who enjoy hands-on projects and tinkering with electronics, looking for an accessible
entry point into the world of smart home technology.
Amateur Makers:
Individuals new to electronics and programming, drawn to a project that serves as a practical
introduction to building and customizing electronic systems.
Security-Conscious Individuals:
People who prioritize security in their living spaces and appreciate the fusion of motion detection
with real-time mobile notifications for prompt response to potential threats.

8
1.3 Scope

The scope of our Smart Home Security System project extends beyond traditional security
measures by offering a scalable platform for integrating various sensors and technologies. With
potential enhancements such as cloud connectivity, home automation integration, and
community-based features, the project has the flexibility to evolve with emerging smart home
trends. Its open-source nature and compatibility with a diverse range of devices position it as a
versatile solution, providing a broad scope for expansion and customization in response to
evolving user needs and technological advancements.

9
` 2

CHAPTER 2:
LITERATURE SURVEY

1.Object Detection Frameworks:


- The use of YOLOv3 and similar algorithms in traffic-related applications suggests their
efficacy in real-time object detection. This can inspire confidence in the chosen object detection
methods for your security system.

2. Integration of Tracking Algorithms:


- Several studies emphasize the integration of tracking algorithms with object detection models.
This integration can enhance your system's ability to track and monitor detected objects over
time, improving overall security capabilities.

3. Real-Time Capabilities:
- The emphasis on real-time object detection and tracking aligns with the need for immediate
responses in security scenarios. Ensuring that your system operates in real-time can be a critical
aspect of its effectiveness.

4.Community-Based Security Concepts:


- While the literature focuses on traffic-related applications, the concept of community-based
security networks could inspire features that foster collaboration and shared security information
among users of your system.

5. Adaptability to Varying Lighting Conditions:


- Insights from improved lane detection in low-light conditions may inform considerations for
enhancing your system's adaptability to different lighting scenarios, ensuring reliable
performance in various environments.

6. Comparative Analysis of Image Processing:


- Considerations from comparative analyses of image processing algorithms may guide
optimization strategies for your system, enhancing processing efficiency and performance.

7.Safety Features and Collision Avoidance:

10
- The focus on collision avoidance in autonomous systems suggests the importance of safety
features. Integrating such features, even on a smaller scale, could enhance the security system's
ability to respond to potential threats.

8. Lane Detection Concepts for Boundaries:


- Insights from lane detection models could inspire considerations for defining boundaries or
tracking movement within the monitored space, especially relevant for outdoor surveillance.

9. Considerations for Cloud Integration:


- Projects utilizing cloud technology for big data and machine learning could offer inspiration
for potential enhancements, such as remote monitoring, data storage, or advanced analytics in
your security system.

10. Optimizing Processing Efficiency:


- Comparative analysis of image processing algorithms may guide strategies to optimize the
processing efficiency of your system, ensuring effective and timely security alerts.

11
CHAPTER 3: OVERALL DESCRIPTION

The SmartGuard System is an innovative IoT-based home security solution designed to


revolutionize traditional surveillance methods. Equipped with a PIR sensor, it activates visual
and audible alerts upon detecting motion, ensuring real-time monitoring. The integration of a
SIM900A module enables autonomous phone call initiation, providing homeowners instant
notifications of potential security breaches. The system offers a user-friendly mobile application
for remote access and customization. Privacy is prioritized through advanced encryption,
securing sensitive data. Modular architecture allows for scalability and seamless integration with
smart home ecosystems. Regular firmware updates ensure adaptability to emerging threats. By
combining cutting-edge technology, adaptability, and user-centric design, the SmartGuard
System sets a new standard in comprehensive and intelligent home security. Its open-source
nature encourages customization, making it accessible to DIY enthusiasts and tech-savvy
homeowners alike. With features like cloud connectivity and community-based security
networks, the system stands at the forefront of the evolving landscape of smart home protection.
3.1 Existing system: -

The current state of home security systems often relies on traditional surveillance methods,
lacking real-time monitoring and immediate notification capabilities. Conventional setups may
lack the sophistication, adaptability, and user-friendly features offered by the SmartGuard
System.

3.1.1 Proposed System:-

The proposed SmartGuard System introduces a paradigm shift in home security by


leveraging IoT technology for real-time motion detection. With autonomous phone call initiation
and a user-friendly mobile app, it offers a comprehensive, customizable, and user-centric
approach to safeguarding homes.
3.1.2 Operational Environment:
The SmartGuard System is designed for the residential operational environment, specifically
tailored for homes and apartments. It thrives in diverse housing structures, accommodating
various architectural layouts. Operating seamlessly in both urban and suburban settings, the
system is adaptable to different lighting conditions, making it effective for day and night
surveillance. Its modular architecture ensures scalability, allowing integration into existing smart
home ecosystems. The system's operational efficiency is further enhanced by its compatibility
with commonly used communication technologies.

12
3.1.3 User Characteristics:
The SmartGuard System is ideal for tech-savvy homeowners seeking a user-friendly
DIY security solution with basic programming skills. It caters to individuals valuing privacy,
remote monitoring, and a community-oriented approach to home security.
3.1.4 System Requirements Specification
The SmartGuard System requires basic hardware components, including a PIR sensor,
SIM900A module, and Arduino microcontroller. It operates on a user-provided power source and
communicates via a reliable internet connection. The system's modular architecture ensures
compatibility with common communication technologies and seamless integration with existing
smart home ecosystems. Additionally, it is designed to be adaptable to various housing structures
and lighting conditions.

3.1.5 Functional Requirements

1.Motion Detection:
- The system must detect motion through a PIR sensor, triggering alerts in real-time.
- Upon motion detection, the system should autonomously initiate a phone call using the
SIM900A module for immediate homeowner notification.

3. User-Friendly Mobile App:


- The system should feature a user-friendly mobile application for remote monitoring, allowing
homeowners to customize settings and receive alerts.

4. Modular Architecture for Integration:


- The system's architecture must be modular, enabling scalability and integration with common
smart home technologies.

5. Advanced Privacy Measures


- Implement advanced encryption protocols to ensure the privacy and security of user data
during communication and operation.
3.1.6 Non- Functional Requirements
1. Performance:
- The system should demonstrate high performance, ensuring real-time motion detection and
immediate phone call initiation without noticeable delays.

2. Reliability:
13
- The SmartGuard System must be highly reliable, minimizing false alarms and ensuring
consistent functionality under varying environmental conditions.

3. Usability:
- The user interface, both on the mobile app and any other user interaction points, should be
intuitive and easy to use, catering to a diverse range of users with varying levels of technical
expertise.

3.1.7 Hardware Requirements:

 ARDUINO UNO/ARDUINO MINI/ARDUINO NANO or similar board (Tx)

 ARDUINO UNO /ARDUINO MINI/ARDUINO NANO or similar board (Rx)

 RF Transmitter and Receiver Module (433 MHZ)

 PIR sensor

 9V battery ( 2 nos) and connectors

 Buzzer

 Ultrasonic sensor

 GSM Sim 8001 Module

 LM2596 Step Converter

 Zero PCB

 perforated Board

 Header connectors

 Switches
 Resistor -220 ohm

 Bread Board

 Jumper Wires

 perforated Board

 LED’S

3.1.8 Software Requirements:

 Arduino IDE
 SoftwareSerial Library

14
3.2 UML Diagrams

15
3.2.2 Sequence Diagram

16
` 11
3.3 Flow Chart

` 12

17
CHAPTER 4- SAMPLE CODE

#include <SoftwareSerial.h>

const String PHONE = "+919493766213";


#define rxPin 2
#define txPin 3
SoftwareSerial sim800(rxPin, txPin);
#define trigPin 6
#define echoPin 7

void setup() {
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);

Serial.begin(115200);

sim800.begin(9600);
Serial.println("SIM800L software serial initialize");

if (!checkSIMStatus()) {
sendAlert();
}

sim800.println("AT");
delay(1000);
}

void loop() {
while (sim800.available()) {
Serial.println(sim800.readString());
}

while (Serial.available()) {
sim800.println(Serial.readString());
}

long time_duration, distance_in_cm;


digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
time_duration = pulseIn(echoPin, HIGH);
distance_in_cm = time_duration / 29 / 2;

Serial.print(distance_in_cm);
Serial.println(" cm");

if (distance_in_cm <= 10) {


Serial.println("Motion detected!");
Serial.println("calling....");

18
if (!checkSIMStatus()) {
sendAlert();
} else {
sim800.println("ATD" + PHONE + ";");
delay(20000); //20 sec delay
}
}

delay(500);
}

bool checkSIMStatus() {
sim800.println("AT+CPIN?");
delay(500);
String response = sim800.readStringUntil('\n');
return response.indexOf("READY") != -1;
}

void sendAlert() {

Serial.println("SIM not ready. Trying to connect...");

19
CHAPTER 5:MODEL AND OUTPUTS

OUR MODEL

FIG 5.1

FIG 5.2

FIG 5.3

20
OUTPUT

FIG 5.4

FIG 5.5

21
CHAPTER 6.CONCLUSIONS
In conclusion, the implemented SmartGuard System showcases a robust integration of Arduino,
SoftwareSerial, and SIM800 modules to create a dynamic home security solution. The system
effectively employs motion detection through ultrasonic sensors, triggering a sequence of actions
including alert notifications and phone call initiation. The utilization of the SIM800 module for
autonomous call initiation enhances real-time communication in potential security events.
Despite challenges, such as SIM status checks and connectivity issues, the project demonstrates
resilience and adaptability. The system's capability to provide visual and audible alerts
contributes to its sophistication, promising a paradigm shift in home security. As a result, the
SmartGuard System not only fulfills its primary objective but also opens avenues for further
exploration in IoT-based home security applications. The collaborative effort of integrating
hardware, software, and communication modules has yielded a comprehensive and user-friendly
smart home security solution.

22
` 23
REFERENCES

1. Arduino Official Website: [https://www.arduino.cc/](https://www.arduino.cc/)


- The official Arduino website provides comprehensive documentation, tutorials, and forums
for Arduino development.

2. SIM800 AT Command Manual: [Example


Reference](https://www.elecrow.com/wiki/images/2/2d/SIM800_Series_AT_Command_Manual
_V1.09.pdf)
- This example link represents a typical AT Command Manual for the SIM800 module, which
could have been referred to during your project.

3. HC-SR04 Ultrasonic Sensor Datasheet: [Example


Datasheet](https://cdn.sparkfun.com/datasheets/Sensors/Proximity/HCSR04.pdf)
- The datasheet for the HC-SR04 ultrasonic sensor provides technical details and specifications.

4. SoftwareSerial Library Documentation: [https://www.arduino.cc/en/Reference/SoftwareSerial]


(https://www.arduino.cc/en/Reference/SoftwareSerial)
- The official documentation for the SoftwareSerial library on the Arduino website.

5. Adafruit Learning System - Ultrasonic Sensors: [https://learn.adafruit.com/ultrasonic-sonar-


distance-sensors/overview](https://learn.adafruit.com/ultrasonic-sonar-distance-sensors/
overview)
- Adafruit's learning system offers tutorials and guides on using ultrasonic sensors, which might
be helpful for understanding and implementing motion detection.

23
COURSE OUTCOME (COs) ATTAINMENT

➢ Expected Course Outcomes (COs):


(Refer to COs Statement in the Syllabus)
Our expected course outcome is to send a call or message saying that some motion is
detected in the place sensor is placed. This alerts the owner so that any theft can be
caught before the loss takes place

➢ Course Outcome Attained:


We are getting a message when motion is detected even if signal is not there in the
area, we can get a message that motion is detected sim is trying to connect. This can
be seen in serial monitor
How would you rate your learning of the subject based on the specified C ?
1 2 3 4 5 6 7 8 9 10
LOW HIGH

➢ Learning Gap (if any):


We have to learn more about gsm 800a module and some complicated connection in
circuits and more on motion detection sensors
➢ Books / Manuals Referred:
SIM800 AT Command Manual and SoftwareSerial Library , ndustrial Internet of
Things: Cybermanufacturing System, Sabina Jeschke, Christian Brecher,
Houbing Song, Danda B. Rawat (Springer Publication),
Industrial IoT Challenges, Design Principles, Applications, and Security by Ismail
Butun (editor)
The Internet of Things in the Industrial Sector, Mahmood, Zaigham (Ed.)
(Springer Publication)

Date: 25-11-2023 Signature of Student

➢ Suggestions / Recommendations:
(By the Course Faculty)
_________________________________________________________________________

_________________________________________________________________________
_________________________________________________________________________

_________________________________________________________________________

Date:25-11-2023 Signature of the Faculty

24
25

You might also like