# BJT 2 stage Amp. Output problem

So I built the following circuit to amplify the output from my microphone. I am testing it using a 1KHz sinewave of 10mV peak value. The Mic is biased using a 10k resistor. The signal is input into a common emitter amplifier with a AC gain of around 115. Next to connect the speaker, I used a Common Collector stage to increase the input impedance seen by the first stage.

However, when I connect the speaker, the output is as follows:

I know this is a problem of the low resistance load, but I would like to hear a possible solution for this problem. Do I need to add another stage?

• Problems? - Q2 is a small signal bjt (not enough current drive capability), R7 is too high to discharge C4 for symmetrical output, C4 is too small for an 8 Ohm load. Where to start - try replacing Q2 with a power Darlington and go from there. – JIm Dearden Aug 23 '17 at 10:08
• You have messed up the terms common collector/emitter and impedance claim. Even if you rearrange the circuit to output a sine, this audio amp would be good to drive a PC speaker, surely not to listen the music. – Marko Buršič Aug 23 '17 at 10:14
• @MarkoBuršič How did I mess up the terms? – hacker804 Aug 23 '17 at 11:29
• electronics.stackexchange.com/questions/321110/… – G36 Aug 23 '17 at 13:22

## 3 Answers

Start with the speaker itself. You want to drive it, somehow.

So, here are three different, but relatively common arrangements to consider with a semiconductor driver circuit that is powered by a single supply rail. (There are others, such as ones using an audio transformer.)

simulate this circuit – Schematic created using CircuitLab

The ideas are pretty simple. The two single-ended cases share a common power supply rail with the speaker, directly driving only one end of the speaker. Hence, single-ended. The bridge-tied load arrangement places the speaker in between two amplifiers that are $180^\circ$ out of phase with each other (when one is driving the voltage upwards, the other one is driving the voltage downwards.) (I've shown the amplifiers with the + and - terminals inverted relative to each other to point up the phase difference.)

The bridge-tied load is often used when you can afford to use two amplifiers because it allows you to get the most power delivered to a given speaker when using a single power supply. (Better quality commercial amplifiers will often allow themselves to work correctly in this mode.) For ICs, the TDA8551 is an example of a bridge-tied amplifier that can deliver $1\:\textrm{W}$ into an $8\:\Omega$ speaker when running from a single $+5\:\textrm{V}$ supply rail.

I think you can see that your circuit is effectively like the above high-sided, single-ended arrangement.

A problem with single-ended drivers is that speakers are rather complex loads that don't work nearly as well when there is a DC current bias present. If the only thing your amplifier can do is drive a voltage that is between ground and the $+V$ rail, then the mid-point of each swing will have a DC bias to it. (This isn't necessarily the case with the bridge-tied load. Which is an advantage.) To fix this DC component of the single-ended driver, a capacitor is inserted which will rapidly charge to a nominal voltage that is just enough so that the speaker's driven lead will oscillate above and below the voltage at the other end of the speaker. Like this:

simulate this circuit

That capacitor goes a long way. But it does need to be fairly large-valued so that it offers little impedance to the AC signals of interest. Given audio, this tends to mean close to a milli-Farad.

The rail voltages required for a speaker, if you can afford a bipolar supply, is $V=\pm\sqrt{2 P R}$, where $P$ is the power you want and $R$ is the speaker's impedance. When the voltage supply is only a single voltage rail, you need twice that much. None of this counts for the needed overhead required to drive the circuitry. So you need to plan at least an extra volt or two, added to whatever you compute (or more.)

With $R=8\:\Omega$ and $P=1\:\textrm{W}$ this pencils out to $V=\pm 4\:\textrm{V}$. Or $V=8\:\textrm{V}$, if only a single supply rail. You also need to account for that overhead. So you can see that the voltages required for your power supply can become inconvenient if you seek significant power output into $8\:\Omega$ speakers. (A reason why $4\:\Omega$ speakers are often used then.)

The bridge-tied arrangement gets the full swing on either side, going oppositely to each other. So this allows it to appear (for these purposes) as though it has a bipolar supply when it actually doesn't. A reason why bridge-tied loads can be important when only a single, low-voltage supply rail is available.

None of the above deals with something else that is very important with these single-ended speaker drivers. The capacitor helps solve the DC bias current problem, by charging itself up to just the right voltage so that the speaker can swing above and below it's reference (ground or +V.) But you need to be able to pull upward on the capacitor/speaker combo, which requires sourcing current, and you need to be able to pull downward on the capacitor/speaker combo, which requires sinking current. The driver needs to be able to do both.

Optimally, you'd have the ability to source and sink with both abilities approximately equal to each other and together sufficient for the needs of the speaker. Your arrangement has a BJT that is pretty good at sourcing current, but only $R_7$ to sink it. $R_7$ can be reduced in value to allow it to sink more current, but you pay a heavy price -- excessive power in several devices. Sometimes, that's okay. But it is almost always worth the effort to replace it.

