Electrical – Ground loop isolation of a USB-powered device

dacgroundloopsisolationusb

I have a device (Device 1) that is bus-powered via Full-Speed USB and that is drawing up to 400 mA from a laptop.

Device 1 has a DAC that can output an analog voltage to another device (Device 2) through a jack connector, Device 2 being powered externally.

The problem is that if the laptop connected to Device 1 and Device 2 are connected to a different outlet, it creates a ground loop and its characteristic "hum". If the laptop runs on battery, there is no issue.

edit : The ground loop occurs when both devices are connected to the same laptop

I first thought about using a USB isolator such as the ADuM4160 which works great. Unfortunately it is too expensive for my application. Another solution that works fine is to use a USB Y cable, splitting data lines and power lines. However, I would prefer a solution that is fully transparent for the user.

As there is no problem with the USB Y cable when the USB data lines are not isolated, I was wondering if it was possible to use a similar principle used in ADuM4160 ((1:1) transformer) to isolate only the power lines from USB, leaving the data lines untouched. I haven't found such a component so I'm not sure about this.

I also had other ideas to perform an isolation at another place (i.e. between the DAC and the output) but it does not look convenient at first sight.

Do you have any recommandation or any other solution to avoid ground loops in this kind of setup ?

Best Answer

Laptops are a real traps for young players when you hook them up to an analog circuit.

A slightly simplified schematic of a laptop supply shows the totally counter-intuitive capacitors that are straight across the transformer. C1,C2 form a voltage divider that floats the laptop at 115V (when you are in a grounded-neutral mains system). These are the fat blue disc capacitors when you open up a laptop psu. (They are there so that RF energy can flow back out to the low impedance mains to get rid of it)

schematic

simulate this circuit – Schematic created using CircuitLab

If you connect the laptops ports to anything grounded, 75 microamps will flow through the ground/microphone/usb/data wire. There will be 115V available to force it to flow, if the connection happens to be a high impedance and poorly protected IC input.(Goodnight Nurse), or you get incurable hum in audio circuits (ground-loop)


You should read up about ground loops, it is a major (THE major?) issue building recording studios.

  • Star Grounding: You need a single defined ground point. All grounds radiate outwards from that and never loop back. You need to join the USB shields at the USB connectors with a wide strap (braid,foil). If you can Join the signal/power grounds similarly. Ideally you will choose a point in the ADC and DAC modules where the digital meats the analog part, and join them from those points, but at the usb connectors is a good start.

If you can't get into the modules you can cut up two usb cables and join the shields and grounds near the device ends, but leave the data wires separate. Join this point to physical ground.

  • Differential analog is how professional audio deals with this. Once you can detect microvolt levels there is no other way.