
A commutator is a rotary electrical switch in certain types of electric motors and electrical generators that periodically reverses the current direction.
To change polarity rapidly. A plastic bar with two terminals and two brushes is pivoted to rotate over two contact strips so that its rotation reverses the polarity of connections on the base