Battery powered magnetic flow meter