Fully automatic charge controller with electronic protective functions for photovoltaic systems with a system voltage of 24 V. The battery is charged with the help of an algorithm for pulse width modulation that has been optimized for photovoltaic systems.