Skip to content
Applied Electronics

Oscillators: Barkhausen, Wien bridge, Schmitt trigger and crystals

The Barkhausen criterion, the Wien bridge oscillator with proof, the Schmitt trigger and hysteresis, the relaxation oscillator period with proof, the NE555 and crystals.

Every digital circuit needs a clock, every radio a local oscillator, every switching power supply a reference waveform. Oscillators are amplifiers with deliberate positive feedback. In this lesson we cover the Barkhausen criterion, the Wien bridge oscillator, the Schmitt trigger and the relaxation oscillator, and we touch on quartz crystals.

The Barkhausen criterion

An amplifier A with a feedback network \beta(j\omega) returning the output to the input in phase (positive feedback) can sustain a sinusoidal oscillation with no input at all if, at frequency \omega_0,

    \[ A\,\beta(j\omega_0) = 1 \]

that is a loop gain of magnitude 1 and phase 0° (or a multiple of 360°). The signal goes round the loop and comes back identical: it sustains itself. It is the same critical point as the Nyquist criterion seen from the other side: there it was to be avoided, here it is sought.

In practice the oscillation starts from noise, so at switch-on the loop gain must be slightly greater than 1: the amplitude grows until some nonlinearity (amplifier saturation, a limiter, automatic gain control) brings the average gain back to exactly 1.

The Wien bridge oscillator

The feedback network is a band-pass made of a series RC and a parallel RC.

Theorem. The Wien network with equal resistors R and capacitors C has, at frequency f_0 = \frac{1}{2\pi RC}, zero phase and attenuation \beta = 1/3.

Proof. With Z_s = R + \frac{1}{j\omega C} and Z_p = \frac{R}{1 + j\omega RC}, \beta = \frac{Z_p}{Z_s + Z_p}. Multiplying numerator and denominator by (1 + j\omega RC)\,j\omega C:

    \[ \beta = \frac{j\omega RC}{(1 + j\omega RC)^2 + j\omega RC} = \frac{j\omega RC}{1 - \omega^2R^2C^2 + 3j\omega RC} \]

For \omega RC = 1 the real term in the denominator vanishes and \beta = j/(3j) = 1/3, real. ∎

The amplifier must therefore have a gain of exactly 3: a non-inverting stage with R_2 = 2R_1. With R = 10 kΩ and C = 16 nF one gets about 995 Hz. To stabilise the amplitude, Hewlett and Packard in their first product (1939) used an incandescent lamp in place of R_1: as it heats up its resistance rises and reduces the gain just enough. Today diodes or a FET used as a variable resistor do the job.

The Schmitt trigger

A simple comparator changes state when the input crosses a threshold: if the input is noisy and slow, around the threshold the output toggles back and forth dozens of times. The Schmitt trigger solves the problem with positive feedback that creates two different thresholds.

Hysteresis characteristic of the Schmitt trigger and waveforms of the relaxation oscillator
On the left the output as a function of the input: it goes from high to low when the input exceeds +βVsat and returns high only when it falls below −βVsat, tracing a hysteresis loop. On the right the relaxation oscillator: the capacitor voltage rises and falls exponentially between the two thresholds, while the output is a square wave.

With the output saturated at \pm V_{sat} and a divider feeding the fraction \beta = R_1/(R_1 + R_2) back to the non-inverting input, the thresholds are \pm\beta V_{sat}: the signal must cross the whole hysteresis 2\beta V_{sat} to make the output switch again. With V_{sat} = 12 V, R_1 = 10 kΩ and R_2 = 40 kΩ, \beta = 0.2 and the thresholds are ±2.4 V. Schmitt triggers clean up the signals of push-buttons, sensors and long communication lines; many microcontroller inputs have them built in.

The relaxation oscillator

Adding to the (inverting) Schmitt trigger a resistor R from the output to the inverting input and a capacitor C to ground gives a square-wave generator.

Theorem. The period of oscillation is

    \[ T = 2RC\ln\frac{1 + \beta}{1 - \beta} \]

Proof. With the output at +V_{sat}, the capacitor charges towards +V_{sat} starting from -\beta V_{sat}: v_C(t) = V_{sat} - (1 + \beta)V_{sat}\,e^{-t/RC}. When it reaches +\beta V_{sat} the output switches: (1 + \beta)e^{-t_1/RC} = 1 - \beta, that is t_1 = RC\ln\frac{1 + \beta}{1 - \beta}. By symmetry the discharge lasts the same time, and the period is twice that. ∎

Example. R = 10 kΩ, C = 100 nF, \beta = 0.2: T = 2\cdot 10^{-3}\cdot\ln 1.5 \approx 0.81 ms, about 1.23 kHz. The same principle, with thresholds at 1/3 and 2/3 of the supply, is that of the NE555 timer in its astable configuration.

Quartz crystals

RC oscillators have a frequency that depends on component tolerance and temperature: 1% accuracy at best. For the clocks of microprocessors, watches and radios a quartz crystal is used: a thin plate that, through the piezoelectric effect, vibrates mechanically at a very precise frequency and behaves electrically as a resonant circuit with a quality factor of tens of thousands. A common crystal is accurate to 20 parts per million; the 32 768 Hz (2^{15}) one in watches gives, by halving fifteen times, exactly one pulse per second.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x