BJT as a Switch
Drive a load from a microcontroller pin by saturating an NPN transistor.
Easy
+12 V
│
Load (relay/LED strip) ← flyback diode across inductive loads
│
MCU ──[ Rb ]── B NPN
E
│
GND
- Load current, e.g. = 200 mA.
- Required base current with margin: use a "forced β" of 10–20 → ≈ 10–20 mA (check the pin can supply it).
- Ω.
The transistor then saturates and dissipates only . For larger currents a logic-level MOSFET is usually better.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.