Gasoline burns and moves engine piston. Up and down piston motion is turned in to rotation by crankshaft. Rotation motion spins shaft that drives a belt attached to alternator. The alternator spins a magnet around a copper coil. This excitation of the magnetic field creates electron flow. Or electricity.
Man that was really bad and probably not eli5 but I’m tired. Sorry. Someone will definitely come along and do better.
Latest Answers