I'm trying to design a portable rechargeable bench power supply. I have a 12V sealed lead-acid battery (WP7.2-12) which I can use as the main power source. These batteries are cheap and easy to source, and have reasonable power output specifications.
I would like to be able to digitally control the output voltage and current using a microcontroller.
I'm seeking advice for a voltage/current output controller which would be reasonably easy to interface with a MCU. It needs to be digitally controlled (i.e. serial, SPI, I2C, 8-bit bus, etc), and should be able to provide two modes of operation:
- Voltage output with selectable voltage and maximum current
(0-12V, 0-10A) - Constant current output with selectable current output (0-10A)
(Maybe these features need to be implemented as two separate circuits, using relays to connect the output to one or the other…)
Would an LED driver such as those referenced here be a good route for this type of controller, or would it be best to roll-my-own circuitry for this? Any pointers/tips appreciated.
Obviously there are other components (i.e. overcurrent protection, battery charge controller, deep-discharge prevention, user interface, etc.) that must be implemented as well, but for this question I'm simply seeking a way to control the output voltage/current per the above.
Thanks!
Best Answer
Two more things to do and the first revolves around using a digital pot to control the voltage fed back to the FB pin. Alternatively inject a current into the FB node that can "con" the regulator into assuming a diufferent voltage output. Here's the first idea: -
This was taken from figure 8 in this ADI document.
The second idea is to use this type of injection using a current output DAC: -
Or like this: -
And the second thing to do is have a small resistor in series with the output of the regulator (but before the feedback resistors) that can be used to measure load current. You can use a circuit like this that takes the high-side measurement and references it to 0 volts that can be read by an ADC: -
The above taken from here.
Or you go the whole-hog and get yourself a step-Down controller with Digital Power System Management like the LTC3886: -