Here's how it works:
* Electromagnetic Induction: The fundamental principle behind a generator is electromagnetic induction. When a magnetic field changes near a conductor (like a wire), it induces an electromotive force (EMF), which causes an electric current to flow.
* Moving Magnetic Field: A generator uses a rotating coil of wire within a stationary magnetic field or a stationary coil of wire within a rotating magnetic field. This movement creates a changing magnetic flux through the coil, which induces an EMF.
* Types of Generators: There are many types of generators, including:
* AC generators (alternators): Produce alternating current, where the direction of current flow changes periodically.
* DC generators: Produce direct current, where the current flows in only one direction.
In summary, a generator converts mechanical energy (the movement of the coil or magnet) into electrical energy by utilizing the principle of electromagnetic induction.