Author Topic: Opamp linear current regulator must come quickly out of positive saturation  (Read 7573 times)

0 Members and 1 Guest are viewing this topic.

Offline ocsetTopic starter

  • Super Contributor
  • ***
  • Posts: 1516
  • Country: 00
Hello,
We have a linear LED current regulator involving an opamp which drives into the base of a FET and regulates the current in a sense resistor in the source of the FET (thers a reference voltage into the noninv input of the opamp). At first the opamp is powered but there is no voltage to power the LEDs….therefore the opamp current regulator is “hard-on” with its outputs banged up to its positive rail (in positive saturatrion). Then suddenly the LED driving voltage comes on and so the opamp has to slam very  quickly out of positive saturation and quickly bring the LED current into regulation without LED current overshoot.
..In order that the opamp can more quickly come out of positive saturation, and start regulating the LED current, should we add circuitry to prevent the opamp’s  output going any closer than  about 2V away from its positive rail whilst it is in positive saturation?
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19520
  • Country: gb
  • 0999
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #1 on: September 17, 2017, 12:21:58 am »
Preventing the op-amp's output from saturating sounds like a good idea but this does sound like bad design.

Why can't the op-amp or at least the voltage reference be powered from the same source as the LEDs?
 
The following users thanked this post: ocset

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12860
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #2 on: September 17, 2017, 02:27:07 am »
Clamping the feedback to prevent positive saturation wont help sufficiently.  It will still let through a current spike due to the slew rate limiting the OPAMP + MOSFET's response time.  The circuit needs to idle in negative saturation with the MOSFET off.   If you can drive the reference from the switched LED +V supply rail, and that rail actually goes to 0V, you only need to add a pullup resistor to keep a permanent small bias current in the sense resistor so the OPAMP -In is above its +In when there is no supply to the LED.  If you cant access that rail, or it doesn't properly go to 0V you need to add a low current source follower off the main MOSFET drain to feed the reference.  LTspice sim attached.

N.B. you also need a small capacitor across the LED (of the order of 1nF) to bypass the charging current of the main MOSFET's gate-drain capacitance so it doesn't cause the LED's If to exceed the desired maximum.
« Last Edit: September 17, 2017, 06:17:22 am by Ian.M »
 
The following users thanked this post: ocset

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 7733
  • Country: ca
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #3 on: September 17, 2017, 03:21:43 am »
Hello,
We have a linear LED current regulator involving an opamp which drives into the base of a FET and regulates the current in a sense resistor in the source of the FET (thers a reference voltage into the noninv input of the opamp). At first the opamp is powered but there is no voltage to power the LEDs….therefore the opamp current regulator is “hard-on” with its outputs banged up to its positive rail (in positive saturatrion). Then suddenly the LED driving voltage comes on and so the opamp has to slam very  quickly out of positive saturation and quickly bring the LED current into regulation without LED current overshoot.
..In order that the opamp can more quickly come out of positive saturation, and start regulating the LED current, should we add circuitry to prevent the opamp’s  output going any closer than  about 2V away from its positive rail whilst it is in positive saturation?
If this is a linear configuration, you can try 2 things:
1) add a cap from the FET output to it's gate slowing down it's turn on speed.
2) add a cap from the output of the opamp to the negative feedback slowing down the opamp.
3) add a resistor across the FET drain and source to create an initial minimum on current at powerup, sharing some of the load with the FET.
4) any combination of 1),2),&,3).

In a switching design, changing the location of your inductor in the output might help, like before the current sense resistor.  But, you will need to adjust your feedback values and add a RC filter on the feedback.

Finally, feeding your voltage reference to the + input on your op-amp, just feed that voltage through a series resistor like 1-10k, and add a 0.1 to 1uf cap on the +input to GND creating a soft slow power-up.
« Last Edit: September 17, 2017, 03:23:59 am by BrianHG »
 
The following users thanked this post: ocset

