Author Topic: Adding filters to class AB audio amp  (Read 7576 times)

0 Members and 1 Guest are viewing this topic.

Offline d4n13lTopic starter

  • Regular Contributor
  • *
  • Posts: 71
  • Country: mx
Re: Adding filters to class AB audio amp
« Reply #25 on: August 19, 2019, 03:35:08 am »
Throw away that horrible class-B amplifier with its awful crossover distortion. Use an opamp made for audio to drive the output transistors.
If C5 has the extremely high value of 10uF then the 10 ohms resistor in series with it will overload the amplifier above only 1600Hz. An LM386 IC amplifier uses a 0.05uF capacitor in series with 10 ohms for its Zobel network. Then it begins loading the amplifier output at very high ultrasonic frequencies where the speaker is a very high impedance and the amplifier will try to oscillate without the load.

EDIT: I forgot about the capacitor to ground you added at pin 2. It does nothing at pin 2 because this inverting input has the input signal cancelled by the negative feedback. Make a lowpass filter parallel with the feedback resistor.

I'll take the advice thanks, but I'm following this schematic for educational purposes, I started with class A amps now I'm working with this to get some reference points, for example, I wanted to know how bad would the audio actually sound, and I used this op amp because is what I had available at the moment (and thought its high slew rate would be good for this configuration) I actually need to do some research into audio amps I have not idea how they are improved for audio, also I didn't know how loud would be sound actually be with the speakers I got, stuff like that.

and of course you learn stuff along the way
 

Offline fourfathom

  • Super Contributor
  • ***
  • Posts: 1969
  • Country: us
Re: Adding filters to class AB audio amp
« Reply #26 on: August 19, 2019, 06:10:27 am »


You can improve the crossover distortion by adding a resistor from the transistor bases to the transistor emitters.  The idea is to let the opamp drive the output directly (through the resistor) while the circuit transitions through the crossover region.  Instead of a the opamp needing to compensate for a 1V crossover deadband, it now only has to correct for a gain-slope change (which is easier).  The resistor value depends on the opamp, and the load, but you might try 50 Ohms or so.  This doesn't get you "golden ear" distortion levels, but can make a significant difference.
We'll search out every place a sick, twisted, solitary misfit might run to! -- I'll start with Radio Shack.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19918
  • Country: gb
  • 0999
Re: Adding filters to class AB audio amp
« Reply #27 on: August 19, 2019, 08:18:10 am »
I've done an LTSpice simulation. Note that I didn't include the Zobel network or decoupling because it's not necessary for a simulator, which uses ideal components. Of course they should be included in real life.

Look at the horrible crossover distortion....

The OP's schematic shows a 100 nf (.1 uf) cap, not a 10 uf like in your model.  It is a ~160 Hz hi-pass into the op-amp.  If the OP wants a lower response, then changing to 1 uf will drop it to ~16 Hz.  I believe the 10 uf will cause other problems at the low end.
Yes, I increased the capacitor size for full range response. I think the title of this thread centres around the OP's misunderstanding of how the circuit works. I don't believe the OP actually wants any filtering. If so, he should have given the desired frequency response. Look at the size of the capacitor on the output stage. Even though it's good to oversize decoupling capacitors, it beyond the joke to have a cut-off of 9Hz after an input stage with a cut-off of 160Hz.

What problems do you think having a 10µF capacitor will introduce? It's generally good practise to make DC coupling capacitors much larger than the bare minimum because it reduces phase shift and attenuation at the lowest frequency of interest. The only downsides are a bigger audible click at turn on it taking longer for the steady state condition to be reached. 10µF and 10k is an RC time constant of 100ms, so it will be fairly close to steady state after being turned on of 0.5s.

