Lipo Charging and Power Left Measurement
When charging a Lipo on the expansion board I'd like to see how many percent the Lipo is charged and during normal usage I'd like to see how many percent of power is left, just like with a mobile phone. How can I achieve this?
The charging chip (BQ24040) doesn't provide this information, you'd need one with a so called "fuel gauge" or a coulomb counter.
The best you can do with the expansion board is track the battery voltage via G3 (which comes from a voltage divider) - see this topic https://forum.pycom.io/topic/226/lopy-adcs/12 - but for LiPo batteries this will be a VERY rough approximation.