I have a battery loader I built which is already using a 20m2 to control the discharge and run an LCD with the status. I wanted to add the features to my setup to calculate average voltage, amp hours, and watt hours.
In the past I created an amp hour meter by getting my program loops...