INTRODUCTION:Security systems are essential in modern homes, banks, museums,
warehouses, and restricted areas. Laser tripwire systems are one of
the simplest yet most effective intrusion detection technologies. These
systems use a continuous laser beam and a light-sensitive element
(LDR) to detect interruptions. When the laser beam is cut by an object
or intruder, the system immediately triggers an alarm.
In this project, we design and implement a Laser Security Alarm
using an Arduino microcontroller, a Laser Module, an LDR (Light
Dependent Resistor), and a buzzer. The Arduino continuously
monitors the LDR’s voltage output and activates the alarm when the
beam is broken.
This model demonstrates the real-world working of high-end security
systems in a simple, affordable, and effective way.
AIM / OBJECTIVE:• The main objectives of this project are:
o To design a low-cost, reliable laser-based intrusion detection
system.
o To understand and apply the working of LDRs and analog
voltage sensing.
o To use Arduino for real-time monitoring and alarm
activation.
o To demonstrate how beam-break detection can be used for
security.
o To create an interactive model for showcasing security
technology.
COMPONENTS REQUIRED:Hardware Components:1. Arduino Nano / Arduino Uno – Main controller.
2. Laser Module (5V) – Generates a straight laser beam.
3. LDR (Light Dependent Resistor) – Detects light
intensity.
4. 10kΩ Resistor – Forms voltage divider with LDR.
5. Transistor (NPN – 2N3904 in Tinkercad / BC547 /
2N2222 in real) – Drives the buzzer.
6. 1kΩ Resistor – Base resistor for transistor.
7. Buzzer (5V) – Alarm indicator.
8. Breadboard & Jumper Wires – For circuit connections.
9. Mobile Charger 5V (2A) – Safe power supply for Arduino.
10. LED (for Tinkercad simulation) – Used as laser
substitute.
Optional Components:• Switch (ARM/DISARM)
• Indicator LEDs (Green = Beam Intact, Red = Intrusion Detected)
CIRCUIT DIAGRAM (TEXT
DESCRIPTION):-
WORKING PRINCIPLE:The project operates on the principle of light interruption detection
using an LDR. The LDR’s resistance is inversely proportional to light
intensity:
• High light → Low resistance
• Low light → High resistance
The LDR and a 10k resistor form a voltage divider, and the Arduino
reads the voltage at the center node (A0).
When laser beam is intact:1. LDR receives strong light.
2. LDR resistance becomes low.
3. Voltage at A0 becomes high (≈ 850).
4. Arduino detects “NO intrusion”.
When laser beam is broken:1. LDR receives no light.
2. LDR resistance becomes high.
3. Voltage at A0 becomes low (≈ 200).
4. Arduino detects beam break → activates buzzer.
:- The Arduino code uses a threshold value (500) based on real
readings.
Final logic:If sensorValue > threshold → Beam intact
If sensorValue < threshold → Intrusion → Alarm ON
This is the same principle used in real laser tripwire systems
ARDUINO CODE USED:cpp
// Laser / LED Trip Alarm using LDR + Fixed Threshold
// A0 = LDR Node X (LDR + 10k divider)
// D3 = Transistor → Buzzer
const int sensorPin = A0;
const int outPin = 3;
int sensorValue = 0;
int threshold = 500; // based on your LDR readings
unsigned long debounceTime = 80;
unsigned long alarmTime = 3000;
unsigned long triggerTime = 0;
bool beamBroken = false;
bool alarmActive = false;
void setup() {
Serial.begin(9600);
pinMode(outPin, OUTPUT);
digitalWrite(outPin, LOW);
Serial.println("Laser / LDR Security Alarm Active (Threshold = 500)");
}
void loop() {
sensorValue = analogRead(sensorPin);
Serial.print("LDR Value: ");
Serial.print(sensorValue);
Serial.print(" | Threshold: ");
Serial.println(threshold);
if (sensorValue < threshold && !beamBroken) {
beamBroken = true;
triggerTime = millis();
}
if (beamBroken && !alarmActive) {
if (millis() - triggerTime >= debounceTime) {
alarmActive = true;
digitalWrite(outPin, HIGH);
Serial.println(" ALARM TRIGGERED!");
}
}
if (alarmActive) {
if (millis() - triggerTime >= alarmTime) {
alarmActive = false;
beamBroken = false;
digitalWrite(outPin, LOW);
Serial.println("Alarm Reset");
}
}
delay(30);
}
LIMITATIONS:• lignment of laser and LDR must be perfect.
• Strong ambient light may affect readings.
• Reflectors must be stable to avoid beam drift.
• LDR response time is slightly slower than photodiodes.
• System triggers if insects or dust block beam (without debounce).
FUTURE SCOPE:• Use of IR laser and photodiode for daylight stability.
• Add GSM/SMS alert system for remote intrusion notification.
• Build a multi-beam laser grid for high-security zones.
• Add wireless connectivity using ESP8266/ESP32.
• Add camera activation when beam is broken.
• Integrate with home automation systems.
CONCLUSION:This project successfully demonstrates a laser-based security alarm
system using Arduino. It is simple, affordable, and highly effective for
intrusion detection. The use of LDR and a fixed threshold-based analog
reading makes it easy to monitor beam interruption. The model
replicates real-world security systems used in high-value protection
scenarios and showcases fundamental principles of sensors,
microcontrollers, and automation.