1

I have designed a 4 layer board for a DIY DJ mixer I'm building. The 4 layers are:

  1. Connectors. Some traces going to/from components to Molex connectors.
  2. Power plane.
  3. Ground Plane.
  4. Signal plane.

The circuit is designed using dual power supply essentially creating +12V, virtual ground, -12V. The virtual ground is all connected through the ground plane.

I have noticed that the part of the circuit that uses op-amps, specifically the TL072, seems to be ok.

The headphone part of the circuit which uses 2 LM386, is susceptible to oscillations and distortion. I.e: When I touch my case or event pots or components on the PCB, the op-amp circuit seems fine, no distortion, the sound plays clean. The headphone section though goes crazy.

I have attached my KiCad PCB project. Just wondering if I should continue to use ground plane, switch to star ground or use both, ground plane for the op-amps and star ground for the headphones amplifiers?

Or do I have serious design issue?

https://www.dropbox.com/s/shabj2at0fffa25/main-v5.zip?dl=0

The images are in the order that they where described above.

Connector Plane Power Plane Ground Plane Signal Plane Schematic

user432024
  • 136
  • 1
  • 10

2 Answers2

1

given anough power gain, and enough stray currents from Power Output back to sensitive inputs, you can easily make an oscillator.

You've not diagnosed the cause of the oscillation. People on stackX often suggest the LM386 NOT be used. I have no opinions on that.

I can say the standard ground planes will not eliminate 60Hz (or harmonics, from diode rectifier surge currents) coupling into your audio circuits.

neither will STAR Grounds

The planes will provide excellent electro-static shielding on ONE side of the circuit. One side only. And through-holes will degrade even that shielding.

I suggest you use the planes, and learn to SLIT the planes, so as to steer high currents away from sensitive regions of the PCB.

I recall, on "diyAudio simplistic NJFET RIAA preamp" thread, the achievement of over 100dB isolation between output and input of a PCB, using a NARROW region of Ground strip between the 10volt/10mA output (to 1Kohm input load of a Power Amplifier) and the 100 microVolt input from a Moving Coil cartridge feeding a lownoise JFET.

The need of the Preamp ground design was to prevent ECHOES caused by the dominant 50Hz pole (3 millisecond delay) of RIAA compensation, with output---input crosstalk.

Thus designing the Grounding and the current flows is the better approach, rather than deciding between Planes and Stars.

First --- find out why the headphone drivers are oscillating.

Diagnose? clip a long wire to the HOT pin of the headphone output, and bring that wire near your PCB or input cabling from audio sources.

analogsystemsrf
  • 34,253
  • 2
  • 19
  • 48
  • Thanks. Any tips on how to diagnose the issue? I don't have low frequency hum issues with the op-amps. I can physically touch any part of the case, PCB pots etc... and the sound plays supper clean. Only the headphones there's massive distortion when I touch anything. – user432024 Apr 06 '20 at 16:17
  • So what you are saying I should basically "slit" the ground plane by adding a big empty rectangular area and leave a small section connecting the two? – user432024 Apr 12 '20 at 14:07
1

The trouble with the LM386 is how power is connected to the device. For instance, if power and input signal are applied like this: -

enter image description here

Then no supply currents that feed the output stage flow through the input circuit. However, if the input circuits are wired like this: -

enter image description here

Output stage power currents flow along the ground reference point (purple) and can "modify" the input signal at the LM386 inputs by several mV. This can cause oscillation, noise and instability.

You need to employ star pointing at pin 4 of the device and your main 0 volt power to anything else needs to start point away from that point. Because you use two LM386's there is some compromise but try and keep both pin 4s as close as possible and your incoming 0 volt power needs to hit that point before any other part of the circuit.

Andy aka
  • 456,226
  • 28
  • 367
  • 807
  • In my schematic 4 is going to ground and 6 is going through the capacitor and ground. So I'm assuming I'm using the second approach two what you describe. Except it's ground plane, not a star ground. – user432024 Apr 06 '20 at 17:52
  • If the 0 volts power feed to your LM386 is last in the chain then you'll get problems. Your 0 volt power (from the circuit that generates your DC power) should go nowhere else first other than pin 4 to be absolutely sure. Every other circuit node that uses 0 volts should tee-off from that point to ensure there are no LM386 PA output stage currents upsetting input circuits. – Andy aka Apr 06 '20 at 18:48
  • OK so if you look at my pcb above then what you are saying is I would have to move the headphones all the way to the left near the PSU input? – user432024 Apr 06 '20 at 19:03
  • You might try this idea out by externally applying power directly to the LM386 circuits first. Make sure this power supply is isolated of course and let the rest of the circuits just ride to whatever level they naturally acquire with this change of emphasis. You have to prove it this way just in case I’ve missed something that didn’t reveal itself when looking at the circuits. – Andy aka Apr 06 '20 at 22:21
  • Could I physically saw that part of the board off and just solder two wires directly to pin 4 and 6? Wuld the other half still continue to work? WOuld I need to isolate the edge of the boards since the power plane goes all the way? – user432024 Apr 11 '20 at 21:52
  • Just solder wires as close as you can to those points. Don’t bother sawing the board up. – Andy aka Apr 11 '20 at 22:01
  • OK so I should basically solder the psu leads directly as close as I can to there? – user432024 Apr 11 '20 at 22:12
  • It’s worth trying. – Andy aka Apr 11 '20 at 23:38
  • Ok so it's even worst!?!?!?!?! So now when I touch the pot or it's wire it sounds like a real oscillator and loud buzz. On the original when I touch it it kinda sounds like interference swooshy kind of sounds. – user432024 Apr 12 '20 at 00:43
  • At least it is confirming that it is a power issue and quite possibly one associated with ground. Are all inputs removed and are the headphones loading up the LM386 amplifiers? – Andy aka Apr 12 '20 at 08:09
  • 1- Using 2 switch mode AC/DC adapters, to make common ground, waiting for my dual linear reg too arrive tomorow. 2- The headphones are 40ohms 3- If I don't touch the pot or wire or caps, the sound is super nice and clean. – user432024 Apr 12 '20 at 12:49
  • so I ran a lead from the common ground of the PCB to a case screw. I also screwed in the top panel where the pot is attached properly to the case. Noise is gone. I can touch the pot without issues. Only when you touch the two specific capacitors inside the case causes noise. Anyways the case is closed so unless somehow a wire sits on top of the caps. I should be ok for now.

    My overall noise floor is now at -120db. Also linear PSU helps allot in the stability of the circuit. Vs having 2 switch mode PSU making a common ground.

    – user432024 Apr 20 '20 at 15:37
  • @user432024 that's good. Did you find that the power leads still needed to be fed directly to the LM386's first or did that problem also disappear? – Andy aka Apr 20 '20 at 15:46
  • No, that didn't work. If you look further up, I had replied back to you saying the problem got worst when I did that and then you replied with that there may be a ground problem and then I tried to take it to a chat, but you didn't reply. Right now with the case properly closed and grounded we cannot get inside the case to touch the the c21 and c22 caps so I think we are good. But I'm looking at designing alternative headphone section. – user432024 Apr 20 '20 at 19:15