Skip to content

Project of a Security System prototype.

Notifications You must be signed in to change notification settings

fedyhajali/security-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

security-system

This is a project of a Security System prototype realized for the "Embedded and Real-Time Systems" course at the University of Modena and Reggio Emilia.

Description

The Security System project consists in the creation of a prototype of an alarm and security system. The application therefore aims to simulate the operation of an anti-theft alarm through the use of hardware components. In short: the opening / closing of the windows of a hypothetical house was simulated through the use of buttons and LEDs. The use of an ultrasonic distance sensor HC SR04 allowed the detection of "suspicious" movements inside the house while an acoustic signal allows the emission of the alarm sound. The LCD display is used to show messages and notifications.

Requirements

  • Hardware Requirements
    • ESP32 Board
    • Ultrasonic Sensor HC-SR04
    • Display LCD 16x02
    • Sound Buzzer
    • Buttons
    • Leds
    • Led RGB
    • Resistors
  • Software Requirements
    • FreeRTOS OS
    • Arduino IDE
    • MQTT

img3

Software Tools

The software tools used for the realization of the project are: Visual Studio Code as a development environment, Arduino IDE - with the FreeRTOS library for compiling and loading the program on the ESP32 board and Git for code sharing between contributors.

Tasks

Application tasks:

  • TaskSlave: these are the 3 tasks that represent the windows of the house, and from hardware point-of-view their operation is implemented by buttons and LEDs. The windows are initially all closed. Pressing a button simulates the opening of a window which triggers the alarm.
  • TaskAlarm:
  • TaskMain:
  • TaskConnection:
  • TaskMovementDetection:
  • TaskDisplay:
  • TaskSetAlarmButton:

ESP32 Board

Product: https://www.espressif.com/en/products/socs/esp32

Docs: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/

img2

Circuit Schematics

img4

Synchronization

img7

MQTT Dashboard Application

Application available on the Play Store for Android Devices on this link

Authors

Fedy Haj Ali, Daniela Koreta

About

Project of a Security System prototype.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published