Open source balanced-input LM3886 design and PCB layout

Member
Joined 2011
Paid Member
I wonder about those NE5532 in the original schematics - how do they perform seeing 1k load? What if resistors R10, R11 were to be increased to 2k and R12, R13 increased to 20k? From the datasheet of the NE5532 it looks like it performs better seeing 2k loads?
 
Member
Joined 2011
Paid Member
I have built the amplifier based on this schematics, but with different OPAMP and PCB board layout.

The problem is - it oscillates.

It only does so when I turn on the amp first instead of my DAC that is connected with about 3 feet mic cables. I also have speakers connected and when I turn the amplifier on I hear loud screeching sound from the speakers. However, if I turn on DAC first, and then the amp, everything is fine.

I wonder if the reason is the input bias network?
I have used all recommended stability components for the LM3886 - I don't think it is the reason for the oscillation.
I am also wondering if it is possible for OPA1652 to oscillate and pass it further to LM3886?

Any suggestions are welcome,
Thank you!
 

Attachments

  • Screen Shot 2023-02-20 at 11.03.09 PM.png
    Screen Shot 2023-02-20 at 11.03.09 PM.png
    27.9 KB · Views: 148
  • Screen Shot 2023-02-20 at 10.59.09 PM.png
    Screen Shot 2023-02-20 at 10.59.09 PM.png
    108.1 KB · Views: 141
I've never seen or heard my build of my design oscillate with the inputs floating or otherwise. Not even with a 25 ft XLR cable and long speaker cables.

I wonder if the reason is the input bias network?
I can't see why this would be the case.

I am also wondering if it is possible for OPA1652 to oscillate and pass it further to LM3886?
It's possible, but that op amp shouldn't be difficult to keep happy. I've used the OPA1678 (which is essentially the same chip) in other projects and it doesn't seem to be particularly picky about supply decoupling, output loading, etc.

So, unfortunately, I don't have any real idea at the moment. I haven't looked at your layout extremely carefully, but one thing I did notice is that R11/C6 and the negative output terminal are not tied to ground at a single point (note the net tie in my design). This could be a problem because grounding those at a single point is what ensures a high degree of ground noise immunity in a difference amp.
 
  • Like
Reactions: 1 user
Could be shorter, but I don't think the loop is long enough to be a considerable problem by itself. Other than what I mentioned in my previous post, nothing is jumping out as obviously problematic to me at the moment.

Perhaps @tomchr would have a good guess as to the problem with your design if he has the time to take a look. He definitely has considerably more experience in PCB design than I do.
 
If you remove Cc across the inputs and Cf across the feedback resistor you'll probably find that the amp no longer oscillates.

Without Cc, Cf, and Rf2 you'll get a bit of spurious oscillation when the amp exits from clipping. That'll limit the amount of clean output power you can get. If you want the max output power add those components.

Alternatively... Did you ever measure the phase noise of this power oscillator of yours? Was it any good? Maybe you just need to change the marketing. :D

Tom
 
Member
Joined 2011
Paid Member
That was a good catch! Thank you for pointing the mistake - I guess I was copying stability components from the INAMP where three NE5532 are used, and they are stable at unity gain with those capacitors... Using LM3886 as a difference amp obviously is different...

Now I am wondering if it will make sense to mirror Rf2 and Cf for the positive part of the difference amp?
Attached schematics demonstrates the question:
 

Attachments

  • Screen Shot 2023-02-24 at 12.54.26 AM.png
    Screen Shot 2023-02-24 at 12.54.26 AM.png
    48 KB · Views: 88
Member
Joined 2011
Paid Member
Down the rabbit hole of "stability components" Cc, Cf, Rf2:

I simulated schematics from the datasheet (also used Neurochrome website as a reference - thank you Tom!) to determine optimal values for the three. The gain was set to 10V/V. Below is the table with the results:

CcCfRf2Phase marginZero gain freq
100pF22pF10k60.131.01MEG
100pF27pF10k56.791.05MEG
100pF33pF10k54.281.07MEG
100pF47pF10k50.441.1MEG
100pF22pF20k56.71887.32k
100pF27pF20k55.33896.89k
100pF33pF20k54.2903.41k
100pF47pF20k52.69910.57k
220pF22pF10k51.24786.65k
220pF27pF10k48.07818.25k
220pF33pF10k45.1842.83k
220pF47pF10k40.66872.05k
220pF22pF20k45.03725.85k
220pF27pF20k43.46735.35k
220pF33pF20k42.13742.11k
220pF47pF20k40.29749.66k
Rf1
NoneNone20k84.12373.94k
NoneNone10k79715.58k


At the bottom of the table I have values for schematics without Cc, Cf, and Rf2. Basically shows phase margin for two gain values: 10V/V and 20V/V

Am I safe to assume that combination of Cc = 100pF, Cf = 22pF, and Rf2 = 10K is the safest to use? The negative feedback resistor Rf1 equals to 10K and set the gain to 10V/V, so at high frequencies the overall gain of the amplifier is reduced by Rf1||Rf2 = 5V/V.

Attached are screenshots for the simulation and plot results.
 

Attachments

  • sch.PNG
    sch.PNG
    7.1 KB · Views: 73
  • plot.PNG
    plot.PNG
    10.3 KB · Views: 70
Last edited:
I'm pretty certain the answer is yes. The CMRR will be significantly degraded at high frequencies otherwise.
True that. But then again CMRR will be degraded due to the decreasing loop gain of the LM3886 anyway. I'm not sure it matters much one way or the other, but I would still add Rf2+Cf to ground on the inverting input just to keep things balanced. The components are cheap. You could simulate it and quantify the CMRR degradation with/without those components. You'll want to run the sim out to at least 1 MHz.

Beware that the AC simulations with the LM3886 model are only valid well away from the supply rails. Cc is introduced to tame the behaviour when the LM3886 approaches saturation. Rf2+Cf are then added to tame the transient response after adding Cc. Anyway. My point is that Cc needs to be determined in the lab. Once you know Cc you can tune Rf2+Cf in the simulator so you get a clean transient/step response.

Tom
 
  • Like
Reactions: 1 user