I am currently planning to build a portable LED studio light, that runs from a pair of 6 cell lipos, and would like to charge them inside the lamp.
But finding a charger circuit, with enough power and that still fits on the PCB might be tricky, so I was wondering if maybe it might be possible to repurpose (or perhaps abuse

) the LED driver for this purpose.
I'd use mosfets on the input and output of the converter to disconnect the batteries from the input and take power from a mains adapter, and then connect the output of the converter to the batteries.
I am using a dual channel TPS92682 (
https://www.ti.com/lit/ds/symlink/tps92682-q1.pdf?ts=1597172678809) boost led driver,
that drives two strings in a color temperature adjustable LED.
It actually has a constant voltage mode, but the issue is that the CC/CV modes are mutually exclusive, so it can only run either CC with overvoltage shutdown, or CV with overcurrent shutdown. However the modes can be changed via SPI.
So my idea to get around this was to use the micro-controller in the lamp and sense amps. for each cell to monitor the voltage of the battery while charging.
Basically I would start off running the converter in CC mode with overvoltage lockout set at 25.5V(4.25V/cell), but continuously read the battery voltage and switch the converter into CV mode once 4.2V/cell is reached.
Then I would monitor the current and stop once it has dropped to 10% of the nominal.
Balancing would not be included, but should not be a problem, as each cell would be monitored for voltage (so even with imbalance, they wouldn't over-discharge) and the batteries will have matched cells. If this did become an issue after a while, it would always be possible to remove the batteries and balance them in a dedicated charger
The specs are:
150W total LED power limit, with a maximum of 100W per color temperature (a 55V cob)
two 70wh, six cell lipo packs, designed for model-flying
2.5A @ up to 60V, per channel of the converter
12V @ 13A mains adapter, for charging and powering the LED if mains power is available.
Has anybody tried something like this before? Would this even work, and more importantly be safe?
I'd like to hear your thoughts on it
