Projects / Transistor as a switch

Transistor as a switch

Beginner30 minGuided buildReviewed

Build it step by step

0 of 7 done
  1. BC54713.8 mA

    Wire the LED branch

    +9 V, 220 Ω, LED, BC547 collector, emitter to ground.

  2. Wire the base

    A button then a 10 kΩ resistor to the base.

  3. 13.8 mA

    Press the button

    The LED lights fully.

  4. Measure base current

    Put the meter in series with the base resistor and read the current.

  5. 13.8 mA

    Measure collector current

    Put the meter in series with the LED branch and read the current.

  6. 13.8 mA

    Compare resistors

    Swap 10 kΩ for 1 kΩ then 100 kΩ and note the LED brightness and the collector current.

  7. Work out the gain

    Divide collector current by base current for each case.

In short

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
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 battery +Button, then the base resistorButton gives the base current
Base resistor other endBC547 base1 kΩ, 10 kΩ or 100 kΩ to compare
9 V battery +220 Ω, then LED anodeLoad
LED cathodeBC547 collectorLow-side switch
BC547 emitterGNDCommon 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.

CheckExpected
10 kΩ base resistorBase current near 0.8 mA, collector near 30 mA, LED bright
100 kΩ base resistorLED dim and collector below saturation
1 kΩ base resistorBase current near 8 mA, no brighter than with 10 kΩ
Collector-emitter voltage onAbout 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 →

Ask Lark AI

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.