39. Design PNP switch

Circuit

Loading simulator…

Design Approach

A PNP transistor switches the positive supply while leaving the load connected to system ground. Because its emitter sits near 5 V, pulling the base LOW turns it on; driving the base back toward 5 V turns it off.

How the Circuit Works

  1. Arrange the high-side path. The provided Q1 has its emitter at VCC = 5 V and its collector feeding R_LOAD = 82 Ω through I_LOAD to ground.
  2. Limit control current. The solution adds R_B = 2.2 kΩ between CTRL_IN/I_CTRL and the transistor base. When CTRL_IN = 0 V, approximate base current is 5−0.72.2kΩ≈1.95mA\frac{5 - 0.7}{2.2\,\mathrm{k}\Omega} \approx 1.95\,\mathrm{mA}, under the 3 mA ceiling.
  3. Turn the load on. A LOW input forward-biases the emitter-base junction. With Q1 saturated, load current is around 5−0.282≈58.5mA\frac{5 - 0.2}{82} \approx 58.5\,\mathrm{mA}, above 50 mA.
  4. Turn the load off. When CTRL_IN = 5 V, the base and emitter are at nearly the same voltage. Base drive disappears, the transistor switches off, and load current becomes negligible.

Verify the Circuit

Set CTRL_IN = 0 V and 5 V. Check ILOAD≥50mAI_{\mathrm{LOAD}} \ge 50\,\mathrm{mA} when LOW and < 0.1 mA when HIGH; ensure |ICTRL|≤3mA\lvert I_{\mathrm{CTRL}}\rvert\le3\,\mathrm{mA} in both states.

Key Learnings

  • PNP high-side switching is naturally active-low.
  • A base resistor protects the control source and determines how strongly the transistor can switch the load.