Introduction:
In this project, we have designed Laser Light Security System Using Arduino with Alarm with the application of Laser Diode Module KY-008. The project idea revolves around creating a security system. Whenever any object will obstruct the LASER ray the buzzer alarm will start ringing.
This project can be implemented anywhere, not only buildings or premises but many precious things like jewelry, diamonds, precious antique items in the museum, etc many other things are also secured using such an invisible LASER beam. Many people secure their home, office, shops, warehouses, etc with the LASER beam security system.
Laser Light Security System Using Arduino with Alarm :
Components Required:
- Arduino UNO Board
- LASER Diode Module KY-008
- Buzzer
- LDR
- Resistors (10k)
- Push Button Switch
- Bread Board
- Connecting Wires
Circuit Diagram:
Laser Diode Module KY-008:
Laser Transmitter module KY-008 for Arduino emits a dot-shaped, red laser beam. The KY-008 Laser transmitter module consists of a 650nm red laser diode head and a resistor. Handle with caution, do not look directly into the laser head.
The specification of Laser Transmitter Module KY-008 is as follows:
Operating Voltage – 5V
Output Power – 5mW
Wavelength – 650nm
Operating Current – less than 40mA
Working Temperature – -10°C ~ 40°C [14°F to 104°F]
Dimensions – 18.5mm x 15mm [0.728in x 0.591in]
Working of the Laser Light Security System Using Arduino
The project basically works on the principle of interruption. If by any means the LASER light is interrupted the alarm will start unless it is reset with push-button. The laser is a concentrated light source that puts out a straight beam of light of a single color.
The LDR is sensitive to light and puts out a voltage when the laser light hits it. When the laser beam is interrupted and can’t reach LDR, its voltage output changes, and eventually the alarm will ring.
Source Code/Program:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
int laserPin = 3; int sensorPin = A0; int buttonPin = 12; int buzzerPin = 11; int laserThreshold = 10; void setup() { pinMode(laserPin, OUTPUT); pinMode(buttonPin, INPUT_PULLUP); Serial.begin(9600); } boolean alarmState = false; void loop() { if (! alarmState) { delay(1000); digitalWrite(laserPin, HIGH); delay(10); unsigned long startTime = millis(); while (millis() – startTime < 1000) { int sensorValue = analogRead(sensorPin); Serial.println(sensorValue); if (sensorValue > laserThreshold) { alarmState = true; break; } delay(10); } digitalWrite(laserPin, LOW); } else { tone(buzzerPin, 440); if (! digitalRead(buttonPin)) { alarmState = false; noTone(buzzerPin); } delay(10); } } |
Video Demonstration:
You can also make the Laser Security System project using 555 Timer & LDR and also using Raspberry Pi Pico & LDR.
1 Comment
code is not working