Fork me on GitHub

Project Notes

#681 Electret Audio Pre-amplifier

Design and test an electret pre-amplifier comprising an LM358 op-amp active high-pass filter.

Build

Notes

I’ve used electret microphones in many projects before. Each time the electret biasing is about the same, but the coupling and amplification stages have varied. I’ve had it in my to-do list for a long time to find a common design can be used in most cases.

Of course one could just buy a module, like the SparkFun Electret Microphone Breakout. And that is probably the cheapest and easiest option in most cases. But it is always nice to know how to build one from scratch, and understand what decisions have been made in designing commercial modules.

Looking around at various examples, for example the SparkFun board va3iul, a common approach is obviously an op-amp high-pass active filter with gain in the order of 60 to 100 (actually -60 to -100 as the amp is inverting).

So that’s the approach I’ll take here.

Note: there are also many electret input modules, usually marketed as “sound detectors”, that are not actually audio pre-amplifiers. They are actually configured as binary sound level triggers. An example is covered in LEAP#682.

Circuit Design

The electret output is fed to an active high-pass filter:

Active_Highpass_Filter_RC

The expected passband gain is −R2/R1 and corner frequency 1/2πRC Hz.

In the actual circuit I have used R1=10kΩ and R2 comprising a 330kΩ fixed resistor and 500kΩ pot. This allows for a variable gain from -33 to -83.

The cut-off frequency of the filter can be adjusted by selecting an appropriate capacitor C, for example:

I’ve chosen 220nF, mainly because it puts it just above any household AC hum.

Here’s the actual schematic and indicative breadboard layout. Some points to note:

  • The electret microphone is biased with a 2.2kΩ R1. If higher voltage supply is used, for example 9V, this may be increased to say 10kΩ.
  • The AC output coupling via C4 is optional.
  • C2 simply provides stability for the non-inverting reference voltage. It is not critical.

bb

schematic

Breadboard testing with oscilloscope probes connected as indicated in the schematic:

  • CH1 Yellow: AOUT (DC)
  • CH2 Blue: AIN
  • CH3 Red: AOUT (AC)

bb_build

Behaviour

I’ve tested the circuit with both an LM358 and LMC6482 op-amp. They both work fine. The results shown here are for the LM358.

I used a simple Javascript tone generator to provide an input signal at 1kHz.

Adjusted for maximum gain:

scope-358-1k-max

Adjusted for minimum gain:

scope-358-1k-min

Protoboard Build

Putting the circuit on a piece of protoboard for convenient use while minimizing noise:

protoboard_layout

protoboard_build

Credits and References

About LEAP#681 Breadboard BlingOpAmpAudio

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader