Arduino-Controlled Laser Security System with LDR and Buzzer
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed to interface an LDR (Light Dependent Resistor) module and a laser diode with an Arduino UNO microcontroller. The LDR module is used to detect the presence or absence of light, while the laser diode acts as a light source. A buzzer is included to provide an audible alert. The circuit is powered by a 9V battery, which is connected to the Arduino's Vin pin to supply the necessary operating voltage. The Arduino UNO controls the laser diode and reads the output from the LDR module to perform actions based on light detection, such as activating the buzzer.
Component List
LDR Module 3 pin
- Description: A module containing a light-dependent resistor that changes resistance with light intensity.
- Pins: VCC, GND, DO
Battery 9V
- Description: A standard 9V battery used to power the circuit.
- Pins: VCC, GND
Buzzer
- Description: An electromechanical component that produces an audible tone when powered.
- Pins: PIN, GND
Laser Diode
- Description: A semiconductor device that emits coherent light when electrically biased in the forward direction.
- Pins: Negative, Positive
Arduino UNO
- Description: A microcontroller board based on the ATmega328P, with a variety of digital and analog I/O pins.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
Comments
- Description: Placeholder components for additional notes or documentation.
Wiring Details
LDR Module 3 pin
- VCC connected to Arduino UNO 5V
- GND connected to Arduino UNO GND
- DO connected to Arduino UNO D7
Battery 9V
- VCC connected to Arduino UNO Vin
- GND connected to Arduino UNO GND
Buzzer
- PIN connected to Arduino UNO D11
- GND connected to Arduino UNO GND
Laser Diode
- Positive connected to Arduino UNO 3.3V
- Negative connected to Arduino UNO GND
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)
No additional documentation provided.
This document provides an overview of the circuit components, their connections, and the initial code structure for the Arduino UNO. Further development of the code is required to implement the desired functionality based on the LDR readings and to control the laser diode and buzzer accordingly.