Author Topic: Any problems with this simple mixer schematic  (Read 8457 times)

0 Members and 1 Guest are viewing this topic.

Offline donturnerTopic starter

  • Contributor
  • Posts: 17
  • Country: gb
Any problems with this simple mixer schematic
« on: February 21, 2017, 11:02:22 pm »
I have designed a 2 channel active audio mixer (virtual earth) which will be used to drive headphones. Schematic attached below.

I've decided on an LM4562 op amp (http://www.ti.com/lit/ds/symlink/lm4562.pdf). The amp has unity gain (R2/R1=1) and C1 is used to filter any DC from the input signals. This is my first electronic circuit so I'd like to know if there are any obvious issues with it before I solder the parts onto a matrix board.
« Last Edit: February 24, 2017, 04:57:48 pm by donturner »
 

Offline RJFreeman

  • Regular Contributor
  • *
  • Posts: 207
  • Country: au
    • Australian Technical Production Services
Re: Any problems with this simple mixer schematic
« Reply #1 on: February 21, 2017, 11:15:53 pm »
Teh schematic seems to have gone missing....
 
The following users thanked this post: donturner

Offline donturnerTopic starter

  • Contributor
  • Posts: 17
  • Country: gb
Re: Any problems with this simple mixer schematic
« Reply #2 on: February 21, 2017, 11:20:18 pm »
Thanks, hopefully you can see it now.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: Any problems with this simple mixer schematic
« Reply #3 on: February 21, 2017, 11:28:37 pm »
I'm not smart enough to prove the Kirchoff's Current Law works with just one capacitor.  So, I looked around for a similar mixer and came up with this:

http://www.learnabout-electronics.org/Amplifiers/amplifiers66.php

..about half way down

In looking at several other circuits, the capacitor is ahead of the summing resistor and one capacitor per input.
« Last Edit: February 21, 2017, 11:30:13 pm by rstofer »
 
The following users thanked this post: donturner

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19491
  • Country: gb
  • 0999
Re: Any problems with this simple mixer schematic
« Reply #4 on: February 21, 2017, 11:32:57 pm »
The main problem is the TL081 is not designed to drive a 64 Ohm load.

 
The following users thanked this post: donturner

Offline donturnerTopic starter

  • Contributor
  • Posts: 17
  • Country: gb
Re: Any problems with this simple mixer schematic
« Reply #5 on: February 21, 2017, 11:39:40 pm »
Ah, my mistake. I have updated the schematic with my actual op-amp: An LM4562 audio amp. Datasheet here: http://www.ti.com/lit/ds/symlink/lm4562.pdf
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5869
  • Country: de
Re: Any problems with this simple mixer schematic
« Reply #6 on: February 22, 2017, 12:15:10 am »
The gain will vary depending on the setting of the pots, and the potentiometer "law" will be a bit strange (neither lin nor log).
Not an optimal design IMHO.

 
The following users thanked this post: donturner

Offline Audioguru

  • Super Contributor
  • ***
  • Posts: 1507
  • Country: ca
Re: Any problems with this simple mixer schematic
« Reply #7 on: February 22, 2017, 01:58:46 am »
The datasheet for the LM4562 audio amp says it can drive 600 ohms, not 64 ohms. Most headphones amplifiers use an opamp with transistors at the output.
Another serious problem with your schematic is that the opamp is not powered. Since the opamp is biased at 0V then there must be a dual polarity power supply with unknown voltages.
 
The following users thanked this post: donturner

Offline JS

  • Frequent Contributor
  • **
  • Posts: 947
  • Country: ar
Re: Any problems with this simple mixer schematic
« Reply #8 on: February 22, 2017, 04:05:44 am »
Most opamps won't be happy with a cap directly to the inverting input, it's very likely to have stability issues. In this case if you connect a series RC is not the same as the other way around for instance.

In any case better practice would be to AC couple every input and then DC couple each channel to the VE. If not you should add a small resistor in series with the cap to avoid oscillations. It could be an inductor or a parallel RL to avoid any degradation the such resistor would introduce.

JS
If I don't know how it works, I prefer not to turn it on.
 
The following users thanked this post: donturner

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19491
  • Country: gb
  • 0999
Re: Any problems with this simple mixer schematic
« Reply #9 on: February 22, 2017, 08:43:12 am »
I'm not smart enough to prove the Kirchoff's Current Law works with just one capacitor.
It does. The capacitor will appear to be a short at AC and the AC currents will be summed at the virtual earth.