Online David Hess

  • Super Contributor
  • ***
  • Posts: 16615
  • Country: us
  • DavidH
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #4 on: September 17, 2017, 05:41:53 am »
Add a resistor between the current sense and the inverting input which may already be there for frequency compensation.  Add a JFET or depletion mode MOSFET between the output of the operational amplifier and inverting input.  When the LED supply is missing, the JFET or depletion mode MOSFET closes the loop preventing saturation.

If the current levels are low and a continuous output is acceptable, then an easier way is to use current steering with a pair of diodes at the drain/collector of the output transistor to prevent it from saturating.
 
The following users thanked this post: ocset

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 6979
  • Country: ca
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #5 on: September 17, 2017, 06:41:52 am »
It really helps to have the schematic portion or op-amp's part number etc.
It's not like we're gonna steal the design and build our own LED fixture.

Op-amps overload and "saturate" a few different ways. It can be the input stage diff amp, internals, or the output stage.
You are assuming it's the output stage. And careful your op-amp does not phase-invert when overloaded.

I would try add a Schottky diode to limit the differential input voltage to 0.3V max. and see if it recovers quicker.
Otherwise the op-amp slew-rate is too low.
 
The following users thanked this post: ocset

Offline ocsetTopic starter

  • Super Contributor
  • ***
  • Posts: 1516
  • Country: 00
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #6 on: September 17, 2017, 11:17:50 am »
Thanks , We really need absolute minimum LED current overshoot....the supply goes on and off regularly....we really need to limit or preferably get rid of any LED current overshoot.
The schem and offending led current overshoot waveform is as attached.

There is also an LTspice simulation attached.
This shows the exact situation that we have, but for copyright reasons, i unfortunately cannot tell or show the actual application.
Quote
Why can't the op-amp or at least the voltage reference be powered from the same source as the LEDs?
Thanks, but sorry it cant.
 
Quote
The circuit needs to idle in negative saturation with the MOSFET off.
 
Thanks, but sorry we cant do that…..we need it to come on pretty quick but with abs min overshoot.

Do you think choosing a “rail-to-rail output” opamp would help?
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12860
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #7 on: September 17, 2017, 01:30:12 pm »
Try this.
 
The following users thanked this post: ocset

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19520
  • Country: gb
  • 0999
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #8 on: September 17, 2017, 01:58:38 pm »
I don't see why 200mA of overshoot, from 900mA to 1.1A is a big deal. The LEDs should be able to handle that with no problem. Why PWM the 50V? Why not the voltage reference?

In any case, the added RC circuit in Ian.M's circuit is probably required to stop it from oscillating.
 
The following users thanked this post: ocset

Offline Damianos

  • Frequent Contributor
  • **
  • Posts: 268
  • Country: gr
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #9 on: September 17, 2017, 08:02:42 pm »
Hello,
We have a linear LED current regulator involving an opamp which drives into the base of a FET and regulates the current in a sense resistor in the source of the FET (thers a reference voltage into the noninv input of the opamp). At first the opamp is powered but there is no voltage to power the LEDs….therefore the opamp current regulator is “hard-on” with its outputs banged up to its positive rail (in positive saturatrion). Then suddenly the LED driving voltage comes on and so the opamp has to slam very  quickly out of positive saturation and quickly bring the LED current into regulation without LED current overshoot.
..In order that the opamp can more quickly come out of positive saturation, and start regulating the LED current, should we add circuitry to prevent the opamp’s  output going any closer than  about 2V away from its positive rail whilst it is in positive saturation?

The easiest way to test the LEDs is by the use of a properly selected SMU. The problem is that this may be a little expensive solution.

So, to avoid the above, you are trying to do something else. But, to be really helped, some clarifications are needed. From the discussion it seems that there is a little confuse about the situation (there are proposals that are useful for msec, as they are simulated).

I will try to identify the situation from your description:
- there is a DC power supply for the load that is operated independently of everything else. It may be inactive, active for a period or continuously. Can it also operate in a pulsing mode?
- there is a current controller (sink) that is always active and waiting to be hit from the above power supply!
- the point, for the controller, is to guess when the hit will take place to react earlier!
This goal, I think, is not possible with the topology that is presented, because the action of the independent power supply is involved inside the control loop. In other words, the result (current) must be there, before the controller starts to adjust the current.

