Hey @Mark285907,
That looks more like it! Maybe a few little values to tweak to get it perfect, but that really depends on how accurate you need this to be.
The battery % above 80% stands out to me as unusual. I have pulled This Graph from another one of our forum posts on LiPo batteries for reference. I would expect a voltage reading larger than 4V to indicate a charge above 90%, but it doesn’t look like it is recording more than about 87% even at these voltages.
It does seem like you are getting a pretty accurate idea of the battery drain over time so getting this ‘perfect’ may be more effort than it is worth.
Thanks for keeping us in the loop!