How Can Charging Current Be Controlled?

How Can Charging Current Be Controlled? The charging current is controlled by a switch or transistor connected in parallel with the photovoltaic panel and the storage battery. Overcharging of the battery is prevented by shorting (shunting) the PV output through the transistor when the voltage reaches a predetermined limit. How do you control charging? Toggle