Use battery to power energy storage and measure current