Electronic – Issues with HUM on DIY audio signal switcher using a relay

audiosignal

I am creating a rack mounted system for toggling multiple guitar pedal effects remotely through a footswitch. The idea is that I create a signal chain starting with the output of a guitar and that going through a serial chain of eight relay boards and then into the amplifier. Each relay board will be able to add or remove an effect pedal from the signal chain, adding the effect or bypassing it. Something like a much simpler version of a device such as this one: https://www.boss.info/us/products/es-5/

I now have it built and mostly working except that I am getting a constant hum which sounds like some sort of a ground loop noise when I connect everything together. This is even happening if the device is not connected to power and I only connect the signal through the outer two connectors (see board below). I use a Panasonic TQ2-4.5 DPDT Relay for this.

Also I've uploaded the whole project schematics and designs on github and planning to document it much better when I get it working.

https://github.com/darko1002001/remote-guitar-pedal-controller

Here is the schematic of the relay circuit.

How it looks

Schematic of relay circuit

Board layout of relay circuit

Best Answer

You might have either 60Hz sinusoidal magnetic fields or electric fields intruding.

To reduce the magnetic field intrusion, add GND path immediately adjacent (or immediately under) the signal path. Or place a big piece of STEEL, that is grounded to your Ground wire, under the entire circuit.

To reduce the electric field intrusion, you need a big piece of metal that is grounded, under your signal path.

If Efield, simply wrapping your hands around the circuit will have an effect (good or bad).