Electronic – How to measure 6S LIPO battery juice in percentage from Raspberry Pi

batteriesgaugelipomonitorraspberry pi

I've got a Raspberry Pi and I want to use it to measure the percentage of charge which a 6S LIPO battery pack has left which I then send to a server over the internet. I assumed there would be easy ready made sensors for this, but the closest things I found were

After some more searching I found this Texas Instruments Gas Gauge and Battery Management Controller which seems to be able to read out 6 cell LiPo batteries and output the charge over I2C.

So I wonder three things:

  1. Am I missing or overlooking something? Isn't there an easy way to measure the percentage of my battery pack from a Raspberry Pi? Aren't there any ready made boards with example code (preferably Python)? I suppose I'm not the first one wanting to do this..
  2. If the answer to 1 is "No" I guess I need to build it myself; am I correct that the TI thing I found is something I can use to achieve what I want?
  3. I'm a programmer, but an early beginner in electronics. Considering this, how hard is it to use the TI chip to achieve what I want?

Note that I don't need an exact figure. An approximation would be fine.

All tips are welcome!

Best Answer

This is the discharge curve for a Panasonic NCR18650B which I believe is a li-Colbalt. The Li-Po is a lithium colbalt.

Discharge is very linear especially with a lower discharge rate.

Li-Po Cutoff Voltage is 3.0V

So you have a 1.2V hysteresis from 4.2 full charge to 3.0 cutoff.

Read it with a ADC board. There are a few sub ten dollar ADC boards for the PI like this: 16 Bit ADC $9.99

enter image description here