Commutator (electric)  A commutator is a rotary electrical switch in certain types of electric motors and electrical generators that periodically reverses the current direction between the rotor and the external circuit. It consists of a cylinder composed of multiple metal contact segments on the rotating armature of the machine. Two or more electrical contacts called "brushes" made of a soft conductive material like carbon press against the commutator, making sliding contact with successive segments of the commutator as it rotates. The windings (coils of wire) on the armature are connected to the commutator segments. Commutators are used in direct current (DC) machines: dynamos (DC generators) and many DC motors as well as universal motors. In a motor the commutator applies electric current to the windings. By reversing the current direction in the rotating windings each half turn, a steady rotating force (torque) is produced. In a generator the commutator picks off the current generated in the windings, reversing the direction of the current with each half turn, serving as a mechanical rectifier to convert the alternating current from the windings to unidirectional direct current in the external load circuit. The first direct current commutator-type machine, the dynamo, was built by Hippolyte Pixii in 1832, based on a suggestion by André-Marie Ampère. Commutators are relatively inefficient, and also require periodic maintenance such as brush replacement. Therefore, commutated machines are declining in use, being replaced by alternating current (AC) machines, and in recent years by brushless DC motors which use semiconductor switches. A commutator consists of a set of contact bars fixed to the rotating shaft of a machine, and connected to the armature windings. As the shaft rotates, the commutator reverses the flow of current in a winding. For a single armature winding, when the shaft has made one-half complete turn, the winding is now connected so that current flows through it in the opposite of the initial direction. In a motor, the armature current causes the fixed magnetic field to exert a rotational force, or a torque, on the winding to make it turn. In a generator, the mechanical torque applied to the shaft maintains the motion of the armature winding through the stationary magnetic field, inducing a current in the winding. In both the motor and generator case, the commutator periodically reverses the direction of current flow through the winding so that current flow in the circuit external to the machine continues in only one direction.