Switching stereo audio inputs with an SPST? (IC?)

Started by DIY Dood, March 16, 2021, 03:26:04 PM

Previous topic - Next topic

DIY Dood

Note: This is actually an automotive audio switching question, but I'm guessing a number of folks here have the expertise to advise me with. It's the same sort of stuff we do with stompboxes. The audio world is very short on this level of circuit building.

What I need to do is select stereo audio input from source 1 or source 2. Source input is pre-amp level, like Ipod or Iphone output. Probably close to max level. So I need top quality audio transfer.

The issue is that the switch that will do the switching is an SPST, not the DPDT that I need to do this with just a switch. (The switch is integrated into the automobile).

It was suggested that I could an audio switching IC, but I'm definitely unqualified to select one and design the circuit to implement it. I can read a schematic and build a board, but I'm not familiar enough with components to understand what's a good choice or bad.

Pointers to circuits or specific IC chips I could study the datasheets of ? Or other ideas?

PRR

  • SUPPORTER

ElectricDruid

PRR is right. A relay is definitely simplest.

You *could* do it with audio switch ICs, but you'd probably need buffers and biasing, if it's running on 0-12V. All in all, a nuisance.

DIY Dood

I have some standard 12v auto type relays and I'm qualified with that component level. LOL.

But, I was assuming that having a 12 volt coil near an audio signal of the pre-amp level would be just asking for noise in a car. Not a concern? I can shield the relay... but the contacts will be next to the coil by definition.

PRR

Audio has been switched by millions of relays (look in a 1920-1960 telephone exchange). Clean DC is "noiseless". The consumption of a small relay (50mA contacts) is so small that a 33r and 330uFd R-C filter will clean of spark-buzz and blunt dynamo spikes. If it were truly a problem, you get a 5V relay and multiple layers of R-C filtering and a LM7805 regulator.

Yes, there is a click when the relay pulls-in. But that is also the moment when polka is switched to salsa (or whatever you are switching to/from), so there has to be a discontinuity. And a generation of audio consoles (now lost) did relay switching without fuss or clack.

Don't use those big relays for fog-lights or A/C or that damm O2 bypasser in my car (when I hear it chatter I know I have to change the O2 bung). They take big control current which will spike audio, they are typically single-pole so you need two for stereo (double the current spike), and a 10A contact will stay clean with 1A-10A load current to burn tarnish but not with sub-mA audio current.
  • SUPPORTER

PRR

Relay-switching is a darling of the high fidelity audio-world for volume and for source selection.
https://www.google.com/search?q=relay+volume+control&source=lnms&tbm=isch
  • SUPPORTER

DIY Dood

Ah, I was thinking of using dpdt auto relays but they do pull some significant current.

Thanks for validating the approach. I understand relays.

So you're suggesting getting a PCB type relay and using that to do the switching? Do I need to get something that's runs 5v and step it down or can I use a 12v version?

iainpunk

QuoteDo I need to get something that's runs 5v and step it down or can I use a 12v version?
yes

cheers, Iain
edit:both do the trick, i'd personally go for the 5v step down version, because i already have 5v regulators and relays, but if you are going to buy new, i think its cheaper to get the 12v ones and not use a regulator.
friendly reminder: all holes are positive and have negative weight, despite not being there.

cheers

BJM

Quote from: ElectricDruid on March 16, 2021, 07:30:52 PM
PRR is right. A relay is definitely simplest.
Hi all,

Some time ago I looked at a relay bypass kit with which you needed a momentary switch. Stupid question maybe, but the switch in the car may not be momentary? Would that make a difference?

Gr,

Bert

vigilante397

Quote from: BJM on March 18, 2021, 10:19:08 AM
Quote from: ElectricDruid on March 16, 2021, 07:30:52 PM
PRR is right. A relay is definitely simplest.
Hi all,

Some time ago I looked at a relay bypass kit with which you needed a momentary switch. Stupid question maybe, but the switch in the car may not be momentary? Would that make a difference?

Gr,

Bert

Momentary switch -> use a latching relay

Latching switch -> use a non-latching relay
  • SUPPORTER
"Some people love music the way other people love chocolate. Some of us love music the way other people love oxygen."

www.sushiboxfx.com

BJM

Quote from: vigilante397 on March 18, 2021, 10:52:18 AM
Momentary switch -> use a latching relay

Latching switch -> use a non-latching relay

Thanks! Btw, do you make those Sushi Box pedals? They look great  :)

vigilante397

Quote from: BJM on March 18, 2021, 12:23:40 PM
Thanks! Btw, do you make those Sushi Box pedals? They look great  :)

That's me, thanks! ;D
  • SUPPORTER
"Some people love music the way other people love chocolate. Some of us love music the way other people love oxygen."

www.sushiboxfx.com

BJM


DIY Dood

Following up on this: While searching for an appropriate relay, I decided to check Amazon (I have temp Prime membership, which makes them a better option that other vendors).

Found this module. Costs less than I would have spent for a relay and perf board... diode (bounce) protection included. Low current trigger, although that's somewhat irrelevant for my application.

It's all SMD now, in contrast to the photos. I would have preferred non-SMD, because I can work with old-school stuff, but it should do the job and I don't really need to play with the components. I just like options :- )

https://www.amazon.com/ELECTRONICS-SALON-Signal-Module-RY12W-K-Assembled/dp/B00LWX9PPA

DIY Dood

#14
Followup question:

This all works, but there's a thump when switching the inputs. I'm guessing there might be some way to buffer the audio lines with a capacitor or two? But I'd have no idea how to design that.

The circuit is below... mostly just a relay with a support circuit to allow the trigger to be lower voltage. The "input" is the switching line that's controlled by a latching switch.

Ideas?





CodeMonk

#15
ElectricDruid brought up using IC's for switching, so here's a link: http://www.geofex.com/article_folders/cd4053/cd4053.htm

Just to let you know there are other options available.

A CD4053 is essentially a 3PDT switch in a chip.

I used a DPDT switch (one pole for an LED) as opposed to the other options listed to activate the IC.

PRR

> there's a thump when switching

Usually means there is small stray DC on connections. On bass-shy guitar amps/pedals this is a "POP!". Try that search term here.
  • SUPPORTER

DIY Dood

Couldn't find any under "POP" or "stray DC"... aside from your post.

Do I just need a capacitor on each audio like to the amp to stop the DC? If so, I'd need cap-value guidance.

PRR

Sorry. 3-letter words baffle the Search. Try "pop resistor".
  • SUPPORTER

DIY Dood