Build a simple Light Dependent Resistor (LDR) project using Arduino Uno in the Wokwi simulator to detect light intensity and control an LED.
Short Description
This project uses a photoresistor (LDR) to measure light levels. When the surrounding light decreases, the LDR resistance increases, and the Arduino reads the change through an analog pin. Based on the light intensity, an LED turns ON or OFF automatically. It is a beginner-friendly project ideal for learning analog input and sensor interfacing in Arduino.
Components Required (Wokwi)
-
Arduino Uno
-
Photoresistor (LDR)
-
10kΩ Resistor
-
LED
-
220Ω Resistor
-
Jumper wires
How It Works
-
The LDR and 10kΩ resistor form a voltage divider.
-
Arduino reads analog values (0–1023) from A0.
-
If the light value is below a threshold (dark condition), the LED turns ON.
-
If the light value is above the threshold (bright condition), the LED turns OFF.
Applications
-
Automatic street lights
-
Smart home lighting systems
-
Light intensity monitoring projects
-
Energy-saving systems
This Wokwi simulation helps you test and understand LDR-based light sensing without physical hardware.
Comments
Post a Comment