Light Sensor — Measuring Brightness
Build a light-sensing circuit using a photoresistor (LDR) and create an automatic night light.
What students learn
Students learn about light-dependent resistors, voltage dividers with variable resistance, threshold detection, and automatic control systems.
The science behind this experiment
- An LDR decreases resistance as light increases
- The voltage divider formula determines the voltage at the analog pin
- Threshold detection compares a reading against a set value
- PWM can make brightness proportional to darkness level
Key relation: V_out = 5V × R_fixed / (R_LDR + R_fixed); R_LDR decreases as light increases
Equipment used
- Arduino Uno R3
- Breadboard
- 1x Photoresistor (LDR)
- 1x 10kΩ resistor
- 1x LED
- 1x 220Ω resistor
- Jumper wires
Questions for students
- How could you calibrate the threshold for different environments?
- What are the limitations of using an LDR for precise light measurement?
What to expect
The LED automatically turns on in darkness and off in bright light, like a real night light. Light sensors (LDRs) in a voltage divider convert light levels to measurable voltages. Threshold detection enables automatic control systems like night lights.
Run this experiment in your classroom
This experiment is part of ATP Volta — a self-contained mobile science lab that turns an ordinary classroom into a working STEM laboratory, with over 200 experiments in physics, chemistry, biology, robotics and engineering. Gali, the AI tutor built into ATP Connect, guides students through each step and answers their questions at the bench.
See the ATP Volta mobile science labTalk to our team