How to detect remaining capacity in a Lithium-ion battery?
"Professional" battery SoC calculation is done by integrating the area under the current-vs-time curve, essentially to count how many coulombs of energy is going into or out of the battery, & comparing that to either (a) the theoretical/designed coulomb capacity of the battery, or (b) keeping track over long periods of time how many coulombs ...