Home Security Alarm Using PIR Sensor & Arduino
Project Overview
This project is a Dark-Activated Home Security Alarm System built using the Arduino Uno and a HC-SR501.
The system activates only at night (low light condition) using an LDR sensor. When motion is detected in the dark, the system triggers an alarm (LED + buzzer) and displays a warning message on the LCD.
This makes the system energy-efficient and suitable for real-world home security applications.
Working of PIR Sensor
The HC-SR501 detects motion based on infrared radiation (heat energy).
🔹 How PIR Works:
-
The PIR sensor has two IR-sensitive slots.
-
When idle, both slots detect equal ambient infrared radiation.
-
When a warm body (human/animal) passes:
-
One slot detects more IR than the other.
-
This creates a positive differential signal.
-
-
When the body leaves:
-
A negative differential signal is produced.
-
-
These changes generate a digital HIGH output, indicating motion detection.
Working of the Project
This system works as a dark-activated intrusion alarm.
🔹 Step 1: Light Detection (LDR)
-
LDR measures ambient light.
-
If light level is below threshold (dark condition) → System activates.
-
If daylight → System remains OFF.
🔹 Step 2: Motion Detection (PIR)
-
When motion is detected:
-
PIR outputs Logic HIGH.
-
Arduino triggers alarm.
-
🔹 Step 3: Alert System
-
LED turns ON.
-
Buzzer sounds.
-
LCD displays:
-
“Motion Detected!”
-
“Intruder Alert!”
-
Components Required
-
1 × Arduino Uno
-
1 × HC-SR501
-
1 × LDR (Light Dependent Resistor)
-
2 × 1kΩ Resistors
-
1 × LED
-
1 × Buzzer
-
1 × Potentiometer (for LCD contrast)
-
1 × 16x2 LCD Display
-
1 × 9V Battery
-
Jumper wires
-
Arduino USB Cable
Basic Circuit Concept
PIR Sensor
| PIR Pin | Connect To |
|---|---|
| VCC | 5V |
| GND | GND |
| OUT | Digital Pin 2 |
LDR (Voltage Divider)
-
One end → 5V
-
Other end → Resistor → GND
-
Junction → Analog Pin A0
Buzzer & LED
-
Buzzer → Digital Pin 8
-
LED → Digital Pin 7 (with resistor)
LCD
-
RS, E, D4–D7 → Arduino digital pins
-
VSS → GND
-
VDD → 5V
-
VO → Potentiometer middle pin
Basic Logic (Concept Code)
int pir = digitalRead(2);int lightLevel = analogRead(A0);if(lightLevel < 400) { // Dark conditionif(pir == HIGH) {digitalWrite(8, HIGH); // Buzzer ONdigitalWrite(7, HIGH); // LED ONlcd.print("Motion Detected!");}}
Key Features
Applications
-
Home security systems
-
Office intrusion detection
-
Warehouse protection
-
ATM security monitoring
-
Smart building automation
Possible Upgrades
Educational Value
Students learn:
-
PIR motion sensing principle
-
IR radiation detection
-
Analog vs Digital signals
-
Voltage divider concept
-
Embedded security systems
-
Sensor-based automation
Conclusion
The Home Security Alarm using Arduino and PIR sensor is a practical and real-world security solution. It intelligently activates only in dark conditions and detects human motion accurately, making it ideal for residential and commercial use.
BEGINNER PROJECTS (Foundation Skills)
- Ultrasonic Distance Measurement
- Traffic Light Simulation with 7-Segment Display
- 7-Segment Display Counter
- Kids Piano Circuit (8-Key Version)
- 16×2 LCD Display with Text Output
- LCD I2C to Arduino UNO
- Temperature Measurement using Arduino UNO
- LDR Controlled Street Light
INTERMEDIATE PROJECTS (Build Your Skills)
- Servo Motor Control Using Potentiometer
- DC Motor Speed Control
- Temperature Controlled Fan
- PIR Based Theft Alert System
- LPG Gas Leakage Detection System
- Automatic Door Locking System
- Soil Moisture Based Automatic Watering System
- Simple Digital Clock using Arduino UNO
- Automatic Voting Machine (EVM)
- Joystick Control using Arduino Uno
- RGB Lamp Control using Arduino Uno
ADVANCED PROJECTS (Master Level)
- Home Automation Using Arduino UNO
- Bluetooth RC Car using Arduino Uno
- Obstacle Avoiding Robot
- Line Follower Robot
- Radar System Using Arduino UNO
- Automatic Parking System
- Bi-Directional People Counter using Arduino Uno
- Automatic Plant Watering System
- NeoPixel LED Ring Control using Arduino Uno
- Smart Gloves for Bedridden People

Comments
Post a Comment