CV/CC source current overshoot

Thread Starter

Makadamij

Joined Aug 23, 2018
16
Hi,

I am designing a linear CV/CC source driver, mainly for testing lab fabricated LEDs with varying forward voltages from ~1V up to 9V and forward currents up to 100mA. The LED is modelled with various parasitics in good hope of simulating a wide range of possible samples.

The driver consists of a PNP current mirror that drives a NPN, which in turn regulates the voltage and current through the LED via two op-amps in negative feedback - one for voltage and one for current. The op-amp currently in control (CC or CV) sinks the current away from the base of the NPN and caps the LED at the value, set by the 3.3V DAC.
The schematic is shown in the picture below:

1794616222855.png


For current sensing I used the INA293A3 with 50V/V gain, so that a 100mA current across its 0.5ohm sense resistor results in a 2.5V output. The divider on the voltage sense side is for scaling the LED voltage range down to the DAC voltage range. C1, C4, R11 and R12 are forming two integrators that I used to compensate the two op-amps to prevent them from oscillating. R13 is the emitter degradation resistor to help stabilize NPNs gain. The RC filters at the DAC output (voltage source) are meant to damped the voltage steps.

I have ran several simulation scenarios, from setting DC operating points to simulating PWM and of course checking for a smooth CC->CV and CV->CC handover. This is where the problem arose. The LED simulated here has a forward voltage of 1.2V. In this particular scenario, the voltage is set first (0.75V at 0.3ms after simulation start), while the current is set to 0, keeping the LED off as intented. Then, at 1.5ms, current is set to 50mA, putting the LED into CC mode. A short pulsed, few us long current spike occurs up to 14mA as the current then settles down to 6mA. Then, at 4ms, the voltage is set to 3.75V while the current setting remains the same, putting the LED into CV mode. Current spikes again, reaching a peak value of 120mA, before settling down to 50mA.

1794616258202.png



It appears to me that when the voltage is set to 3.75V, the LED voltage begins to rise accordingly. It then crosses its forward voltage (1.2V) point, after which current begins to rise exponentially, while the LED voltage rises only a very slowly. Because of the integrator in the CC circuit side, the op-amp fails to start sinking the current in time, causing current to rise beyond the 50mA set point.

I am puzzled on how to prevent this from happening in terms of securing a fast response from the CC loop while maintaining stability. Any help would be much appreciated.

Thank you in advance!
 

Attachments

ronsimpson

Joined Oct 7, 2019
4,923
You have two Error Amps battling over who has control.
At first U2 (CV) is driving the base of Q1. U3 (CC), output is at 12V wanting more current but has no control.
At the point where we switch from CV to CC there are several delays happening.
1) U1-out climbs but is delayed by R11, C1.
2) When U3 in- gets to Iset voltage, then U3 output starts down from 12V. This will take time; the amp is fast 20V/uS so it will pull off the 12V in about 500nS.

I am thinking Q1 is too fast. I think "Vbase" or "Ibase" can rise too fast compared to the delay through RC and op-amp. Try adding a capacitor from Vbase or Ibase to ground so the base voltage cannot rise faster than the delay through the amp. (larger cap. Try 1uF and see if that helps then to bigger or smaller by 10:1 and see what happens.
Another way is to slow down Q4 from pulling up fast. Maybe a B-C capacitor. (small cap)
RonS.
 

crutschow

Joined Mar 14, 2008
38,960
What is the purpose of the CV mode?
It would seem that all you need is a CC mode for testing LEDs, which operate at their nominal forward voltage, based upon the current through them.
 

ronsimpson

Joined Oct 7, 2019
4,923
What is the purpose of the CV mode?
Last time I had three meters, one for Voltage and one for Current and one for Light. I used a one op-amp, one transistor CC. No voltage control.
OR
Use a current limited power supply. One that has a V knob set to 3 or 4V and a Current Limit knob that you crank for current.
 

Thread Starter

Makadamij

Joined Aug 23, 2018
16
You have two Error Amps battling over who has control.
At first U2 (CV) is driving the base of Q1. U3 (CC), output is at 12V wanting more current but has no control.
At the point where we switch from CV to CC there are several delays happening.
1) U1-out climbs but is delayed by R11, C1.
2) When U3 in- gets to Iset voltage, then U3 output starts down from 12V. This will take time; the amp is fast 20V/uS so it will pull off the 12V in about 500nS.

I am thinking Q1 is too fast. I think "Vbase" or "Ibase" can rise too fast compared to the delay through RC and op-amp. Try adding a capacitor from Vbase or Ibase to ground so the base voltage cannot rise faster than the delay through the amp. (larger cap. Try 1uF and see if that helps then to bigger or smaller by 10:1 and see what happens.
Another way is to slow down Q4 from pulling up fast. Maybe a B-C capacitor. (small cap)
RonS.
Thank you very much for your answer. This might be the quickest and cheapest fix.
 

ZhangSheng

Joined Sep 25, 2026
32
Yeah, that CV-to-CC handover is the classic trap — U3 is sitting railed at 12 V while U2 is in charge, so it has a long way to fall before it can grab Q1, and in that time the LED current just runs away. I'd clamp or pre-bias U3's output a volt or two above the takeover point instead of letting it rail, and slow Q1 down a touch — a small 100 pF–1 nF cap across Q4 base-collector usually tames it without killing the loop. Also worth scoping the sense node: at 100 mA you're at 50 mV across that 0.5 ohm, so 2.5 V out of the INA293, and if that signal rings at the switchover, a little filtering right at U3's input helps more than more gain.
 

Thread Starter

Makadamij

Joined Aug 23, 2018
16
Yeah, that CV-to-CC handover is the classic trap — U3 is sitting railed at 12 V while U2 is in charge, so it has a long way to fall before it can grab Q1, and in that time the LED current just runs away. I'd clamp or pre-bias U3's output a volt or two above the takeover point instead of letting it rail, and slow Q1 down a touch — a small 100 pF–1 nF cap across Q4 base-collector usually tames it without killing the loop. Also worth scoping the sense node: at 100 mA you're at 50 mV across that 0.5 ohm, so 2.5 V out of the INA293, and if that signal rings at the switchover, a little filtering right at U3's input helps more than more gain.
Thank you very much for your suggestion! By clamping the output above the takeover point you probably mean clamping above the NPN base node as in the picture below?
1794737941660.png
 

crutschow

Joined Mar 14, 2008
38,960
For your amusement, below is the LTspice sim of a simple CC/CV circuit using a buffered Howland current-pump driving a blue LED:
The sim starts at zero current, goes to a CC of 50mA @ 100ms (light red trace), a CV of 3V @ 300ms (yellow trace), and back to a CC of 50mA @ 500ms.
There are no significant glitches at any transition.

If interested, here's a TI paper on the Howland current-pump operation.

1794765793248.png
 
Last edited:

Thread Starter

Makadamij

Joined Aug 23, 2018
16
For your amusement, below is the LTspice sim of a simple CC/CV circuit using a buffered Howland current-pump driving a blue LED:
The sim starts at zero current, goes to a CC of 50mA @ 100ms (light red trace), a CV of 3V @300ms (yellow trace), and back to a CC of 50mA @ 500ms.
There are no significant glitches at any transition.

If interested, here's a paper on the Howland current-pump operation.

View attachment 373224
Thanks a lot! Will definitely look into this!
 
Top