The main component of the charging system is the alternator which produces electricity when driven by the crankshaft via the alternator belt. The alternator produces alternating current, which is converted into direct current through rectifiers installed in the alternator. The function of an alternator in an automobile is to continually recharge the battery.