Attachments
-
166.9 KB Views: 7
-
1.8 KB Views: 3
With a teaching spirit, I respectfully disagree. This is a bit of a black art - and is simple to understand in concept, but is very hard to understand in practice because of all of the different concepts are so similar, but still so completely different.that's the only effective fix - you needed to do that because of too high of an open loop gain here.


But I really didn't reduce the gain of the opamp all that much. :/I agree that it is beneficial to reduce the gain of the OpAmp. The transfer function of the OpAmp no longer has a near vertical slope.
Thanks. I wish my boss thought so. When I'm at work I usually make it look real hard - usually because he's always pushing the limits of my knowledge!You made it sound to easy.![]()
I thought I explained it pretty well... did you have questions? Per your request I've included the phase/gain simulation.But I'm still dying to understand @tindel 's compensation.![]()
I think you did explain it very well. I'm just a visual guy, so seeing the change in the plots will help (I think)Thanks. I wish my boss thought so. When I'm at work I usually make it look real hard - usually because he's always pushing the limits of my knowledge!
I thought I explained it pretty well... did you have questions? Per your request I've included the phase/gain simulation.
It was because there was a pole at 6kHz which caused the open loop gain to fall at 40dB per decade (The pole of the opamp was the first 20dB per decade). Putting a zero on the opamp at 6kHz gives the circuit +20dB/dec above 6kHz, cancelling out the effect of the pole -20dB/dec above 6kHz from the plant. Esentially 20+-20=0.I think you did explain it very well. I'm just a visual guy, so seeing the change in the plots will help (I think)
Actually what I'm trying to understand is why it wasn't stable without compensation. Is it because of the inversion?
So it could have been stable (just not as good) with the lead (c3)only?It was because there was a pole at 6kHz which caused the open loop gain to fall at 40dB per decade (The pole of the opamp was the first 20dB per decade). Putting a zero on the opamp at 6kHz gives the circuit +20dB/dec above 6kHz, cancelling out the effect of the pole -20dB/dec above 6kHz from the plant. Esentially 20+-20=0.
I'm glad that you brought that up - and I'm pleased that at least one person is digging into this enough to make it worth my timeSo it could have been stable (just not as good) with the lead (c3)only?

Thanks for the help. It did help to be able to see the plots. Thanks again!I'm glad that you brought that up - and I'm pleased that at least one person is digging into this enough to make it worth my time. This is actually how I originally compensated the loop when I downloaded the file. I was just lazily trying something I thought might work - and it did. I solved all of Richard's problems in about 5 seconds. (I haven't had the heart to tell him that yet... so don't tell him.)
This is arguably a better way to compensate the loop because you have more open loop gain through a larger range of the frequency spectrum. By letting it fall at 20dB per decade from the op-amp then 40dB at 6k from the plant. Putting C3 in at about 60kHz(ish) then you get a pole there and you cross 0dB of gain with 20dB/dec slope! and 40deg of phase margin! And it only requires 1 part!
Although this is perhaps slightly better compensation... I wanted to display something that was a bit more familiar to people - and a simple -20dB/dec slope is much more familiar as a teaching moment.
Sounds like you 'get it'.
View attachment 117378
If you look at the open loop gain of the OpAmp from the datasheet it quotes a value of 8,000,000, or 8 V/μV. On a typically scaled graph of the open loop transfer function it is as close to vertical as it can be. If the difference between the two inputs is greater than 1.875 μV, the output will be at one rail or the other. It is essentially working as a comparator, and can be literally described as a bang-bang element.But I really didn't reduce the gain of the opamp all that much. :/
I've never worked with an op-amp with near vertical slope - what's that suppose to mean? All the one's I've used have had a slope of -20dB per decade. Maybe I'm misunderstanding your point/angle.

what do you think the "compensation" does? it is a form of local negative feedback -> it reduces the open loop gain.my original compensation
a black art that's well understood.This is a bit of a black art
But not evidently by you.a black art that's well understood.
Easy there... let's keep this civil - and let's keep learning. I know I've been learning a lot.But not evidently by you.![]()

I have been working on the power supply off and on for a while...Here is a correction to my compensation method. I started by increasing the feedback capacitors significantly to reduce the open-loop gain over the entire load range, with a 1kohm minimum load. This works, but leaves little open loop bandwidth at high voltage, high current, causing poor regulation at higher frequencies. Ugh. I then added C4 to get a gain boost above 5Hz or so. This squeaks out a bit more open loop bandwidth so regulation is a bit better. Because of the added gain boost, the circuit is much less dependant on load variations, meaning that 20kohm is adequate as a minimum load so the 1k resistor is not needed. However, open loop bandwidth does improve with increasing minimum load.
View attachment 117713
I owe @dannyf a apology for my bigheadedness and stupidity for not listening to what he was trying to tell me. Sorry about that - I'll try to listen (errrr. read) better next time around.
Consider my pie eaten.
Add me to the list. I get impatient with Danny's one liners so I often ignore them.Easy there... let's keep this civil - and let's keep learning. I know I've been learning a lot.
I'm about to eat a big slice of humble pie...
@dannyf was right. I certainly did compensate the load at max voltage, max current. The problem (as Danny correctly points out) comes when trying to compensate over all load and output voltage conditions. If you remove the load in the circuit I proposed earlier there ends up being inadequate phase shift at the 20dB crossover point (Earlier I lost fact of the sight that the gain was 10 - A simple oversight on my part).
All of this stems from a massive bandwidth change of the plant over load conditions. (the bottom plot plane). To a lesser effect, the change in gain with setpoint voltage.
View attachment 117711
Here is a correction to my compensation method. I started by increasing the feedback capacitors significantly to reduce the open-loop gain over the entire load range, with a 1kohm minimum load. This works, but leaves little open loop bandwidth at high voltage, high current, causing poor regulation at higher frequencies. Ugh. I then added C4 to get a gain boost above 5Hz or so. This squeaks out a bit more open loop bandwidth so regulation is a bit better. Because of the added gain boost, the circuit is much less dependant on load variations, meaning that 20kohm is adequate as a minimum load so the 1k resistor is not needed. However, open loop bandwidth does improve with increasing minimum load.
View attachment 117713
I owe @dannyf a apology for my bigheadedness and stupidity for not listening to what he was trying to tell me. Sorry about that - I'll try to listen (errrr. read) better next time around.
Consider my pie eaten.