 A coil of wire rotating in a magnetic field produces a current which changes direction with each 180° rotation, an alternating current (AC).However many early uses of electricity required direct current (DC).In the first practical electric generators, called "dynamos", the AC was converted into DC with a "commutator", a set of rotating switch contacts on the armature shaft.