Build it step by step
0 of 7 doneWire the LED branch
+9 V, 220 Ω, LED, BC547 collector, emitter to ground.
Wire the base
A button then a 10 kΩ resistor to the base.
Press the button
The LED lights fully.
Measure base current
Put the meter in series with the base resistor and read the current.
Measure collector current
Put the meter in series with the LED branch and read the current.
Compare resistors
Swap 10 kΩ for 1 kΩ then 100 kΩ and note the LED brightness and the collector current.
Work out the gain
Divide collector current by base current for each case.
How do you build a transistor as a switch?
A small base current switches a larger collector current, lighting a bright LED, with three base resistors to compare. You need BC547 NPN transistor, Resistor 1 kΩ, Resistor 10 kΩ, Resistor 100 kΩ, LED 5 mm red, Resistor 220 Ω, Tactile push button 6 mm, Breadboard 830 Tie Points, 9 V battery, 9 V battery snap with DC jack and Digital multimeter. It takes 7 steps and about 30 minutes.
- Level
- Beginner
- Time
- About 30 min
- Parts
- 11
Parts list
- SemiconductorsBuy
- PassivesBuyResistor 1 kΩ × 1
- PassivesBuyResistor 10 kΩ × 1
- PassivesBuyResistor 100 kΩ × 1
- SemiconductorsBuyLED 5 mm red × 1
- PassivesBuyResistor 220 Ω × 1
- SwitchesBuy
- PrototypingBuy
- BatteriesBuy9 V battery × 1
- PowerBuy
- Tools & InstrumentsBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| 9 V battery + | Button, then the base resistor | Button gives the base current |
| Base resistor other end | BC547 base | 1 kΩ, 10 kΩ or 100 kΩ to compare |
| 9 V battery + | 220 Ω, then LED anode | Load |
| LED cathode | BC547 collector | Low-side switch |
| BC547 emitter | GND | Common ground |
No code needed
No code. The LED current is about (9 − 2) V ÷ 220 Ω ≈ 32 mA. A BC547 has a gain near 100, so it needs at least 0.3 mA of base current. A 10 kΩ base resistor gives about 0.8 mA, which is plenty. A 100 kΩ resistor gives only 0.08 mA, so the LED is dim, and 1 kΩ gives about 8 mA, which is far more than needed.
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| 10 kΩ base resistor | Base current near 0.8 mA, collector near 30 mA, LED bright |
| 100 kΩ base resistor | LED dim and collector below saturation |
| 1 kΩ base resistor | Base current near 8 mA, no brighter than with 10 kΩ |
| Collector-emitter voltage on | About 0.1 to 0.2 V when fully switched on |
If it does not work
LED never lights
Transistor pin order is wrong. Check the datasheet for your package.
LED lit without pressing
Leakage from your fingers or the base floating. Add 100 kΩ from base to ground.
Meter reads zero current
Meter in the wrong socket or the fuse is blown.
Transistor gets warm
Collector current is too high. Use a larger load resistor.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the transistor as a switch?
BC547 NPN transistor, Resistor 1 kΩ, Resistor 10 kΩ, Resistor 100 kΩ, LED 5 mm red, Resistor 220 Ω, Tactile push button 6 mm, Breadboard 830 Tie Points, 9 V battery, 9 V battery snap with DC jack and Digital multimeter.
How long does the transistor as a switch take to build?
About 30 minutes for a beginner maker, in 7 steps.
How do I know the transistor as a switch works?
10 kΩ base resistor: Base current near 0.8 mA, collector near 30 mA, LED bright. 100 kΩ base resistor: LED dim and collector below saturation. 1 kΩ base resistor: Base current near 8 mA, no brighter than with 10 kΩ.
LED never lights: what should I check?
Transistor pin order is wrong. Check the datasheet for your package.
LED lit without pressing: what should I check?
Leakage from your fingers or the base floating. Add 100 kΩ from base to ground.
Meter reads zero current: what should I check?
Meter in the wrong socket or the fuse is blown.
Transistor gets warm: what should I check?
Collector current is too high. Use a larger load resistor.
