How does a BJT work?

A BJT is current-controlled: a small base current permits a collector current β times larger. As a switch, we keep it in saturation, not in the active region.

FundamentalsChapter 02

Three layers, two junctions

Once base–emitter is forward-biased at ≈ 0.6–0.7 V, collector current flows. Base current is only a small part of it.

  • NPN = heavily doped emitter (n+), very thin base (p), wide collector (n).
  • The forward-biased emitter injects electrons into the base.
  • The base is thin, so most electrons are swept into the collector.
  • The few that recombine in the base form the base current.
Lab

Inside the NPN: raise VBE

Blue dots are electrons, flowing opposite to conventional current. Circuit: VCC = 5 V, RC = 1 kΩ, β = 150. Above VBE ≈ 0.72 V, IC stops at ~5 mA: saturation.
IC ≈ IS · eVBE/VT    IB = IC / β    IE = IC + IB VT ≈ 26 mV (25 °C). Every 60 mV more VBE multiplies the current by 10. That is why a BJT is driven with current through a resistor.
Never tie the base straight to a GPIO Base–emitter is a diode. Apply 3.3 V directly and nothing limits the current: the pin is overloaded and the transistor heats up. Always use a series base resistor.

NPN and PNP: current directions

NPNs sit below the load (low-side), PNPs above it (high-side). The arrow on the symbol shows current direction at the emitter.

  • NPN: arrow out, current leaves the emitter.
  • PNP: arrow in, current enters the emitter.
Animation

Currents in NPN and PNP

To turn an NPN on, pull the base ~0.7 V above the emitter. To turn a PNP on, pull it ~0.7 V below the emitter. A PNP’s base current flows out of the base.

β (hFE) is not a constant

For switching, design with the minimum hFE and add margin. Datasheets give it as a wide range; 200–450 for the BC547B.

  • It varies with current, temperature and from part to part.
  • It drops noticeably at high current.
PartIC(max)VCEOhFE (typ. condition)VCE(sat)
BC547B (NPN)100 mA45 V200–450 @ 2 mA0.2 V @ 100 mA/5 mA
2N3904 (NPN)200 mA40 V100–300 @ 10 mA0.2 V @ 10 mA/1 mA
2N2222A (NPN)600 mA40 V100–300 @ 150 mA0.3 V @ 150 mA/15 mA
BC327 (PNP)800 mA45 V100–630 @ 100 mA0.7 V @ 500 mA/50 mA
BD139 (NPN, power)1.5 A80 V40–250 @ 150 mA0.5 V @ 500 mA/50 mA

Typical datasheet values; they vary by vendor and gain group. VCE(sat) is always given at a forced IC/IB ratio, usually 10.

Output characteristics and the load line

The operating point Q is where the load line crosses the IB curve. Each curve is IC vs VCE at a fixed IB.

VCE = VCC − IC · RC Load line: every point the circuit allows the transistor.
Lab

IC–VCE curves, load line, Q point

In a switch, Q sits upper-left (saturation: low VCE, low loss) or lower-right (cutoff: IC ≈ 0). In the middle, the active region, it dissipates VCE·IC.

Three regions

RegionB–EB–CBehaviourUsed for
Cutoffreverse / < 0.5 VreverseIC ≈ 0 (nA–µA leakage)Switch OFF
Activeforward ≈ 0.65 VreverseIC = β·IBAmplifier; avoided in switches
Saturationforward ≈ 0.75–0.9 VforwardIC < β·IB, VCE = VCE(sat)Switch ON
Forced beta In saturation the load sets IC, not the transistor. The ratio IC/IB is the forced beta. Choose 10–20 for reliable saturation; Chapter 05 works it out.
Load currentIC = 100 mAβforced10hFE(min)100
  1. Required base currentIB = 100 mA / 1010 mA
  2. Enough in the active regionIB = 100 mA / 1001 mAat this edge the transistor does not saturate
Feed the base 10 mA, not 1 mA. Ten times the minimum keeps it saturated even if hFE drops.

Temperature

  • VBE drifts ≈ −2 mV/°C: a hot transistor turns on at a lower voltage.
  • β rises with temperature. In paralleled BJTs the hotter one hogs current; never parallel them without emitter resistors.
  • Cutoff leakage ICBO doubles every ~10 °C. A base pull-down resistor drains it safely.