Analog electronics · 模电 · taught by your stereo

Five millivolts to fifty watts

A record needle makes about 5 mV. Your speakers want about 20 V. Every circuit that closes that gap is a chapter of your analog electronics course: diodes in the power supply, BJTs and FETs in the preamp, op-amps in the line stage, push-pull transistors in the power amp. Follow the signal and you walk through the whole course in order.

Each stage has something you can hear in real life, the textbook idea behind it, the one formula that matters, and a bench to play with. Push the sliders until the waveform goes wrong, then read why.

VU RECTIFIER · RC · COIL

A VU meter is your course in miniature: a diode rectifier, a slow averaging response, and a coil that turns current into needle angle.

Stage 01

Power supply: where the hum lives

PN结 · 二极管桥式整流 bridge rectifier滤波电容 filter capacitor纹波 ripple稳压管 Zener
What you hear

Turn an old amplifier all the way up with nothing playing and put your ear near the speaker. That low buzz is hum, and in China it sits at 100 Hz, twice the 50 Hz mains. When the big filter capacitors inside an amp age and lose capacitance, the hum gets louder. Repair shops "recap" old amps for exactly this reason.

What's happening

The wall gives AC; the amplifier needs steady DC rails. A transformer steps 220 V down to about 25 V. A bridge of four diodes flips the negative half-cycles upward, because each PN junction only conducts one way. A large capacitor then fills the gaps between peaks: between peaks it feeds the amplifier on its own and slowly drains. That droop is ripple, and ripple is the hum.

A bridge gives two bumps per mains cycle, so the capacitor is topped up 100 times a second. A half-wave rectifier tops it up only 50 times, so it needs twice the capacitor for the same ripple.

The formulas
Vpeak ≈ √2·Vrms − 2 × 0.7 V
Vripple,pp ≈ I / (f·C) Bridge: two diodes conduct at once, so two drops. 25 V × √2 − 1.4 V ≈ 34 V. At 2 A with 4700 µF: 2 / (100 × 0.0047) ≈ 4.3 V of ripple. Use f = 100 Hz for a bridge, 50 Hz for half-wave.

The quiet circuits (phono and line stages) get a second, cleaner supply. A Zener diode or regulator chip holds that rail steady while the big rail ripples. That's a PN junction used deliberately in reverse breakdown.

Exam moveCount the diodes in the conduction path. Bridge: 2 drops (≈1.4 V). Centre-tapped full-wave: 1 drop. Half-wave: 1 drop, and the ripple frequency equals the mains frequency.
Bench 01 · Rectifier + capacitor25 V rms · 50 Hz
rectified, before the capacitorrail voltage after the capacitor
DC peak
–
Ripple p-p
–
Hum at
–

Stage 02

Phono stage: the BJT does the heavy lifting

三极管 BJT共射放大电路 common emitter静态工作点 Q-point饱和失真 / 截止失真差分放大电路
What you hear

Plug a turntable into an ordinary AUX input instead of PHONO and the music is faint and thin, with almost no bass. Two things are missing: about 40 dB of gain, and the RIAA equalisation that puts the bass back.

What's happening

A moving-magnet cartridge gives about 5 mV, so the phono stage has to multiply it by roughly 100. The classic gain block is the common-emitter amplifier. A small change in base-emitter voltage makes a large change in collector current, and the collector resistor RC turns that current into a large voltage swing.

The output is inverted. When the base rises, more current flows, more voltage drops across RC, and the collector falls. That's where the minus sign in the gain comes from.

Before any music arrives, the transistor must idle at a quiet operating point (the Q-point), part-way between fully on and fully off, so the signal can swing both ways. Bias it too close to either end and half the waveform gets chopped. Try it on the bench.

The formula
Av ≈ −RC / RE  (with emitter resistor)
Av ≈ −gm·RC,  gm = IC / VT ≈ IC / 26 mV The minus sign is the inversion. At IC = 1 mA, gm ≈ 38 mS; with RC = 4.7 kΩ that's about −180 before any feedback.

