A hum at high gain? Break the ground, keep the music ๐Ÿ”‡

Turn a preamplifier up to its high gain and, with a USB DAC, a low hum can come up with it, even with the music paused. On a test player, a Raspberry Pi 4 playing through a USB DAC with an HDMI screen whose touch works over USB, that is what happened: the hum went away whenever the touch cable was unplugged. The cause was not Gexis Player’s software but the ground.

Two ways round a ground hum: a high-speed USB isolator between the Pi and the USB DAC, or a USB-to-optical adapter and an optical cable into the DAC
Two ways round a ground hum: the music crosses as data, the ground current does not.

๐Ÿ” Is it a ground hum?

The touch cable is a second connection between the screen and the Pi, beside HDMI, and a small current finds its way into the ground the DAC and the amplifier share. A few quick tests tell:

  • Pause the music with the amplifier up. A hum still there is electrical, not the music.
  • Unplug the touch cable, or the screen’s power adapter. A hum that goes with it is a ground path.
  • A buzz that changes with the screen’s brightness is something else: the screen drawing its power through the touch cable.
  • One power strip for the amplifier, the Pi and the screen is worth a try first.

๐Ÿ”Œ A high-speed USB isolator on the DAC’s cable

A USB isolator sits in the cable: the data crosses it, the electrical connection does not, ground included. On the test player:

  • on the touch cable, it changed nothing;
  • on the DAC’s cable, the hum was gone completely, even at the preamplifier’s high gain.

The isolator has to be high speed, 480 Mb/s. Isolators of the common ADuM4160 type run only at full speed, 12 Mb/s: enough for a touch screen, but on a DAC’s cable they limit its rates or stop it. A DAC that takes its power over USB may also want more current than an isolator passes; one with its own supply does not mind.

๐ŸŽผ Does the music lose anything?

Not with a high-speed isolator. Through it, the test player’s DAC connected at the same speed and offered everything it did without it: up to 768 kHz at 32 bits, and native DSD.

Yours is easy to check in Settings โ†’ Audio โ†’ Output: the DAC’s line shows the speed it connected at and what it takes, for example USB 2.0 ยท up to 768 kHz / 32-bit ยท native DSD. USB 1.1 there means the isolator is running at full speed.

๐Ÿ’ก Or an optical cable

A USB-to-optical adapter on the Pi, into the DAC’s optical input, carries light, not current, so no ground passes from the Pi to the DAC. The player treats the adapter as a sound card of its own; the one tested, a Realtek USB SPDIF Adapter, is marked Tested.

What reaches the DAC is then what the adapter takes:

  • 44.1, 48, 96 and 192 kHz, at up to 24 bits, play as they are;
  • 88.2 and 176.4 kHz, which that adapter lacks, are converted to a rate it takes, rather than played too fast or not at all;
  • DSD has not been tried through it.

So optical suits music up to 192 kHz, and the isolator keeps everything the DAC takes over USB. Optical was not tried against this hum; the isolator was.

๐Ÿ› ๏ธ If neither fits

In order: the screen on its own supply, through its power-only port; one power strip for everything, with the cables run together; an RCA ground-loop isolator between the DAC and the amplifier, though cheap ones dull the extremes; a DAC HAT instead of the USB DAC. Ferrite clamps help only against high-frequency noise.

โš ๏ธ Never remove an earth connection to cure a hum: it is there for safety.