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 ) or raise : the divider curve flattens further.
Predict
A divider-biased stage has = 1 kΩ and = 8 kΩ. Across a batch of transistors with β from 50 to 400, how much does its current vary?
About 15%. The current is ; goes from 157 Ω to 20 Ω, against 1 kΩ of . The α in front adds 1.5% more. A base-resistor design over the same batch would vary eightfold.
Name it
The exact operating point
With the Thevenin equivalent of the divider, the base loop is
The 0.7 V of hand analysis replaced by the true exponential. Solve it by Newton's method in , with
starting from 1 mA. Then , and .
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, , and for a CE stage with unbypassed (zero when fully bypassed):
which reduces to and when = 0.
Worked example
Solve the operating point of lesson 42's stage exactly: 12 V, = 47 kΩ, = 10 kΩ, = 4.7 kΩ, = 1 kΩ, β = 100, A.
Show the solution
- Thévenin equivalent. = 2.105 V and = 8.25 kΩ.
- Newton's method. It settles at = 1.226 mA with = 0.779 V.
- The rest of the operating point.
- Compare with the estimate. The 0.7 V estimate gave 1.30 mA: 6% high, because this transistor's small needs more than 0.7 V.
Answer = 1.214 mA, = 6.30 V and = 1.23 V, with = 0.779 V.
Worked example
What gain and input resistance does a stage at 1 mA (β = 100) with = 4.7 kΩ, a 10 kΩ load and = 8.25 kΩ have, fully bypassed and with 100 Ω unbypassed?
Show the solution
- Emitter resistance. = 25.6 Ω.
- Fully bypassed. and = 1.97 kΩ.
- With 100 Ω unbypassed. = −25.2 and = 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 : what emitter current does = 1.5 V, = 5 kΩ, = 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 for Newton's method at = 1 mA, with = 0.5 kΩ, = 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 . 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 ), 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?
The base-emitter voltage enters only through a logarithm of the current, so it changes very little over the range of currents a stage might carry: about 60 mV per tenfold change. Whatever the exact value is, it differs from 0.7 V by at most a few tenths of a volt for ordinary transistors, and that difference is a small part of the voltage across the emitter resistor and the base resistance. So the current, which is set by that voltage over those resistors, moves by only a few percent. The more voltage the design puts across , the less the exact matters.
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.