Records are cut with the bass turned down and the treble turned up, which keeps grooves narrow and surface noise low. The phono stage applies the reverse curve, about +19 dB at 20 Hz and −20 dB at 20 kHz relative to 1 kHz, using RC networks with the same 1/(2πRC) corners you calculate in class.

Real phono stages usually start with a differential pair: two matched BJTs that amplify only the difference between their inputs. Hum that arrives equally on both sides cancels (common-mode rejection). The same pair sits inside every op-amp in stage 04.

Exam moveNPN common-emitter, output flattened at the bottom → saturation distortion (饱和失真): IB too large, so increase RB. Flattened at the top → cutoff distortion (截止失真): decrease RB. For PNP it's the other way round.
Bench 02 · Common-emitter Q-pointVCC = 12 V
input shape (scaled up, for phase)collector voltage vCE
Clean swing
–
Phase
180°
State
–

Simplified: ignores the AC load line, so a real stage clips a little sooner.

Stage 03

Input buffer: why FETs don't steal your signal

场效应管 FET跨导 gm输入电阻 input resistance源极跟随器 source follower
What you hear

Plug an electric guitar into a long cable and a low-impedance input and it sounds dull: the treble is gone. Guitarists fix this with a buffer pedal, and the buffer is usually a JFET. Hi-fi has the same problem in a milder form whenever a source with a high output impedance drives an input with a low one.

What's happening

Every source has an output impedance and every input has an input impedance. Together they form a voltage divider, and the signal you keep is the share across the input. A BJT input draws base current, so a plain common-emitter stage only offers a few kΩ. A FET's gate is either insulated (MOSFET) or a reverse-biased PN junction (JFET), so almost no current flows in. Its input impedance is megohms to gigohms, and the source barely notices it, like a good voltmeter.

That's the real difference between the two devices. A BJT is current-controlled: IC = β·IB. A FET is voltage-controlled: the gate-source voltage sets the drain current, and the transconductance gm = ΔID / ΔVGS says how strongly.

The formula
vin,amp = vsource × Rin / (Rs + Rin) Audio rule of thumb: make Rin at least 10 × Rs. A moving-magnet cartridge is about 1 kΩ at 1 kHz, but its coil inductance pushes that to tens of kΩ by 20 kHz, so treble is the first thing a weak input loses.

Where FETs turn up in a hi-fi: low-noise JFETs at the front of moving-coil phono stages, JFET-input op-amps such as the TL072 in tone controls, MOSFET switches that mute the "thump" at power-on, and MOSFET output transistors in power amps, because they need almost no drive current.

Exam moveA source follower (common drain, 共漏极) is the FET version of the emitter follower: gain just under 1, non-inverting, very high input resistance, low output resistance. It's a buffer, not a voltage amplifier.
Bench 03 · Source meets inputvoltage divider
Signal that arrives
Kept
–
Loss
–
Rin / Rs
–

Stage 04

Line & headphone stage: op-amps, gain and phase

集成运放 op-amp虚短 virtual short虚断 virtual open反相比例 inverting同相比例 non-inverting电压跟随器 follower
What you hear

Many headphone amps have a LOW / HIGH gain switch. Flip it and the volume jumps with no change in tone. Inside, the switch changes one resistor in an op-amp's feedback loop.

Here's the clearest demonstration of "inverting" you'll ever hear: swap the red and black wires on just one of your two speakers. Sit in the middle and the bass mostly disappears, because one cone pushes while the other pulls and the sound cancels. That's a 180° phase flip, which is exactly what an inverting amplifier does to a signal.

Two rules do all the work

With negative feedback, an op-amp drives its output until V₋ = V₊ (virtual short, 虚短), and no current flows into either input (virtual open, 虚断). Every op-amp gain formula in your course falls out of those two lines.

Tell them apart in three seconds

Find where the signal enters. Into the − input through Rin → inverting. Into the + input → non-inverting. The feedback resistor always runs from the output back to −, so it never tells you which one you're looking at.

Inverting: + is grounded, so by virtual short − sits at 0 V too (a virtual ground). The current vin/Rin can't enter the op-amp, so all of it flows through Rf, and vout = −(Rf/Rin)·vin.

