Project Synopsis
Project Synopsis
Introduction
1.1 Background
The Internet of Things (IoT) has revolutionized various aspects of our daily lives, including
building security. Smart buildings leverage IoT technologies to enhance security, energy
efficiency, and occupant comfort. This project focuses on developing a smart security system for
a building using readily available components, sensors and an Arduino Mega as the main
controller.
1.2 Objective
The primary aim of this project is to design and implement a smart security system for a
building. The specific goals include:
1. Enhancing building security through basic intrusion detection
2. Implementing a simple surveillance system
3. Creating a user-friendly interface for monitoring and control
4. Utilizing easily available sensors and components
5. Developing a system that can be expanded or modified for future improvements
1.3 Scope
This project covers the design, implementation, and testing of a basic smart security system for
a building. The scope includes:
1. Intrusion detection using motion and door sensors
2. Basic surveillance using a camera module
3. A simple alert system
4. Serial communication for system monitoring and control
2. Literature Review
2.1 Evolution of Security Systems
The evolution of security systems has been marked by significant technological advancements:
1. Traditional Systems:
1|Page
• Limited to basic alarm systems and CCTV cameras
2|Page
• Wired: Ethernet, Power over Ethernet (PoE)
4. Data Processing and Analytics:
• Challenges: Initial high setup costs, ensuring data privacy, system complexity
2. Cisco's Smart Building Solution:
3|Page
• Challenges: Handling large volumes of data, ensuring accuracy in diverse
populations
Key Benefits of Smart Security Systems:
1. Enhanced threat detection and prevention
2. Real-time monitoring and rapid response
3. Integration with other building systems for holistic management
4. Data-driven decision making and predictive security measures
5. Improved operational efficiency and cost savings
Key Challenges:
1. High initial implementation costs
2. Complexity of integration with existing systems
3. Ensuring data privacy and cybersecurity
4. Scalability and future-proofing
5. User adoption and training
3. System Design
3.1 Architecture Overview
The smart security system architecture is designed to be simple and modular, suitable for a
project. It consists of the following components:
1. Sensors Layer: This includes all the sensors that collect data from the environment.
2. Control Layer: The Arduino Mega serves as the central controller, processing data from
sensors and controlling actuators.
3. Output Layer: This includes the alert system, and serial communication for user
interface.
The components interact as follows:
1. Sensors continuously monitor the environment and send data to the Arduino Mega.
2. The Arduino Mega processes the sensor data and determines if any security events have
occurred.
4|Page
3. If a security event is detected, the system triggers appropriate responses (by calling an
api of deployed backend server )
4. Users can monitor the system status and control basic functions through serial
communication.
• Arduino Mega 2560: The main microcontroller board, chosen for its large number
of I/O pins and multiple serial ports.
2. Sensors:
• Magnetic Door Sensor: Reed switch-based sensor for detecting door open/close
status.
• ArduCAM Mini 2MP Plus (OV2640): A basic camera module compatible with
Arduino for image and video capture.
4. Output Devices:
• 16x2 LCD Display: For displaying system status and messages (For testing
purpose).
5. Miscellaneous:
• ESP12F ESP8266 Amica NodeMCU Wifi Module - For connecting mega with wifi
5|Page
• Main program running on the Arduino Mega, handling sensor data collection,
processing, and system control.
2. Libraries:
• Simple text-based interface for monitoring system status and issuing commands
through the Arduino IDE's serial monitor.
4. Implementation
4.1 Hardware Setup
1. Sensor Connections:
• Connect the PIR motion sensor to a digital pin on the Arduino Mega.
• Connect the MPU6050 sensor to a digital pin using the appropriate library.
• Connect the ultrasonic sensor's trigger and echo pins to digital pins.
• Connect ESP12F ESP8266 Amica NodeMCU Wifi Module to another digital pin on
the arduino mega
• Connect the Adafruit Fingerprint Sensor to another digital ppin of the arduino
2. Camera Setup:
• Connect the ArduCAM Mini 2MP Plus (OV2640) camera module to the
appropriate pins on the Arduino Mega, following the module's datasheet.
3. Output Device Connections:
• Ensure all components are properly powered, either directly from the Arduino's
5V and 3.3V pins or through an external power supply if required.
6|Page
4.2 Software Development
1. Arduino Sketch Structure:
• Setup function: Initialize all sensors, output devices, and serial communication.
• Loop function: Continuously read sensor data, check for security events, and
update system status.
• Helper functions: Create separate functions for each major task (e.g.,
checkMotion(), checkDoor(), updateLCD()).
2. Sensor Data Collection:
• Create logic to detect security events based on sensor data (e.g., motion
detected, door opened).
4. Alert System:
• The PIR sensor continuously monitors for movement in its field of view.
7|Page
• When motion is detected, the system can trigger an alarm or send an alert.
2. Door Monitoring:
• The system can capture still images when motion is detected or a door is opened.
• These images can be stored for later retrieval or sent via serial communication.
2. Continous Video Moniitoring:
8|Page
5.5 User Interface
The system provides a simple interface for monitoring and control:
1. LCD Display:
• Test each sensor and output device individually to ensure proper functionality.
2. Integration Testing:
• Test the integrated system to ensure all components work together as expected.
3. Functionality Testing:
• Test each feature of the system (e.g., motion detection, door monitoring, alert
activation).
4. User Interface Testing:
• Verify that the LCD displays correct information and updates properly.
9|Page
• Expected Result: System detects motion and triggers appropriate response.
2. Door Monitoring:
• Expected Result: Alert activates and can be seen through user interface.
4. User Interface:
10 | P a g e
4. System may malfunction in extreme wheather conditions
8. Conclusion
This document provides a comprehensive overview of the requirements for the Smart Security
System in IoT-Based Smart Building project. It serves as a foundation for the development
process, outlining the system's functionality, performance expectations, and potential
challenges. As the project progresses, this document may be updated to reflect any changes or
refinements in the requirements.
9. References
1.IEEE 830-1998 Recommended Practice for Software Requirements Specifications
2.ISO/IEC 27001:2013 Information Security Management Systems
3."IoT and Big Data Analytics for Smart Buildings: A Survey" by Lamia Karim
11 | P a g e