Author Topic: Switch analog audio signals  (Read 17240 times)

0 Members and 1 Guest are viewing this topic.

Offline obiwanjacobiTopic starter

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Switch analog audio signals
« on: April 23, 2012, 08:08:35 pm »
Hi,

I'm looking for a way to switch analog audio signals. Now I know about the 4016 and 4066 chips but I was wondering if there was a better/other solution.

I'll give some context on what I'm trying to build. I want to change the order of several (4 or more) audio processing circuits (Guitar Effects). I could drop in a bunch of these analog switches but that didn't strike me as a very optimal solution. I also thought of using (miniature) relays, but that adds up real quickly since I probably have to construct a matrix. Everything is digitally controlled with an MCU.

Anyway, love to hear what you think would be a good solution.

Thank you,
Marc
« Last Edit: April 23, 2012, 08:14:53 pm by obiwanjacobi »
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline cybergibbons

  • Frequent Contributor
  • **
  • Posts: 400
Re: Switch analog audio signals
« Reply #1 on: April 23, 2012, 08:37:53 pm »
What's wrong with those?the 4066 is well suited. There are probably more expensive options with smoother frequency response.
 

Offline TerminalJack505

  • Super Contributor
  • ***
  • Posts: 1310
  • Country: 00
Re: Switch analog audio signals
« Reply #2 on: April 23, 2012, 10:03:44 pm »
Google "audio crosspoint switch" and find a part that meets your needs.
 

Offline obiwanjacobiTopic starter

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Switch analog audio signals
« Reply #3 on: April 30, 2012, 09:25:21 am »
FYI: Found some interesting reading material for switching audio.

Self on Audio (Chapter 12)

Hope it helps.
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8550
  • Country: us
    • SiliconValleyGarage
Re: Switch analog audio signals
« Reply #4 on: April 30, 2012, 05:07:42 pm »
Good analog switches are intersils ( actually siliconix , but they got bought by intersil ) DG40x series.

I have used those to make programmable gain amplifiers and tunable filters for ADSL signals. They work perfectly up to a few MHz. should be perfect for audio.
and they are not more expensive than your garden variety 4051/4052/4053/4066.

if you want to eliminate problems like crosstalk it may be required to not send a signal through teh same die. channel to channel isolation is not so good.
fortunately there is the '4066' in sot23 package : 74v1g66 is a single SPST-NO switch in 5 pin SOT23. ideal to plunk them exactly where you need them.

Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline kiyotewolf

  • Contributor
  • Posts: 22
Re: Switch analog audio signals
« Reply #5 on: May 26, 2012, 02:54:04 am »
Might seem a bit archaic, but I remember hearing about someone switching audio off and on, using CDS cells opto-isolated to light sources.

Was a noiseless way of turning off and on audio sources.



~Paul
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: Switch analog audio signals
« Reply #6 on: May 26, 2012, 03:41:04 am »
Might seem a bit archaic, but I remember hearing about someone switching audio off and on, using CDS cells opto-isolated to light sources.

Was a noiseless way of turning off and on audio sources.



~Paul

Yes i did come across it during my time in diystompboxes
 

Offline obiwanjacobiTopic starter

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Switch analog audio signals
« Reply #7 on: May 26, 2012, 07:55:45 am »
CDS == LDR?

I have found some LED/LDR opto's but they were very pricey.
And I was also concerned with the current you have to supply the LEDs for fully driving the LDRs.
Considering that I need 20-30 of these 'digi pots' it adds up really quickly (both current and price  ;D )

What I really liked about an opto-isolated solution is the isolation between the digital circuit and the audio circuit.
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16363
  • Country: za
Re: Switch analog audio signals
« Reply #8 on: May 26, 2012, 09:26:37 am »
The most expensive item if you DIY is the CDS cells themselves. A high efficiency red LED will drive it down to sub 100R resistance, provided the spot from the LED covers the whole active area of the cell. The biggest problem is making a truly light tight enclosure, as it is hard to get 35mm film canisters any more, which were the perfect container to use. You probably will have to use black rigid pvc conduit, and cut short lengths and use end caps. LED in one cap and LDR in the other.
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: Switch analog audio signals
« Reply #9 on: May 26, 2012, 10:50:57 am »
The most expensive item if you DIY is the CDS cells themselves. A high efficiency red LED will drive it down to sub 100R resistance, provided the spot from the LED covers the whole active area of the cell. The biggest problem is making a truly light tight enclosure, as it is hard to get 35mm film canisters any more, which were the perfect container to use. You probably will have to use black rigid pvc conduit, and cut short lengths and use end caps. LED in one cap and LDR in the other.

