construction of a 12v battery charger with overcharging protection mechanism