The generator, which was discovered by Michael Faraday, is an ingenious device that converts mechanical energy into electrical energy.