Oscillators

An oscillator generates a periodic signal with no external input — it's a self-sustaining feedback loop. The same feedback that makes amplifiers unstable becomes useful when controlled deliberately. Clock signals, audio tones, RF carriers, PWM timing references — they all originate from oscillators. Choosing the right type is mostly about frequency stability requirements and how much circuitry you want to build.

The Barkhausen Criterion

An oscillator requires two conditions to be met simultaneously at the oscillation frequency:

1. Loop gain ≥ 1    (enough gain to sustain oscillation)
2. Loop phase = 0° (or 360°) exactly  (signal reinforces itself)

At exactly one frequency, both conditions are met → the circuit oscillates at that frequency.
In practice, loop gain starts slightly above 1 and a non-linearity (saturation, AGC) limits amplitude.

Oscillator Types Overview

TypeFrequency rangeStabilityOutput waveformComplexity
555 (relaxation)1 Hz – 1 MHzPoor (±5–20%)SquareMinimal — 2 resistors, 1 cap
RC phase-shift1 Hz – 100 kHzModerateSineOne op-amp, 3 RC sections
Wien bridge1 Hz – 1 MHzGood (with AGC)Sine (low distortion)Op-amp + AGC circuit
Colpitts (LC)100 kHz – 500 MHzGoodSineTransistor + LC tank + biasing
Hartley (LC)100 kHz – 30 MHzGoodSineTransistor + tapped inductor
Crystal1 kHz – 300 MHzExcellent (±20–1 ppm)Sine/SquareCrystal + 2 caps + inverter
TCXOVariousVery high (±0.5 ppm)Sine/SquarePackaged module
OCXOVariousExceptional (±0.01 ppm)Sine/SquarePackaged module with oven
VCOWide rangeModerate (tuning-dependent)Sine or SquareVaractor diode + LC or RC

RC Oscillators

Phase Shift Oscillator

Three RC stages each contributing 60° of phase shift at the oscillation frequency, plus 180° from an inverting amplifier. Total phase around the loop: 360°:

RC Phase-Shift Oscillator Network Schematic of an RC phase-shift network showing three cascaded RC sections connecting Vout to the inverting amplifier input, with feedback returning to Vout. Vout R C R C R C inverting amp input Vout (feedback)
RC phase-shift network topology: three cascaded RC sections shift the output feedback signal before it returns to the inverting amplifier input.
f = 1 / (2πRC√6)

Example: R=10kΩ, C=10nF
f = 1 / (2π × 10,000 × 0.00000001 × 2.449) ≈ 649 Hz

Minimum amplifier gain for oscillation: 29 (28 dB)

Wien Bridge Oscillator

Non-inverting amplifier with Wien network in feedback. Produces a low-distortion sine wave — used in audio test oscillators and function generators:

Wien Bridge Network Schematic of a Wien bridge showing a series RC branch from Vin to the non-inverting input, and a parallel RC branch from there to ground. Vin R Series RC C (+) Frequency-setting network to non-inverting input R C Parallel RC
Wien bridge frequency-setting network: a series RC branch and parallel RC branch feed the non-inverting amplifier input.
f = 1 / (2πRC)

For unity phase at f: the Wien network has voltage ratio = 1/3
Amplifier gain must be exactly 3 for oscillation (R_f = 2×R_g)

AGC (automatic gain control) holds gain at 3:
  Classic: small incandescent lamp in gain network (resistance rises with heat)
  Modern: FET-based or dedicated IC amplitude control

LC Oscillators

An inductor-capacitor tank circuit oscillates at f₀ = 1/(2π√LC). The transistor amplifier compensates for the resistance (energy loss) to sustain the oscillation indefinitely:

Colpitts Oscillator

Colpitts Oscillator Schematic Schematic of a Colpitts oscillator with a common-base NPN transistor, where the collector connects to an LC tank. The tank's capacitive divider provides feedback to the emitter. VCC RC ← collector resistor Collector Base C_b (bypass) Emitter RE L C1 Junction of C1 & C2 (feedback taken here) C2
Colpitts oscillator schematic: a common-base transistor sustains an LC tank, and the C1–C2 capacitive divider feeds a portion of the tank signal back to the emitter.
Frequency: f₀ = 1 / (2π√(L × C_total))
C_total = C1 × C2 / (C1 + C2)  (series)

Feedback ratio: C1/C2 (determines loop gain)
Typical: C2 = 2–10× C1

The Colpitts is the workhorse for RF oscillators — stable, predictable, easily variable with a trimmer capacitor or varactor diode.

Crystal Oscillators

A quartz crystal resonates at a frequency determined by its physical dimensions. The Q factor is 10,000–100,000 (compared to 100–200 for a good LC tank), making the frequency extremely stable:

Simple Pierce crystal oscillator (common in MCU circuits):
Pierce Crystal Oscillator Schematic of a Pierce crystal oscillator with an inverter, crystal in the feedback path, and two load capacitors to ground. VCC R ← (often internal to inverter) Inverter input output Vout Crystal C1 (15–22pF) C2 (15–22pF)
Pierce crystal oscillator: an inverter and crystal feedback path use two load capacitors to set the crystal’s specified load capacitance.
Load capacitance = (C1 × C2)/(C1 + C2) + stray
Crystal frequency is trimmed to be correct with the specified load capacitance.
FrequencyUseNotes
32.768 kHzReal-time clocks2^15 = 32768 — 15 binary divisions = 1Hz exactly
4 MHzMicrocontrollersClassic PIC/AVR clock, often doubled internally
8 MHzMicrocontrollersATmega328 (Arduino) external crystal option
16 MHzMicrocontrollersStandard Arduino clock frequency
20 MHzMicrocontrollersSTM32 common HSE clock
25 MHzEthernet PHY, AD9833Standard reference for many network ICs
10 MHzFrequency standardGPSDO / OCXO reference output standard

Relaxation Oscillators — 555 Timer

Astable 555 circuit:
555 Astable Timing Network Schematic of the external resistor and capacitor network for a 555 timer in astable mode, showing RA, RB, and C connected in series from VCC to ground with taps for pins 7 and 2/6. VCC RA PIN 7 (discharge) RB PIN 2/6 (threshold/trigger) C
555 astable timing network: RA and RB charge and discharge capacitor C through the timer’s discharge and threshold/trigger pins to set frequency and duty cycle.
f = 1.44 / ((RA + 2×RB) × C)
Duty cycle = (RA + RB) / (RA + 2×RB)

For 50% duty: use RA very small (100Ω) + steering diodes around RB
Or: use a CMOS 555 (TLC555) with equal charge/discharge paths
RARBCFrequencyApplication
1kΩ1kΩ100nF4.8 kHzAudible tone, buzzer
10kΩ10kΩ100nF480 HzMid-range audio tone
100kΩ100kΩ10µF0.48 HzLED blinker (~1s period)
1kΩ10kΩ10nF6.6 kHzMotor drive PWM

VCO — Voltage-Controlled Oscillator

A VCO's frequency is controlled by a voltage. Increasing voltage increases (or decreases) frequency depending on the design. The critical component in PLLs (phase-locked loops):

Applications of VCO + PLL:
  FM radio demodulation
  Clock synthesis (CPU PLLs multiply a crystal reference)
  Motor speed control
  Frequency modulation (direct FM transmitter)
  Clock recovery from serial data streams

Simple VCO using 555: replace RA or RB with a transistor-based
variable resistance controlled by the input voltage.
Better VCO: CD4046 has a built-in VCO and phase comparators.

References