> What is simplest way to electronically switch a signal that could be DC or AC?

What is simplest way to electronically switch a signal that could be DC or AC?

Posted at: 2015-01-07 
JFETs and MOSFETs are bidirectional, but they won't work right if the have a reverse diode across them. Another approach is to use a MOSFET across a full wave rectifier, but you will have the diode drops.

If speed is not an issue, I would use ten relays, but I'm old school. Depending on whether your switch times need to be separate or the same time - determines whether you'll need three relays with four contacts or 10 relays with one contact. The current is small enough and the voltage low enough to not be a problem for 12 volt high quality relays.

Have you tried looking at solid-state relays? Not sure if they exist with the voltage rating you're looking for. But this is how it's typically done. I think they use complementary IGBJT's or opto-isolators.



All solid state devices used for switching have two problems to overcome when dealing with AC, one is that they only conduct current in one direction. And two that they have some conductive threshold that must be overcome, so that even using complementary devices will still have a problem in the zero-crossing zone. This is not a problem when one only wants to transfer power. But when one ins interested in signal integrity, it has to be overcome somehow. There are all kinds of tricks in AC amplifier design to overcome this problem. But they all have their relative costs and merits.

I'm sure there is a better way but could you just rectify the control input? DC will pass straight through but the analogue will become DC.

analogue switch (basically as you say N+P mosfet)





but you will probably have to attenuate the input to stay within safe range, then amplify the output



(dc coupled obviously)

I need to switch 10 lines, each of which can be AC OR DC - and have a voltage from around 5v to 100v with around 50ma as a maximum.





I cannot use triacs (I think) as sometimes the control lines with be DC and I am having a mental block in wokring out how to switch AC without them (using solid state).





Can anyone please give me a link to a simple (simple is best) which will allow me to use a control voltage of about 12v DC to switch the lines - whether they are carrying DC, pulsed DC or AC (30-600hz) please.





I am fairly sure this should be so simple using some sort of N+P mosfet together but I am having a mental block and for once Google just made me more confused.





Very many thanks.



Mark