LiFePO₄ generator