8
\$\begingroup\$

I am new to the world of audio amplifiers however i am quickly trying to learn. I have built a simple circuit using a circuit based on what I read in the database. The circuit works however there is a lot of noise and the sound quality quickly decreases at higher volumes however that may just be the speaker I am using. I am sure I need additional filtering capacitors however after looking at several example circuits I am confused about what where these capacitors should be and what values they should have. Please help me find a way to improve the audio quality to a decent level. Additionally I need to remove radio signals that are interfering with the playing sound. I am running the lm386 on 6 volts.

What value speaker would be ideal for this use? What capacitors do I want between my power rails? What capacitors do I want between my inputs?

Here is my current circuit

enter image description here

\$\endgroup\$
6
  • 1
    \$\begingroup\$ You are building an amplifier with gain = 200. So you need to ask yourself many, many questions: Is my input signal weak enough to justify that (especially with a 0.25W speaker)? Where does "Audio -" come from? The entire datasheet had the - input tied to ground for amplifiers. How did I build this schematic in the real world? Is my power supply "clean" enough? Are the wires going to my amplifier sufficiently protected from outside noise? Are the power supply lines, for that matter? \$\endgroup\$
    – Asmyldof
    Oct 13, 2014 at 20:47
  • 8
    \$\begingroup\$ The datasheet doesn't say it, but you need to bypass these like crazy. Put a 10uF electrolytic, and .1uf ceramic in parallel on the power pin. I'll bet that helps immensely with your noise issue. \$\endgroup\$
    – Matt Young
    Oct 13, 2014 at 20:56
  • 1
    \$\begingroup\$ Matt Young is correct, put an electrolytic capacitor (10µF to 20µF) AND a ceramic capacitor (0.1µF to 1µF) in parallel to the power supply pins of the OpAMP. They should as near to the IC as possible. They are both needed! The electrolytic capacitor evens the low frequency disturbances and the ceramic capacitor catches the high frequency fluctuations. Even very little variations in the power supply will be indirectly amplified by the OpAMP. \$\endgroup\$
    – SDwarfs
    Oct 14, 2014 at 0:22
  • \$\begingroup\$ Whar capacitor if any do I want between the + and - input. I just put .047uf capacitor between the two inputs and the noise seemed to decrease a little but I am not sure this is the best value \$\endgroup\$ Oct 14, 2014 at 20:44
  • 1
    \$\begingroup\$ You don't want any capacitance between the input pins. That will just cause LP filtering. .047uF will cause a huge loss in upper audio frequencies. It may also be bad for the input device. \$\endgroup\$
    – user207421
    Oct 14, 2014 at 22:09

2 Answers 2

11
+50
\$\begingroup\$

Couple of suggestions, first, regarding the speaker. You didn't mention your speaker impedance, and with only a 6V supply, you'd certainly want to use an 8 ohm speaker as opposed to 16 ohms to get the most out of it. But that aside, you correctly point out that that the speaker may be the cause of at least some of your headache. Indeed, it has been said over and over that the biggest improvement to any sound system will be realized by improving the speakers. So that said, you may want to connect your circuit to a low power 8 ohm "bookshelf" speaker whose sound you already know to be acceptable. Its simply a matter of removing as may "unknowns" from a circuit under development, so you con concentrate on less problems at once.

Next, from the LM386 data sheet (available free from TI ), I can see that the capacitor at pins 1-8 is setting your circuit up for the maximum gain of 200. That's a LOT of gain, and high gain opens up any monolithic amplifier circuit up to all kinds of stability issues, especially if this circuit is being built up on a development breadboard, where unwanted antennas and non shielded conductor paths abound. If you were to scope the output, you shouldn't be surprised to see all kinds of unwanted high frequency pickup or even oscillations, which although inaudible could still wreak havoc with your sound quality. So consider opening this path entirely. With pins 1-8 unused, your gain is only 20, which should immediately improve the situation. If you really need a gain of 200, you can revisit that requirement once you have a stable and acceptable level of distortion at the lower gain.

