Electronics > Projects, Designs, and Technical Stuff
Active audio mixer design & Op-Amp considerations
(1/4) > >>
supershirobon:
Hello all,

I'm designing an active audio mixer circuit so I can combine the outputs from my mp3 player and phone so I can stream news in my car while playing music in the background. These aren't for driving headphones, but powered speakers which take line input.

The idea is to mix the left channels of both streams and the right channels of both steams to create a stereo output.
Basically Output Left = (Left 1 + Left 2), and Output Right = (Right 1 + Right 2).

I'm going to power it with 5V from a USB cable so I'm using a single supply design. The 5V from USB is a requirement I can't change.
Basically it's just 2 separate summing amplifiers for the left and right of each input, with three 2-gang potentiometers for the 2 input channels, and master volume for the output.

Attached is the circuit for just the left channel, but it will be duplicated for the right channel as well.
R2 and R7 are 50K Logarithmic pots so I can change the volume of each stream, R13 is a 100K Logarithmic pot for master volume, C3 is an optional capacitor which forms a low pass filter with 1dB BW around 20kHz when the pot R13 is maximum at 100K, with larger bandwidth at lower values of R13, and will be connected to a switch to disconnect/connect it if desired.

I've designed the circuit to work with a max 5Vpp input signal, using R2 and R7 values of at least 33K the opamp is guaranteed to never saturate, but that's in the worst case. The headphone output on my phone is max 1.4Vpp and mp3 player is max 2Vpp.


I've ran several tests in simulation, and everything seems alright. I get the desired output across the whole 20-20kHz range, and don't see any blatant problems.



One possible concern is the slew rate of the opamp, it's only 0.4V/us, but in my calculation it can still handle a 22kHz 2Vpp output with room to spare, so I don't necessarily think it should be a problem.

If it is a problem, what are recommendations for an op-amp that works well for audio purposes with a single supply at 5V and can get pretty close to the rails (at least 0.5V or so from the rails)? Preferably one from Analog Devices/Linear, but not necessary.


I would just appreciate another set of eyes to look over it, and maybe to point out something that I'm missing or forgot to consider, or any possible changes to make. Thanks!
Audioguru:
The supply Vp needs a capacitor to ground to prevent the opamp from oscillating, and the junction of R8 and R9 also needs a capacitor to ground to prevent the opamp from outputting noise on the USB supply.

I use audio opamps that work well with a supply voltage higher than 5V since line levels are very near 5Vp-p.
DaJMasta:
I'm.... very confused by your circuit.  Were is the output?  If it's just before the 10k resistor, your signal is going to be 10x attenuated from the output of the opamp with very little drive capability.

Additionally, because of the attenuation configuration of the amplifier and the very low drive capability, the circuit is effectively the same as two resistors combining the inputs and a filter cap before the output, so why not do that?  If you want higher drive capability maybe a resistive divder on each input into a summing amp in unity gain configuration and a cap for a low pass filter as needed?  Then your output resistor is just enough to keep within the current supply capability of the opamp.

Also worth mentioning that the LT1006 says that running from a 5V supply, you can only use about 0V to 3.5V for signal, as it's not a rail-to-rail opamp.  That means the half way biasing of both inputs puts it at 2.5V as the virtual ground, which gives you only a 1V swing in either direction as your dynamic range.  If you center it around 1.75V or so with your dividers (and, if you're still using the opamp, on the noninverting input bias divider), then you get the full 3.5V dynamic range instead of the 2V dynamic range in the current configuration.  A resistive divider on the input could take a 5V input signal and make it level appropriate, but you could also look for a rail-to-rail opamp or a larger voltage supply to deal with the large input signal.
supershirobon:

--- Quote from: Audioguru on November 27, 2018, 07:59:03 pm ---The supply Vp needs a capacitor to ground to prevent the opamp from oscillating, and the junction of R8 and R9 also needs a capacitor to ground to prevent the opamp from outputting noise on the USB supply.

I use audio opamps that work well with a supply voltage higher than 5V since line levels are very near 5Vp-p.

--- End quote ---

Thanks for the reply.

I'm a little confused about the line level being very near 5Vpp. At least according to

https://en.wikipedia.org/wiki/Line_level

For consumer level audio is says max Vpp is 0.894V and 3.472Vpp for professional level. I figured all my equipment is consumer level so I was aiming for around those levels.
supershirobon:

--- Quote from: DaJMasta on November 27, 2018, 09:26:44 pm ---I'm.... very confused by your circuit.  Were is the output?  If it's just before the 10k resistor, your signal is going to be 10x attenuated from the output of the opamp with very little drive capability.

Additionally, because of the attenuation configuration of the amplifier and the very low drive capability, the circuit is effectively the same as two resistors combining the inputs and a filter cap before the output, so why not do that?  If you want higher drive capability maybe a resistive divder on each input into a summing amp in unity gain configuration and a cap for a low pass filter as needed?  Then your output resistor is just enough to keep within the current supply capability of the opamp.

Also worth mentioning that the LT1006 says that running from a 5V supply, you can only use about 0V to 3.5V for signal, as it's not a rail-to-rail opamp.  That means the half way biasing of both inputs puts it at 2.5V as the virtual ground, which gives you only a 1V swing in either direction as your dynamic range.  If you center it around 1.75V or so with your dividers (and, if you're still using the opamp, on the noninverting input bias divider), then you get the full 3.5V dynamic range instead of the 2V dynamic range in the current configuration.  A resistive divider on the input could take a 5V input signal and make it level appropriate, but you could also look for a rail-to-rail opamp or a larger voltage supply to deal with the large input signal.

--- End quote ---


Hi, thanks for responding.

When you mention drive capability, are you talking about current the opamp can source/the short circuit current? If that's the case then I don't think it should be a problem. I am not driving headphones or speakers directly, but a line input, which supposedly has an input impedance of 10K, so even in the worst case it should never have to source more than a few hundred microamps, which it can.

The output is before the 10K resistor since Line In has an input impedance of 10K typically, according to wikipedia.

I know the output is going to be attenuated. The R13 is a 100K pot so it forms a voltage divider with the 10K input impedance of the Line In, so you can scale the output, which should act as changing the volume. Also R2 and R7 on the inputs are 50K pots used to change the volume of each channel. I realized I should change the 1K resistors to 10K since in case when the pots are at their minimum resistance I don't want the circuit to try amplifying each input by 10x.

Wikipedia says the Max Vpp for consumer level Line Level audio is 0.894 volts. If the mp3 player and phone are at max volume, with 2Vpp and 1.4Vpp respectively on their headphone outputs (which are the inputs to the summing amplifer), and both pots R2 and R7 are at 33K arbitrarily, and the R13 pot is at 0, then the output will be around 1.1Vpp, which should saturate the line level and cause clipping. Using the R13 pot, at its max resistance of 100K the Peak to Peak amplitude of the output will then be 10x less, around 110mVpp. Using the pot you can adjust it to any level between 110mVpp and 1.1Vpp to change the volume, or keep it at a fixed value and raise the volume externally on the speaker set.

I appreciate the comments regarding the LT1006. I'm definitely going to find a new opamp.
Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod