Automatic Street Light with LDR

Concept
A light-dependent resistor changes resistance with ambient illumination. A controller can compare a sensor reading against a threshold and switch a low-voltage LED circuit.
Materials
LDR, fixed resistor, LED, appropriate current-limiting resistor, jumper wires, breadboard and a microcontroller.
Steps
- Build a voltage divider using the LDR and fixed resistor.
- Connect the divider midpoint to an analog-capable input.
- Test the analog values in bright and shaded environments.
- Set a switching threshold and drive a low-voltage LED through an appropriate resistor.
Use an isolated low-voltage demonstration only; do not wire mains street lighting.