Final IIot Project Report
Final IIot Project Report
A PROJECT REPORT
Submitted by
D SAI SUBRAHMANYA AASHRITH 221801120002
S SRIVALLI 221801380029
PRAVEEN 221801380021
SAI KIRAN 221801380034
BALA SAI 221801120005
3
BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE AND ENGINEERING
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)
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.
Place: VIZIANAGARAM
Date: 25-11-2023
3
ACKNOWLEDGEMENTS
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
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
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.
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.
11
CHAPTER 3: OVERALL DESCRIPTION
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.
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.
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.
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.
PIR sensor
Buzzer
Ultrasonic sensor
Zero PCB
perforated Board
Header connectors
Switches
Resistor -220 ohm
Bread Board
Jumper Wires
perforated Board
LED’S
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>
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());
}
Serial.print(distance_in_cm);
Serial.println(" cm");
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() {
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
23
COURSE OUTCOME (COs) ATTAINMENT
➢ Suggestions / Recommendations:
(By the Course Faculty)
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
24
25