Author Topic: How to limit output current on switch mode power supply?  (Read 16129 times)

0 Members and 1 Guest are viewing this topic.

Offline carl_labTopic starter

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: de
How to limit output current on switch mode power supply?
« on: October 24, 2016, 02:35:27 pm »
I have some small notebook-power-supply-like SMPS I want to use to charge 48V LiIon batteries.
These batteries have internal  battery managment systems for safety.
I need a voltage of 13*4.2V=54.6V and limited current of about 1A (constant current mode).
I know how to change output voltage of SMTP (by changing a voltage divider in feedback loop) to fit the 54.6V I need.

But:
When I connect the power supply to battery, current is about 2A for about a second, then power supply switches off (because 2A is over spec.).
I need to add some circuit, that limit output current to about 1A.

Can someone show me a circuit diagram of a current limiting (constant current) SMPS?

I think LED light power supplies may be suitable, but I don't want to buy new power supplies, I just want to use these ones I already have.

The additional circuit maybe a shunt resistor, OP amp, reference Z diode,... something similar this way, that controlls the opto coupler in feedback loop of SMPS.

Could this work?

« Last Edit: August 10, 2017, 08:35:46 pm by carl_lab »
 

Offline Zucca

  • Supporter
  • ****
  • Posts: 4603
  • Country: it
  • EE meid in Itali
Re: How to limit output current on switch mode power supply?
« Reply #1 on: October 25, 2016, 09:23:20 am »
Can you tell us which IC is using this SPS? I would look into the datasheet of that IC a as a starting point, normaly the key note or the circuit examples are very useful. If you are lucky there is an example on how to limit the current...
Can't know what you don't love. St. Augustine
Can't love what you don't know. Zucca
 

Offline bktemp

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: de
Re: How to limit output current on switch mode power supply?
« Reply #2 on: October 25, 2016, 09:35:55 am »
Most notebook power supplies output around 20V. Going to >50V does not work very well, because of either the fixed turns ratio of the transformer (for forward converters) or the switching transistor will also see a much higher voltage and fail (for flyback converters).
You circuit could work, but may require a compensation network for loop stability. Instead of connecting R3 to Q1 you could also connect it directly to TL431.
 

Offline carl_labTopic starter

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: de
Re: How to limit output current on switch mode power supply?
« Reply #3 on: October 25, 2016, 11:04:09 am »
Can you tell us which IC is using this SPS? I would look into the datasheet of that IC a as a starting point, normaly the key note or the circuit examples are very useful. If you are lucky there is an example on how to limit the current...
I did not open the power supplies yet.
But yes, you're right, datasheets are helpful mostly.
Problem is: I need a constant current limiter but the power supply shuts down if current exceeds limit (foldback mode):



Most notebook power supplies output around 20V. Going to >50V does not work very well, because of either the fixed turns ratio of the transformer (for forward converters) or the switching transistor will also see a much higher voltage and fail (for flyback converters).
It's actually 48V power supplies. So additional 4-5V should be not the problem.
"notebook-like" refers to formfactor/case.

Instead of connecting R3 to Q1 you could also connect it directly to TL431.
No. I don't think so.
Q1 works as an inverter.
If current exceeds limit, opto's LED will shine to stop oscillation of the primary oscillator (same as in over voltage case).
« Last Edit: February 22, 2017, 07:09:17 pm by carl_lab »
 

Offline bktemp

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: de
Re: How to limit output current on switch mode power supply?
« Reply #4 on: October 25, 2016, 12:00:02 pm »
Instead of connecting R3 to Q1 you could also connect it directly to TL431.
No. I don't think so.
Q1 works as an inverter.
If current exceeds limit, opto's LED will shine to stop oscillation of the primary oscillator (same as in over voltage case).
TL431 also works as an inverter:
When the voltage at its input goes over 2.5V it turns on. Q2 simply simulates overvoltage at the feedback point when the current is too high.
Since there is already a compensation network around TL431, it may be easier than adding a completely seperate control loop.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: How to limit output current on switch mode power supply?
« Reply #5 on: October 25, 2016, 10:36:38 pm »
This may be of interest?