The resistors appear in parallel to make 5k, so with a 1uF capacitor, the lower cut-off will be just over 30Hz. If good bass response is required, then use a larger capacitor.

Quote
In looking at several other circuits, the capacitor is ahead of the summing resistor and one capacitor per input.
Yes, that's normally how it's done.

Most opamps won't be happy with a cap directly to the inverting input, it's very likely to have stability issues.
In this case, there's a minimum of 5k in series with the capacitor, so that won't be a problem.

Quote
If not you should add a small resistor in series with the cap to avoid oscillations.
Again, why? The capacitor already has 5k in series with it.

 
The following users thanked this post: donturner

Offline donturnerTopic starter

  • Contributor
  • Posts: 17
  • Country: gb
Re: Any problems with this simple mixer schematic
« Reply #10 on: February 22, 2017, 10:58:55 am »
Thank you all very much for your answers - this is extremely helpful to an electronics newbie. I've responded to some of the comments below.

The datasheet for the LM4562 audio amp says it can drive 600 ohms, not 64 ohms. Most headphones amplifiers use an opamp with transistors at the output.

From my basic impedance tests (mostly in-ear, low cost earphones) headphones vary from 32-300 ohms so I just put 64 ohms on the schematic as a rough average, is that a bad way to model the headphones? Also, what's would be the purpose of the transistor at the output?

Another serious problem with your schematic is that the opamp is not powered. Since the opamp is biased at 0V then there must be a dual polarity power supply with unknown voltages.

I've updated the schematic to show a +/-4.5V supply. Power comes from a 9V battery with a voltage divider based on the power section of this circuit: https://tangentsoft.net/audio/cmoy/misc/cmoy-tangent-sch.pdf. My thinking here is that the LM4562 has a Common-Mode Input Voltage Range of 2V less than the +ve and -ve power supply, which gives a maximum peak-to-peak output voltage of 5V (9V - (2V * 2)). 

