Your supposed to test it under it's worst load conditions .
Try that with 1uF's worth of CERAMIC caps and a very high value load resistor (or open ) .
I wanted to start with something easy
So I tried this... and the supply didn't like that at all. It went completely unstable and started oscillating wildly.
Couldn't even get a good sync on the scope.
Next I did some experiment with adding a cap or a cap + resistor across R14 to try to get a bit of lead compensation. This helped a bit, but did not solve the problem. I also simulated this setup and it turns out it is not stable in simulation either.
I then tried swapping the BD139 for something faster, a BC550C. And that made a huge improvement! I guess the BD139 wasn't fast enough. I still had a large ringing, but it was much cleaner and eventually settled to the set voltage.
You have a couple of things going for you aiding stability.
The kelvin sensing instrumentation amplifier divides the loop gain by 10 which largely offsets the transistor shunt amplifier which multiplies the loop gain by about 20 so that you need only a minimum amount of integration capacitance is not surprising. I think that explains why such a low value of feedback capacitance makes it stable.
Similar math can be done for the current loop which needs to be checked separately anyway. I usually start off adjusting the frequency compensation empirically (It is difficult to know what the pass element is doing.) and then go back for an analytical solution.
My usual strategy on the integration capacitors is to increase the resistance in series with the capacitor which will reduce the amount of capacitance needed.
Lots of good info, thanks.
I think phase lead can be added in your design with small capacitors (or networks) added in parallel with R3 and R4. I usually do this earlier in the circuit path but you have those instrumentation amplifiers in the way. Eventually C20 should not be needed.
I tried adding a 220p cap across R3 after changing the transistor, and that worked beautifully, thank you!
Much better that putting it on R14.
See below for the result.
If this is a production design, then the frequency compensation should be adjusted for the worst case components which implies some sample testing.
What happens when power is first applied? Does the output glitch?
At the moment this is a one-off project for myself only.
I tried cycling the power several times, and did notice a small glitch once, but only a volt or so on the output. I will have to test this again with the DC-DC converter in place. Currently I am running it from another lab supply.
So here is the result with a 1µF ceramic cap as the only load. This is after changing transistors and adding a cap across R3.
2V/div vertical and 50µs/div horizontal, 4.8kHz square wave input (same as before). Still not perfect, but a huge improvement.
There is also a small ringing there that is visible when I zoom in.