 around the country using hydroelectric dams. That's how bicycle lamps work. Bicycle lamps work because the motion of the wheel turns a tiny dial which spins. Connected to the dial is a magnet. The magnet in turn is very close to a wire.