My proposal is a signal to be used, that will activate the current controller, after the output of the power supply. When the current is stabilized you can take the measurements.
This signal can one that may be provided from the power supply or can be created from the output of it.
... ... ... ...
[I see now that you insist to have a controller that operates perfectly without knowing what it has to control!]

 
The following users thanked this post: ocset

Offline Alex Nikitin

  • Super Contributor
  • ***
  • Posts: 1177
  • Country: gb
  • Femtoampnut and Tapehead.
    • A.N.T. Audio
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #10 on: September 17, 2017, 08:58:30 pm »
Here is one possible solution.

Cheers

Alex
 
The following users thanked this post: Ian.M, ocset

Offline ocsetTopic starter

  • Super Contributor
  • ***
  • Posts: 1516
  • Country: 00
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #11 on: September 17, 2017, 09:15:12 pm »
Alex Nikitin and Ian.M ...both of your solutions are pretty well superb. Thankyou very much.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12860
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #12 on: September 17, 2017, 10:24:34 pm »
Yes. Alex has a *very* neat solution if one has access to the high side of the LEDs.  I like the P-JFET gating the feedback loop and he's done his 'homework' and is using it within its reverse gate breakdown voltage spec.
 
The following users thanked this post: ocset

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19520
  • Country: gb
  • 0999
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #13 on: September 17, 2017, 10:39:34 pm »
And here's my suggestion implemented: switching the reference.

 
The following users thanked this post: ocset

Offline ocsetTopic starter

  • Super Contributor
  • ***
  • Posts: 1516
  • Country: 00
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #14 on: September 18, 2017, 05:15:55 am »
Thanks Hero999, thats another great solution.
 

Offline Damianos

  • Frequent Contributor
  • **
  • Posts: 268
  • Country: gr
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #15 on: September 18, 2017, 11:39:58 am »
...
Quote
Why can't the op-amp or at least the voltage reference be powered from the same source as the LEDs?
Thanks, but sorry it cant.
 
Quote
The circuit needs to idle in negative saturation with the MOSFET off.
 
Thanks, but sorry we cant do that…..we need it to come on pretty quick but with abs min overshoot.
...

Alex Nikitin and Ian.M ...both of your solutions are pretty well superb. Thankyou very much.

Thanks Hero999, thats another great solution.

I am totally confused!   :-//
Are all of these in the same discussion? The proposed solutions are in contrary with what you are stated, but you find them perfect, even if initially you refused them!

The information given is incomplete:
- has the power supply a fixed voltage or it can change? Maximum, minimum?
- when it is deactivated is its' output actively to zero volts or it is disconnected by a switch/relay/transistor?
- how short can be a "pause" before the next activation?
- is the reference (that controls the current) fixed?
...
These affect more or less the solutions proposed so far.

 
The following users thanked this post: ocset

Offline ocsetTopic starter

  • Super Contributor
  • ***
  • Posts: 1516
  • Country: 00
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #16 on: September 19, 2017, 04:54:25 am »
Thanks, there has been some great info and i am grateful....unfortunately i am not able to give the full details of the app as my employer would not be happy
 

Offline bson

  • Supporter
  • ****
  • Posts: 2270
  • Country: us
Re: Opamp linear current regulator must come quickly out of positive saturation
« Reply #17 on: September 20, 2017, 07:58:51 pm »
You can also turn off the reference voltage, or derive it from the LED supply assuming precision isn't important to drive LEDs.  When off, it can be pulled to ground.  A simpler resistor divider will do this, perhaps with a zener across the bottom half to make it less dependent on the LED supply if this is highly variable.  Also, make sure the feedback loop is always closed, even with something like a 1M resistor, so the op amp never operates in open loop.
 
The following users thanked this post: ocset


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf