Digitally controlling charge voltage with some regulator like Lm317 is a matter of using some resistor and transistor as stated in lm317 datasheet to select from multiple pre defined voltage.
But what about choosing output current ? How it can be adjust with digital signals from microcontroller ? Normally what i found on the web and lm317 datasheet is using a fixed high wattage resistor to limit charge current.
I am trying to build a smart charger as a part of smart ups and i want to use a range of battery with different voltage and current and it must be selectable from software.
So what is your suggestion for digitally selecting charge current ?
But what about choosing output current ? How it can be adjust with digital signals from microcontroller ? Normally what i found on the web and lm317 datasheet is using a fixed high wattage resistor to limit charge current.
I am trying to build a smart charger as a part of smart ups and i want to use a range of battery with different voltage and current and it must be selectable from software.
So what is your suggestion for digitally selecting charge current ?