Hi again.
I appreciate all the answers, and all the concern about lithium ion batteries, but this is not what I lack knowledge off.
@zlymex, my initial thoughts were to put a senseing resistor on the output, before the battery negative side, and have the pic measure the difference in voltage from PIC 0V to battery 0V, which would give a current measurement from the internal 1.024V reference point, using the ADC.
Then, from that, I would make the PIC slightly decrease the voltage in the FB pin going to the buck IC using the DAC (if the current is too low), making it try to up the voltage, until the current hits the desired mark, and then the PIC would set the FB voltage spot on. And ofc the opposite if the current is getting too high.
This would make a kind of "top of the hill" setup, making the PIC control the buck IC.
Any thoughts on this approach?
@blueskull, cheers on the beautiful schematic you drew xD
But wouldn't this require me to be able to control the switching directly?
I have already tried a little with a PWM of the PIC directly driving the switches, but this requires mosfetdrivers, and suddenly, the price skyrockets.
This is why I'm currently doing it this way