You can improve the crossover distortion by adding a resistor from the transistor bases to the transistor emitters.  The idea is to let the opamp drive the output directly (through the resistor) while the circuit transitions through the crossover region.  Instead of a the opamp needing to compensate for a 1V crossover deadband, it now only has to correct for a gain-slope change (which is easier).  The resistor value depends on the opamp, and the load, but you might try 50 Ohms or so.  This doesn't get you "golden ear" distortion levels, but can make a significant difference.
I'm not sure what you mean. Are you talking about biasing it more towards class AB? That will reduce crossover distortion, but using resistors along makes it sensitive to supply voltage and temperature variations. A better way is to use diodes or another small transistor with a VBE multiplier. If both transistors will be biased so they simultaneously conduct (true class AB operation) then emitter resistors are required to prevent thermal runaway.
 

Offline John B

  • Frequent Contributor
  • **
  • Posts: 821
  • Country: au
Re: Adding filters to class AB audio amp
« Reply #28 on: August 19, 2019, 08:53:18 am »
You can improve the crossover distortion by adding a resistor from the transistor bases to the transistor emitters.  The idea is to let the opamp drive the output directly (through the resistor) while the circuit transitions through the crossover region.  Instead of a the opamp needing to compensate for a 1V crossover deadband, it now only has to correct for a gain-slope change (which is easier).  The resistor value depends on the opamp, and the load, but you might try 50 Ohms or so.  This doesn't get you "golden ear" distortion levels, but can make a significant difference.
I'm not sure what you mean. Are you talking about biasing it more towards class AB? That will reduce crossover distortion, but using resistors along makes it sensitive to supply voltage and temperature variations. A better way is to use diodes or another small transistor with a VBE multiplier. If both transistors will be biased so they simultaneously conduct (true class AB operation) then emitter resistors are required to prevent thermal runaway.

It's a resistor from the output of the op amp to the emitters of Q1 and Q2.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19918
  • Country: gb
  • 0999
Re: Adding filters to class AB audio amp
« Reply #29 on: August 19, 2019, 09:41:09 am »
You can improve the crossover distortion by adding a resistor from the transistor bases to the transistor emitters.  The idea is to let the opamp drive the output directly (through the resistor) while the circuit transitions through the crossover region.  Instead of a the opamp needing to compensate for a 1V crossover deadband, it now only has to correct for a gain-slope change (which is easier).  The resistor value depends on the opamp, and the load, but you might try 50 Ohms or so.  This doesn't get you "golden ear" distortion levels, but can make a significant difference.
I'm not sure what you mean. Are you talking about biasing it more towards class AB? That will reduce crossover distortion, but using resistors along makes it sensitive to supply voltage and temperature variations. A better way is to use diodes or another small transistor with a VBE multiplier. If both transistors will be biased so they simultaneously conduct (true class AB operation) then emitter resistors are required to prevent thermal runaway.

It's a resistor from the output of the op amp to the emitters of Q1 and Q2.
Sorry, I should have reread your reply more carefully. It was obvious that's what you meant.

Yes, it will soften the crossover distortion, but it'll still be there. I doubt it'll do much in this application because the op-amp would have to supply a significant output current. It's more effective in applications where the output current is under an order of magnitude greater than what the op-amp can supply.
 

Offline GerryR

  • Frequent Contributor
  • **
  • Posts: 256
  • Country: us
Re: Adding filters to class AB audio amp
« Reply #30 on: August 19, 2019, 11:22:04 am »
The 100 nf and 10 K is a high pass with a break frequency of ~160 Hz; nothing below that (at 6 db per octave) is going to "get in."  Change the 100 nf or the 10 K to change what you "let in" to the amp at the low end.

Ok thanks, but that takes me to my original post, I'm having trouble analyzing the filter in series like that, all literature that I've seen would take the output of the filter from between C1 and R2.. so are VR1 and C1 making a variable low pass filter as well?

VR1 is simply a volume / level control.  C1 and R2 make up a simple 1st order high-pass filter with its break frequency at
f = 1/ (2pi RC).  Changing R and / or C will change the break frequency.