Non-inverting: − must follow + = vin. Rf and Rg divide vout down to the − input: vin = vout·Rg/(Rg+Rf), so vout = (1 + Rf/Rg)·vin. The gain can never drop below 1.

The formulas
Inverting:     Av = −Rf / Rin
Non-inverting: Av = 1 + Rf / Rg
Follower:      Av = 1
In decibels:  20·log₁₀|Av| Input resistance: Rin for inverting, nearly infinite for non-inverting. That's why a buffer before a volume knob is a follower.
Exam moveWrite the sign first, then the size. A minus sign means 180°, and only the inverting connection produces one. A non-inverting gain is always ≥ 1; if you got 0.5, you used the inverting formula by mistake.
Bench 04 · Op-amp lab±15 V rails · clips at ±13.5 V
−+ v_in R_in R_f v_out 0 V: virtual ground
vinvout- - output limits
Gain
–
In dB
–
Phase
–

Practice: answer in your head, then open
A headphone amp: signal into +, Rf = 22 kΩ, Rg = 2.2 kΩ. Gain and phase?

1 + 22/2.2 = 11 (≈ 20.8 dB), in phase. Signal enters +, so it's non-inverting and the gain can't be below 1.

A mixer: signal into − through 10 kΩ, Rf = 4.7 kΩ. Gain?

−4.7/10 = −0.47 (≈ −6.6 dB). Inverting, so it comes out quieter and upside-down. Inverting stages can attenuate; non-inverting ones can't.

Two inverting stages in a row, each with gain −2. Total gain and phase?

(−2)(−2) = +4, back in phase. Two 180° flips cancel. Designers sometimes add a second inverting stage just to restore absolute polarity.

Inverting stage, gain −20, ±15 V rails, 1 V peak input. What comes out?

Clipped at about ±13.5 V. It wants ±20 V but can't swing past its rails. Keep the input below 13.5/20 ≈ 0.67 V peak. Set this up on the bench and watch the tops flatten.

Stage 05

Power amp: push, pull, and the gap in the middle

功率放大电路互补推挽 push-pull甲类 / 乙类 / 甲乙类交越失真 crossover distortion效率 efficiency
What you hear

Some cheap amplifiers sound fine loud but slightly gritty at low volume, especially on quiet piano or acoustic guitar. That's crossover distortion, and it's worst when the signal is small. Meanwhile "Class A" amps are hot to the touch with no music playing at all. Both facts come from the same circuit.

What's happening

An op-amp can't drive an 8 Ω speaker; it needs a current amplifier. The output stage is a complementary push-pull pair: an NPN transistor pushes current into the speaker on positive half-waves and a PNP pulls it back on negative ones. Both are emitter followers with voltage gain ≈ 1. Their job is current, not voltage.

Class B (乙类): each transistor stays off until its base-emitter voltage reaches about 0.7 V. Near zero, both are off and the waveform has a gap. Maximum efficiency π/4 ≈ 78.5%.

Class AB (甲乙类): two diodes (or a VBE multiplier) between the two bases pre-bias both transistors to the edge of conduction, so the gap closes. A small idle current flows all the time.

Class A (甲类): biased so heavily that the transistors never switch off. No crossover at all, but a large idle current: at most 25% efficient with a simple resistive load, so most of the power becomes heat.

The formulas
P = Vpeak² / (2R)  →  Vpeak = √(2·R·P)
Vbias = VBE·(1 + R₁/R₂)  (VBE multiplier) 50 W into 8 Ω needs Vpeak = √(2·8·50) ≈ 28.3 V. Add a few volts for the transistors' own drop and the ripple from stage 01, and you need rails of about ±34 V. That's why stage 01 used a 25 V transformer.
Exam moveCrossover distortion → class B; fix it by biasing into class AB. Efficiency: class A ≤ 25% (resistive load), class B ≤ 78.5%. In class B, each transistor's maximum dissipation is about 0.2·Pom, which is how you pick its power rating.
Bench 05 · Push-pull output stage8 Ω load
drive signalvoltage across the speaker
Class
–
Dead zone
–
Cycle lost
–

Try it: set bias to 0, then turn the volume down. The gap stays the same size while the music shrinks around it.

Stage 06

Read the spec sheet like an engineer

