How to charge the battery with a DC regulated power supply