You are currently viewing How to make a Security Alarm System with Arduino Uno, Buzzer, LDR, and Laser Module

How to make a Security Alarm System with Arduino Uno, Buzzer, LDR, and Laser Module

Introduction

Components Needed

  • Arduino Uno
  • Buzzer
  • 3-Pin LDR Module
  • 3-Pin Laser Transmitter Module
  • Breadboard
  • Jumper Wires
  • Power Supply

Working Principle of Each Component

Let’s briefly explain how each component works and its role in this project:

Arduino Uno: Acts as the brain of the system, reading inputs from the LDR and controlling the buzzer and laser module based on programmed logic.

Buzzer: Produces a loud sound when activated, alerting you of an intruder.

LDR (Light Dependent Resistor): Detects light intensity. When the laser beam is uninterrupted, the LDR senses high light intensity. When the beam is interrupted, the LDR registers a drop in light, prompting a response from the Arduino.

Laser Transmitter Module: Emits a focused laser beam, which is directed at the LDR. When the beam is interrupted, it signals a possible intrusion.

Power Supply: Powers the Arduino and other components.

Step-by-Step Circuit Connection

Arduino Uno: Place the Arduino on the breadboard.

LDR Module:

Connect the VCC pin of the LDR to the 5V pin on the Arduino.

Connect the GND pin of the LDR to the GND pin on the Arduino.

Connect the signal pin of the LDR to analog pin A0 on the Arduino.

Laser Module:

Connect the VCC pin of the laser to the 5V pin on the Arduino.

Connect the GND pin of the laser to the GND pin on the Arduino.

Connect the signal pin of the laser to digital pin 2 of the Arduino.

Buzzer:

Connect one terminal of the buzzer to digital pin 9 of the Arduino.

Connect the other terminal to the GND pin.

Power Supply: Connect an external power supply to the Arduino (e.g., a 9V adapter or USB connection).

.

Step-by-Step Project Implementation

Now that you’ve set up the circuit, let’s walk through the project implementation:

Upload the Arduino Code to control the system.

Here’s a sample code that makes the laser signal HIGH (laser always on) and monitors the LDR for changes in light intensity:

Explanation of the Code

Testing the Security Alarm System

Applications of the Security Alarm System

Home Security: Monitor entrances and trigger alarms when unauthorized access is detected.

Office Security: Protect sensitive areas such as file rooms or server rooms.

Shops: Install near display cases or valuable items to detect tampering.

School Projects: An excellent STEM project for students learning about Arduino and electronics.

Where to Buy Components

Conclusion

Leave a Reply