Semiconductors: diodes and transistors · Part 14 of 36

Bipolar transistors (BJTs)

Intermediate 16 min

How a small base current controls a large collector current, using an NPN transistor as a switch, and the basics of transistor amplifiers.

What you will learn

  • You can explain current gain β and the three regions of a BJT.
  • You can design an NPN low-side switch with a base resistor.
  • You can describe a common-emitter amplifier.

Before this: Diodes, LEDs and rectifiers

Three layers, three legs

A bipolar junction transistor (BJT) is a sandwich of three doped layers: n–p–n (NPN) or p–n–p (PNP). Its legs are the emitter (E), base (B) and collector (C). John Bardeen, Walter Brattain and William Shockley at Bell Labs built the first transistors in 1947–48 and received the 1956 Nobel Prize.

A small three-legged transistor controlling a big lamp

A small current controls a big one

In an NPN transistor, a small current flowing into the base (base–emitter junction forward-biased at about 0.65 V) lets a much larger current flow from collector to emitter:

I_C ≈ β × I_B

β (also h_FE), the current gain, is typically 100–400 — but it varies widely between parts of the same type and with temperature and current. Good designs never depend on its exact value.

Three regions

  • Cut-off: no base current → no collector current. The switch is off.
  • Active: I_C = β × I_B; the collector voltage can vary. Used for amplifying.
  • Saturation: so much base current that the collector current is limited by the load, not by β. The transistor is fully on, with only V_CE(sat) ≈ 0.1–0.3 V across it.
A transistor switching a small motor with a tiny current from a button

The transistor as a switch

The most common use: a microcontroller pin (3.3 V, a few mA) switches a load that needs more current, such as a relay, a motor or an LED strip.

+12 V ── load ── C
                 NPN
GPIO ── R_B ──── B
                 E ── GND

This is a low-side switch (the transistor sits between load and ground). Design:

  1. Load current: a 12 V relay with 120 Ω coil → I_C = 100 mA.
  2. Required base current, with a safety factor for saturation: I_B ≈ I_C / 10 = 10 mA (designers deliberately use a "forced β" of 10–20, well below the real β).
  3. Base resistor: R_B = (3.3 V − 0.65 V) / 10 mA ≈ 265 Ω → 270 Ω.
  4. Inductive load? Add the flyback diode (lesson "Inductors and RL circuits").
  5. Check power: P ≈ V_CE(sat) × I_C = 0.2 V × 0.1 A = 20 mW — fine for a small transistor like the BC547 or 2N3904 (both rated around 100–200 mA collector current).

PNP transistors do the same as high-side switches, between the supply and the load, with the base pulled low to turn on.

The transistor as an amplifier

In the active region, a small change in base current produces a β times larger change in collector current; through a collector resistor that becomes a larger voltage change. The classic common-emitter amplifier biases the transistor in the middle of its active range with a voltage divider, uses an emitter resistor for stability (negative feedback that makes the gain roughly R_C / R_E and nearly independent of β) and couples the signal in and out with capacitors. Its output is inverted. The emitter follower (common collector) has a gain of about 1 but can drive heavy loads — a buffer.

Today you rarely build amplifiers from single transistors: op-amps (next module) do it better. But inside every op-amp and chip, these circuits are still at work.

Key points

  • BJTs are NPN or PNP; legs emitter, base, collector; V_BE ≈ 0.65 V when on.
  • I_C ≈ β × I_B, with β typically 100–400 and poorly controlled.
  • Cut-off = off, saturation = fully on (V_CE ≈ 0.1–0.3 V), active = amplifier.
  • Switch design: I_B ≈ I_C/10, R_B = (V_drive − 0.65)/I_B, flyback diode for coils.
  • Common-emitter amplifiers invert and get their stable gain from R_C/R_E.

Flashcards

Question: What are the three legs of a BJT?
Answer: Emitter, base and collector.
Question: What is a BJT’s base–emitter voltage when on?
Answer: About 0.65 V.
Question: Why use a forced β of 10 for a switch?
Answer: To guarantee saturation despite the real β varying widely.
Question: Where does a low-side switch sit?
Answer: Between the load and ground.

Check yourself

Think about your answer, then open it. In the app the quiz is interactive, earns points and brings back what you missed.

  1. An NPN transistor with β = 200 has 50 µA base current in the active region. What is I_C (in mA)?

    Show the answer

    10 mA (± 0.01 mA)

    I_C = β × I_B = 200 × 50 µA = 10 mA.

    Source: Sedra & Smith, ch. 6

  2. Base resistor for I_B = 5 mA from a 5 V pin (V_BE = 0.65 V), exact value in Ω?

    Show the answer

    870 Ω (± 2 Ω)

    (5 − 0.65) / 0.005 = 870 Ω → use 820 Ω for a bit more base current.

    Source: The Art of Electronics, 2.2

  3. Match the region with its use.

    Show the answer

    Cut-off = Switch off; Saturation = Switch fully on; Active = Amplifier

    The three operating regions of a BJT.

    Source: Sedra & Smith, ch. 6

  4. Why should a design not depend on the exact value of β?

    • β varies widely between parts and with temperature
    • β is always exactly 100
    • β only matters for PNP
    • β is the breakdown voltage
    Show the answer

    β varies widely between parts and with temperature

    Datasheets give wide min–max ranges for h_FE.

    Source: The Art of Electronics, 2.1

Sources

Facts checked on 2026-11-30. Skillgrove lessons are free learning material — no certificate and no accreditation.