• 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 27 November 2025 by Admin-Lavi Leave a Comment

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

A laser light shines on an LDR.

When someone blocks the laser beam, the LDR changes its value.

Arduino reads this change and turns ON the buzzer to make alarm sound.

A reset button stops the alarm.

The system is low cost and easy to build.

Good for home, school labs and small projects.

Arduino Coding:

/* 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:

ComponentQuantity
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.

When beam breaks then LDR resistance becomes very high.

LDR and 10k resistor make simple voltage divider.

Arduino reads this voltage on analog pin.

If voltage goes high above set value then it means laser is blocked.

Then Arduino turns ON buzzer pin and alarm starts.

Reset button goes to one digital pin of Arduino.

When button is pressed then Arduino stops buzzer and clears 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:

  • Collect all parts same like in circuit picture.
  • Put LDR R1 in series with 10k resistor R2.
  • One side of LDR goes to 5V.
  • Other side of LDR goes to A0 pin.
  • This same point also connects to one side of 10k resistor.
  • Other side of 10k resistor goes to GND.
  • Laser module VCC goes to 5V.
  • Laser module GND goes to GND.
  • Buzzer positive goes to pin 8 of Arduino.
  • Buzzer negative goes to GND.
  • Reset button one side goes to pin 7.
  • Other side of button goes to GND.
  • Arduino 5V and GND go to breadboard power rails.
  • All parts must share same ground.

Conclusion:

This project for Laser Light Alarm Circuit using Arduino is simple for beginners.

It uses few cheap parts.

Laser and LDR make effective tripwire.

Arduino controls alarm easily.

This circuit is good for learning sensors, inputs and outputs.

Can be improved with more sensors or wireless alert.

References:

Laser Security Alarm System Problem

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

  • Alarm Circuits (47)
  • Amplifier Circuits (67)
  • Arduino Projects (100)
  • Audio Circuits (116)
  • Automobile Circuits (19)
  • Battery Charger Circuits (65)
  • Free Energy (13)
  • Heater and Temperature Controllers (13)
  • High Voltage (1)
  • Indicator Circuits (46)
  • Inverter Circuits (20)
  • IoT projects (1)
  • LDR Circuits (26)
  • LED and Lamps (150)
  • Meters and Testers (31)
  • Motor Controllers (22)
  • Oscillator Circuits (40)
  • Power Supply Circuits (112)
  • Remote Control Circuits (10)
  • Security and Protection (29)
  • Sensors and Detectors (127)
  • Solar Circuits (29)
  • Timer Circuits (41)
  • Transistor Circuits (93)
  • Transmitter Circuit (17)
  • Tutorials (8)
  • Water Level Controller (7)

Recent Posts

  • 12V to 5V Buck Converter Circuit using Transistors
  • IC 7805 12V To 5V 2A Boost Converter Circuit
  • IC LM309 Based 5 Volt Power Supply Circuit
  • 5V 0.5A Regulated Power Supply Circuit
  • Transistor Based 5V Linear Power Supply Circuit

Recent Comments

  1. TDHofstetter on DIY Variable Power Supply Circuit using Arduino
  2. feathbuff on Simple Micro Ampere Meter Circuit
  3. Admin-Lavi on Simple School Project Multimeter Circuit
  4. choke on Simple School Project Multimeter Circuit
  5. Admin-Lavi on Analog to Digital Converter Circuit using IC 555

Copyright © 2026 | New Circuit Ideas