Current Limiting/Control in power supply - Page 1
Forum section: electronics / beginners

author: jamessinghal
author_rank: Contributor
timestamp: March 01, 2018, 04:04:49 am
content: Hey eevblog,My main question isHow do mainstream (BK precision/ Rigol) bench power supplies allow the operator to adjust the current without just using a potentiometer?I am designing a power supply for my lab, and have the voltage control side of things mostly figured out, but the current side of things is where I cannot find a way to regulate it.(My minimum requirements are 0-36v and 0-5a)Also, is there a good circuit that incorporates both voltage and current control into one, instead of two separate parts.Thanks,James

author: Cerebus
author_rank: Super Contributor
timestamp: March 01, 2018, 05:27:13 am
content: Here's a quick simulation of the classic CV/CC design. The op amps areidealones, which can lead to some crazy looking values like that 49kV at the output of the current error amp. This is not apracticalcircuit, just a demonstration, and there is much more to be done to get to a practical power supply design including better choice of component values, but it is enough to see how both Constant Current and Constant Voltage control can co-exist. The secret is the analogue 'OR gate' formed by those two diodes. Have a look, think about how it works, download the simulation and try it in LTSpice.Sorry, for some reason I can't get the usual "insert the image full size" trick to work, you'll have to click on the image below to enlarge it.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: March 01, 2018, 10:58:25 am
content: ^^Alternately, you design the circuit to deliver one quantity primarily, and, using an error amplifier (an opamp), vary that quantity to control the other quantity.Okay, that's pretty vague, but usually, you'll be deliveringcurrent, and adjusting that current to controlvoltage. It works the other way around, too. That's all.The textbook switching supply operates this way, as does any linear or switching regulator that can be ganged in parallel (without problems with current sharing).Practical example:https://www.eevblog.com/forum/projects/building-a-simple-switching-circuit/msg1252706/The outputcurrentis controlled, based on a reference input ISET, and sensed by the feedback IBATT. Battery current will never be higher than the maximum value of ISET.To adjust output voltage (or, in this case, LED current actually), all we need to do is adjust ISET to get the voltage we want.So, ISET is driven by the voltage error amp. ISET can never be higher than the maximum output voltage range of that amp (i.e., VCC).Thus, even if the voltage error amp demands 100% full throttle, the current error amplifier simply sees -- oh, I need to set this current, yup, here we go. And that's it -- it's fully linear, always under control!To make an adjustable current limit, all we need to do is limit the maximum ISET value. This can be done with a diode, or more precisely with an active rectifier circuit.This applies to linear regulators where the pass device has a current output signal: LDOs (common emitter/source) are typical, but it is a good design method for followers (common collector/drain) too.By the way, the tidbit about connecting supplies in parallel: current sources can be connected in parallel with no problems whatsoever; voltage sources cannot. If we build our power supply out of current source blocks, we can wire as many as we want, in parallel. They're all commanded by the same ISET, and we're done!Tim

author: cowasaki
author_rank: Frequent Contributor
timestamp: March 01, 2018, 01:32:10 pm
content: There is a EEVblog video explaining this in great detail......Here is part 1 -

author: lukasz.kostka
author_rank: Contributor
timestamp: March 01, 2018, 05:21:23 pm
content: Hi.I ve build such a circuit and voltage control works great. I have a problem with current sensing. I am using LM358 op amps. Configured them as a differential amps with 10x gain. Matched resistors as close as I could and op amp output stays ~ 740 mV. As far as I know LM358 is not a rail to rail op amp. Which means that it can't output e.g. 10 mV. I was looking for a MAX4080F but no one sells them in my country.I am building a linear power supply (controlled by atmega with DAC, 10mV 10mA resolution for me is fine) and I can't find a good IC that can measure voltage drop across a resistor (in my case 100 mOhm). I want to sense current and read it with a ADC.Can you point me to a good IC or just say what parameters are important for this IC and I will try to find one ?

author: Cerebus
author_rank: Super Contributor
timestamp: March 01, 2018, 05:35:24 pm
content: Quote from: lukasz.kostka on March 01, 2018, 05:21:23 pmThe LM358 will go to its negative rail, but it has highly asymmetric current sourcing/sinking ability. The sinking side is just an internal constant current sink, and it's quite small (-50uA from memory). So, to get the LM358 down to the rail with any significant load you need to supply a pull down yourself - easy if you've access to a lower voltage, not quite so easy if you haven't.QuoteYou'd be better off starting a new thread for this. It's probably going to be unhelpful to make suggestions without seeing a full-ish schematic for what you have so far. Once thing that is certain, you need something with relatively low input bias currents, simply to avoid injecting current into the circuit you're trying to measure.

author: lukasz.kostka
author_rank: Contributor
timestamp: March 01, 2018, 05:51:34 pm
content: QuoteSo I need a negative voltage for this. I have a transformer with multiple taps and I can get a negative voltage out. Does this approach with diff amp good enough for my requirements ?QuoteShall I start a new thread in beginners section ?

author: Cerebus
author_rank: Super Contributor
timestamp: March 01, 2018, 06:01:17 pm
content: Quote from: lukasz.kostka on March 01, 2018, 05:51:34 pmBest to, it's generally considered 'bad form' to hijack someone else's thread with a question that's more than incidental to the original question, especially on a board like this one where there's no restriction stopping you starting your own thread.

author: dsula
author_rank: Newbie
timestamp: February 07, 2025, 09:52:00 pm
content: Quote from: Cerebus on March 01, 2018, 05:27:13 amI tried this, but couldn't get it stable. I was wondering if you can update the schematics with proposed stabilization circuitry. I would appreciate that very much. Thank you

author: David Hess
author_rank: Super Contributor
timestamp: February 07, 2025, 11:50:33 pm
content: Quote from: dsula on February 07, 2025, 09:52:00 pmIt is difficult to stabilized because U4 and U5 add delay within the feedback loops.

author: dsula
author_rank: Newbie
timestamp: March 09, 2025, 10:57:34 pm
content: I looked at the design proposed further up, and I can confirm that this is not stable. It can be made stable using large caps to push the poles out of the way, but it is very inelegant brute force approach and it is also very dependent on the load. One problem of the design is that most off-the-shelf op-amp are 2 pole design, which cannot be compensated.I also analyzed the design by Dave Jones (youtube video Lab Power Supply Design). He uses a LT3080 to control the voltage. Since the LT3080 was designed to be stable and control the voltage, that part works. But the current limiting loop has the same issue. It is not stable and it's practically impossible to make it stable with large load variation. There's always a couple of tens of mV of ripple left. You can trade speed for less ripple by placing caps in appropriate locations and push poles around, but in the end there's no 100% good solution. If somebody knows a truly stable voltage and current controlled supply design. Please share. I very much appreciate it.