You can buck the LED and LDR together (as in place them exactly on each other) and heatshrink them OR you can pot them (how do i put it ... remember the acrylic headphone amp thing ? in the black version or as i mean like those epoxied IC's in cheap calculators and meters)
 

Offline obiwanjacobiTopic starter

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Switch analog audio signals
« Reply #10 on: May 29, 2012, 08:32:45 am »
Yeah, heat shrinking is something I considered too. But the LDR's I foudn so far do not go down to 100 ohms (or so). Most datasheets mention something like 27k at 10 lux.

Will a good LED produce more than 10 lux and will the LDR go down further?

BTW: I considered using led/ldr pairs for replacing manual pots and not switching audio signals (thats why I mentioned it in my previous post).
I am researching both at the same time, so I mix them up sometimes ;-)
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline kiyotewolf

  • Contributor
  • Posts: 22
Re: Switch analog audio signals
« Reply #11 on: May 29, 2012, 09:50:08 am »
What about using another resistor in parallel with the CDS?

Or something like that?

24875-0 - is unfinished.

Felt like posting it anyways.
« Last Edit: May 29, 2012, 09:58:04 am by kiyotewolf »
 

Offline obiwanjacobiTopic starter

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Switch analog audio signals
« Reply #12 on: June 01, 2012, 06:13:01 am »
Yes, putting a resistor in parallel is what I've seen others do too. I've just ordered a couple of LEDs and LDRs so I can experiment with them.

Thanks.
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19962
  • Country: gb
  • 0999
Re: Switch analog audio signals
« Reply #13 on: June 02, 2012, 08:51:34 am »
Now I know about the 4016 and 4066 chips but I was wondering if there was a better/other solution.
Do you know the 4016 and 4066 also come in 74HC versions which have a lower on resistance?
 

Offline obiwanjacobiTopic starter

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Switch analog audio signals
« Reply #14 on: June 02, 2012, 08:21:08 pm »
Now I know about the 4016 and 4066 chips but I was wondering if there was a better/other solution.
Do you know the 4016 and 4066 also come in 74HC versions which have a lower on resistance?

Yes, I do know the are also available as a 74HC - but I hadn't looked at the datasheet in detail, so I didn't know the resistance was lower.

But these switches will probably go between some input and output buffers (op-amps) that will run on +/-12V (or similar). So the ability of the 4016/4066 to run at higher supply voltage is more important I guess. Those buffers will also compensate for the higher on-resistance.
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19962
  • Country: gb
  • 0999
Re: Switch analog audio signals
« Reply #15 on: June 02, 2012, 09:47:20 pm »
But these switches will probably go between some input and output buffers (op-amps) that will run on +/-12V (or similar). So the ability of the 4016/4066 to run at higher supply voltage is more important I guess. Those buffers will also compensate for the higher on-resistance.
Are the signals AC or DC?

If it's AC, what's the maximum peak to peak voltage?

If it's within the 10V allowed by the HC versions, you could run the switch off a lower voltage (possibly even single rail) and AC couple the signal through the switch. The ICs have internal diodes, connected to either supply rail, so higher voltage input transients at power on won't be a problem, as long as the current is limited.
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8550
  • Country: us
    • SiliconValleyGarage
Re: Switch analog audio signals
« Reply #16 on: June 03, 2012, 01:35:19 am »
Take a look at the dg4xx family from intersil / siliconix.
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline kiyotewolf

  • Contributor
  • Posts: 22
Re: Switch analog audio signals
« Reply #17 on: June 03, 2012, 11:52:12 am »
Is there any way we can see some scrap of a schematic, nothing, totally complete, just a small daveCad version of the, main function this device is doing?

If you must, you can use block diagrams, to further reduce the meaning down to something broad enough, to be sketched in 30 seconds or less.

