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:
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:
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.