Formulas
BJT drive
IB = IC / βforced, βforced = 10…20Keep βforced ≤ hFE(min)/2; read hFE at the real IC.
RB = (VOH − VBE(sat)) / IBVBE(sat) ≈ 0.75–0.9 V; VOH under load (~3.1–3.2 V on a 3.3 V MCU).
PQ = IC·VCE(sat)·D + IB·VBE(sat)
RBE ≈ 10 kΩ → Istolen = VBE/RBEDrains leakage in cutoff and holds the transistor off at boot.
MOSFET drive
VGS(drive) ≥ RDS(on) spec pointNot VGS(th)! That is only the 250 µA point.
IG,peak = Vdrv / (RG + Rdrv)
IG,on = (Vdrv − Vpl)/Rtot IG,off = Vpl/RtotVpl: Miller plateau (from the gate-charge curve).
tsw ≈ Qgd / IG ton,total ≈ Qg / IG
Pgate = Qg · Vdrv · fDissipated in the driver and RG, not in the MOSFET.
VGS = Vrail · R1/(R1 + R2)P-MOS divider: |VGS| ≤ VGS(max).
Switching
Psw ≈ ½ · V · I · (tr + tf) · fRough estimate for hard-switched inductive loads.
PQrr ≈ Qrr · V · f PCoss ≈ ½ · Coss · V² · f
(tr + tf) · f ≤ 0.01…0.02Keep transitions below 1–2 % of the period.
bit = ⌊log2(fclk / fPWM)⌋E.g. 80 MHz / 25 kHz → 11 bit.
Losses
Pcond = Irms² · RDS(on)(Tj), Irms = I·√D
RDS(on)(T) ≈ R25 · (1 + α·(T − 25)), α ≈ 0.005…0.007 /°CRoughly ×1.5 at 100 °C, ×1.7–1.9 at 150 °C.
PBJT = IC · VCE(sat) · D
Pdiode = VF · I · (1 − D)Freewheeling diode, during the off time.
Thermal
Tj = Ta + P · RθJA
RθJA = RθJC + RθCS + RθSASeries thermal resistances with a heatsink.
RθSA ≤ (Tj,max − Ta)/P − RθJC − RθCSRequired heatsink. Use a 110–125 °C design limit instead of Tj,max.
ΔTpulse = P · ZθJC(tp, D)Transient thermal impedance curve for short pulses.
Inductive load
V = L · di/dt E = ½ · L · I² τ = L / R
toff = τ · ln((I0 + Vc/R) / (I1 + Vc/R))Vc: clamp voltage (diode ~0.8 V, diode + zener VZ + 0.8 V).
VDS,peak = Vsupply + Vc ≤ 0.8 · VDSS
ΔIpp = V · D · (1 − D) / (L · f)Current ripple under PWM (slow decay).
Inrush
Ipeak = V / (Rsrc + Rsw + ESR)An empty capacitor is a short.
I = C · dV/dt tramp = CGD · V / IGSoft start with a Miller capacitor.
Eswitch = ½ · C · V² (+ V·Iload·t/6)Energy burnt in the switch while charging equals the energy stored.
RNTC,cold ≥ Vpeak / Imax
Current sensing
Rsense = Vsense,FS / ImaxTypical Vsense,FS = 50–100 mV.
PR = I2 · RsenseUse the resistor at half its power rating.
Vout = I · Rsense · GCurrent-sense amplifier (INA180, INA240); Kelvin connection.
ttrip ≤ MOSFET SOA pulse timeProtection must trip faster than the SOA curve allows.
Decision flow: which switch?
Answer the questions; you end with a recommendation and a link to the chapter. Your path lights up in the diagram. The thresholds are rules of thumb, not hard limits.
Flow
BJT or MOSFET? Low-side or high-side? Need a driver?
Typical parts
Values are typical datasheet figures (25 °C) and vary by vendor and revision. Read your own datasheet before designing.
| Part | Type | VCEO | IC(max) | hFE | VCE(sat) | Note |
|---|---|---|---|---|---|---|
| BC547B | NPN | 45 V | 100 mA | 200–450 | 0.2 V @ 100 mA | LEDs, small relays |
| 2N3904 / MMBT3904 | NPN | 40 V | 200 mA | 100–300 | 0.2 V @ 10 mA | General purpose, SOT-23 version |
| 2N2222A | NPN | 40 V | 600 mA | 100–300 | 0.3 V @ 150 mA | Medium current |
| BC337-40 | NPN | 45 V | 800 mA | 250–630 | 0.7 V @ 500 mA | Relays, buzzers |
| 2N3906 | PNP | 40 V | 200 mA | 100–300 | 0.25 V @ 10 mA | 2N3904 complement |
| BC327-40 | PNP | 45 V | 800 mA | 250–630 | 0.7 V @ 500 mA | BC337 complement |
| TIP120 | NPN Darlington | 60 V | 5 A | ≥ 1000 | 2 V @ 3 A | High drop! Prefer a MOSFET |
| ULN2003A | 7× Darlington | 50 V | 500 mA/ch | — | ~1 V @ 100 mA | Built-in flyback diodes, steppers/relays |
| Part | VDSS | ID | RDS(on) | VGS(max) | Package | Note |
|---|---|---|---|---|---|---|
| 2N7002 | 60 V | 0.2–0.3 A | ~2–5 Ω @ 4.5 V | ±20 V | SOT-23 | Signals, level shifting, open-drain |
| AO3400A | 30 V | 5.7 A | 32 mΩ @ 4.5 V · 48 mΩ @ 2.5 V | ±12 V | SOT-23 | Ideal for 3.3 V GPIO |
| IRLML6344 | 30 V | 5 A | 29 mΩ @ 4.5 V · 37 mΩ @ 2.5 V | ±12 V | SOT-23 | Ideal for 3.3 V GPIO |
| IRLZ44N | 55 V | 47 A | 22 mΩ @ 10 V · 25 mΩ @ 5 V | ±16 V | TO-220 | 5 V logic; not guaranteed at 3.3 V |
| FQP30N06L | 60 V | 32 A | 35 mΩ @ 10 V · 45 mΩ @ 5 V | ±20 V | TO-220 | 5 V logic, 24 V systems |
| Part | VDSS | ID | RDS(on) | VGS(max) | Package | Note |
|---|---|---|---|---|---|---|
| AO3401A | −30 V | −4 A | 60 mΩ @ −4.5 V · 85 mΩ @ −2.5 V | ±12 V | SOT-23 | Divider required on 12 V |
| IRLML6402 | −20 V | −3.7 A | 65 mΩ @ −4.5 V | ±12 V | SOT-23 | Battery/5 V load switch |
| IRF9540N | −100 V | −23 A | 117 mΩ @ −10 V | ±20 V | TO-220 | Standard level, needs 10 V gate |
| Part | Type | Peak current | VDD | Input | Note |
|---|---|---|---|---|---|
| UCC27517 | Single low-side | 4 A | 4.5–18 V | TTL, 3.3 V OK | SOT-23-5 |
| TC4427 | Dual low-side | 1.5 A | 4.5–18 V | VIH 2.4 V | DIP/SOIC-8 |
| IR2104 | Half-bridge, bootstrap | 0.21/0.36 A | 10–20 V | 3.3 V compatible | Fixed dead-time ~520 ns, 600 V |
| IR2110 | High + low-side | 2 A | 10–20 V | Separate logic supply | Dead-time external |
| Part | Supply | Current | Features | Note |
|---|---|---|---|---|
| DRV8833 | 2.7–10.8 V | 1.5 A rms ×2 | Dual bridge, current regulation | Small DC/stepper |
| TB6612FNG | 2.5–13.5 V | 1.2 A (3.2 A peak) ×2 | PWM ≤ 100 kHz | Hobby robots |
| DRV8871 | 6.5–45 V | 3.6 A peak | Current limit via RILIM | Single motor, 2-pin control |
| VNH5019A-E | 5.5–24 V | 12 A | CS output, PWM ≤ 20 kHz | Big motors |
| L298N | ≤ 46 V | 2 A ×2 | Bipolar | 2–4 V drop; avoid in new designs |
| Part | Type | VRRM | IF | VF | trr | Use |
|---|---|---|---|---|---|---|
| 1N4148 | Signal | 100 V | ~0.15–0.3 A | 1 V @ 10 mA | 4 ns | Small relay flyback |
| 1N4007 | Standard | 1000 V | 1 A | 1.1 V | ~µs | Slow on/off only |
| UF4007 | Ultrafast | 1000 V | 1 A | 1.7 V | 75 ns | High-voltage PWM |
| 1N5819 / SS14 | Schottky | 40 V | 1 A | 0.6 V | ≈ 0 | PWM flyback |
| SS34 | Schottky | 40 V | 3 A | 0.5 V | ≈ 0 | Motor/LED PWM flyback |
| 1N5355B | Zener 5 W | VZ 18 V | — | — | — | Fast-release clamp |
| Series | Peak power | Package | Example | Note |
|---|---|---|---|---|
| SMAJ | 400 W | SMA | SMAJ5.0A (USB 5 V) | 10/1000 µs pulse |
| SMBJ | 600 W | SMB | SMBJ15A (12 V), SMBJ28A (24 V) | VRWM ≥ highest normal voltage |
| SMCJ | 1500 W | SMC | SMCJ33A | Automotive/industrial input |
| P6KE | 600 W | DO-15 | P6KE33A | Through-hole |
The clamping voltage VC (at IPP) is ~60 % above VRWM; it must stay below the protected part’s rating.
Datasheet parameter glossary
| Parameter | Meaning | What to check |
|---|---|---|
| VDSS | Drain–source breakdown voltage (gate shorted). | Supply + inductive spike + surges ≤ 80 % of it. |
| ID | Continuous drain current, usually at TC = 25 °C with an infinite heatsink. | A marketing number; the real limit is thermal: I²·RDS(on)·Rθ. |
| IDM | Pulsed drain current (short, low duty). | Are inrush and short-circuit peaks below this and inside the SOA? |
| RDS(on) | Drain–source resistance when fully on, at a given VGS and Tj. | The max value at your VGS; the temperature factor curve. |
| VGS(th) | Gate voltage for 250 µA (typ.) of drain current. | The min value for noise immunity; not a “fully on” measure. |
| VGS(max) | Maximum voltage the gate oxide survives. | Drive voltage plus ringing peaks below it. |
| Qg | Total charge to bring the gate to the target VGS. | Drive power Qg·V·f and turn-on time Qg/IG. |
| Qgs / Qgd | Charge before the plateau / Miller (gate–drain) charge. | Qgd sets switching loss: tsw ≈ Qgd/IG. |
| Ciss | Input capacitance Cgs + Cgd (depends on VDS). | Rough measure for RC speed; Qg is more reliable for calculations. |
| Coss / Crss | Output capacitance / reverse transfer (Miller) capacitance. | ½·Coss·V²·f loss; Crss causes dV/dt false turn-on. |
| td(on), tr, td(off), tf | Delay and transition times, measured with a specific RG and driver. | Check the test condition; with a bigger RG times scale up. |
| EAS / IAR | Single-pulse avalanche energy / repetitive avalanche current. | For an unclamped inductive load ½LI² ≤ EAS (with margin). Better not to rely on it. |
| RθJA | Junction-to-ambient thermal resistance (with a specific PCB copper area). | Does the test PCB resemble yours? Less copper = higher. |
| RθJC | Junction-to-case (tab) thermal resistance. | Add RθCS + RθSA when heatsinking. |
| SOA | Safe operating area: in the VDS–ID plane, per pulse length. | Are linear operation, soft start and short-circuit time inside it? A DC curve is often missing. |
| VSD, trr, Qrr | Body-diode forward voltage and reverse recovery. | If the body diode conducts in a half-bridge: Qrr loss and EMI. |
| hFE | BJT DC current gain IC/IB; a wide range. | The minimum at your real IC; it falls at high current. |
| VCE(sat) | C–E voltage in saturation, measured at forced β = 10. | Loss IC·VCE(sat); higher if your β is above 10. |
| VBE(sat) | B–E voltage in saturation (~0.75–0.9 V). | Use this in the RB calculation, not 0.7 V. |
| VCEO | C–E breakdown with the base open. | VCE including inductive spikes stays below it. |
| ICBO | Collector–base leakage; doubles every ~10 °C. | When hot, the base pull-down must drain it. |
| ts | Storage time: delay coming out of saturation. | Overdriving the base lengthens ts; it limits PWM frequency. |
| Tj(max) / Ptot | Maximum junction temperature / dissipation limit at TC = 25 °C. | Ptot is unrealistic; compute Tj with your own Rθ. |
Standard resistor values
| Series | Tolerance | Values (each decade) |
|---|---|---|
| E6 | ±20 % | 1.0 · 1.5 · 2.2 · 3.3 · 4.7 · 6.8 |
| E12 | ±10 % | 1.0 · 1.2 · 1.5 · 1.8 · 2.2 · 2.7 · 3.3 · 3.9 · 4.7 · 5.6 · 6.8 · 8.2 |
| E24 | ±5 % | 1.0 · 1.1 · 1.2 · 1.3 · 1.5 · 1.6 · 1.8 · 2.0 · 2.2 · 2.4 · 2.7 · 3.0 · 3.3 · 3.6 · 3.9 · 4.3 · 4.7 · 5.1 · 5.6 · 6.2 · 6.8 · 7.5 · 8.2 · 9.1 |
| E96 | ±1 % | 96 values, 10i/96 rounded to three digits (1.00 · 1.02 · 1.05 · 1.07 …) |
Calc
Nearest E-series value
Input examples: 4k7, 4.7k, 4700, 2R2, 1M, 330. The combinations use two resistors from the chosen series in series or in parallel to get closer to the target.
Glossary of terms
InrushThe large current surge at switch-on, for example into an empty capacitor. →
OvercurrentCurrent above the design limit; a fuse, eFuse or firmware cuts it. →
Shoot-throughBoth switches of a half-bridge conducting together and shorting the supply. →
Dead-timeThe gap between one switch turning off and the other turning on. →
BootstrapA diode-charged capacitor that lifts a high-side N-MOS gate above its source. →
Miller plateauThe flat VGS step where gate current charges Cgd during a transition. →
AvalancheThe junction breaking down above VDSS; its limit is EAS. →
SOAThe voltage–current–time region where the part operates safely. →
FlybackThe voltage kick when an inductive load is cut, and the diode that clamps it. →
FreewheelingInductor current that keeps flowing through a diode while the switch is off. →
UVLOA lock-out that holds the driver output off while its supply is low. →
Slew rate (dV/dt, di/dt)How fast voltage or current changes; faster means less loss but more EMI. →
RingingA lightly damped oscillation of parasitic L and C. →
Hot-swapAn inrush controller that makes plugging boards into a live rail safe. →
eFuseAn electronic fuse with current limit and soft start in one package. →
Kelvin sourceA separate source pin for the gate return; keeps power current out of the gate loop. →
Body diodeThe built-in source→drain diode of a MOSFET; it always conducts reverse current. →
Logic-levelA MOSFET with RDS(on) guaranteed at a low VGS, such as 4.5 V or 2.5 V. →
Open-drainAn output that only pulls low; a pull-up provides the high level. →
Level shifterA circuit that moves a control signal to another voltage level. →
Back-EMFThe speed-proportional voltage of a spinning motor; zero at standstill. →
Brown-outThe supply dipping below the MCU’s safe threshold and causing a reset. →
Forced betaThe small IC/IB ratio chosen for saturation, usually 10–20. →
Reverse recoveryA diode briefly conducting in reverse as it turns off (trr, Qrr). →
Charge pumpA capacitor circuit that makes a voltage above the supply; enables 100 % duty high-side drive. →
Low-side / high-sideSwitch between load and ground / between supply and load. →