Wien Bridge Oscillator Tutorial: Barkhausen Criterion, Gain of 3 & Sine Purity
While a Schmitt trigger or 555 timer easily produces harmonic-rich square and triangle waves, precision audio testing, LVDT excitation, and impedance bridges demand a pure, low-distortion sine wave without bulky inductors. Built around a clever lead-lag RC frequency bridge tied across a non-inverting operational amplifier, the Wien Bridge oscillator generates clean sinusoidal frequencies from sub-1 Hz audio up past 1 MHz using only matched resistors and capacitors. In this tutorial you will derive the exact transfer fraction beta = 1/3 at zero phase shift, prove why closed-loop non-inverting gain must sit tightly around 3.00, inspect soft diode amplitude stabilization (AGC), and watch self-oscillation build up live inside NodeSim.
1. Barkhausen Criterion & the Lead-Lag RC Feedback Bridge
For any linear feedback loop to sustain steady sinusoidal oscillation at frequency f_0 without dying out or railing into distortion, Heinrich Barkhausen proved two simultaneous loop conditions must hold: (1) total loop gain magnitude |A_v * beta| must equal unity (1.00), and (2) total phase shift around the loop must equal 0 degrees (or an integer multiple of 360 degrees).
The Wien network wires one series RC branch (R1, C1) feeding a parallel shunt RC branch (R2, C2) connected from Vout back into the non-inverting (+) terminal of an op-amp. Because a non-inverting op-amp introduces zero phase inversion (0 degrees) in its flat band, oscillation occurs exclusively at the unique frequency f_0 where the RC lead-lag network itself passes 0 degrees phase shift. Using matched values R1 = R2 = R and C1 = C2 = C makes complex impedance algebra remarkably symmetric.
Series Branch Impedance: Z_s = R + 1 / (jωC) Parallel Branch Impedance: Z_p = R || (1 / (jωC)) = R / (1 + jωRC) Feedback Ratio: β(jω) = Z_p / (Z_s + Z_p) = 1 / (3 + j(ωRC − 1/(ωRC))) Zero Phase Shift Occurs When Imaginary Term Vanishes: ω₀RC = 1 / (ω₀RC) ⇒ ω₀ = 1 / (RC) ⇒ f₀ = 1 / (2 × π × R × C) Transfer Attenuation At Resonance: β(jω₀) = 1 / 3 (phase = 0°)
Using matched 10 kOhm resistors and 10 nF capacitors sets target sine oscillation cleanly at f0 = 1 / (2 * pi * 10k * 10n) = 1.5915 kHz.
2. Why Closed-Loop Amplifier Gain Must Sit Exactly at 3.00
At resonant frequency f_0, the Wien bridge attenuates signal amplitude cleanly down to one-third (beta = 1/3). Satisfying Barkhausen loop unity |A_v * beta| = 1 therefore forces non-inverting op-amp gain A_v = 1 + (Rf / Rg) to equal exactly 3.00—meaning Rf / Rg = 2.00 precisely.
Here lies the classic catch every builder encounters in the lab. If component tolerances yield Rf / Rg = 1.98 (gain = 2.98), total loop gain falls slightly below 1.00 and oscillations decay flat to zero. Conversely, if resistor tolerance yields Rf / Rg = 2.05 (gain = 3.05), thermal noise triggers self-oscillation reliably, yet the growing sine wave expands exponentially every cycle until smashing straight into the op-amp power supply rails—clipping a pure sine into an ugly trapezoidal wave!
- Startup Margin Requirement: Designers deliberately choose initial small-signal non-inverting gain just above 3 (typically 3.05 to 3.2) so oscillations self-start briskly on power-up rather than stalling.
- Why Automatic Gain Control (AGC) Is Mandatory: Once amplitude reaches a safe clean peak (say +/-2 V to +/-5 V), a non-linear feedback element—traditionally an incandescent tungsten bulb like Bill Hewlett's 1939 audio oscillator, or modern antiparallel diodes / JFET—must smoothly drop gain back to exactly 3.000.
3. Soft Amplitude Limiting Using Antiparallel Diodes
Replacing upper resistor Rf with a split series network—say Rf_base = 18 kOhm plus a parallel combination of 4.7 kOhm and antiparallel 1N4148 silicon diodes across it—provides effortless modern AGC stabilization without fragile lightbulbs. At tiny startup signal amplitudes (millivolts), both diodes remain completely reverse/off-biased, leaving total feedback resistance Rf = 18k + 4.7k = 22.7 kOhm with Rg = 10 kOhm (gain = 3.27 > 3.00). Amplitude balloons rapidly.
As peak voltage across the parallel feedback segment exceeds ~0.6 V, the 1N4148 diodes smoothly begin conducting near waveform peaks, dynamically shunting the 4.7 kOhm segment down until average cycle gain touches precisely 3.000. Soft diode conduction preserves clean Total Harmonic Distortion (typically under 1–2% THD) well away from harsh supply-rail clipping.
Small-Signal Startup Gain (Diodes OFF): A_start = 1 + (Rf1 + Rf2) / Rg ≈ 3.27 High-Amplitude Gain (Diodes Conducting): A_clamped = 1 + Rf1 / Rg ≈ 2.80 Equilibrium Settles Cleanly Where Average Effective Gain = 3.000
4. Launching & Watching Oscillation Startup in NodeSim
Click Simulate Live Circuit above to load NodeSim's Wien Bridge oscillator circuit in Transient (.tran) mode. Observe the initial millisecond envelope carefully: you will watch small startup noise ripples amplify cycle by cycle over several milliseconds before settling gracefully into a smooth, steady sinusoidal output at f_0 = 1 / (2 pi R C).
Switch to an AC Frequency Sweep on just the passive RC bridge node if you wish to measure the bandpass peak directly at beta = -9.54 dB (1/3) and zero-degree phase crossover—validating the Barkhausen derivation visually.
Reference Component Values & Bill of Materials
| Part / Designator | Nominal Value | Role in Circuit |
|---|---|---|
| U1 (Operational Amplifier) | Universal / TL072 SPICE | Provides clean non-inverting closed-loop gain slightly above 3x |
| R1, R2 (Wien Bridge Resistors) | 10 kOhm matched | Forms series-parallel RC resonant network setting oscillation frequency |
| C1, C2 (Wien Bridge Caps) | 10 nF matched | Establishes zero-phase frequency f0 = 1/(2πRC) ≈ 1.59 kHz |
| Rg (Gain Ground Resistor) | 10 kOhm | Sets non-inverting gain denominator A = 1 + Rf / Rg |
| Rf + AGC Diodes | 20 kOhm – 22 kOhm + 1N4148 pair | Provides initial startup gain >3 and smooth amplitude regulation |
Expected Waveforms & Simulation Verification
| Probe / Node | Analysis Type | Expected Waveform | Engineering Check |
|---|---|---|---|
| Vout (Startup Window) | Transient (.tran) | Exponential growing envelope over 5–15 cycles | Demonstrates loop gain |Av*beta| slightly above 1 initiating oscillation |
| Vout (Steady-State) | Transient (.tran) | Clean smooth sine at f0 = 1 / (2πRC) | Automatic gain limiting holds average loop gain tightly at 1.00 |
| V_plus (Bridge Output) | Transient (.tran) | Exact 1/3 Vout amplitude in zero-degree phase lock | Confirms β(jω0) = 1/3 and zero phase error across feedback leg |
Troubleshooting Common SPICE & Bench Mistakes
Hands-On Lab Exercises in NodeSim
- Sweep Rf across 19.5 kOhm, 20.5 kOhm, and 25 kOhm in NodeSim to witness all three regimes: damped decay, pure steady sine, and clipped saturation.
- Change R1 and R2 symmetrically from 10 kOhm to 4.7 kOhm and verify simulated frequency climbs proportionally to ~3.39 kHz.
- Add antiparallel 1N4148 clamping diodes across a 4.7 kOhm series slice of Rf and measure visibly reduced peak flattening compared to a fixed high-gain resistor.
