Respuesta :

A generator.

For example a diesel motor spins the magnets on a shaft to induce electrical energy into the stationary windings

Wind generators are the same principal without burning fossil fuels.