It's much better to have an active device on both sides. So you need to think about replacing $R_7$ with a transistor. Then you've got an active source and an active sink to drive the speaker. This is why you almost always see a speaker driver circuit that looks something like:

simulate this circuit

The voltage source shown there is designed to provide about two diode drops worth of voltage difference between the two bases of the two BJTs, so that they can both be active at the same time. Both are emitter-follower arrangements and their emitters will just follow the left-side amplifier stage's output voltage (with some relative DC bias, perhaps.) As the left-side amplifier slews its voltage up and down, so should the BJT emitters just follow that behavior.

The PNP sinks current actively and the NPN sources current actively. If you imagine pulling down on the paired base arrangement there, that will pull down on the PNP base, which will pull down hard on the PNP emitter sinking current actively. Likewise, if you pull up on the paired base arrangement, that will pull up on the NPN base, which will pull up hard on the NPN emitter, sourcing current actively. The main thing here is to make sure there is sufficient voltage between the bases that the two emitters can both be actively on and will therefore follow their base voltages up and/or down.

This circuit needs to have a source of base currents. This can come from the left-side amplifier, if it is capable of developing the necessary voltage and current compliances. Often, though, a very cheap "hack" is to just use the following as a starting point:

simulate this circuit

That's pretty crappy from a number of perspectives. But it does work after a fashion and with some serious limitations. You can read something about the limits here: Effect of the Load on a Class AB Amplifier. So I won't belabor it further, here.

An improvement is to replace $R_1$ with a current source. This can be done similarly to what is done with the LM380 (see the red-boxed portion of the circuit shown here -- Transfer function of a LM380 power amp), but it is often done by bootstrapping using the output capacitor, instead. As follows:

simulate this circuit

Because $C_1$ develops a relatively fixed DC voltage across it during operation, and because $V_{BE}$ of $Q_1$ doesn't vary too much either (few hundred millivolts, or so), there is a relatively constant voltage across $R_1$. This tends to mean that there is a relatively constant current through $R_1$, which is an improvement on the prior topology.

I've gone far enough here. There are additional improvements to the output stage I haven't even nodded at. For higher power, there each single BJT shown above might be replaced by banks of BJTs. Also, if you look back at the Transfer function of a LM380 power amp mentioned above, you will see that they've done something interesting with the low-side BJT ($Q_2$ in my circuits above, but $Q_{11}$ and $Q_{12}$ in theirs.)

The point is that there is a lot to be done just for designing the power supply rails and the output stage itself (which doesn't have significant gain but can sink and source significant currents.) And then you can work on the idea of a proper pre-amplifier stage for your microphone. And then finally, work on an intermediate stage (or two) with the gain you want. You can sometimes combine all this into a single added stage. (For example, look at Cant understand an ab amplifier diagram.) But you really need to have some basic ideas available and the ability to work through some kind of useful analysis, if you want to try such things.

That's it for now.

ADDED:

So, the reason you see such a difference when you load your output and only see about half the swing, is because you have a very large resistance for $R_7$. Compared to your speaker load requirements, $R_7$ is essentially unable to sink needed current. $Q_2$ can source it, but $R_7$ can't sink it. So this is why analogsystemsrf suggested to you to reduce $R_7$ a lot. That, and change out $Q_2$ for a Darlington arrangement, instead, because once you reduce $R_7$ so much there will then be a very heavy current load on the prior stage ($Q_1$.) To lighten that current load, he recommended the Darlington arrangement which lightens the load quite a bit. It's pretty much a "must" if you want to make that terrible circuit into something that 'kind of works.'

Here's an example of an amplifier circuit taken from Douglas Self's 5th edition book mentioned at the bottom, below.

The basic ideas are still present there.

For example, I highlighted in green the equivalent it uses for what I showed as $Q_1$ and $Q_2$ in the circuits presented earlier, above. It uses four BJTs, not two. But the basic idea is the same. It adds some emitter degeneration resistors (small values.) But again, the basic idea remains the same.

It also uses a $V_{BE}$ multiplier instead of a pair of diodes (in the orange box I added.) But again, the idea is the same. Just in this case you can tweak the voltage. Also, this $V_{BE}$ multiplier includes a resistor in the collector, $R_{14}$, that compensates the $V_{BE}$ multiplier for the Early Effect in $TR_{19}$. Again, this is just an adjustment to the basic idea but needed to slightly improve its performance in the circuit.

Note that this amplifier system uses two supply rails, plus ground. Namely, $\pm 37\:\textrm{V}$. From the equation I mentioned above, you can work out that this means $P=\frac{V_P^2}{2\cdot R}=\frac{\left(37\:\textrm{V}\right)^2}{2\cdot 8\:\Omega}\approx 85\:\textrm{W}$. However, if you count diode drops from the output back to either rail and roughly consider the necessary collector-emitter voltages required by a few BJTs there, you can easily see a need for about $6\:\textrm{V}$ of overhead on each side of ground. So this brings it back to about $60\:\textrm{W}$. Other considerations bring it down further, to the stated $50\:\textrm{W}$ rating mentioned by the author.

The use of two rails means that an output capacitor can be avoided, directly driving one end of a grounded speaker. An added reason why dual supply rails (or else a bridge-tied load) might be worth considering.

The circuit also includes negative feedback (look for the NFB terminal mark on the schematic in two places.) This helps by using some of the open loop gain to help linearize the output and to deal with issues such as cross-over distortion that may be present.

Real circuits are like that. You start with a basic idea that does work somewhat and then you add more to it in order to deal with various unwanted behaviors, correcting those that are more important and ignoring those that you can accept or tolerate.

On one of the pages I linked, I discuss at some length how the LM380 works. This may be way too much for you, right now. But I'd recommend trying to slug your way through it, anyway. There are only a few (and relatively common) basic sub-topologies in that circuit and with some effort you should be able to struggle through the details and arrive at an understanding. It's not beyond anyone. It's actually a relatively mundane approach. It includes negative feedback (something else to study) and deals with practical problems. It is an IC, though, so the BJTs are better matched than you can usually find in practice in discrete components.

But there are matched BJTs, such as the BCV61/BCV62 pairs (matched in $\beta$) and the BCM61/BCM62 (matched in both $\beta$ and $V_{BE}$.) (And the really expensive MAT01.) So if you can't be bothered with matching your own, you could go that way. Or you can learn added techniques that help you deal with the lack of matching in practical batches of BJTs. (These would include emitter degeneration and perhaps also the addition of a $V_{BE}$ matching resistor in a base leg.)

Basically, start with the simplest ideas and then learn their problems and then how to address those problems with varying degrees of "goodness." Over time, you'll just recognize the bits and pieces and start to pick up on still more novel ideas that people have come up with.

In your case, you are just at the cusp of where your circuit can't possibly work well... unless you change the problem by removing your speaker load. So you are ready to advance, I think. Try one of the following books. I have all of these and have read them (as well as I've been able):

• Douglas Self, "Audio Power Amplifier Design Handbook," 5th edition
• Bob Cordell, "Designing Audio Power Amplifiers"
• Douglas Self, "Small Signal Audio Design"
• Jim Williams, "Analog Circuit Design"
• Paul Horowitz and Winfield Hill, "The Art of Electronics," 3rd edition
• Thomas C Hayes (plus Paul Horowitz), "Learning the Art of Electronics"
• I really appreciate your detailed answer. This makes me think that I need to learn a lot about amplifiers. Could you provide some helpful resources? – hacker804 Aug 24 '17 at 3:32
• @hacker804 The web is helter-skelter and I'm not going to try and compose a sonnet out of them. That would be very hard. You can just use your search engine and look for ones that speak to you better. Skip the ones that don't. My preference would be to recommend books. But you do have to be prepared to work, then. The author will drag you through all the details, which is good. But it is methodical and tedious. These would be "Audio Power Amplifier Design Handbook" and "Small Signal Audio Design" from Douglas Self and "Designing Audio Power Amplifiers" by Bob Cordell. – jonk Aug 24 '17 at 4:30
• @hacker804 I tried to write as I may have wanted, when first starting to read. I assumed some basic knowledge on your part and I hope I hit it semi-closely. I wanted to write more, but then it turns into a chapter which then turns into a book. And this isn't the place. Nor am I the right author, either. Read the linked pages I already provided and see if you can glean anything from them, as well. Try hard to follow the hand-waving towards a direction. If you can eventually pick out the reason why something is said, you have then learned something. Even better when you pick out the faults, too! – jonk Aug 24 '17 at 4:33

Q1 is common emitter, while the Q2 is emitter-follower. The Q1 is a voltage amplification stage (VAS), while the Q2 is power amplification stage.

Remove C1, R5, R6 from circuit, connect the base of Q2 to the collector of Q1. What you will get on the R7 is the same as Q1 collector voltage, since the emitter-follower has a voltage gain of 1.

• I removed those components and the output is still the same. – hacker804 Aug 23 '17 at 11:27
• What about using a SPICE simulator? – Marko Buršič Aug 23 '17 at 11:39
• Ok I will resimulate in LTSpice – hacker804 Aug 23 '17 at 11:40
• It's still the same. When I remove the load, the output is as follows:link – hacker804 Aug 23 '17 at 11:49

Replace Q2 with a Darlington. And make C4 be 1,000uF. Make R7 be 100 ohms.

You may need to heatsink the Darlington.

• Is the current the issue here? Is my speaker not getting enough current through it? – hacker804 Aug 23 '17 at 14:22
• Also, can I use a transformer to match the impedance at the output? – hacker804 Aug 23 '17 at 14:26
• @hacker804 Your final BJT can source current, but it can't sink it. The only thing that sinks current is $R_7$. This is why analogsystemsrf suggested a VERY LOW value for it. Of course, that makes the whole thing run HOT! – jonk Aug 23 '17 at 18:11