Smart battery discharger/tester

Yes, but since you also know V(R2) you can compensate.

Got it: V(bat) = V(A0) - V(A1) :wink:

This is Version 2:
I have also modified D1 and D2 to A1 and A2 to reflect the (analog) type of measurement

Thanks Alvaro