Calibrating buck LED driver by altering Vsens

buckcalibrationconstant-currentled

Many switch mode buck LED drivers use a current mode scheme with a sense resistor back to a Vsens or Current Sense input on the chip. A good example is the LM3404. Here's the typical use circuit:

enter image description here

I am wondering can I tweak the driver, for calibration purposes, by altering the voltage going in a the CS input. I realise I can PWM drive this device via the DIM input but, if the purpose is one off calibration, then this is extra effort for nothing. The reason is that we have an expensive UV LED emitter that runs nominally at 700mA, but may need to be brought down to 500mA for calibration of a UV receive sensor. Changing Rsns is a nuisance and a variable Rsns isn't really reasonable.

If I set up for 500mA, then pulling CS down to ground a little should allow me to raise If by a proportionate amount:

enter image description here

I've taken the "circuit with overvoltage protection" example from the datasheet – thus the zener – and added a pulldown. I've done it in the way I have so that if the wiper doesn't connect for some reason, the current doesn't jump up (it would if the wiper went directly to CS).

This looks ok but with SMPS feedback systems I'm never sure. Should there be a bypass cap around the 1K resistor to couple voltage ripple to the LM3404's CS pin (seems necessary for operation of its COT system)?

Edit: Just as I posted this I found this interesting link which does it the other way – takes the Vcc output from the LM3404 and pulls upward. Doesn't seem too precise though as the Vcc pin is quite variable.

Edit: and the AL8805 allows analog dimming on its dim input. Still, I'd be very interested in if this mod is a reasonable one.

Best Answer

Basically you are putting a pot in parallel with Rsns in order to "allow" two current settings. Why don't you use a fixed resistor and a 0.1" jumper. Normally the jumper would be in place for the higher current thru the LED then you remove the jumper to activate the lower current feed. I also don't like pots much and would much rather use a resistor and jumper especially if the two settings are known and fixed.