I just feel I could make some nice schematics of my ideas, if I had a better view of how many inputs and outputs and controls there were, and what kind of target electronics we want to use.

::::

Do we want all passive component mixing and filtering, so it runs on zero power?

 [or]

Do we want active mixing and filtering, so it requires either single or dual rail power to operate?

 [or]

Will it run off a USB plug, with the two data lines 1 Meg. Ohm'ed off to ground, so we only use power off the bus, to run this thing?

 [or]

Option D * something I haven't thought of yet.



~Paul!

Thanks OP.  I await your reply.
 

Offline obiwanjacobiTopic starter

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Switch analog audio signals
« Reply #18 on: June 03, 2012, 12:56:02 pm »
I'm sorry, I didn't realize there was need for a schematic.

This is a rough draft of what I'm thinking of:


Left the input buffer, in the center the audio switch and on the right the output buffer. These are the building blocks to make an audio matrix.

The idea is to build a matrix of at least 16x16. The switch enable will be driven by a couple of 4094 (at +/- 7.5V) - serial to parallel shift regs. Those will be driven by a MAXIM 1488E that will take logical 5V at the input and can output +/-7.5V. The logic serial signals will be generated by an MCU. Currently thinking in terms of some sort of AVR but that's just because I'm unfamiliar with the PIC. Have not done a detailed analysis of what I need, because I do not consider it a problem. There will also be a Midi interface that is handled by the MCU to allow for patch recall on a Midi Program Change.

The audio matrix  is usable in itself (and I will probably build one for my own home studio) but the initial idea was for use in a guitar (multi) effect rack, where the signal flow through each effect can be programmed.

The audio switch perhaps requires some extra explanation:
- I use 4x 4066 switches to make one audio switch (so thats one chip per audio switch).
- The reason for this is cross talk: there is no cross-talk if you route the audio signals through different die's.
- I use 2 parallel 4066 switches to lower distortion.
- I connect the signal to ground in off-state (better off-state, less leakage)
- Leftover switch is used as an inverter.

Hope this clears things up a bit.
« Last Edit: June 03, 2012, 01:10:34 pm by obiwanjacobi »
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline obiwanjacobiTopic starter

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Switch analog audio signals
« Reply #19 on: June 14, 2012, 11:00:08 am »
I await your reply.

And I yours...  ;D
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1836
  • Country: ca
Re: Switch analog audio signals
« Reply #20 on: June 14, 2012, 11:37:02 am »
looking at your schematic, you still have 4066's there.  forget those.. drop them on the floor.
 Free_electon got it right , he said consider the DG4xx series from Vishay/Siliconix.

The DG4XX series have better on resistance (20 ohm vs 50-80 ohm), better frequency response (flat to 200 mhz, vs cd4066 40 mhz), better channel to channel crosstalk (-70, -90 db vs cd4066 @ -50db) better switching speed (110ns vs 125 ns), better OFF leakage current (0.1nA@25C, 20nA max, vs 0.1nA and 500nA max) , etc etc...

They are almost universally used in audio.

oh.. and forget the audioheads trying to tell you to use a led with a LDS/CDR and heat shrink tubing.  Nobody does that, really. and you certainly don't want to do it 32 times for a 16x16 stereo cross-point switch.
« Last Edit: June 14, 2012, 11:45:09 am by codeboy2k »
 

Offline obiwanjacobiTopic starter

  • Super Contributor
  • ***
  • Posts: 1013
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Switch analog audio signals
« Reply #21 on: June 14, 2012, 12:29:19 pm »
Thanks for your remarks.

I understand that they (DG4XX) are better, but they're also almost 10 times more expensive (17 cents vs 1,67 euros).
And this is only a first prototype (to  be more exact: it only exists on paper - my PC that is  :P ) so there are probably other issues I would want to fix once I get my first real experience with it.

I wasn't considering the LED/LDR coupler as an audio switching solution, but I was considering it as a "digital pot" replacement  8)
(BTW 16x16 is not 32!  ;) )
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1836
  • Country: ca
Re: Switch analog audio signals
« Reply #22 on: June 14, 2012, 09:13:25 pm »
(BTW 16x16 is not 32!  ;) )

I knew that   :-[
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf