Audio power amplifier improvement
To find out, if something runs stable, you can add:

.step temp 0 100 20

Explaination:

.step what start end incement

This will run the simulation multiple times and you will see, if it is stable over a wide temp range.

The problem with a sim is, that the parts are ideal in most ways. For example: components will not die in simulation. That means, if your potentiometer is rated for 50mW and you run 100mA at 20V through it, it will insta-fry (well, actually, it sometimes can take a few seconds and smells horrible. Ask me how i know)

Important questions to answer when designing an amplifier with push pull configuration:


View both mosfets currents - do they overlap? There should of course be no time, where both are not conducting any current at all. It might be stable enought, if the lowest current is 10mA - just try to change the temperature, if this changes anything
will your components dissipate the heat? Just hover over the component after simulating to a stable point and it will show the power dissipation (on the bottom, if I remember correctly). Otherwhise, measure the waveforms and calculate the TDP of each part. This is absolutely mandatory of course. I mean, you could also just build it like most people do, but risk frying something.


About the stability with mosfets: It does not matter at ALL. No need to balance anything. Mosfets conduct less current, when they get hot, which means, they cool down. This basically creates an equilibrium. They are self balancing. Just do not take &lt; 20mOhm mosfets, as they could be so far unbalanced, that one conducts all current from the start (if everything is cold) and therefore fries itself because a bond wire fails or so. Relatively unlikely however.

But there is still one problem: if the temp changes, Vgs(th) also changes. This will move the bias point. So try to fix this in simulation. You absolutely have to simulate with different temperatures. If you don't do so, it will often yield in problems. Big problems. And the more complex the circuit gets, the more you risk that.

Just pretend something for a second: If your amp has a frequency range of 100kHz or higher, the bias might not matter that much. Why? Well, you just could add a 30kHz low pass with 4 stages. This would remove basically ALL the "switching" noise - if your input differential amplifier can handle such aprupt changes. It is possible, but not the best solution.

Just a question: Why even use Mosfets at all? NPN Quasi and NPN/PNP complimentary push/pull is somewhat preferable in most cases. Why? Well, it first is simpler to implement, second it has much more stable bias and third, at higher frequencies you do not need to fear the gate capacity as much. I had some circuits with mosfets - at 20kHz the signal was totally crappy, because the gate charge was far to high. Like an order of magnitude to high! Keep that in mind.

If you want to know, how to really test the performance of the amp, do the following 4 things:
- Simulation with 20kHz in and lowest input voltage (like if you use 1Vpp, use 100uV) Is the signal still clean and recognizable? Is the gain the same as full volume? Do the math.


Simulating with 20kHz and max amplitude - this shows, if the main circuit really is able to sustain the gate drive in a clean way.
Simulate at lowest frequency and max amplitude - will it be clean?
simulate at lowest frequency and lowest amplitude - will it be clean?


the last 2 are not to undereastimate! The switching, I was talking about, can be invisible at higher frequencies. It will show at lower frequencies however. Now add that to the lowest amplitude. If this also is stable and has the same gain as always, it absolutely runs smooth.

This is mandatory!

But you are not done! Repeat that at least with the following temps:


0°C
20°C
40°C
70°C


This is also mandatory!

What else to recommend?

If you want to know, if the signal really is perfect: add a resistor between the input signal and the reference ground. You can show both the current of this resistor and the output voltage. If they perfectly overlap, the signal is clean. this works, because LTspice scales the... scale ...in a "perfect" way. You will instantly see any differences. If the signal is inverted... Just duplicate the input signal and reverse the polarity. Just remember, to change both frequencies and voltages at the same time, or you will have a missmatch.

That is, how I create or test amplifiers with the most precision. Also good:

If your sine wave looks very choppy (like there are not enought polygons in a game), change the "Maximum timestep" variable, till it is a nice balance between precision and speed. LTspice sometimes calculates to few steps, if the circuit is to easy to simulate. Why waste resources? But this of course limits your ability to evaluate the waveforms.

Hope, I could help you with that advices. Most of it is very important.