Hey All!
As a first foray into the world of Audio (coming more from a digital/embedded background), I am working on an Audio Relay-Step-Attenuator and input switcher
In a few bullet points:
• 7 stage / 128 steps
• 0,5db step
• “constant input impedance” design: Each divider represents an input load of 10k
• Relay Mute
• Fully passive, inputs isolated from each other
• Switching between 4 inputs
I have attached the schematic.
I would be very grateful if someone could just look over my work and tear me a new one. I can handle it. I promise.
I also have a few questions:
1: Are the Omron G6K-2F-Y-3VDC a good choice here?
I mostly picked them based of the small smd footprint and the 3v coil voltage saving me a second power rail. I am really not sure if there are any specifications I should be paying attention to for audio stuff? 50’000’000 Mechanical operations should last me a while? Are there any shielding concerns?
2: How important is the order of the attenuation stages?
I have seen both the stage with highest and lowest attenuation first, and as far as I understand the circuit it theoretically should not matter: Each stage represents (almost) the same input load. Would it make sense to reverse the order so the highest attenuation would come last? That way the signal would be a higher amplitude longer, possibly bettering SNR? Would changing the order of the stages make the attenuator more susceptible to changes in what the actual load it sees are?
3: Output load correction
This attenuator type is designed to expect to see an output load of 10k. However, the devices I will most likely connect to the output all have an input impedance of around 20-45k. I thought I would include an (adjustable) resistor at the output to increase the load to closer to 10k. I ran some simple simulations in python (see attached plot), it seems that as long as the load the attenuator sees is greater than 10k, the performance is good enough for me (steps are no longer 0.5db, but the attenuation always increases, meaning that there would be no jumps of volume in the opposite direction when changing volume).
4: How necessary is it to keep the signal grounds isolated?
Right now I am switching both the signal and ground of each input, meaning the grounds of the various input signals are not connected together. I admit this “fully passive, don’t touch the signal at all” mostly comes from being afraid of doing anything that could reduce signal quality. Also I am scared of ground loops between phono preamps, dacs, headphone amps etc. I can swallow the cost of 3 extra relays as this design is only for me, but how necessary is this?
5: How should I be grounding the metal case/ground plane?
As a tag along to the previous question. I am on an isolated 9vAC supply. If I keep switching the signal grounds, what should I be tying the metal case and possible ground fills around the audio signals too? To whatever signal ground Is currently selected? The ground reference point of my digital circuitry? Tie the ground plane to whatever is selected and the case to digital ground? It seems a little strange to be switching the tie point of the metal case…
6: Muting when unconnected
A single button is used to cycle between the inputs (I can’t really get more inputs from the user). I would like to avoid large amounts of noise when cycling past an input that is currently unconnected/floating. For the 3.5mm inputs I was able to deal with that using the switch in the jack, but there are no such switches in the RCA plugs. I thought about adding a small jumper to ‘terminate’ those inputs? Maybe tie the signal to gnd using a 1M-10M resistor (that seems like a bad idea thought). Any thoughts? Maybe I just have the MCU keep the signal muted for a second or two when changing inputs…
I hope this did not get too wordy!
And again: I am really doing this to learn, so please tell me if everything I am doing is naïve, stupid, and pointless
Thank you!