Can I read the voltage of an externally connected battery through J4 input on UPS hat?

If I use this unregulated battery here: V70 IoT Battery Pack - 19,200mAh, 71Wh
J7 Pin specifications: Technical Details

Its voltage seems to fall in between what’s supported by the hat, but does the hat’s API allow us to reach the voltage of the J7 pin to estimate battery percentage?


Yes, you can read all values except the temperature value. Note that you need to set the battery capacity with the set_battery_design_capacity function.