• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Laser Light Alarm Circuit using Arduino

Laser Light Alarm Circuit using Arduino

Last updated on 1 July 2026 by Admin-Lavi Leave a Comment

This article is for simple Laser Light Alarm Circuit using Arduino.

A laser light shines on an LDR and when someone blocks the laser beam, the LDR changes its value and then Arduino reads this change and turns ON the buzzer to make alarm sound.

A reset button stops the alarm.

Also, the system uses low-cost components, remains easy to build, and works well for homes, school labs and small projects.

Arduino Code:

/* Laser Security System with Laser Control */

int ldrPin = A0;
int buzzerPin = 8;
int resetPin = 7;
int laserPin = 9; // new laser control pin

int threshold = 500;
int alarmState = 0;

void setup() {
pinMode(buzzerPin, OUTPUT);
pinMode(resetPin, INPUT_PULLUP);
pinMode(laserPin, OUTPUT); // set laser pin as output

digitalWrite(laserPin, HIGH); // turn laser ON
}

void loop() {
int sensorValue = analogRead(ldrPin);

if(sensorValue > threshold) {
alarmState = 1;
}

if(digitalRead(resetPin) == LOW) {
alarmState = 0;
}

if(alarmState == 1) {
digitalWrite(buzzerPin, HIGH);
} else {
digitalWrite(buzzerPin, LOW);
}

delay(50);
}

Coding Explanation:

  • ldrPin reads LDR voltage.
  • buzzerPin controls buzzer.
  • resetPin reads button.
  • threshold sets when alarm should start.
  • When LDR value goes above threshold the alarmState becomes 1.
  • Button pull up means pressing button gives LOW.
  • When pressed alarmState becomes 0.
  • If alarmState is 1 then buzzer turns ON.
  • If not then buzzer turns OFF.
  • Delay makes reading stable.

Circuit Working:

Laser Light Alarm Circuit Diagram using Arduino

Parts List:

ComponentsQuantity
Resistors
10k 1/4 watt1
LDR1
Semiconductors
Arduino UNO1
Laser Diode KY008 Module1
5V Buzzer1
Push Button Alarm Reset Switch1

Laser module gives one straight beam to the LDR.

When light hits LDR, its resistance becomes low and when beam breaks then LDR resistance becomes very high; then LDR and 10k resistor make simple voltage divider.

After that, the Arduino reads this voltage on the analog pin; moreover, if the voltage rises above the set value, the Arduino determines that something is blocking the laser beam.

Then Arduino turns ON buzzer pin and alarm starts and further, reset button goes to one digital pin of Arduino.

Finally, when the user presses the button, the Arduino stops the buzzer and clears the alarm state.

Formula:

Below is the Voltage divider formula:

Vout = Vin * (R2 / (R1 + R2))

where,

  • Vout means output voltage.
  • Vin means input voltage.
  • R1 means LDR.
  • R2 means 10k fixed resistor.

How to Build:

To build a Laser Light Alarm Circuit using Arduino follow the below steps for connection:

  • First, collect all parts same like in circuit picture.
  • Next, put LDR R1 in series with 10k resistor R2 and one side of LDR goes to 5V and other side of LDR goes to A0 pin.
  • Also, this same point connects to one side of 10k resistor and other side of 10k resistor goes to GND.
  • Then laser module VCC goes to 5V and laser module GND goes to GND.
  • After that, buzzer positive goes to pin 8 of Arduino and buzzer negative goes to GND.
  • Now reset button one side goes to pin 7 and other side of button goes to GND.
  • Finally, Arduino 5V and GND go to breadboard power rails and all parts must share same ground.

Conclusion:

To conclude, this project for Laser Light Alarm Circuit using Arduino is simple for beginners and it uses few cheap parts.

Also, the laser and LDR create an effective tripwire, and the Arduino easily controls the alarm.

Furthermore, this circuit helps users learn about sensors, inputs, and outputs, and they can improve it by adding more sensors or a wireless alert.

Filed Under: Alarm Circuits, Arduino Projects, LDR Circuits, Security and Protection

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Laser Security Alarm Circuit using LDR and BC547 Transistors
Next Post: Simple Infrared Fire Alarm Circuit »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (137)
  • Alarm Circuits (81)
  • Amplifier Circuits (94)
  • Arduino Projects (103)
  • Audio Circuits (190)
  • Automation Circuits (150)
  • Automobile Circuits (40)
  • Battery Charger Circuits (89)
  • DIY Projects (437)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (24)
  • Hobby Circuits (244)
  • Indicator Circuits (63)
  • Inverter Circuits (17)
  • IoT projects (12)
  • LDR Circuits (47)
  • LED and Lamps (201)
  • Meters and Testers (44)
  • Mini Projects (392)
  • Motor Controllers (26)
  • Oscillator Circuits (70)
  • Power Supply Circuits (245)
  • Radio Frequency (8)
  • Remote Control Circuits (12)
  • Renewable energy (20)
  • Security and Protection (128)
  • Sensors and Detectors (236)
  • Solar Circuits (31)
  • Timer Circuits (63)
  • Transistor Circuits (178)
  • Transmitter Circuit (19)
  • Tutorials (33)
  • Voltage Regulator (67)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Admin-Lavi on High Voltage Fence Charger Circuit
  2. etere on High Voltage Fence Charger Circuit
  3. Admin-Lavi on High Voltage Fence Charger Circuit
  4. egidio grzinic on High Voltage Fence Charger Circuit
  5. Logic OR Gate Circuit using Transistors - Circuit Ideas for You on Automatic Street Light Circuit using LDR

Copyright © 2026 | New Circuit Ideas