It's made for CC operation primarily, with CV as a protection feature (hence, poor regulation in CV).  But the lesson should be easily applied either way. :)

You definitely don't want two transistors cascading, collector to base, I mean, unless "astable multivibrator" is what you're going for there!

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline carl_labTopic starter

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: de
Re: How to limit output current on switch mode power supply?
« Reply #6 on: October 26, 2016, 08:12:35 am »
TL431 also works as an inverter:
When the voltage at its input goes over 2.5V it turns on. Q2 simply simulates overvoltage at the feedback point when the current is too high.
You definitely don't want two transistors cascading, collector to base, I mean, unless "astable multivibrator" is what you're going for there!

OK, then this way should work:




« Last Edit: October 26, 2016, 02:03:29 pm by carl_lab »
 

Offline carl_labTopic starter

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: de
Re: How to limit output current on switch mode power supply?
« Reply #7 on: October 26, 2016, 08:21:54 am »
This may be of interest?
It's made for CC operation primarily, with CV as a protection feature (hence, poor regulation in CV).  But the lesson should be easily applied either way. :)
I think for Li-Ion battery charging stability of max. voltage is much more important than stability of charging current.
Limiting the current is primary for overload protection of charger and battery.
« Last Edit: October 26, 2016, 08:35:47 am by carl_lab »
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: How to limit output current on switch mode power supply?
« Reply #8 on: October 26, 2016, 02:29:28 pm »
OK, then this way should work:



Not quite. ;) Actually, that may be even worse, in a sense.  The TL431 acts like a transistor with a low fT, high hFE, and very stable Vbe (~2.50V).  The low fT means, not only will it still oscillate -- it will do so at a frequency where the power supply is hammering on and off, hard!

Managing gain and phase shift is the important part here.

Note that Vin can't be pulled any lower than 2.5V (if R3 = 0), or in general, whatever the (R3 ||  R5) + R6 voltage divider comes out as.  If you don't need the current limit to work effectively down to low output voltages, then no problem.  But then, if such a crude limit is acceptable -- would it be acceptable to implement this on the primary side instead?

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline carl_labTopic starter

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: de
Re: How to limit output current on switch mode power supply?
« Reply #9 on: October 26, 2016, 05:40:44 pm »
I want to charge 13-cell-Li-Ion-battery-packs, so 13*3V = 39V is the lowest battery voltage if fully discharged.
« Last Edit: October 26, 2016, 06:07:31 pm by carl_lab »
 

Offline oldway

  • Super Contributor
  • ***
  • !
  • Posts: 2172
Re: How to limit output current on switch mode power supply?
« Reply #10 on: October 26, 2016, 07:24:31 pm »
Why not only change the output voltage of the SMPS (that's easy) and add an external linear current limiter (also very easy, 2 pnp's transistors with heat sink, a 0R6 resistor more two other resistors).
Power dissipation will be max. 15W, that's acceptable.
 

Offline carl_labTopic starter

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: de
Re: How to limit output current on switch mode power supply?
« Reply #11 on: October 26, 2016, 10:51:15 pm »
Why not only change the output voltage of the SMPS (that's easy) and add an external linear current limiter (also very easy, 2 pnp's transistors with heat sink, a 0R6 resistor more two other resistors).
Power dissipation will be max. 15W, that's acceptable.
15W of heat extra is 15W too much. The power supplies is fanless design.

Tomorrow I'll break the case open of one of the power supplies, we'll see...
 

Offline carl_labTopic starter

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: de
Re: How to limit output current on switch mode power supply?
« Reply #12 on: October 29, 2016, 03:07:23 pm »
Can you tell us which IC is using this SPS? I would look into the datasheet of that IC a as a starting point...
DAP008
http://fa.itservice-bg.net/baza/ic_power/sm_data/DAP008_data.pdf



I fear, there is no TL431, so voltage regulation will be not that good...
But there are two opto couplers in my device, I'll try to retrace the circuit diagram.
« Last Edit: October 29, 2016, 05:04:56 pm by carl_lab »
 

Offline Zucca

  • Supporter
  • ****
  • Posts: 4603
  • Country: it
  • EE meid in Itali
