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 , biases the + input at ground, and and 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 . 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?
About 100 kHz: GBW ÷ noise gain = 10 MHz ÷ 100. That's comfortably above the 20 kHz audio limit, so the treble is safe. At the low end, the coupling capacitor and form a high-pass at , 16 Hz with 1 µF and 10 kΩ.
Name it
The design
Gain. Non-inverting: (40 dB) with = 99 kΩ and = 1 kΩ. Non-inverting keeps the input impedance high (set by , not by the gain resistors).
Low end. blocks any DC from the source, and with makes a high-pass:
Choose it below 20 Hz. also gives the + input a DC path to ground; without it, the input bias current would charge and drift the output.
High end. The closed-loop bandwidth is . 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 cuts the DC gain to 1 while keeping the AC gain (a second, low corner at ).
- 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 ( = 100 kΩ, = 1 µF) do at the low end?
Show the solution
- Upper limit.
- Lower limit. The input network's corner is
- 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
- Where a single pole is 0.1 dB down. At
- Corner needed. For 20 kHz,
- GBW. Flatness costs far more bandwidth than the 3 dB point suggests.
Answer the op amp needs a GBW of about 13 MHz.
Check
Choose and 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: . 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?
A microphone has a significant internal impedance, so the preamp's input impedance must be much higher to avoid losing signal. In a non-inverting amplifier the signal goes straight to the op amp's input, which draws almost no current, so the input impedance is set by the bias resistor and can be made high independently of the gain. An inverting amplifier's input impedance equals its input resistor, which would have to be small to get high gain with reasonable feedback resistors, loading the microphone.
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.