1
\$\begingroup\$

I'm using the LM386 chip to amplify audio and I designed a circuit diagram for this purpose.

Short request: I want to reach the goal of protecting its input avoiding signal distortion/degradation.

A bit of background: Instead of using an audio source, I put a sinewave signal oscillating between -2.5V and +2.5V. I was using the following circuit diagram which is shown on page 12 of the datasheet under "LM386 with Gain = 200":

9.2.2 LM386 with Gain = 200

When I turned the potentiometer to Vin, the output suddently stopped and never worked again.
Looking at the datasheet I discovered that the maximum (and recommended) input voltage Vi is MIN=-0.4V and MAX=+0.4V. It means I probably destroyed the input stage.
That's why I'm searching for a way to protect the input stage.

What I tried so far:
I put an additional series resistor on pin 3 to provide a further voltage drop and avoid Vin directly connected to pin 3 when moving the potentiometer.
Then I searched for Schottky diodes and I put two anti-paraller diodes on pin 3 (after the added resistor) connected to ground. To avoid signal distortion, I choose the 1N5819 which has a forward voltage drop Vf=0.55V at If=1A, to grant a bit of margin (but then I discovered the actual Vf in lower, about 0.2V).

My questions:

  1. Why the datasheet shows such a diagram where the audio source Vin can be directly connected to the input pin? Is it due to line level for customer audio specification?
  2. Is there a better way to protect the input stage, instead of what I did (resistor + Schottky diodes)?

UPDATE: this is the input stage design at the moment. LM386 input stage This is what I previously described by words. I put the series capacitor to block DC voltage and the R1 resistor to protect the input. The diodes D1 and D2 limit the input swing.

\$\endgroup\$
14
  • 3
    \$\begingroup\$ I designed a circuit diagram for this purpose <--please add the schematic that you designed. \$\endgroup\$ Commented Aug 19 at 8:37
  • \$\begingroup\$ you should use the figure 9-13 (input) of the datasheet. \$\endgroup\$ Commented Aug 19 at 8:39
  • \$\begingroup\$ @Andyaka I'll share it. \$\endgroup\$ Commented Aug 19 at 9:02
  • 1
    \$\begingroup\$ ah wait, you used a 2.5 V (not 0.25 V as I unconsciously read) input? Yeah, sure. With an input range of +- 0.4 V (datasheet, "Absolute Maximum Ratings", you probably just fried your input stage. Yeah. Throw away the LM386, use a lower-amplitude input signal for testing, and if you get the chance, just, like, use something that's less questionable w.r.t. to input stage maximum current specs (with better ICs you can just protect the input in easier ways), and that doesn't sound as horrible as the LM386 (it becomes completely unusable at output powers > 0.2 W; laughably low at these supply V). \$\endgroup\$ Commented Aug 19 at 10:52
  • 1
    \$\begingroup\$ (just as reference, the LM386, a cheaper version of an already not perfect IC, the LM380, was developed by Motorola 1968/1969. Just in case you wonder whether the design of engineer-friendly audio amplifier made any progress in the last 56 years (!): yes, it did. It really, really, astonishingly much so, did. The LM386 was a low-end chip when it was introduced, and more than half a century later, it's just the worst point from which you could start an audio amplifier.) \$\endgroup\$ Commented Aug 19 at 11:00

1 Answer 1

1
\$\begingroup\$

If your input signal has amplitude 5V peak-peak, then you certainly don't require gain 200 from this IC. Don't include the 10μF capacitor between pins 1 and 8. Without that capacitor, gain is 20, as shown in diagram 9-1 of the datasheet.

Scale the input signal using a resistor voltage divider. If your supply is +5V, then you are probably expecting about 3V peak-peak output (see fig. 6-3). Given that voltage gain is 20, this corresponds to \$\frac{3{\rm V}}{20}=0.15{\rm V_{PK-PK}}\$ (±75mV) at the input. Anything beyond that would cause clipping at the output.

Conveniently, this is well below the maximum 0.8V peak-peak (±0.4V) signal tolerated at the input, so if you scaled the source signal correctly, you won't ever get close to that maximum.

The proper scaling factor would be:

$$ K = \frac{0.15}{5} = 0.03 $$

This can be achieved with approximately 33:1 resistor divider, the lower of which could (if you wish) be a potentiometer for gain control:

schematic

simulate this circuit – Schematic created using CircuitLab

That pair R1 and R2 attenuate according to the well-known divider formula:

$$ V_X = V_{IN} \frac{R_2}{R_1+R_2} = \frac{10\rm{k\Omega}}{330\rm{k\Omega} + 10\rm{k\Omega}} = 0.029 $$

The potential at the wiper of R2 will be some fraction between 0% and 100% of \$V_X\$, and this will be amplified (by a factor of 20) by the LM386.

If you are certain that \$V_{IN}\$ will never fall outside ±2.5V, then you could safely use a larger factor \$K\$, and still never exceed \$V_X=\pm 0.4V\$:

$$ K = \frac{0.8}{5} = \frac{1}{6.25} $$

This would require a resistor ratio of \$(6.25 - 1):1=5.25:1\$, which when using easily available E12 resistor values might look like this:

schematic

simulate this circuit

This permits adjustable overall gain between zero and \$20\times \frac{10}{10+56}=3\$, in case you ever needed that much, without exceeding the ±0.4V input constraint for the LM386.

Just a small caveat - there's a 50kΩ resistance to ground from each IC input to ground, inside the IC, which is effectively in parallel with the the 10kΩ potentiometer. This will make my calculations above a little inaccurate, since it will necessarily alter the equivalent resistance of R2 from 10kΩ down to 8.3kΩ. If that's a problem, just reduce R1 until you obtain the correct R1:(R2∥50kΩ) ratio for the overall gain you desire.


This little gem of an IC was a bread-and-butter learning tool for me back when I was young. It employs a mix of concepts from DC/AC coupling, through biasing, to negative feedback. By studying the internal transistor schematic (from the datasheet), this little marvel taught me more than I could ever thank anyone for. I hope you can learn from it as much as I did.

\$\endgroup\$
2
  • \$\begingroup\$ I'm surprised how many information you've been able to share! The design steps you explained are very clear, maybe this permits me to avoid adding Schottky diodes (of course, a non-standard audio source could damage the IC still). My intention is to make the device the more general as possibile: supply voltage range from 4 to 12 V, adjustable gain, volume and bass boost etc... So you said all I needed! Do you agree diodes are not necessary in this case? \$\endgroup\$ Commented Aug 20 at 13:09
  • \$\begingroup\$ I'll explore the internal circuit too, you've got me curious \$\endgroup\$ Commented Aug 20 at 13:11

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.