Gents (m/f),
Some questions for all you audio gurus out there. I am currently designing an audio matrix switch. Being an amateur radio operator, I have an ever-changing need of connecting different audio devices to each other, and I am getting sick of changing cables and even soldering up new ones each time I want to do something different with my equipment. I have radio's, computer sound cards, headphones, audio modems etc, that accept line level and microphone level inputs and have line level outputs, and that all need to be connected to each other in a flexible way.
What I need is an audio matrix where I can connect the audio inputs and output of all my devices to, and that can dynamically switch any input to any output. My design would consist of three modules:
- Input/output modules
- Audio matrix module
- Control module
The audio devices that I want to connect will be connected to the in/output modules. An in/output module used as input would convert any incoming signal (either a microphone or a line out) to line level, where it would get switched to the correct in/output module for output. This latter module has to be able to convert from line level to either line level or mic level, so that it can be outputted to the appropriate input of another audio device. The control module will configure the audio matrix module so that the correct inputs are connected to the correct outputs.
In the audio matrix module I plan on using two MT8816 chips, which are 8x16 Analogue Switch Arrays that can be configured by a microcontroller. An example of the use of these chips can be found at http://www.microship.com/bike/behemoth/bikelab/910221.html, the datasheet at http://products.zarlink.com/product_profiles/MT8816.htm. Combining two of these switch arrays will give me 32 in/outputs that can be connected together using 8 internal busses. The resistance of a switch in the matrix when in on-state is 65 Ohm max. The following conceptual diagram shows what I mean. The inputs and outputs are on the right-hand side (in this diagram they were used in a RS232 cross-connect, so ignore what remains of the original serial zener and RS-comments)
(http://microship.com/microship/techinfo/microshipnet/sexbar.html)
The control module to control the matrix chips will use a PIC 16F877A.
The input/output modules would have 4 inputs/output ports each. They would have a cinch connector on the back panel per port, where I would connect my audio device. Each port would have to be flexible; it has to be able to be used as an input as well as an output (switchable), and needs to be able to input or output a microphone level signal or a line level signal.
This sketch illustrates the concept of my audio matrix switch.
http://www.flickr.com/photos/58991656@N00/9559125/
I've got experience with digital systems, so I have the microprocessor and matrix chips covered, but I am not that good at audio design, so this is where I need your help.
The functional demands for the in/output modules are:
- Good audio with low noise figure. No need for hi-fi quality though, just acceptable FM radio quality audio.
- Low parts count. Simple design. It needs to be duplicated for each of the 32 in/outputs, so it has to be CHEAP!
- Able to convert microphone or line levels to microphone or line levels by setting internal jumpers.
- Should be able to be used as input or output using a switch.
- Ground loop isolated with audio transformer.
- Input / output signal level control with potmeter.
- It must be possible to switch multiple inputs to multiple outputs.
Questions:
(1) What op amp do I choose? To reduce cost I am inclined to use the quad opamp chips that are available (I'm considering the LM324N Low Power Quad Operational Amplifier).
(2) Should I go with JFET / BiFET / CMOS op amp designs, and if so, for what reason?
(3) What other low-cost decent quality op amps would you suggest? I want to be able to use a single +12V supply, unless there is a very good reason for using a split power supply with negative and positive rail.
(4) Can anyone tell me what signal levels and impedances are used for microphone and line levels? I have done some research on the net, and as far as I can tell these levels are not standardized, but should be around 1mV for microphone level and 100mV @ 10Kohm for line level.
(5) This would mean I need a gain factor of 100 to convert between microphone level and line level?
I plan on converting all inputs to line level, then switch them internally, and then convert the line level signal to line level or mic level for output.
(6) Is this the most sensible thing to do, or what would you recommend?
(7) Are there any issues with crosstalk or noise to be expected?
Based on a flexible conversion from microphone to microphone, from line to line, from microphone to line and from line to microphone levels, I came up with the circuit for an amplification stage (below). Rin1 and RL1 are 1K, Rin2 and RL2 are 100K. Line-to-mic would need JPin set, mic-to-line JpL, and line-to-line or mic-to-line would need either no jumpers or both jumpers to be set.
(8) Is this a sensible thing to do?
(9) How could the design be improved, or what would be a better design with the same flexibility and low parts count?
(10) In the case of a unity gain amplification, would it be best to set both resistors at 1KOhm (JpIn and JpL off) or at 100KOhm (JpIn and JpL on)?
http://www.flickr.com/photos/58991656@N00/9559123/in/photostream/
(11) In the circuit below, will the input/output ?reverse? switch cause any cracks when switching? (12) How would I be able to suppress them?
http://www.flickr.com/photos/58991656@N00/9559124/in/photostream/
(13) In this circuit above, will I be able to connect multiple inputs together to multiple outputs, or would there be a problem with load in this case?
(14) In the circuit above, what would the best choice for Rp be? A 10K logarithmic potmeter?
(15) The circuit below looks like what I need, but would it be the same if the inputs were connected together immediately after the potmeters, and if the 47k resistor would be just one resistor connected to the output opamp?s inverting input? Because that?s basically what I intend to do.
(16) If I do this, would the output from one input stage cross-couple with the feedback loop of the other input stages?
(17) The switch resistance through my matrix chip would give me 130 Ohms of resistance; I guess this won?t cancel much of the cross-over?
(http://www.zen22142.zen.co.uk/Circuits/Audio/6ipmix.htm)
Only 17 questions Well, I hope you can/are willing to answer some of them. Thanks for your help!
David [email protected] (you know which part to remove :razz
Some questions for all you audio gurus out there. I am currently designing an audio matrix switch. Being an amateur radio operator, I have an ever-changing need of connecting different audio devices to each other, and I am getting sick of changing cables and even soldering up new ones each time I want to do something different with my equipment. I have radio's, computer sound cards, headphones, audio modems etc, that accept line level and microphone level inputs and have line level outputs, and that all need to be connected to each other in a flexible way.
What I need is an audio matrix where I can connect the audio inputs and output of all my devices to, and that can dynamically switch any input to any output. My design would consist of three modules:
- Input/output modules
- Audio matrix module
- Control module
The audio devices that I want to connect will be connected to the in/output modules. An in/output module used as input would convert any incoming signal (either a microphone or a line out) to line level, where it would get switched to the correct in/output module for output. This latter module has to be able to convert from line level to either line level or mic level, so that it can be outputted to the appropriate input of another audio device. The control module will configure the audio matrix module so that the correct inputs are connected to the correct outputs.
In the audio matrix module I plan on using two MT8816 chips, which are 8x16 Analogue Switch Arrays that can be configured by a microcontroller. An example of the use of these chips can be found at http://www.microship.com/bike/behemoth/bikelab/910221.html, the datasheet at http://products.zarlink.com/product_profiles/MT8816.htm. Combining two of these switch arrays will give me 32 in/outputs that can be connected together using 8 internal busses. The resistance of a switch in the matrix when in on-state is 65 Ohm max. The following conceptual diagram shows what I mean. The inputs and outputs are on the right-hand side (in this diagram they were used in a RS232 cross-connect, so ignore what remains of the original serial zener and RS-comments)
(http://microship.com/microship/techinfo/microshipnet/sexbar.html)
The control module to control the matrix chips will use a PIC 16F877A.
The input/output modules would have 4 inputs/output ports each. They would have a cinch connector on the back panel per port, where I would connect my audio device. Each port would have to be flexible; it has to be able to be used as an input as well as an output (switchable), and needs to be able to input or output a microphone level signal or a line level signal.
This sketch illustrates the concept of my audio matrix switch.
http://www.flickr.com/photos/58991656@N00/9559125/
I've got experience with digital systems, so I have the microprocessor and matrix chips covered, but I am not that good at audio design, so this is where I need your help.
The functional demands for the in/output modules are:
- Good audio with low noise figure. No need for hi-fi quality though, just acceptable FM radio quality audio.
- Low parts count. Simple design. It needs to be duplicated for each of the 32 in/outputs, so it has to be CHEAP!
- Able to convert microphone or line levels to microphone or line levels by setting internal jumpers.
- Should be able to be used as input or output using a switch.
- Ground loop isolated with audio transformer.
- Input / output signal level control with potmeter.
- It must be possible to switch multiple inputs to multiple outputs.
Questions:
(1) What op amp do I choose? To reduce cost I am inclined to use the quad opamp chips that are available (I'm considering the LM324N Low Power Quad Operational Amplifier).
(2) Should I go with JFET / BiFET / CMOS op amp designs, and if so, for what reason?
(3) What other low-cost decent quality op amps would you suggest? I want to be able to use a single +12V supply, unless there is a very good reason for using a split power supply with negative and positive rail.
(4) Can anyone tell me what signal levels and impedances are used for microphone and line levels? I have done some research on the net, and as far as I can tell these levels are not standardized, but should be around 1mV for microphone level and 100mV @ 10Kohm for line level.
(5) This would mean I need a gain factor of 100 to convert between microphone level and line level?
I plan on converting all inputs to line level, then switch them internally, and then convert the line level signal to line level or mic level for output.
(6) Is this the most sensible thing to do, or what would you recommend?
(7) Are there any issues with crosstalk or noise to be expected?
Based on a flexible conversion from microphone to microphone, from line to line, from microphone to line and from line to microphone levels, I came up with the circuit for an amplification stage (below). Rin1 and RL1 are 1K, Rin2 and RL2 are 100K. Line-to-mic would need JPin set, mic-to-line JpL, and line-to-line or mic-to-line would need either no jumpers or both jumpers to be set.
(8) Is this a sensible thing to do?
(9) How could the design be improved, or what would be a better design with the same flexibility and low parts count?
(10) In the case of a unity gain amplification, would it be best to set both resistors at 1KOhm (JpIn and JpL off) or at 100KOhm (JpIn and JpL on)?
http://www.flickr.com/photos/58991656@N00/9559123/in/photostream/
(11) In the circuit below, will the input/output ?reverse? switch cause any cracks when switching? (12) How would I be able to suppress them?
http://www.flickr.com/photos/58991656@N00/9559124/in/photostream/
(13) In this circuit above, will I be able to connect multiple inputs together to multiple outputs, or would there be a problem with load in this case?
(14) In the circuit above, what would the best choice for Rp be? A 10K logarithmic potmeter?
(15) The circuit below looks like what I need, but would it be the same if the inputs were connected together immediately after the potmeters, and if the 47k resistor would be just one resistor connected to the output opamp?s inverting input? Because that?s basically what I intend to do.
(16) If I do this, would the output from one input stage cross-couple with the feedback loop of the other input stages?
(17) The switch resistance through my matrix chip would give me 130 Ohms of resistance; I guess this won?t cancel much of the cross-over?
(http://www.zen22142.zen.co.uk/Circuits/Audio/6ipmix.htm)
Only 17 questions Well, I hope you can/are willing to answer some of them. Thanks for your help!
David [email protected] (you know which part to remove :razz