The nominal line level (https://en.wikipedia.org/wiki/Line_level#Nominal_levels) of each input will be between 0.894V (consumer) and 3.472V (pro audio) so as long as I don't connect more than one pro audio line input with its trim pot at maximum there shouldn't be any clipping on the output. Ideally I'd put an LED which shows when clipping occurs at the output but that's beyond the scope of this first project.

The gain will vary depending on the setting of the pots, and the potentiometer "law" will be a bit strange (neither lin nor log).
Not an optimal design IMHO.

Is there a better way of setting the gain? Should I have an op-amp per input (a buffer) to decouple from the summing amp? I did consider this but it seemed overly complex.

The resistors appear in parallel to make 5k, so with a 1uF capacitor, the lower cut-off will be just over 30Hz. If good bass response is required, then use a larger capacitor.

I definitely do want good bass response but I can't find any small non-polarized 4.7uF capacitors. I currently have some of these https://uk.rs-online.com/web/p/polyester-film-capacitors/0824020/ but they're 18x8.5x14.5mm and take up a lot of space (one of my goals for this mixer is that it's very small). Do I have to use non-polarized capacitors? I thought this was necessary because the input signals are AC.
« Last Edit: February 22, 2017, 11:01:10 am by donturner »
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19491
  • Country: gb
  • 0999
Re: Any problems with this simple mixer schematic
« Reply #11 on: February 22, 2017, 11:48:23 am »
From my basic impedance tests (mostly in-ear, low cost earphones) headphones vary from 32-300 ohms so I just put 64 ohms on the schematic as a rough average, is that a bad way to model the headphones? Also, what's would be the purpose of the transistor at the output?
The purpose of adding transistors would be to boost the current capacity of the op-amp. Whether it's necessary, depends on the op-amp's ability to output enough current into the load, at the peak voltage. The maximum output current will  be given on the data sheet.

Quote
I've updated the schematic to show a +/-4.5V supply. Power comes from a 9V battery with a voltage divider based on the power section of this circuit: https://tangentsoft.net/audio/cmoy/misc/cmoy-tangent-sch.pdf. My thinking here is that the LM4562 has a Common-Mode Input Voltage Range of 2V less than the +ve and -ve power supply, which gives a maximum peak-to-peak output voltage of 5V (9V - (2V * 2)). 

The nominal line level (https://en.wikipedia.org/wiki/Line_level#Nominal_levels) of each input will be between 0.894V (consumer) and 3.472V (pro audio) so as long as I don't connect more than one pro audio line input with its trim pot at maximum there shouldn't be any clipping on the output. Ideally I'd put an LED which shows when clipping occurs at the output but that's beyond the scope of this first project.
There's always some voltage drop in the op-amp's output stage, so the output can never reach either supply rail. If the op-amp drops more than 4.5 = 3.472 = 1.028V at the peak current, then there will be clipping. Another thing to consider is the 9V battery will no longer be 9V, towards the end of its life. For decent battery life, the circuit should be designed to work off 6V.

Quote
Is there a better way of setting the gain? Should I have an op-amp per input (a buffer) to decouple from the summing amp? I did consider this but it seemed overly complex.
I don't think that's necessary. You could either reduce the value of the pot. (if the source can still drive the lower impedance) or increase the value of RIN and RF on the op-amp to avoid the effects of loading on the potentiometers.

Quote
The resistors appear in parallel to make 5k, so with a 1uF capacitor, the lower cut-off will be just over 30Hz. If good bass response is required, then use a larger capacitor.

I definitely do want good bass response but I can't find any small non-polarized 4.7uF capacitors. I currently have some of these https://uk.rs-online.com/web/p/polyester-film-capacitors/0824020/ but they're 18x8.5x14.5mm and take up a lot of space (one of my goals for this mixer is that it's very small). Do I have to use non-polarized capacitors? I thought this was necessary because the input signals are AC.
You can connect two polarised capacitors back-to-back forming a non-polarised capacitor with half the capacitance.

Another option might be to use a polarised capacitor and connect the source's 0V to -4.5V (if possible) and the capacitor's negative to the source and positive to the amplifier's input. The capacitor will then always have a 4.5V bias and will never be subject to reverse polarity.
« Last Edit: February 22, 2017, 11:50:20 am by Hero999 »
 
The following users thanked this post: donturner

Online Benta

  • Super Contributor
  • ***
  • Posts: 5869
  • Country: de
Re: Any problems with this simple mixer schematic
« Reply #12 on: February 22, 2017, 04:48:53 pm »
Quote
Is there a better way of setting the gain? Should I have an op-amp per input (a buffer) to decouple from the summing amp? I did consider this but it seemed overly complex.

Ideally, a buffer or emitter-follower between pot and resistor would eliminate the problem, but as Hero999 writes, a higher resistance value ratio between resistor and pot will reduce the problem. If you can get a ratio of 1:10 or higher, it should no longer be a big issue.

 
The following users thanked this post: donturner

Offline Audioguru

  • Super Contributor
  • ***
  • Posts: 1507
  • Country: ca
Re: Any problems with this simple mixer schematic
« Reply #13 on: February 22, 2017, 05:42:45 pm »
Your headphones amplifier with an LM4582 opamp has low output voltage and low output current and will clip badly when driving ordinary 32 ohm headphones loudly. Your amplifier will be fine driving 600 ohm Senheiser very expensive headphones.
150mW into 32 ohms is a peak voltage of 3.1V and a peak current of 97mA. The Cmoy headphones amplifier you saw uses an OPA2134 opamp with double the output current and uses two 9V batteries for double the output voltage than yours.

You need a huge 4.7uF non-polarized input capacitor because your amplifier is inverting with a low input impedance. If the amplifier is non-inverting it can have a high input impedance of at least 80k ohms and use a cheap little 0.1uf input capacitor for good bass.
 
The following users thanked this post: donturner

Offline G0HZU

  • Super Contributor
  • ***
  • Posts: 3015
  • Country: gb
Re: Any problems with this simple mixer schematic
« Reply #14 on: February 22, 2017, 07:57:05 pm »
You should really be summing the two audio inputs at the inverting input node and not via a 1uF capacitor. i.e. the two signals should meet at the inverting input if you want the full benefit of a classic summing amplifier. But I guess it depends on how much you care about getting the most from the design and if you would notice the benefit here.

For example, one limitation would be crosstalk. With the circuit as drawn, the summing node is not quite at the opamp virtual earth and so very low frequency signals (eg 100-300Hz) will be able to leak across from one source to the other because the reactance of the 1uF capacitor is not going to be very low at all frequencies. If the purpose of the headphones is to allow mixing of two sources so someone can listen to this, then anyone else listening to just one of the original sources could hear some low level leakage/crosstalk during quiet periods. Probably most noticeable on boomy bass stuff eg drum beats might be able to leak across cause annoyance to anyone monitoring just one of the sources.

If you place the summing node at the virtual earth point (inverting input) then the isolation between sources will be much better at all frequencies.
« Last Edit: February 23, 2017, 01:16:43 am by G0HZU »
 
The following users thanked this post: donturner

Offline donturnerTopic starter

  • Contributor
  • Posts: 17
  • Country: gb
Re: Any problems with this simple mixer schematic
« Reply #15 on: February 23, 2017, 01:51:09 pm »
150mW into 32 ohms is a peak voltage of 3.1V and a peak current of 97mA.

I'm a bit confused. Where did the 150mW figure come from? I thought the typical output from a headphone port was only about 12mW (reference page 2 of http://www.rane.com/pdf/old/note100.pdf)?
 

Offline donturnerTopic starter

  • Contributor
  • Posts: 17
  • Country: gb
Re: Any problems with this simple mixer schematic
« Reply #16 on: February 23, 2017, 02:09:29 pm »
Thanks to everyone for your answers, a gold mine of information :) I've updated my schematic in line with suggestions.

Changes from V2 to V2.1
- Added 4.7uF caps to each input and removed the single 1uF cap - this is so that the summing point is at the op-amp inverting input (virtual earth) rather than separated by a cap (thanks to G0HZU).

- Changed the fixed 10k resistors to 100k so that the ratio between the input resistance and pot resistance is 10:1. This decreases the effect of the 10k pots on the op-amp gain and therefore allows closer control over the amplitude of the input signal (thanks to Benta and Hero999)

- Changed the headphone impedance to 32 ohms as this seems more typical
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5869
  • Country: de
Re: Any problems with this simple mixer schematic
« Reply #17 on: February 23, 2017, 07:09:24 pm »
Quote
- Added 4.7uF caps to each input and removed the single 1uF cap - this is so that the summing point is at the op-amp inverting input (virtual earth) rather than separated by a cap (thanks to G0HZU).

Your input is still separated, though now with two caps instead, and is AC-wise/Thevenin no different than what it was.
I think G0HZU meant placing the caps before the pots to get a DC path and controlled low frequency response.

 

Offline G0HZU

  • Super Contributor
  • ***
  • Posts: 3015
  • Country: gb
Re: Any problems with this simple mixer schematic
« Reply #18 on: February 23, 2017, 08:02:30 pm »
To get high isolation between inputs I think you are supposed to sum the two inputs at the virtual ground so I think the second circuit is better because it achieves this.
If the opamp was perfect and the feedback maintained a perfect virtual ground here then the isolation between inputs would be infinite at all audio frequencies. But in reality I'd expect it to be >60dB with a reasonable opamp.

But the original circuit would have quite limited isolation at low audio frequencies because it sums into the 1uF cap ahead of the virtual ground. So there is a path here for some crosstalk between the inputs. I guess a lot depends if you need the isolation against this or not.
« Last Edit: February 23, 2017, 10:28:17 pm by G0HZU »
 

Offline donturnerTopic starter

  • Contributor
  • Posts: 17
  • Country: gb
Re: Any problems with this simple mixer schematic
« Reply #19 on: February 24, 2017, 12:03:22 pm »
Right, I understand now, thanks! Updated circuit below (v2.2) with caps before input pots.

My main area of confusion now is about the output power required. I know I'm going to need to change my op-amp, but I could do with some guidance on why my current one (the LM4562) is not suitable.

If I assume that my peak voltage output is about +3V, this into a 32 ohm load (the headphones) gives a current of 3/32=94mA a power of 94*3=282mW. The LM4562 has a peak current of 26mA (with a supply of +/-17V, mine is +/-4.5V) so it's way under what's required to drive 32 ohm headphones.

Looking at other headphone amps http://www.ti.com/lsds/ti/audio-ic/headphone-amplifier-product.page the output power of most of them is <105mW. Why is this so much lower than my calculated maximum of 282mW?

I feel like I'm missing something obvious, so sorry if this is a stupid question.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19491
  • Country: gb
  • 0999
Re: Any problems with this simple mixer schematic
« Reply #20 on: February 24, 2017, 12:59:34 pm »
Looking at other headphone amps http://www.ti.com/lsds/ti/audio-ic/headphone-amplifier-product.page the output power of most of them is <105mW. Why is this so much lower than my calculated maximum of 282mW?
Two reasons.

1) The specification provided by TI is the average RMS power and you calculated the peak power which is double.

2) You've over-specified the amount of power you need. 100mW into reasonably sensitive head phones will be deafening.
 
The following users thanked this post: donturner

Offline donturnerTopic starter

  • Contributor
  • Posts: 17
  • Country: gb
Re: Any problems with this simple mixer schematic
« Reply #21 on: February 24, 2017, 04:57:07 pm »
100mW into reasonably sensitive head phones will be deafening.

You mentioned sensitivity so let me make sure I have this straight...

If I have a pair of headphones which have a sensitivity rating of 90dB SPL, that means when supplied with 1mW they're going to produce 90dB SPL. If I increase that power to 2mW I'm going to get 93dB because: 90+(10*log(2))=93. So at 100mW I'll get 90+(10*log(20))=110dB SPL, the sound of a chainsaw from 1 metre i.e. deafening, as you say.

With my current amp I can expect a current of 9.2mA (with a +/-4.5V supply, from datasheet p21), which at 3V peak output gives a power of 27.6mW. Into those same headphones I'd be looking at an SPL of 90+(10*log(27.6))=104dB, disco 1m from speaker <- still pretty loud.

I haven't factored the headphone impedance into these calculations, should I have?

If my calculations are correct, why do I need an amp with more power for headphones? Even 12mW into those headphones would give 100dB which surely is loud enough for most people?
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 5869
  • Country: de
Re: Any problems with this simple mixer schematic
« Reply #22 on: February 24, 2017, 08:05:40 pm »
You're mixing up things, so let's get a couple of points clear:

Audio power amplifiers (headphone, loudspeaker, whatever) are voltage sources, and will deliver output voltage = input voltage times X.

This means, that for a certain output voltage, the only thing limiting the delivered output power is the impedance of your phones/loudspeaker.

If you supply 1 Vrms to a 32 ohm phone, it will dissipate 31 mW (and hopefully convert most of that to audio). If you supply the same to a 600 ohm phone, it's 1.7 mW. If it's an 8 ohm speaker, it's 125 mW.

The amplifier will at some point protect itself by limiting output current (eg, when looking into a 1 ohm load), but that's no longer normal operation.

The sensitivity of your phones is a completely different discussion.

 
The following users thanked this post: donturner

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19491
  • Country: gb
  • 0999
Re: Any problems with this simple mixer schematic
« Reply #23 on: February 24, 2017, 08:43:13 pm »
If my calculations are correct, why do I need an amp with more power for headphones? Even 12mW into those headphones would give 100dB which surely is loud enough for most people?
Your amplifier already has no voltage gain, as the feedback resistor is equal to the input resistor, so the output voltage is equal to the input voltage.

However, just because there's no voltage gain, it doesn't mean there's no power gain.  What's connected to the amplifier's inputs won't be able to drive the 32 Ohm head phones directly. The amplifier's input will present a high input impedance to the source and a very low impedance to the headphones.

Another thing is this is a mixer, rather than a straightforward amplifier. The voltage on each input is added together, so it does have voltage gain. If the inputs are connected to the same voltage source, then it will have a voltage gain of two.
 
The following users thanked this post: donturner

Offline Audioguru

  • Super Contributor
  • ***
  • Posts: 1507
  • Country: ca
Re: Any problems with this simple mixer schematic
« Reply #24 on: February 24, 2017, 09:37:09 pm »
Sound Pressure Level from headphones.
They are used to hear music, not thunder or a chain saw. Music has dynamic levels from very low to very high. A long time ago I measured the sound oressure levels in a disco. The bass beat was 120dB but it and the music did not seem to be too loud. A symphony orchestra measured almost as high. Don't you want your headphones amplifier to produce loud peaks without clipping? Clipping sounds much louder than clear sounds because of the extra harmonics.

My stereo produces 50 real Watts into 2 channels for a total of 100W maximum. Its average power is about 5 Watts per channel for 10W total. My speakers have a sensitivity of 88dB per Watt each or 91dB for both. Then the average sound pressure for both channels is 101dB and the maximum sound pressure for both channels is 111B. 

My Kenwood Headphones are 32 ohms each each and have a sensitivity of 97dB per milliwatt so 120dB is produced with 200mW. 200mW is produced with a peak current of 112mA. An opamp by itself cant doo dat! Maybe you want an occasional peak to produce 123dB without clipping then the peak current is 158mA. 
 
The following users thanked this post: donturner


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf