Oscillators: RC, LC and Crystal: Complete Beginner's Guide
An oscillator makes a repeating waveform, sine, square or triangle, from only a DC supply. No input needed: a tiny disturbance starts it, and a loop of amplifier plus frequency-selective feedback sustains it. Clocks, radio carriers and timing references all begin here.
Nothing digital works without a heartbeat. Phone processors step billions of times per second paced by a crystal oscillator, watches tick on a 32.768 kHz quartz crystal, radio stations broadcast on LC or crystal carriers. Oscillators are the timekeepers of electronics.
Key Concepts
- Barkhausen criterion: Loop gain exactly 1 in magnitude with 0 degrees total phase shift. Gain starts slightly above 1 so oscillation builds, then limiting trims it to 1.
- Positive feedback: The fed-back signal must arrive in phase to reinforce itself.
- RC phase-shift: Three RC sections give 180 degrees at f = 1/(2 x pi x R x C x sqrt(6)); an inverting amp adds the other 180.
- Wien bridge: Non-inverting amp with series-plus-parallel RC network, zero phase at f = 1/(2 x pi x R x C); needs gain exactly 3, famous for clean audio sines.
- Hartley/Colpitts: LC oscillators using tapped inductor / tapped capacitor dividers; f = 1/(2 x pi x sqrt(L x C)).
- Crystal: Quartz vibrates piezoelectrically with Q in the tens of thousands; stability reaches parts per million.
- Pierce oscillator: One inverting amp, crystal between input and output, two capacitors to ground; clocks nearly every microcontroller.
- Start-up: Power-on noise contains all frequencies; the network selects its resonance, the loop amplifies it, and nonlinearity settles the amplitude.
Formulas
- Phase-shift: f = 1/(2 x pi x R x C x sqrt(6)).
- Wien bridge: f = 1/(2 x pi x R x C), gain = 3 (Rf = 2 x R1).
- LC: f = 1/(2 x pi x sqrt(L x C)).
- Limits: Ideal-component formulas. Real inductor resistance lowers Q, op-amp bandwidth caps RC types, and over-driven crystals age or crack.
Worked Example
Wien-bridge sine at ~1.6 kHz. Step 1: R = 10k, C = 10 nF. Step 2: f = 1/(2 x pi x 10,000 x 10e-9) = 1/(6.2832e-4) = 1,591.5 Hz. Step 3: R1 = 10k, Rf = 20k gives gain 3. Step 4: use Rf = 22k so loop gain starts just above 1, plus back-to-back diodes across part of Rf to compress gain to 3 as amplitude grows. Result: a clean, stable 1.59 kHz sine.
Common Misconceptions
- "It amplifies an input." There is none. Oscillation grows from power-up noise; the network picks the frequency.
- "Any positive feedback oscillates." You need loop gain ≥ 1 at a frequency with 0 degrees total phase. Wrong phase just latches, like a Schmitt trigger.
- "The crystal alone sets frequency." It needs the Pierce amp and load capacitors; wrong loading pulls it off its marked value.
Real-World Applications
- Microcontrollers: Quartz + Pierce gives every Arduino and phone its heartbeat.
- Timekeeping: 32.768 kHz (2^15 Hz) crystals divide neatly to 1-second ticks.
- Radio: Hartley/Colpitts and crystal references make carriers and local oscillators.
- Test gear: Function generators and inverter square-wave clocks.
Oscillators turn DC into AC with positive feedback meeting the Barkhausen criterion: loop gain 1 at zero total phase. RC types serve audio, LC types serve radio via f = 1/(2 x pi x sqrt(L x C)), crystals give ppm stability for clocks. The Wien design shows the recipe: 10k with 10 nF makes 1.59 kHz, gain of 3 sustains it, gentle limiting keeps it clean.
Related blogs
- Amplifier Configurations: CE, CB and CC With easy examples.
- Multistage Amplifiers: Cascading Gain Stages For students.
- Operational Amplifiers: Ideal and Practical For students.
- Feedback Amplifiers: Complete Beginner's Guide For students.
- Active Filters: Low-Pass, High-Pass and Band-Pass Guide.
- Power Amplifiers: Class A, B and AB With easy examples.