LDR night light on a Nano
6 parts
An LDR night light on a Nano on a 9 V battery: the simulation shows its LED dark in daylight and lit in the dark. A7 reads 853 at 100 lux, and 170 at 1 lux with the LED lit. The battery feeds VIN, through the board's regulator. Select the LDR to set its light.
- U1 Nano, nano_ldr_night_light.ino.hex
- BAT1 Battery, 9 V alkaline
- LDR1 LDR, 2kΩ@100lx
- R1 Resistor, 10kΩ
- R2 Resistor, 220Ω
- LED1 LED