Quick reference

The page to keep open at the bench. Formulas, a “which switch?” flow, parts, datasheet terms, E-series and a glossary.

PracticeChapter 16

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.

PartTypeVCEOIC(max)hFEVCE(sat)Note
BC547BNPN45 V100 mA200–4500.2 V @ 100 mALEDs, small relays
2N3904 / MMBT3904NPN40 V200 mA100–3000.2 V @ 10 mAGeneral purpose, SOT-23 version
2N2222ANPN40 V600 mA100–3000.3 V @ 150 mAMedium current
BC337-40NPN45 V800 mA250–6300.7 V @ 500 mARelays, buzzers
2N3906PNP40 V200 mA100–3000.25 V @ 10 mA2N3904 complement
BC327-40PNP45 V800 mA250–6300.7 V @ 500 mABC337 complement
TIP120NPN Darlington60 V5 A≥ 10002 V @ 3 AHigh drop! Prefer a MOSFET
ULN2003A7× Darlington50 V500 mA/ch—~1 V @ 100 mABuilt-in flyback diodes, steppers/relays
PartVDSSIDRDS(on)VGS(max)PackageNote
2N700260 V0.2–0.3 A~2–5 Ω @ 4.5 V±20 VSOT-23Signals, level shifting, open-drain
AO3400A30 V5.7 A32 mΩ @ 4.5 V · 48 mΩ @ 2.5 V±12 VSOT-23Ideal for 3.3 V GPIO
IRLML634430 V5 A29 mΩ @ 4.5 V · 37 mΩ @ 2.5 V±12 VSOT-23Ideal for 3.3 V GPIO
IRLZ44N55 V47 A22 mΩ @ 10 V · 25 mΩ @ 5 V±16 VTO-2205 V logic; not guaranteed at 3.3 V
FQP30N06L60 V32 A35 mΩ @ 10 V · 45 mΩ @ 5 V±20 VTO-2205 V logic, 24 V systems
PartVDSSIDRDS(on)VGS(max)PackageNote
AO3401A−30 V−4 A60 mΩ @ −4.5 V · 85 mΩ @ −2.5 V±12 VSOT-23Divider required on 12 V
IRLML6402−20 V−3.7 A65 mΩ @ −4.5 V±12 VSOT-23Battery/5 V load switch
IRF9540N−100 V−23 A117 mΩ @ −10 V±20 VTO-220Standard level, needs 10 V gate
PartTypePeak currentVDDInputNote
UCC27517Single low-side4 A4.5–18 VTTL, 3.3 V OKSOT-23-5
TC4427Dual low-side1.5 A4.5–18 VVIH 2.4 VDIP/SOIC-8
IR2104Half-bridge, bootstrap0.21/0.36 A10–20 V3.3 V compatibleFixed dead-time ~520 ns, 600 V
IR2110High + low-side2 A10–20 VSeparate logic supplyDead-time external
PartSupplyCurrentFeaturesNote
DRV88332.7–10.8 V1.5 A rms ×2Dual bridge, current regulationSmall DC/stepper
TB6612FNG2.5–13.5 V1.2 A (3.2 A peak) ×2PWM ≤ 100 kHzHobby robots
DRV88716.5–45 V3.6 A peakCurrent limit via RILIMSingle motor, 2-pin control
VNH5019A-E5.5–24 V12 ACS output, PWM ≤ 20 kHzBig motors
L298N≤ 46 V2 A ×2Bipolar2–4 V drop; avoid in new designs
PartTypeVRRMIFVFtrrUse
1N4148Signal100 V~0.15–0.3 A1 V @ 10 mA4 nsSmall relay flyback
1N4007Standard1000 V1 A1.1 V~µsSlow on/off only
UF4007Ultrafast1000 V1 A1.7 V75 nsHigh-voltage PWM
1N5819 / SS14Schottky40 V1 A0.6 V≈ 0PWM flyback
SS34Schottky40 V3 A0.5 V≈ 0Motor/LED PWM flyback
1N5355BZener 5 WVZ 18 V———Fast-release clamp
SeriesPeak powerPackageExampleNote
SMAJ400 WSMASMAJ5.0A (USB 5 V)10/1000 µs pulse
SMBJ600 WSMBSMBJ15A (12 V), SMBJ28A (24 V)VRWM ≥ highest normal voltage
SMCJ1500 WSMCSMCJ33AAutomotive/industrial input
P6KE600 WDO-15P6KE33AThrough-hole

The clamping voltage VC (at IPP) is ~60 % above VRWM; it must stay below the protected part’s rating.

Datasheet parameter glossary

ParameterMeaningWhat to check
VDSSDrain–source breakdown voltage (gate shorted).Supply + inductive spike + surges ≤ 80 % of it.
IDContinuous drain current, usually at TC = 25 °C with an infinite heatsink.A marketing number; the real limit is thermal: I²·RDS(on)·Rθ.
IDMPulsed 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.
QgTotal charge to bring the gate to the target VGS.Drive power Qg·V·f and turn-on time Qg/IG.
Qgs / QgdCharge before the plateau / Miller (gate–drain) charge.Qgd sets switching loss: tsw ≈ Qgd/IG.
CissInput capacitance Cgs + Cgd (depends on VDS).Rough measure for RC speed; Qg is more reliable for calculations.
Coss / CrssOutput capacitance / reverse transfer (Miller) capacitance.½·Coss·V²·f loss; Crss causes dV/dt false turn-on.
td(on), tr, td(off), tfDelay and transition times, measured with a specific RG and driver.Check the test condition; with a bigger RG times scale up.
EAS / IARSingle-pulse avalanche energy / repetitive avalanche current.For an unclamped inductive load ½LI² ≤ EAS (with margin). Better not to rely on it.
RθJAJunction-to-ambient thermal resistance (with a specific PCB copper area).Does the test PCB resemble yours? Less copper = higher.
RθJCJunction-to-case (tab) thermal resistance.Add RθCS + RθSA when heatsinking.
SOASafe 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, QrrBody-diode forward voltage and reverse recovery.If the body diode conducts in a half-bridge: Qrr loss and EMI.
hFEBJT 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.
VCEOC–E breakdown with the base open.VCE including inductive spikes stays below it.
ICBOCollector–base leakage; doubles every ~10 °C.When hot, the base pull-down must drain it.
tsStorage time: delay coming out of saturation.Overdriving the base lengthens ts; it limits PWM frequency.
Tj(max) / PtotMaximum junction temperature / dissipation limit at TC = 25 °C.Ptot is unrealistic; compute Tj with your own Rθ.

Standard resistor values

SeriesToleranceValues (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. →