Super Simple Automatic Night Light

by buckeye142 in Circuits > LEDs

19 Views, 0 Favorites, 0 Comments

Super Simple Automatic Night Light

Screenshot 2026-09-30 9.01.47 PM.png
IMG_5078.jpg

The automatic night light is an easy, beginner friendly, circuit that requires no coding and consists of simple components. The circuit's purpose is to turn on an LED when the room it is in is dark. When it is bright then the LED will stay off. It is great for a quick and easy build, and it is useful. Visit my Tinkercad design of this circuit at https://www.tinkercad.com/things/ijfNUYjGIdI-automatic-night-light

Supplies

unnamed (1).jpg

The supplies include the following:

  1. 1 (or more) LED(s)
  2. 100k ohm resistor
  3. NPN transistor
  4. LDR (light-dependent resistor, sometimes called a photoresistor)
  5. 3V Battery Supply (such as battery pack or coil cell battery)
  6. Switch (optional)
  7. Breadboard
  8. Jumper wires

Add the LEDs

IMG_5061.jpg

Insert your LED(s) into the breadboard in parallel. Be mindful of the anodes and cathodes.

Add the Transistor

IMG_5068.jpg

Connect the cathode(s) of the LED(s) to the collector of the NPN transistor. I'm using a 2N2222 transistor. Connect the emitter to ground.

Add the LDR

IMG_5069.jpg

Insert the LDR into the breadboard between the base and collector or the transistor.

Add the 100k Ohm Resistor

IMG_5082.jpg

Connect the resistor from the anode(s) of the LED(s) to the base of the transistor.

Connect to Vcc

IMG_5071.jpg

Connect the anode(s) of the LED(s) to VCC.

Add the Power Supply

IMG_5072.jpg

Connect your 3V power supply to the + and - rails of the breadboard.

Circuit Is Complete!

IMG_5073.jpg
IMG_5074.jpg

Turn on your power supply to see your automatic night light in action! It should be off in the dark and off in the light. If preferred, you can vary the resistance of the resistor to change at what darkness the LED(s) turn on.

Troubleshooting

Circuit not working? Try these steps.

  1. Make sure your LED(s) were inserted correctly (anode on the left, cathode on the right)
  2. Make sure your transistor is NPN and that the transistor wasn't inserted backwards.
  3. Check the resistance of your resistor
  4. Check your connections and the power supply