Detect battery charging current and voltage