Now lets talk about your input. When you ask for any guidance in designing an amplifier, you have to specify your "gazintas and gazoutas". Just a silly way of saying you have to tell what your inputs and outputs are expected to be. We already know the output will drive a loudspeaker, but what about the input? If, for example, you are taking input from a headphone output on an MP3 player, then you have a very low impedance (and hence quiet) input to work with, that requires little if any voltage gain. If you are taking input from a dynamic microphone, again at least you have a low impedance to work with, which is apt to be fairly noise immune, BUT... you may need more gain. If you are taking input from a high impedance source like a Pizzo crystal sensor, then you really have a high impedance source that will require significant shielding, to avoid picking up everything from nearby electric switches to radio stations.

So, since you didn't say, I'm going to suggest we start by ground referencing your (-) input (pin 2), and adding an audio taper 10K Potentiometer to the (+) input (pin 3), as in the below, wired as close to the IC as possible.

Minimum parts LM386 circuit recommendation, from the TI data sheet

This will do several things. First, you now have a ground referenced input (also called single ended), which arguably is going to be much easier for a beginner to work with. Now you can think of your signal as a simple and single waveform moving above and below ground reference. Second, it limits the input impedance of the circuit to something less than infinity, which very likely will eliminate a great deal of your noise and radio pickup. The 10K may be too much of a load if your input is a high impedance source or even some dynamic inputs (such as magnetic guitar pickups) which really do better with a VERY low load. If that's the case you can use a 100K POT, at the risk of allowing a little more stray pickup. the POT will also let you lower the input sensitivity to zero, if only to make sure any residual noise is COMPLETELY eliminated in that case. If it is, and you STILL get some radio station pickup (unlikely at this point), you can put a 220pF cap across the potentiometer (22PF if you use 100K), and that should eliminate any RF pickup without compromising your sound.

You also asked about capacitors in the supply rails. Unless the distortion you are hearing has traces of audible 120 Hz hum/buzz, this should not be an issue. But we don't know what you're power supply is here. Some wall transformers, for example, have absolutely horrendous ripple at their rated load. Since this is, at best, going to be a 1 watt amplifier, and linear amplifiers are at best 50% efficient (usually less), that works out to 333 mA. So make sure your supply is good for at least 2X that at rated load. If you don't have a decent supply, no amount of added filter capacitors will help. But that said, and if the supply is rated for the task, it still wouldn't hurt to add a hefty 1000uF capacitor to the supply rails. You can always reduce it later.

Finally, when the sound becomes acceptable to you, you have to remember that 1 watt will only get you so far, and honestly... The output of this chip, at 8 ohms, and with a 6V supply, is really only rated at 325 Milliwatts, and thats at 10% total harmonic distortion!! You can get closer to a watt with a 9V supply, but my point is this: While improving and optimizing this circuit will be a good learning experience for you, don't feel badly if in the end, it just isn't enough for your expectations. As low power amplifier options go these days, the LM386 is neither a high fidelity nor an high efficiency choice. Good luck! :-)

\$\endgroup\$
1
  • \$\begingroup\$ With new speakers the sound quality improved 100% \$\endgroup\$ Sep 5, 2015 at 0:06
1
\$\begingroup\$

I adapted the "Amplifier with Bass Boost" from the data sheet by choosing different values for the resistor and the capacitor between "output" and the "gain1" pins. According to my simulation it doesn't really boost the bass. But, instead has an evenly distributed amplification from 0 Hz up to about 10 kHz where the amplification drops down slightly. Also note the resistors R3 and R4 which further stabilize the amplification at very low frequencies. Additionally, the phase shift is now reduced compared to your solution.

As already written in the comments below your question: To reduce noise, add two capacitors to the power supply pins (Vs and GND) directly next to the LM386. One small ceramic capacitor 100 nF and one 10 µF electrolytic capacitor in parallel. They'll block some noise in your power supply. Even when using a battery changing load (e.g. due to different input signals) will cause fluctuations in the power supply that will create noticeable noise in your amplified signal.

possibly improved amplification circuit

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.