modular-psu-firmware
modular-psu-firmware copied to clipboard
Non-permanent changes to Iset through power limit
Currently, setting a power limit greater than the product of the current limits of voltage and current will simply reduce the current limit. It would be nice if this could be turned into a dynamic process that checks power and adjusts either current or voltage (depending on what's currently being limited) instead.
As a starting point, it might be possible to introduce a second current limit I_P that is P/U and use the minimum of that and the user-defined current limit, possibly with some smoothing to prevent oscillations if it's necessary. I'd be up for some brainstorming on discord (@apo) or working on the firmware, as well.
I wrote a small python script doing exactly this through scpi, and over the network. I'm using it to power a 10 W LED, and it gets within ~20 mW if the power setpoint changes by ~50 mW, ~0.4 W if it changes by 2 W. This is with maybe 1.5 updates per second, so the idea at least seems usable. :)