Dark-activated street light with one transistor
Build it step by step
0 of 5 donePlace the transistor
BC547 flat side facing you: legs are collector, base, emitter from left to right.
Build the divider
Trimmer from 9 V plus to a free row (the divider point), LDR from that row to 9 V minus.
Bias the base
1 kΩ from the divider point to the base. Emitter to minus.
Add the LEDs
Each LED with its own 330 Ω from plus, all cathodes to the collector.
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.
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
Parts list
- SensorsBuy
- PassivesBuy
- SemiconductorsBuy
- PassivesBuyResistor 1 kΩ × 1
- OptoelectronicsBuyLED 5 mm white × 3
- PassivesBuyResistor 330 Ω × 3
- BatteriesBuy9 V battery × 1
- PowerBuy
- PrototypingBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| 9 V + | Trimmer (10 kΩ) to the divider point | Upper half of the divider |
| Divider point | LDR to 9 V − | Lower half: dark = high LDR resistance = higher voltage |
| Divider point | 1 kΩ to BC547 base | Base current limit |
| BC547 emitter | 9 V − | Ground |
| 9 V + | Each white LED anode through its own 330 Ω | Three LED strings in parallel |
| LED cathodes | BC547 collector | The 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.
| Check | Expected |
|---|---|
| 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 |
| Current from the battery with LEDs on | About 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 →
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.
