EngineerPlay

Transistor switch formulas

An NPN switch takes I_b = (V_in − 0.7 V) / R_b into its base. Saturated, it keeps only V_CE(sat) ≈ 0.2 V, so the load sets I_c = (V_cc − 0.2 V) / R_L, and the base needs I_c / β, given k = 2 to 10 times that: R_b = (V_in − 0.7 V) / I_b.

The formulas

FormulaWhat it givesSymbols
I_b = (V_in − V_BE) ÷ R_bBase current from a pin through R_bV_BE ≈ 0.7 V for a conducting silicon transistor; R_b in Ω gives I_b in A
I_c = (V_cc − V_CE(sat)) ÷ R_LLoad (collector) current, saturatedV_CE(sat) ≈ 0.2 V; valid while β × I_b is at least this current
I_b = I_c ÷ βLeast base current that saturatesβ (h_FE) = the current gain from the data sheet; use its lowest value
I_b = k × I_c ÷ βBase current with an overdrive kk = 2 to 10 makes sure the transistor saturates even with a low β
R_b = (V_in − V_BE) ÷ I_bBase resistor for a base currentwith I_b = I_c / β it gives the largest R_b that still saturates
I_c = β × I_bCollector current when not saturatedwhen β × I_b is less than (V_cc − 0.2 V) / R_L: the transistor is only partly on
P = V_CE(sat) × I_cPower wasted in a saturated transistorleaving out the small base power V_BE × I_b
P_L = (V_cc − V_CE(sat)) × I_cPower in the loador I_c² × R_L; the supply gives V_cc × I_c in all
R = (V_cc − V_f − V_CE(sat)) ÷ ISeries resistor of an LED switched by a transistorV_f = the LED's forward voltage (about 2 V red, 3.2 V white)
V_out = V_CE(sat)NOT gate output, input highthe transistor saturates and pulls the collector low
V_out = V_cc × R_L ÷ (R_c + R_L)NOT gate output, input low, with a loadthe transistor is off, so R_c and the load make a divider; with no load V_out = V_cc
V_C = V_cc + V_DCollector at switch-off with a flyback diodethe diode across the coil, cathode towards +V_cc, carries the coil's current round; V_D ≈ 0.7 V
V_C = V_cc + V_D + V_ZCollector at switch-off with a diode and a zenerthe zener lets the current die away faster, so the relay drops out sooner

Worked example

This example is made by the same code as the practice questions. Open the working to see every step.

The lamp must switch fully on, with V_CE(sat) = 0.2 V across the transistor. The base gets 3 times the least base current I_c ÷ β, and V_BE = 0.7 V. What base resistor R_b is needed? Give your answer to 3 significant figures.

A transistor switch: a pin drives the base through R_b, and the transistor switches a lamp on the supply V_ccLabels shown, in drawing order: +, B, C, E, R_L, pin, R_b, V_in = 3.3 V, V_cc = 12 V, R_L = 270 Ω, β = 120, R_b = ?.+BCER_LpinR_bV_in = 3.3 VV_cc = 12 VR_L = 270 Ωβ = 120R_b = ?
Show the working
  1. Write down what is given: V_in = 3.3 V, V_cc = 12 V, R_L = 270 Ω, β = 120, k = 3.
  2. First the collector current with the transistor saturated: I_c = (12 V − 0.2 V) ÷ 270 Ω ≈ 43.70 mA.
  3. Then the base current, k times the least: I_b = 3 × 43.70 mA ÷ 120 ≈ 1.093 mA.
  4. R_b takes the pin voltage less V_BE at that base current: R_b = (V_in − V_BE) ÷ I_b.
  5. Work it out and round to 3 significant figures: R_b = (3.3 V − 0.7 V) ÷ 1.093 mA ≈ 2.38 kΩ.
  6. Check: a bigger R_b gives less base current; a smaller one only drives it harder. Answer: 2.38 kΩ.
Why not the others?
  • 3.02 kΩ Leaves out V_BE; the base-emitter junction takes 0.7 V of the pin voltage.
  • 7.14 kΩ Leaves out the overdrive k; that is only the least base current I_c ÷ β.

Remember: Base resistor: R_b = (V_in − V_BE) ÷ I_b, with I_b = k × I_c ÷ β; the largest R_b gives just I_c ÷ β. Formula sheet

Common mistakes

These are the wrong answers the practice questions offer, and the slip that leads to each.

Questions

What is the formula for base current from a pin through R_b?

I_b = (V_in − V_BE) ÷ R_b. Symbols: V_BE ≈ 0.7 V for a conducting silicon transistor; R_b in Ω gives I_b in A.

What is the formula for load (collector) current, saturated?

I_c = (V_cc − V_CE(sat)) ÷ R_L. Symbols: V_CE(sat) ≈ 0.2 V; valid while β × I_b is at least this current.

What is the formula for least base current that saturates?

I_b = I_c ÷ β. Symbols: β (h_FE) = the current gain from the data sheet; use its lowest value.