An ignition system generates a spark or heats an electrode to ignite a fuel-air mixture. Common ignition systems include magnetos, battery-operated coils, and electronic ignition modules. Modern systems use an engine control module to precisely time fuel injection and ignition based on sensor readings. Spark-ignition engines are typically gasoline-powered but can run on other fuels, in contrast to compression-ignition diesel engines.