How to adjust the charge of capacitor