Thomas Piacentini
← ATOMSHWorkshopModels

Interactive workbench · Experiment 05

How do you light an LED as it gets darker?

Connect light, resistance, voltage and a threshold to build a night light.

Principle and limits

Ideal night light: supply → fixed resistor → LDR → ground. The comparator does not load the divider; its output equals the supply if Uldr ≥ threshold, otherwise 0 V. It drives a fixed-drop 2 V LED through 330 Ω. LDR resistance follows an illustrative law from 100 kΩ in darkness to 1 kΩ at full light: this percentage is not a lux measurement. No commercial component, hysteresis, delay or heating is reproduced.

Adafruit · Photocells (resistive sensing principle) ↗