How To Make A Laser Security System Using Arduino PDF
How To Make A Laser Security System Using Arduino PDF
by 10dayrehab
You’ve probably seen a movie where a valuable item is protected by a grid of laser beams. The beams look cool
and seem pretty hightech, but the principles behind them are actually very simple.
When the laser pen shines on the photoresistor, the falling on their sensor. When the photoresistor does
green LED will light up to signify that the circuit is not detect light from the laser, it will drop its
ready. When the laser beam is broken, the LED turns resistance and trigger the Arduino to send voltage to
off and the buzzer sounds. the pin controlling the buzzer. Laser beams that are
visible in daylight or even in the dark are very
As we know from Projects 13 (“Weather Station”) and powerful and can be extremely dangerous. In this
18 (“Intruder Sensor”), photoresistors produce project we’ll use a low-powered laser pen instead.
variable resistance depending on the amount of light
How to Make a Laser Security System Using Arduino and LDR: Page 1
Step 2: Step 1: You Will Need:
Hardware:
LED
Laser
Photoresistor
Piezo
Buzzer
Breadboards
Arduino uno
Resistor 10
Resistor220
Resistor for led.
jumper wire
Software:
Arduino IDE
https://youtu.be/AmZJkF9jBwo
How to Make a Laser Security System Using Arduino and LDR: Page 2
Step 4: Step 3: Schematics
Breadboard:———–Arduino Pins:———Breadboard
Buzzer——————–Pin9————————Gnd
Laser———————–5v————————–Gnd
Resistor——————A0—————————Gnd,Photocell
Photocell——————-5v————————-Resistor
Led———————-Pin6,Pin7
How to Make a Laser Security System Using Arduino and LDR: Page 3
Step 5: Step 4: Arduino Sketch
int sensorPin=A0;
int sensorValue=0;
int piezoPin=9;
void setup() {
pinMode(sensorPin,INPUT);
pinMode(7,OUTPUT);
pinMode(6,OUTPUT);
pinMode(piezoPin,OUTPUT);
digitalWrite(7,HIGH);
digitalWrite(6,LOW);
void loop() {
sensorValue=analogRead(sensorPin);
if(sensorValue<=1000)
digitalWrite(piezoPin,HIGH);
{tone(9,3047,400); noTone(8); }
digitalWrite(7,HIGH);
else {
digitalWrite(piezoPin,LOW);
digitalWrite(7,LOW);
sensorValue=1000;
If you add mirrors, you can have the laser bouncing all over the place and if any one of them is
broken it will set off the alarm.
How to Make a Laser Security System Using Arduino and LDR: Page 4