LiFePO4 battery monitor