A bit of a follow-on from the linear regular episode. Dave dances with a simple linear closed loop circuit he built, and bodges it up in LTspice to get a remarkably consistent result.
Not really a tutorial, just a few random tidbits.

Avatar photo

By YTB

27 thoughts on “Eevblog #95 – linear regulators, closed loops, simulations, brand shenanigans”
  1. Avataaar/Circle Created with python_avatars Michael Kiwanuka says:

    I suspect all you need have done to stabilise the circuit is connect a 100pF capacitor from the output of the operational amplifier to its inverting input.

  2. Avataaar/Circle Created with python_avatars serge pouani says:

    hi , can you help please show how to simulate an LDO and Battery on LTSpice?

  3. Avataaar/Circle Created with python_avatars Gerard Regnier says:

    Connect a high value "bleeder" resistor at the emitter of the first transistor of the Darlington pair and connect the other end it to the output of the Darlington pair. Leave the gain at four if you want but kill the high-frequency gain of the feedback loop by adding a capacitor across the feedback resistor. You may need to play around with the values, but it will kill the oscillation. Darlington pairs like this have always had a tendency to oscillate. Why did you choose to use a Darlington pair as the output driver in the first place? What's wrong with just using the output of the opamp as the driver?

  4. Avataaar/Circle Created with python_avatars ValeraRigid says:

    I just added 1n – 10n cap between 180R right lead and negative input OP amp (or just between neg and OP output) and seems it stop oscilate even with x10 gain. Need to test it in hardware tho. And have no idea how it work and why it initialy dont work, so sad.

  5. Avataaar/Circle Created with python_avatars insylem says:

    It wanted to be switchmode

  6. Avataaar/Circle Created with python_avatars insylem says:

    Why BJTs instead of MOSFETs?

  7. Avataaar/Circle Created with python_avatars Kimberly.A Coffey Coffey says:

    hi

  8. Avataaar/Circle Created with python_avatars Mark Watson says:

    I love Dave’s old videos. Real EE stuff here.

  9. Avataaar/Circle Created with python_avatars Raúl Alvarez says:

    Place a compensating capacitor in parallel with R8 or RC series compensating network.
    Take a look into "Feed foward compensation techniques". I'm currently desining a professional power supply 0-60V 5A, (P-MOS in my particular case, so pretty challenge) and I had have the same problem.

  10. Avataaar/Circle Created with python_avatars Chris Wouse says:

    Manage to discover this the same way. Having the gain in the feedback loop caused way to much instability. Just using unity feedback and the gain external to the control loop made a helluva difference! Still used the LM324, can't beat them!

  11. Avataaar/Circle Created with python_avatars 08Ultrasonic says:

    How can we simulate a circuit as accurately as possible? I have a circuit, where i've managed to obtain all of the simulation circuit components for LTspice. But when i simulate it, i don't get the same distortion and oscillations as i do in the real circuit. I've even gone to the effort of working out the inductance and capacitance of the traces but still nothing the same. The simulation shows that it should be working beautifully well.

  12. Avataaar/Circle Created with python_avatars linuxguy 11 says:

    Your videos are too good I'm addicted to them

  13. Avataaar/Circle Created with python_avatars Dennis Lubert says:

    EEVblog This might be a bit late, but for those kinds of circuits you should always use the startup option to .tran ("Start external DC supply voltages at 0V") so the simulation will use the input at 0V as initial state and doesnt start simulation with a steady state. This will lead to much more often oscillation, even with your original 2n222 only circuit right away. As additional hints, I always use .opt numdgt 15 (to force double precision, since oscillation might be smoothed out by rounding) and .opt plotwinsize 0 (to save more datapoints for the transient graph. uses more hdd space and memory, but makes the gaphs much smoother and fft much more accurate)

  14. Avataaar/Circle Created with python_avatars frampthechamp says:

    True that the theory will not match the actual circuit response, but the theory will probably give you those crucial hints as to what is causing the instability. Otherwise you're just poking around in the dark!

  15. Avataaar/Circle Created with python_avatars william fleete says:

    from the sim it looks like the oscillations are at about 1Khz, i've actually made a linear adjustable supply with an LM324 with whatever power transistors i managed to salvage, as i dont have access to an oscilloscope i cant really check if it is oscillating (at least above 17Khz or so, using a signal tracer) but it seems pretty stable with maybe a bit of noise at the low ends, i'll probably add in those resistors at some stage and see if the noise goes down

  16. Avataaar/Circle Created with python_avatars seljer says:

    One thing I've found that affects stability of this in SPICE is the equivelant series resistance value of the output capacitor. Without it specified it is more affable towards starting oscilla
    ting.

  17. Avataaar/Circle Created with python_avatars Hola! Claire Wolf says:

    @darrenhello2 afaics with this solution the circuit would start oscillating again when the load resistance is decreased, as this would reduce the effect the added capacitor has on the feedback path.

  18. Avataaar/Circle Created with python_avatars Hola! Claire Wolf says:

    nice video!

    shouldn't something like a 22nF bypass cap e.g. from the OpAmp output directly to the inverting input should have fixed the problem?

    R = 10k || 27k = 7k3 and C = 10n ==> 1/(2*pi*R*C) = 991Hz

    should provide enough feedback to the high frequencies to get rid of the ~1kHz oscillation if I got the math right (haven't actually tried it in a simulator).

    But of course this would also make the regulator slower. So one would also need to enlarge C1 depending on the type of load.

  19. Avataaar/Circle Created with python_avatars Darren DeBattista says:

    good video… I've just tryd your circuit and inserted a capacitor between the output of the op-amp and the emitter of the darlington pair (to have a sort of miller capacitor effect). It worked with every output capacitor tried. I didn't work with it for much time so I don't know its effects in detail but though it mite help!

  20. Avataaar/Circle Created with python_avatars lo-shu tuan says:

    change that two resisters into higher value.

  21. Avataaar/Circle Created with python_avatars ubuntututorials says:

    @desertbard Why not just use a micro with a built in ADC?

  22. Avataaar/Circle Created with python_avatars Joseph Lorentzen says:

    I need an ADC. I am thinking of a MAX186 or MAX188. Any suggestions?

  23. Avataaar/Circle Created with python_avatars EEVblog says:

    @gbowne1
    Nothing fancy, probably just a recap of the first 100!

  24. Avataaar/Circle Created with python_avatars AllenKll says:

    Great Vid! I love that you show how easy it is to destabilize these loops. And great job with the post-production adding in the inset pics as you work in the background! Very effective.

  25. Avataaar/Circle Created with python_avatars gbowne1 says:

    I need a complex switching regulator.

    Well, we're almost to episode #100.. gee what's dave got planned for the big 100th episode.

  26. Avataaar/Circle Created with python_avatars razean22 says:

    nice video, i like it :>
    anyways, maybe u should use netnames for the supply voltages, like this its kinda ugly.
    actually a professor of mine said: "if u want a regulator, build an oscillator and vice versa"

  27. Avataaar/Circle Created with python_avatars Gzalo says:

    @kraudio7 You can either use solder to join the "islands" (you will need lots of solder), enamelled wire (wire that has a thin isolating cover that can be remove just by heating/sandpapering it) or even standard protoboard wire if your designed pcb tracks are big.

    I would go with enamelled wire, its cheap (or you can get some from an old transformer) and its really easy to use and makes the board look nice from the top.

Leave a Reply

Your email address will not be published. Required fields are marked *