Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Light-Activated Alarm with Loudspeaker

View and Edit Project In Cirkit DesignerImage of Arduino UNO Light-Activated Alarm with Loudspeaker

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller, a KY-018 LDR Photo Resistor, a Loudspeaker, a Resistor, and a BC547 Transistor. The circuit is designed to read light intensity using the LDR and control the loudspeaker based on the light levels. The Arduino UNO serves as the central controller, processing the input from the LDR and driving the loudspeaker accordingly.

Component List

Arduino UNO

KY-018 LDR Photo Resistor

Loudspeaker

Resistor

BC547 Transistor

Wiring Details

Arduino UNO

KY-018 LDR Photo Resistor

Loudspeaker

Resistor

BC547 Transistor

Code Documentation

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:

}

documentation.txt