Electronic – How to detect remaining capacity in a Lithium-ion battery

detectionlithium ionsensor

I need my device to have multiple power sources, and connect to different power supplies depending on power availability. Each power source is a different rechargeable, Lithium-ion battery like this one. I am wondering what sensors/techniques/devices/etc. exist so I can determine "Battery #1 has 43% charge remaining, while Battery #2 is at 7%. Use Battery #1."

Clearly this is possible since all of our 'smart phones' predict with decent accuracy how much charge/capacity remains. Thoughts?

Best Answer

The term you're looking for is "gas gauging." This is usually done with dedicated ICs, measuring voltage and current. TI and Linear Tech are couple of the big players.