Kids OK with adultArduino NanoLevel 1/3
Automatic Street Light
An LDR senses dusk and a MOSFET switches a 12V LED lamp on, then off again at sunrise, with no flicker.

Kids OK, with an adult
DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.
Strictly follow the description given with this video.
Video
The video link will be added here soon.
How it works
- The LDR module's AO reading falls as it gets dark.
- Below the DARK level the Nano switches the lamp on.
- Above a higher BRIGHT level it switches off; two levels stop flicker at dusk.
- The MOSFET switches the 12V lamp; the Nano runs from the same 12V through VIN.
Parts you need
Kit for this projectPrice on request
Get the kitWiring

PowerGroundSignal
| # | From | Connect to |
|---|---|---|
| 1 Signal | LDR AO | Nano A0 |
| 2 Power | LDR VCC | Nano 5V |
| 3 Ground | LDR GND | Nano GND |
| 4 Signal | MOSFET SIG | Nano D9 |
| 5 Ground | MOSFET GND | Nano GND |
| 6 Power | MOSFET IN+ | 12V rail |
| 7 Ground | MOSFET IN− | GND rail |
| 8 Power | MOSFET OUT+ / OUT− | Lamp + / − |
| 9 Power | 12V adapter | 12V rail → Nano VIN |
3D print files
This project has no 3D-printed parts.
Code
The tested Arduino / ESP32 code for this project will be posted here, ready to copy.