A bicycle dynamo is a small electric generator attached to a bicycle wheel that converts mechanical energy into electrical energy through electromagnetic induction. As the bicycle wheel spins, the dynamo's magnet rotates, changing the magnetic flux through coils of wire inside the dynamo.