负反馈 negative feedback通频带 bandwidth分贝 decibels输出电阻 output resistance

This is the kind of table printed on the back page of a mid-range integrated amplifier's manual (an example, not a real product). Every line is a chapter of your course.

SpecificationValueWhat it means in your course
Rated output50 W + 50 W, 8 ΩOutput stage. Vpeak = √(2PR) ≈ 28.3 V per channel (stage 05), which sets the supply rails (stage 01).
Input sensitivity / impedancePhono MM 5 mV / 47 kΩ
Line 500 mV / 20 kΩ
Sensitivity is the input that gives full output, so it tells you the total gain. Impedance is the input resistance from stage 03.
Frequency response10 Hz – 50 kHz, ±1 dBBandwidth (通频带). Coupling capacitors set the low corner fL = 1/(2πRC); transistor and op-amp limits (gain-bandwidth product) set the high corner.
THD0.02 % at rated powerNegative feedback divides distortion by (1 + AF).
Signal-to-noisePhono 80 dB · Line 100 dBThe phono stage's own noise gets 40 dB more gain than anything after it. The first stage decides the noise floor.
Damping factor100 (8 Ω)Output resistance = 8 Ω / 100 = 0.08 Ω. Voltage feedback (电压负反馈) lowers output resistance, so the amp controls the speaker cone tightly.
The idea under half those numbers

An amplifier with huge open-loop gain A feeds a fraction F of its output back and subtracts it from the input. The closed-loop gain becomes A/(1 + AF), which is ≈ 1/F when AF ≫ 1. Now the gain is set by two resistors instead of the transistors' messy, temperature-dependent β.

You trade away gain and get back lower distortion, wider bandwidth and lower output resistance. The op-amp formulas in stage 04 are this idea with F = Rg/(Rg + Rf), so 1/F = 1 + Rf/Rg.

Af = A / (1 + AF) ≈ 1/F Example: A = 100 000, F = 0.05 → Af = 19.996. If A drops by half to 50 000, Af = 19.992. The transistors changed a lot; the amplifier barely noticed.
Why engineers think in decibels

Gains multiply, but decibels add. 20·log₁₀(Vout/Vin) turns ×100 into 40 dB and ×2 into 6 dB, so you can add up a whole chain in your head.

Exam moveVoltage ratios use 20·log₁₀, power ratios use 10·log₁₀. ×10 voltage = 20 dB, ×2 voltage ≈ 6 dB, ×2 power ≈ 3 dB. Half the voltage is −6 dB.
100 V10 V1 V100 mV10 mV1 mV 5 mV0.5 V1 V20 V rms +40 dB+6 dB+26 dB CartridgeAfter phonoAfter line stageAt the speaker
The whole chain on a log scale. 40 + 6 + 26 = 72 dB, and 20·log₁₀(20 V / 5 mV) = 72 dB. 20 V rms into 8 Ω is 50 W.
Summary

Cheat sheet: hi-fi part to exam topic

Hi-fi partCourse topicKey formulaCommon mistake
Rectifier + big capacitors二极管 · 整流滤波Vpp ≈ I/(fC)Using 50 Hz for a bridge rectifier (it's 100 Hz)
Clean preamp rail稳压管 ZenerVout ≈ VZForgetting a Zener works reverse-biased, with a series resistor
Phono gain stage共射放大电路Av ≈ −RC/REDropping the minus sign
Bias point静态工作点VCEQ near the middleSwapping saturation (bottom) and cutoff (top) for NPN
Input buffer场效应管 · 源极跟随器Rin/(Rs+Rin)Thinking a follower amplifies voltage
Line / headphone stage运放 · 虚短虚断−Rf/Rin · 1+Rf/RgUsing the inverting formula when the signal enters +
Power output stage互补推挽 · 交越失真P = Vp²/(2R)Forgetting the ±0.7 V dead zone in class B
Whole amplifier负反馈Af ≈ 1/FThinking feedback adds gain (it trades gain away)

Next time a new circuit shows up in class, ask one question: where would this sit in a stereo? If you can answer that, you already know what it's for, roughly what its gain is, and what goes wrong when it's biased badly.