In this post, we’ll build a great sounding audio amplifier with the LM386 Low Voltage Audio Power Amplifier IC. I built almost a dozen different audio amplifier circuits with the LM386 but most of them produced way too much noise, popping, and other interference. Finally I found one that sounds great. Granted, this is not a “minimal components” audio amplifier. There are lots of extra capacitors added to reduce the noise, and I’ve added a bass boost control as well to make it sound even better. Before we start building, it may be helpful to get a little background information…
The LM386 is quite a versatile chip. Only a couple resistors and capacitors are needed to make a simple audio amplifier. The chip has functions for gain control and bass boost, and it can also be turned into an oscillator capable of outputting sine waves or square waves.
The LM386 is a type of operational amplifier (Op-Amp). Operational amplifiers have a basic task. They take an input potential (voltage) and produce an output potential that is tens, hundreds, or thousands of times the magnitude of the input potential. In this circuit, the LM386 takes an audio input signal and increases its potential anywhere from 20 to 200 times. That amplification is what is known as the voltage gain.
Gain vs Volume
After you build this amplifier and play with the volume and gain controls, you will notice that both appear to raise or lower the intensity of sound coming out of the speaker. So what is the difference then? Gain is the amplification of the input potential. It is a characteristic of the amplifier. Volume lets you adjust the sound level within the range of amplification set by the gain. Gain sets the range of possible volume levels. For example, if our gain is set to 20, the range of volume is 0 to 20. If our gain is set to 200, the range of volume is 0 to 200.
The LM386 IC has 8 pins as shown in the diagram below:
The main pins to be aware of are pins 2 and 3, the audio signal inputs, and pin 5, the positive audio output signal. Gain control can be achieved by bridging pins 1 and 8 with a 10 μF capacitor. If pins 1 and 8 are not connected, the output gain will be 20. With only a 10 μF capacitor, the gain will be 200. The gain can be adjusted to any value between 20 and 200 by placing a potentiometer in series with the capacitor.
There are three varieties of the LM386, each with different output power ratings:
- LM386N-1: 0.325 Watts
- LM386N-3: 0.700 Watts
- LM386N-4: 1.00 Watts
Here’s a schematic of the internal circuitry of the LM386 for your reference:
You can download the datasheet for the Texas Instruments LM386 here:
The Minimal LM386 Audio Amplifier
Now that we have a little background into the LM386, let’s build the amplifier. Just for comparison, I’ll show you how to make a minimal LM386 amplifier first, so you can compare it to the better sounding one we’ll build later on.
In the circuit above, the power supply, audio input signal, and audio output signal all flow through the same common path to ground. This causes interference in the output signal. To prevent this, we can connect the grounds for power, input, and output directly to the ground pin (pin 4) of the LM386 like this:
This should sound better than the first circuit, but you will probably still notice some noise, static and popping. To fix this, we need to add some decoupling capacitors. Decoupling capacitors isolate the amplifier circuit from signal interference caused by fluctuations in power and filter noise from the audio signal. Larger value capacitors will filter lower frequency noise while smaller value capacitors will filter out higher frequency noise.
The Great Sounding LM386 Audio Amplifier
Now that you’ve seen the bare minimum of what it takes to make an audio amplifier from the LM386, lets build a higher fidelity version, and add an adjustable gain control. Several things in this circuit make it sound better:
- A 470 pF decoupling capacitor between the positive input signal and ground.
- 100 μF and 0.1 μF capacitors between the positive and negative power rails to decouple the power supply. The 100 μF capacitor will filter low frequency noise while the 0.1 μF capacitor will filter high frequency noise.
- A 0.1 μF capacitor between pins 4 and 6, for additional decoupling of the power supply to the chip.
- A 10K Ohm resistor and a 10 μF capacitor in series between pin 7 and ground to decouple the audio input signal.
The diagram below will show you how to connect everything:
One thing to keep in mind when you’re wiring LM386 circuits is that the cleanest sound will result from keeping all wire connections and components as close to the chip as possible. Keeping the wires as short as possible will also help.
The LM386 Audio Amplifier with Bass Boost Control
A cool feature of the LM386 is the option to add an adjustable bass boost to the amplifier. You’ll find that this is the best sounding circuit so far, since the low pass filter removes most of the noise not taken out by the decoupling capacitors. All you need for the bass boost circuit is a 0.033 μF capacitor and a 10K Ohm potentiometer in series between pins 1 and 5:
An easy way to input the audio in these circuits is with a 3.5 mm audio jack from an old set of headphones modified with breadboard pins. Check out this article, How to Hack a Headphone Jack to learn how to re-wire some common types of headphones.
You can watch the video version of this tutorial and listen to each amplifier here:
Thanks for reading! Hope you had fun experimenting with these amps as much as I did. Be sure to subscribe to the blog to keep updated on posts as soon as they are published. I’ll be writing more how-to guides for other audio circuits in the future. And feel free to leave a comment if you have any questions or need help with anything in this article.
Need an easy-to-use way to design circuits and layout PCBs?
Try EasyEDA, a free circuit design software that also offers low cost, high quality PCB manufacturing.