Also, I might mention that good audio amps have a frequency response from below 20 Hz to 100 to 200 KHz, the reasons being the "feel" of the bass in the low end (below 30 Hz) and the better transient response in the high end.  (One amp of a receiver I have goes to 100 KHz, and a power amp that I have (150 Watts RMS out per channel) has a response out to 200 KHz, which I have tested to spec.)   Most people can't hear below 40 Hz and above 15 KHZ, and at my age, I'm sure the band is much narrower, but hey, the specs are great.  :)




Still learning; good judgment comes from experience, which comes from bad judgment!!
 

Offline soldar

  • Super Contributor
  • ***
  • Posts: 3540
  • Country: es
Re: Adding filters to class AB audio amp
« Reply #31 on: August 19, 2019, 12:20:19 pm »
Just for reference and comparison I am attaching a schematic of a preamp with treble and bass filtering. I seem to remember this type of RC network was pretty standard at the time and most preamps had similar controls. This schematic is half of a stereo unit so it had a similra circuit in parallel.


« Last Edit: August 19, 2019, 12:22:17 pm by soldar »
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline GerryR

  • Frequent Contributor
  • **
  • Posts: 256
  • Country: us
Re: Adding filters to class AB audio amp
« Reply #32 on: August 19, 2019, 12:41:23 pm »

What problems do you think having a 10µF capacitor will introduce? It's generally good practise to make DC coupling capacitors much larger than the bare minimum because it reduces phase shift and attenuation at the lowest frequency of interest. The only downsides are a bigger audible click at turn on it taking longer for the steady state condition to be reached. 10µF and 10k is an RC time constant of 100ms, so it will be fairly close to steady state after being turned on of 0.5s.

