How to change the voltage when using battery as power source