C551 of 57
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C5 · Lesson 51 · Bias and gain lab

Operating points, β spread and stage gain in NumPy

Hand analysis with 0.7 V and a single β is how you design a stage; checking it means asking what happens with the real exponential, and with every β the parts on the shelf might have. In this lab you'll solve a divider-biased transistor's operating point exactly, sweep β across a whole batch of transistors to compare two bias schemes, and compute the small-signal gain and input resistance that follow from the bias. It's the same chain of reasoning as lessons 23 to 49, run as code.

  • Collector current against β for two designs that both give 1 mA at β = 150: a single base resistor, and a divider with an emitter resistor.
  • The base-resistor design's current is proportional to β, so a batch from β = 50 to 400 spreads eightfold. The divider design barely moves.
  • Make the divider stiffer (lower RTH) or raise RE: the divider curve flattens further.

Predict

A divider-biased stage has RE = 1 kΩ and RTH = 8 kΩ. Across a batch of transistors with β from 50 to 400, how much does its current vary?

Name it

The exact operating point

With the Thevenin equivalent of the divider, the base loop is

VTH=IERTHβ+1+VTln⁡αIEIS+IERE

The 0.7 V of hand analysis replaced by the true exponential. Solve it by Newton's method in IE, with

f(IE)=VTH−VTln⁡αIEIS−IE(RE+RTHβ+1)f′(IE)=−VTIE−RE−RTHβ+1

starting from 1 mA. Then IC=αIE, VC=VCC−ICRC and VE=IERE.

Vectorizing over β

NumPy applies a formula to a whole array at once: if beta is an array, beta / 150 is an array of currents, one per transistor. The constant-0.7 V formulas need no loop.

From bias to gain

With the T model, re=αVT/IC, and for a CE stage with unbypassed RE1 (zero when fully bypassed):

Av=−α(RC∥RL)re+RE1Rin=RB∥(β+1)(re+RE1)

which reduces to −gm(RC∥RL) and RB∥rπ when RE1 = 0.

Worked example

Solve the operating point of lesson 42's stage exactly: 12 V, R1 = 47 kΩ, R2 = 10 kΩ, RC = 4.7 kΩ, RE = 1 kΩ, β = 100, IS=10−16 A.

Show the solution
  1. Thévenin equivalent. VTH = 2.105 V and RTH = 8.25 kΩ.
  2. Newton's method. It settles at IE = 1.226 mA with VBE = 0.779 V.
  3. The rest of the operating point. IC=1.214mAVC=6.30VVE=1.23V
  4. Compare with the estimate. The 0.7 V estimate gave 1.30 mA: 6% high, because this transistor's small IS needs more than 0.7 V.

Answer IC = 1.214 mA, VC = 6.30 V and VE = 1.23 V, with VBE = 0.779 V.

Worked example

What gain and input resistance does a stage at 1 mA (β = 100) with RC = 4.7 kΩ, a 10 kΩ load and RB = 8.25 kΩ have, fully bypassed and with 100 Ω unbypassed?

Show the solution
  1. Emitter resistance. re = 25.6 Ω.
  2. Fully bypassed. Av=−0.99×319725.6=−124 and Rin=8.25k∥2.59k = 1.97 kΩ.
  3. With 100 Ω unbypassed. Av = −25.2 and Rin=8.25k∥12.7k = 5.0 kΩ.

Answer fully bypassed, the gain is −124 and the input resistance 1.97 kΩ; with 100 Ω unbypassed, they are −25.2 and 5.0 kΩ.

Check

With 0.7 V for VBE: what emitter current does VTH = 1.5 V, RTH = 5 kΩ, RE = 2 kΩ and β = 300 give?

Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.

Check

What is f′(IE) for Newton's method at IE = 1 mA, with RE = 0.5 kΩ, RTH = 20 kΩ and β = 100?

Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.

Check

Write bias_point(VCC, R1, R2, RC, RE, beta, IS=1e-16) returning (IC, VC, VE) for a divider-biased NPN, solving the exact base loop by Newton's method in IE. Use VT = 0.025864 V.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write ic_base(beta, VCC, RB) and ic_divider(beta, VCC, R1, R2, RE) returning collector currents for an array of β values (0.7 V for VBE), and spread(ic) returning the ratio of the largest current to the smallest.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write ce_stage(IC, beta, RC, RL, RE1, RB) returning (Av, Rin) for a CE stage with unbypassed emitter resistance RE1 (0 if fully bypassed), using the T model with VT = 0.025864 V.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why is the exact operating point usually within a few percent of the 0.7 V estimate?

Practice

Keep practicing

5 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.