Motorcycle magneto uses the magnetic force of moving magnet to cut the coil, so that the coil generates induced electromotive force. Because the north and south poles of the magnet cut the coil in turn, the direction of induced electromotive force is alternating, that is, alternating current. Rectifier diode can change alternating current into direct current and charge the battery.