What is the function of split rings and carbon brushes in a dc motor

What is the function of split rings and carbon brushes in a dc motor

The primary function of carbon brushes is to deliver or collect current from a rotating part of an electric machine. The brushes should maintain a close contact with rotating part (commutator or slip rings) in order to ensure sparkles operation without wearing itself too quickly.

The difference between an AC and DC generator is that the AC generator uses slip rings to transfer the current to the electrical circuit while the DC generator uses split ring commutator.