Projects / Dark-activated street light with one transistor

Dark-activated street light with one transistor

Beginner40 minGuided buildReviewed

Build it step by step

0 of 5 done
  1. BC547

    Place the transistor

    BC547 flat side facing you: legs are collector, base, emitter from left to right.

  2. 469 lux

    Build the divider

    Trimmer from 9 V plus to a free row (the divider point), LDR from that row to 9 V minus.

  3. Bias the base

    1 kΩ from the divider point to the base. Emitter to minus.

  4. 13.3 mA

    Add the LEDs

    Each LED with its own 330 Ω from plus, all cathodes to the collector.

  5. 471 lux

    Set the threshold

    Power up in normal room light and turn the trimmer until the LEDs just go off. Cover the LDR with your hand: they should light.

In short

How do you build a dark-activated street light with one transistor?

An LDR and a BC547 transistor turn three white LEDs on at dusk and off at dawn, with no microcontroller. You need LDR Photoresistor, Trimmer potentiometer 10 kΩ (3296), BC547 NPN transistor, Resistor 1 kΩ, LED 5 mm white × 3, Resistor 330 Ω × 3, 9 V battery, 9 V battery snap with DC jack, Breadboard 400 points (half size) and Jumper wires male to male (40 pcs, 20 cm). It takes 5 steps and about 40 minutes.

Level
Beginner
Time
About 40 min
Parts
10
See the electronics first. This build uses transistor switch. Try a transistor switch in the circuit builder and watch the voltages and currents before you wire it.

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
9 V +Trimmer (10 kΩ) to the divider pointUpper half of the divider
Divider pointLDR to 9 V −Lower half: dark = high LDR resistance = higher voltage
Divider point1 kΩ to BC547 baseBase current limit
BC547 emitter9 V −Ground
9 V +Each white LED anode through its own 330 ΩThree LED strings in parallel
LED cathodesBC547 collectorThe transistor completes the LED circuit

No code needed

No code. The LDR and trimmer form a voltage divider. In the dark the LDR's resistance rises to hundreds of kΩ, the divider voltage rises above about 0.7 V and the transistor turns on the LEDs.

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Room lightLEDs off (or very dim)
LDR coveredLEDs on fully within a second
Voltage at the base in the darkAbout 0.7 V
Current from the battery with LEDs onAbout 45 to 55 mA

If it does not work

LEDs always on

Turn the trimmer the other way, or check the LDR goes to minus, not plus.

LEDs never light

Check the BC547 pinout (collector, base, emitter with the flat side towards you) and the LED polarity.

LEDs fade on slowly at dusk

One transistor switches gradually. An LM393 comparator or a second transistor stage gives a sharp switch.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the dark-activated street light with one transistor?

LDR Photoresistor, Trimmer potentiometer 10 kΩ (3296), BC547 NPN transistor, Resistor 1 kΩ, LED 5 mm white × 3, Resistor 330 Ω × 3, 9 V battery, 9 V battery snap with DC jack, Breadboard 400 points (half size) and Jumper wires male to male (40 pcs, 20 cm).

How long does the dark-activated street light with one transistor take to build?

About 40 minutes for a beginner maker, in 5 steps.

How do I know the dark-activated street light with one transistor works?

Room light: LEDs off (or very dim). LDR covered: LEDs on fully within a second. Voltage at the base in the dark: About 0.7 V.

LEDs always on: what should I check?

Turn the trimmer the other way, or check the LDR goes to minus, not plus.

LEDs never light: what should I check?

Check the BC547 pinout (collector, base, emitter with the flat side towards you) and the LED polarity.

LEDs fade on slowly at dusk: what should I check?

One transistor switches gradually. An LM393 comparator or a second transistor stage gives a sharp switch.