Types of electronic oscillator

There are two main types of electronic oscillator: the harmonic oscillator and the relaxation oscillator.

Harmonic oscillator

The harmonic, or linear, oscillator produces a sinusoidal output. The basic form of a harmonic oscillator is an electronic amplifier with the output attached to an electronic filter, and the output of the filter attached to the input of the amplifier, in a feedback loop. When the power supply to the amplifier is first switched on, the amplifier's output consists only of noise. The noise travels around the loop, being filtered and re-amplified until it increasingly resembles the desired signal.

A piezoelectric crystal (commonly quartz) may take the place of the filter to stabilise the frequency of oscillation, this is called a crystal oscillator.

Relaxation oscillator

A relaxation oscillator produces a nonsinusoidal output, such as a square wave or sawtooth. The oscillator contains a nonlinear component such as a transistor that periodically discharges the energy stored in a capacitor or inductor, causing abrupt changes in the output waveform.

Square-wave relaxation oscillators are used to provide the clock signal for sequential logic circuits such as timers and counters, although crystal oscillators are often preferred for their greater stability. Triangle-wave or sawtooth oscillators are used in the time base circuits that generate the horizontal deflection signals for cathode ray tubes in analogue oscilloscopes and television sets. In function generators, this triangle wave may then be further shaped into a close approximation of a sine wave.