Re: How to limit output current on switch mode power supply?
« Reply #13 on: November 02, 2016, 08:56:11 am »
Just skimmed the Datasheet.

Quote
The DAP008 features two efficient protective circuitries:
1. In presence of an overcurrent condition, the output
pulses are disabled and the device enters a safe
burst mode, trying to restart. Once the default has
gone, the device auto?recovers.

that's your problem.

Quote
The DAP008 implements a standard current mode
architecture where the switch?off time is dictated by the
peak current setpoint.

Quote
With an internal structure operating at a fixed 65 kHz, the
controller supplies itself from the high?voltage rail,
avoiding the need of an auxiliary winding. This feature
naturally eases the designer task in battery charger
applications. Finally, current?mode control provides an
excellent audio?susceptibility and inherent pulse?by?pulse
control.
When the current setpoint falls below a given value, e.g.
the output power demand diminishes, the IC automatically
enters the so?called skip cycle mode and provides excellent
efficiency at light loads.

Not bad for charging batteries. On the other side it looks to my poor eyes that the output voltage is set by using the trafo on the right side. The rest is current business.
Interesting.

Can you give us some board pics?

Can't know what you don't love. St. Augustine
Can't love what you don't know. Zucca
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2989
  • Country: au
Re: How to limit output current on switch mode power supply?
« Reply #14 on: November 02, 2016, 10:10:51 am »
TL431 also works as an inverter:
When the voltage at its input goes over 2.5V it turns on. Q2 simply simulates overvoltage at the feedback point when the current is too high.
You definitely don't want two transistors cascading, collector to base, I mean, unless "astable multivibrator" is what you're going for there!
It should work. The current regulation loop needs to be kept slow to avoid stability problems. Picking a high value for R3 will help to make the current loop response slow.




HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline xavier60

  • Super Contributor
  • ***
  • Posts: 2989
  • Country: au
Re: How to limit output current on switch mode power supply?
« Reply #15 on: November 02, 2016, 10:28:55 am »
placing a capacitor between B and E of Q2 will slow the current loop response more. R3 needs to be kept high to limit the voltage range the current loop has control over.
« Last Edit: November 02, 2016, 09:04:19 pm by xavier60 »
HP 54645A dso, Fluke 87V dmm,  Agilent U8002A psu,  FY6600 function gen,  Brymen BM857S, HAKKO FM-204, New! HAKKO FX-971.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: How to limit output current on switch mode power supply?
« Reply #16 on: November 02, 2016, 04:39:17 pm »
Even better is an R+C from base to collector.  The series collector resistor R3 generates a proportional voltage drop, so that there is an "output" voltage from the transistor to draw feedback from (otherwise, the REF pin will have little voltage change on it, being centered at 2.50V for obvious reasons).  The series base resistor R2 allows feedback to be applied; otherwise the "input" (base) impedance would be shorted out by R1, making feedback impossible to apply.

Likewise, C1 should be an R+C.  In both cases, the R+C is a pole-zero network, that significantly increases the phase margin when dimensioned properly.

The C1 response will stack with the Q2 response, making phase margin worse for current regulation than for voltage regulation.  You'll need to test actual values in circuit, and play around until both operating modes behave well (i.e., step load transient testing).

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline carl_labTopic starter

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: de
Re: How to limit output current on switch mode power supply?
« Reply #17 on: November 02, 2016, 07:29:39 pm »
... there are two opto couplers in my device, I'll try to retrace the circuit diagram.
Here is it:

« Last Edit: November 02, 2016, 08:32:57 pm by carl_lab »
 

Offline carl_labTopic starter

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: de
Re: How to limit output current on switch mode power supply?
« Reply #18 on: November 02, 2016, 07:48:28 pm »
Even better is an R+C from base to collector.
So, this is what you mean?



BTW:
What is the 2nd feedback loop for (ZD54, ZD55, IC3 -> ADJ pin)?
Is it just a redundant over voltage protection?

Which resistor has to be changed for voltage adjustment? R55+R58 (one of these)?

What is D51 for?
For temperature compensation of Q51?




« Last Edit: November 02, 2016, 08:26:43 pm by carl_lab »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf