I'm currently back of an envelope designing a battery monitor using a picaxe.
If you use 2 current sensors, one in the charge line and one in the discharge line, and a timed interrupt (1/2 second), and accumulate AHrs into 2 variables, ChargeAccu and DischargeAccu, then;
remaining capacity = TotalCap minus DischargeAccu plus ChargeAccu times efficiency
if Vbatt = float then
efficiency = DischargeAccu / ChargeAccu
ChargeAccu = 0
DischargeAccu = 0
if Vbatt = flat then
TotalCap = DischargeAccu plus ChargeAccu times efficiency
My application is a 200 AHr SLA pack in a caravan, running a radio, tv, and some lights, so I don't expect the current drain to ever get high enough to worry about Peukert.
Amanda