Battery voltage detection system design