How to measure the current across the battery