Skip to content

Dev4057/Security-Alert-System-Hardware-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Security-Alert-System-Hardware-

πŸ” Security Alert System using Arduino

This project is a basic yet powerful Security Alert System built using Arduino Uno, PIR Motion Sensor, Ultrasonic Sensor, Buzzer, and an LCD Display. It is designed to detect intrusions or movement and provide instant feedback both visually (on LCD) and audibly (via buzzer).

πŸ“Œ Features

  • 🚨 Motion Detection using PIR Sensor
  • πŸ“ Distance Measurement using Ultrasonic Sensor (HC-SR04)
  • πŸ”Š Real-time Alerts using a Buzzer
  • πŸ“Ί LCD Display shows distance to the object
  • πŸ’‘ Expandable and suitable for home/college security applications

πŸ› οΈ Components Used

Component Quantity
Arduino Uno 1
PIR Motion Sensor 1
Ultrasonic Sensor (HC-SR04) 1
Piezo Buzzer 1
16x2 LCD Display 1
10k Resistor / Potentiometer 1 (used for LCD contrast, optional)
Breadboard 1
Jumper Wires As needed

πŸ“Œ Circuit Connections

Ultrasonic Sensor (HC-SR04)

  • VCC β†’ 5V
  • GND β†’ GND
  • TRIG β†’ Digital Pin 3
  • ECHO β†’ Digital Pin 4

PIR Motion Sensor

  • VCC β†’ 5V
  • GND β†’ GND
  • OUT β†’ Digital Pin 2

Buzzer

  • +ve (long leg) β†’ Digital Pin 5
  • -ve (short leg) β†’ GND

LCD (16x2)

LCD Pin Arduino
VSS GND
VDD 5V
V0 Middle pin of Potentiometer (or GND for low contrast)
RS Pin 12
RW GND
E Pin 11
DB4 Pin 10
DB5 Pin 9
DB6 Pin 8
DB7 Pin 7
A (LED+) 5V
K (LED-) GND

πŸš€ How It Works

  1. System remains in Idle Mode, monitoring motion using the PIR sensor.
  2. If motion is detected, the ultrasonic sensor calculates the distance to the object.
  3. The buzzer is activated.
  4. The LCD displays the message: "Intruder Detected!" and shows the distance in cm.
  5. After a few seconds, the system resets and returns to idle.

πŸ’» Code

The code is provided in the main.ino file (you can add this name when you upload the code to GitHub). Make sure to have the LiquidCrystal library installed. It comes by default with the Arduino IDE.


🧠 Future Enhancements

  • Add a GSM module for SMS alerts
  • Integrate with IoT platforms for remote monitoring
  • Add camera or RFID for verification
  • Add LED indicators for silent alerts

πŸ‘¨β€πŸ’» Author

This project is open-source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages