Commutator is a rotary electrical switch in certain type of electrical motor and generator that periodically reverse the current direction between the rotor and the external circuit. Commutator act as rectifier which convert AC current to DC current in DC generator .