Laser Light Security System using Arduino with Alarm

Laser Light Security System Using Arduino wih Alarm (Last Updated On: December 1, 2018)

Introduction:

In this project we have designed Laser Laser Light Security System Using Arduino wih Alarm with the application of Laser Didoe 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 jewellery, diamonds, precious antique items in the museum, etc many other things are also secured using such invisible LASER beam. Many people secure their home, office, shops, warehouses, etc with the LASER beam security system.


Laser Light Security System Using Arduino wih Alarm :

Components Required:

1. Arduino UNO Board
2. LASER Diode Module KY-008 - (Buy Online from Amazon)
3. Buzzer 
4. LDR 
5. Resistors (10k)
6. Push Button Switch
6. Bread Board
7. Connecting Wires

Circuit Diagram:

Laser Light Security System Using Arduino wih Alarm


Laser Diode Module KY-008:

Laser Light Security System Using Arduino wih Alarm

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 Project:

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.

Laser Light Security System Using Arduino wih Alarm

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:

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:

Recommended For You

Ask A Question .......

Close