C654 of 57
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C6 · Lesson 54 · Project

Forty decibels of clean gain, from 20 Hz to 20 kHz

A dynamic microphone puts out a few millivolts. Before anything else can happen, a mixer, a recorder, an ADC, those millivolts need raising to around a volt, without adding noise, without losing the bass or the treble, and without being disturbed by DC. This project builds that stage: a non-inverting op-amp amplifier with a gain of 100, a coupling capacitor for the low end, and an op amp fast enough for the high end. Then a code lab checks the design's full frequency response.

Play

  • The preamp: the microphone's signal comes in through CI, RB biases the + input at ground, and RF and RG set the gain. The op amp has a 10 MHz gain-bandwidth.
  • Read the gain in the middle of the band. Then find where it falls 3 dB at the low end and at the high end.
  • Shrink CI. Which end of the band moves?

Predict

With a gain of 100 from a 10 MHz op amp, where's the upper −3 dB frequency?

Name it

The design

Gain. Non-inverting: 1+RF/RG=100 (40 dB) with RF = 99 kΩ and RG = 1 kΩ. Non-inverting keeps the input impedance high (set by RB, not by the gain resistors).

Low end. CI blocks any DC from the source, and with RB makes a high-pass:

fL=12πRBCI

Choose it below 20 Hz. RB also gives the + input a DC path to ground; without it, the input bias current would charge CI and drift the output.

High end. The closed-loop bandwidth is GBW/(1+RF/RG). For 20 kHz with margin, the op amp needs a GBW of at least a few megahertz at a gain of 100.

Other real concerns.

  • DC gain. The input offset is amplified by 100 too. A capacitor in series with RG cuts the DC gain to 1 while keeping the AC gain (a second, low corner at 1/(2πRGCG)).
  • Noise. At this gain, the op amp's input noise and the resistance at its input dominate; low-noise op amps and small resistors help.
  • Headroom. With ±12 V of swing, the output clips above about 120 mV peak at the input, a loud shout into a dynamic microphone.

Worked example

The preamp has a gain of 100 and its op amp a GBW of 10 MHz. What is its bandwidth, and what does the input network (RB = 100 kΩ, CI = 1 µF) do at the low end?

Show the solution
  1. Upper limit. 10MHz100=100kHz
  2. Lower limit. The input network's corner is f=12π×100k×1μF=1.6Hz
  3. Compare the audio band. Both are well outside 20 Hz to 20 kHz.

Answer the bandwidth reaches 100 kHz, and the input network rolls off below 1.6 Hz, both well outside the audio band.

Worked example

For the response to be within 0.1 dB at 20 kHz, what GBW does the op amp need at a gain of 100?

Show the solution
  1. Where a single pole is 0.1 dB down. At f/fc=0.153
  2. Corner needed. For 20 kHz, fc=20kHz0.153=131kHz
  3. GBW. 100×131kHz=13MHz Flatness costs far more bandwidth than the 3 dB point suggests.

Answer the op amp needs a GBW of about 13 MHz.

Check

Choose RF and CI so the preamp has 40 dB of gain at 1 kHz and is exactly 3 dB down at 20 Hz.

Type values the way you would write them on a schematic: 4.7k, 100n, 10m. Then try them: the circuit runs with your values and is measured.

Check

Model the preamp's response as a high-pass at 20 Hz times a gain of 10 whose bandwidth is limited by a 1000000 Hz op amp: H=Gjf/fL1+jf/fL⋅11+jfG/GBW. Evaluate it on 5000 log-spaced points from 1 Hz to 10 MHz, and set f_lo and f_hi to the lower and upper −3 dB frequencies (relative to the peak gain).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why is a non-inverting configuration a good choice for a microphone preamp?

Practice

Keep practicing

4 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.