BJT as Switch and Amplifier
A BJT can be used in two very different ways. As a switch, it is driven into cutoff or saturation. As an amplifier, it is biased in the active region so small input changes create larger output changes. Mixing these two mental models is one of the most common beginner errors.
Learning Objectives
By the end of this lesson, you should be able to:
- design a simple saturated NPN low-side switch;
- choose base current using forced beta;
- explain common-emitter voltage amplification;
- estimate gain with collector and emitter resistors;
- debug saturation, bias, clipping, and thermal problems.
BJT as a Switch
For an NPN low-side switch, the load connects to the positive supply and the transistor pulls the low side toward ground. The base resistor limits base current. An inductive load needs a flyback path.
Use forced beta, not typical hFE, for saturation:
$$
I_B \ge \frac{I_C}{\beta_\text{forced}}
$$
A forced beta of 10 is common for small saturated switches unless the datasheet gives a different condition. Then:
$$
R_B = \frac{V_\text{drive}-V_{BE(sat)}}{I_B}
$$
Check GPIO current, transistor current rating, VCE(sat), package power, and load energy.
BJT as an Amplifier
In a common-emitter amplifier, the transistor is biased so the collector sits somewhere between supply and ground. A small base-emitter voltage change changes collector current. The collector resistor converts that current change into an output voltage change.
With an unbypassed emitter resistor, a rough voltage gain estimate is:
$$
A_v \approx -\frac{R_C}{R_E + r_e}
$$
where:
$$
r_e \approx \frac{25\ mV}{I_E}
$$
The minus sign means the common-emitter amplifier inverts the signal.
Bias Point and Clipping
An amplifier needs a quiescent operating point, often called the Q point. If the collector voltage is too close to VCC, positive swing clips. If it is too close to ground or saturation, negative swing clips. A midpoint collector voltage is a common first target for symmetric swing.
Emitter resistors and voltage-divider biasing make the circuit less sensitive to beta variation.
Worked Example: Switch vs Amplifier Choice
Requirement A: turn a 12 V, 80 mA relay on and off from a GPIO. Use a saturated switch with forced beta and a flyback diode.
Requirement B: amplify a 10 mV sensor signal into a larger AC voltage. Use active-region bias, coupling if needed, and check gain, bandwidth, noise, and input impedance.
The same transistor family may be able to do both jobs, but the biasing and success criteria are completely different.
Debugging Checklist
| Symptom | Likely cause |
|---|---|
| load never turns on | wrong pinout, no base current, open load |
| transistor gets hot | too much current, insufficient saturation, no flyback clamp |
| output waveform clips | wrong Q point or too much gain |
| gain varies between units | beta-dependent bias |
| relay resets MCU | inductive kick, supply dip, poor grounding |
Common Mistakes
- Designing a switch using active-region
IC = beta IBwithout forced saturation margin. - Designing an amplifier and accidentally driving it into saturation.
- Forgetting the phase inversion of common-emitter amplifiers.
- Omitting emitter degeneration in a beta-sensitive amplifier.
- Ignoring load impedance and coupling capacitor cutoff frequency.
Summary
A BJT switch should be confidently off or saturated on. A BJT amplifier should stay in the active region around a stable bias point. Switch design is dominated by base drive, saturation, load protection, and heat. Amplifier design is dominated by bias, gain, signal swing, impedance, noise, and bandwidth.
Further Reading
- ON Semiconductor: Bipolar transistor switching time and saturation notes.
- Texas Instruments: discrete transistor amplifier and switch application notes.
- Sedra and Smith, Microelectronic Circuits, BJT amplifier chapters.