Principle: it works on the principle of electromagnetic induction.
Working : The principle explains that when a straight conductor moves in a magnetic field, then the current is induced in the conductor. According to the principle, the conductor coil is rotated rapidly between the poles of a magnet which is known as an armature. As the armature is connected to a shaft of a mechanical energy source like a motor. The mechanical energy required can be provided by engines operating on fuels such as diesel, petrol, natural gas, and renewable energy sources. When the coil rotates, it cuts the magnetic field which lies between the two poles of the magnet, the magnetic field would have interfered with the electrons in the conductor to prompt a flow of electric current inside it.
Why do we use it: It can ensure a continuous supply of power even when there is a power cut, Electricity can be provided where the power grids are unreachable.