Tetsu / Builds / Build an automatic night light
Build an automatic night light
A light sensor that turns an LED on when it gets dark.

How it works
- A light sensor reads how bright the room is.
- Below a threshold the LED turns on.
- The simulation lets you dim the room and watch it switch.
Parts
- Breadboard 400 points× 1
- Arduino Uno R3 (5 V)× 1
- Light sensor module (LDR)× 1
- LED 5 mm red× 1
- Resistor 220 Ω× 1
- Jumper wire× 7
What Tetsu gives you
- A 3D model of the whole device
- A parts list with real, buyable parts
- A pin-by-pin wiring guide
- Firmware ready to upload
- Checks on power, pins and loads
More builds
- Build a weather station with ArduinoA small weather station that shows temperature and light on a display.
- Build an Arduino traffic lightThree LEDs in a timed sequence: the classic first project.
- Build an ultrasonic radar scannerA servo sweeps an HC-SR04 ultrasonic sensor from side to side and measures what is in front of it.
- Build a plant watering alarmA soil moisture sensor that beeps when your plant is dry.
- Build an Arduino parking sensorAn ultrasonic sensor and a buzzer that beeps faster as an object gets closer, like a car's parking aid.
- Build a line follower robotTwo light sensors steer two motors to follow a black line.