With the 10 uf and 10 K resistor, your cut-off is down to 1.5 HZ.  Any "drift" on the input to that filter is going to affect the output of the amp.  (I believe most amps stop at 15 Hz, or above, on the low end to avoid this issue.  If you have a super power supply and the circuit feeding the amp is really stable, you might get with it.
Still learning; good judgment comes from experience, which comes from bad judgment!!
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19918
  • Country: gb
  • 0999
Re: Adding filters to class AB audio amp
« Reply #33 on: August 19, 2019, 12:59:55 pm »

What problems do you think having a 10µF capacitor will introduce? It's generally good practise to make DC coupling capacitors much larger than the bare minimum because it reduces phase shift and attenuation at the lowest frequency of interest. The only downsides are a bigger audible click at turn on it taking longer for the steady state condition to be reached. 10µF and 10k is an RC time constant of 100ms, so it will be fairly close to steady state after being turned on of 0.5s.

With the 10 uf and 10 K resistor, your cut-off is down to 1.5 HZ.  Any "drift" on the input to that filter is going to affect the output of the amp.  (I believe most amps stop at 15 Hz, or above, on the low end to avoid this issue.  If you have a super power supply and the circuit feeding the amp is really stable, you might get with it.
What do you mean by drift? Are you talking about power supply rejection or thermal effects?

I don't see how having an oversized input capacitor supply affects the power supply rejection.

C1 filters the bias voltage, keeping the power supply rejection high. Any "drift" as you say (due to thermal effects?) will be much below 1.5Hz and will be rejected.


I admit, there's less of a reason for oversized coupling on the power stage because it will be the final one in the chain, but when you've got many amplifiers, it's a good idea. Try chaining several stages together, each with a cut--off of 16Hz and you'll see there's quite a lot of phase shift and attenuation at 20Hz.
 

Offline Audioguru again

  • Regular Contributor
  • *
  • Posts: 115
  • Country: ca
Re: Adding filters to class AB audio amp
« Reply #34 on: August 19, 2019, 02:22:24 pm »
When the audio engineering company I worked for began selling business telephone systems when the government allowed competition with Bell, the cheapest telephone system was made by Goldstar from South Korea. The hand soldering was the worst I have ever seen and customers complained about the speakerphones producing severe crossover distortion.
Later, Goldstar Electronics grew up and changed their name to LG (Lucky Goldstar) Electronics.

Since the speaker in each telephone was about 32 ohms then I added a 33 ohms resistor from the output of the opamp to the emitters of the class-B output transistors to allow the opamp to fill the crossover gap.
 
 

Offline fourfathom

  • Super Contributor
  • ***
  • Posts: 1969
  • Country: us
Re: Adding filters to class AB audio amp
« Reply #35 on: August 19, 2019, 04:05:32 pm »
Sorry, I should have reread your reply more carefully. It was obvious that's what you meant.

Yes, it will soften the crossover distortion, but it'll still be there. I doubt it'll do much in this application because the op-amp would have to supply a significant output current. It's more effective in applications where the output current is under an order of magnitude greater than what the op-amp can supply.

Yes, this would work better with a more powerful opamp, but I'll bet that it would noticeably improve this design as well.  With a 100-Ohm resistor, the opamp only has to drive an additional 6mA (approx) before the transistor takes over.  I don't have sim models for the TL082, but the spec sheet shows that it can sink/source this level of current within 3V of the supply/ground.  Given the 10V supply here, that gives about 3.5VP-P output at the load, or 190mW power out (8 Ohm load).

Tell me I'm wrong -- I can take it!  It's just a fun problem.
We'll search out every place a sick, twisted, solitary misfit might run to! -- I'll start with Radio Shack.
 

Offline Mark Hennessy

  • Frequent Contributor
  • **
  • Posts: 305
  • Country: gb
    • My electronics and audio website
Re: Adding filters to class AB audio amp
« Reply #36 on: August 19, 2019, 05:53:51 pm »
doesn't the op amp make this work as a class AB? as I understand it a class B amplifies only after the 0.6V that takes to activate the transistors thus causing distortions, however due to the negative feedback the op amp put enough voltage to overcome that
No the op-amp doesn't cause the output stage to work in class AB. Each transistor conducts for less than half of the waveform, so it's definitely class B.

The op-amp will reduce the crossover distortion somewhat, but it will still be there, especially at higher frequencies/slew rates. The only way to reduce it further is to bias the output transistors so both conduct slightly all the time, making it class AB.

Actually, it's class C because the output devices conduct for less than 180 degrees.

Class B is exactly 180 degrees. Some of the lowest distortion amplifiers are class B.

Class AB is more than 180 degrees. When everything else is optimally implemented, moving from class B to AB actually increases distortion because of gm-doubling.

See page 55 of this PDF (page 35 of the book): https://www.desmith.net/NMdS/Data/Books%20and%20Manuals/Self%20-%20Audio%20Power%20Amp%20Design%20Handbook%204th%20Edn.pdf

Chapter 5 goes into much more detail - page 131 (109).

For anyone with even a passing interest in audio, Douglas Self's works are well worth seeking out. As well as the power amp book, "Small Signal Audio Design" is also excellent  :-+
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19918
  • Country: gb
  • 0999
Re: Adding filters to class AB audio amp
« Reply #37 on: August 19, 2019, 06:50:52 pm »
Sorry, I should have reread your reply more carefully. It was obvious that's what you meant.

Yes, it will soften the crossover distortion, but it'll still be there. I doubt it'll do much in this application because the op-amp would have to supply a significant output current. It's more effective in applications where the output current is under an order of magnitude greater than what the op-amp can supply.

Yes, this would work better with a more powerful opamp, but I'll bet that it would noticeably improve this design as well.  With a 100-Ohm resistor, the opamp only has to drive an additional 6mA (approx) before the transistor takes over.  I don't have sim models for the TL082, but the spec sheet shows that it can sink/source this level of current within 3V of the supply/ground.  Given the 10V supply here, that gives about 3.5VP-P output at the load, or 190mW power out (8 Ohm load).

Tell me I'm wrong -- I can take it!  It's just a fun problem.
I've simulated it in LTSpice. The model for the TL072 is embedded in the file. the red trace is when R5 is 1G which is near enough open circuit and the blue trace is when R5 is 100R. It does soften the edges somewhat, but most of the crossover distortion is still there.

* Class B.asc (3.85 kB - downloaded 77 times.)
814986-1

doesn't the op amp make this work as a class AB? as I understand it a class B amplifies only after the 0.6V that takes to activate the transistors thus causing distortions, however due to the negative feedback the op amp put enough voltage to overcome that
No the op-amp doesn't cause the output stage to work in class AB. Each transistor conducts for less than half of the waveform, so it's definitely class B.

The op-amp will reduce the crossover distortion somewhat, but it will still be there, especially at higher frequencies/slew rates. The only way to reduce it further is to bias the output transistors so both conduct slightly all the time, making it class AB.

Actually, it's class C because the output devices conduct for less than 180 degrees.

Class B is exactly 180 degrees. Some of the lowest distortion amplifiers are class B.

Class AB is more than 180 degrees. When everything else is optimally implemented, moving from class B to AB actually increases distortion because of gm-doubling.

See page 55 of this PDF (page 35 of the book): https://www.desmith.net/NMdS/Data/Books%20and%20Manuals/Self%20-%20Audio%20Power%20Amp%20Design%20Handbook%204th%20Edn.pdf

Chapter 5 goes into much more detail - page 131 (109).

For anyone with even a passing interest in audio, Douglas Self's works are well worth seeking out. As well as the power amp book, "Small Signal Audio Design" is also excellent  :-+
I'd say you're being a bit pedantic. Quoting the book..

Quote
Class-C implies device conduction for significantly less than 50% of the time, and is normally only usable in radio work, where an LC circuit can smooth out the current pulses and filters harmonics.
What is significant, is open to interpretation.

One way of looking at it is, for large signals, where crossover distortion is less significant, it will be operating closer to class B (each device conducting for nearly 50% of the cycle) and for smaller signals, it will be closer to class C (each device conducting for much less than 50% of the cycle). I suppose if one really wants to be pedantic, they could say it's a class BC output stage.

It is true that, the ideal mode of operation is class B, but is it actually possible to perfectly obtain class B? I doubt it. A compromise must be met, hence class AB.
« Last Edit: August 19, 2019, 06:56:44 pm by Zero999 »
 

Offline Mark Hennessy

  • Frequent Contributor
  • **
  • Posts: 305
  • Country: gb
    • My electronics and audio website
Re: Adding filters to class AB audio amp
« Reply #38 on: August 19, 2019, 07:57:53 pm »
In the context of this circuit:

Quote
Class B is subject to much misunderstanding. It is often said that a pair of output transistors operated without any bias are working in Class-B, and therefore generate severe crossover distortion. In fact, with no bias each output device is operating for slightly less than half the time, and the question arises as to whether it would not be more accurate to call this Class-C and reserve Class-B for that condition of quiescent current which eliminates, or rather minimises, the crossover artefacts.

In other words, given that the crossover distortion is gross enough to be seen on a 'scope, that absolutely makes it class C - no ifs, no buts. If we were debating something that needed a distortion or spectrum analyser to distinguish, then yes, perhaps we might be in the pedantic zone...  :)

As you suggest, class AB is about avoiding the lesser of two evils (gm-doubling (AB) vs crossover distortion (C)). Pragmatic enough, especially if the rest of the design isn't all that clean...

In a better amplifier, maintaining that exact bias point is worth doing, but is one of the harder things to get right. So much so that an entire chapter is devoted to it (chapter 13). For an EF stage, the quiescent voltage needs to be held to around 100mV, and for a CPF, it's 10mV (ballpark figures) - obviously very easy if these were simple fixed voltages, but of course these voltages must track the changes in output stage Vbe caused by temperature. It can be done, and Douglas Self has put many such designs into production - and I'm sure he's not the only one.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19918
  • Country: gb
  • 0999
Re: Adding filters to class AB audio amp
« Reply #39 on: August 19, 2019, 09:05:38 pm »
For completeness, here's the amplifier biased in class AB.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf