How to control the voltage of the battery current