In small generators such as a bicycle dynamo, a small permanent magnet is rotated by the action of the bicycle wheel inside a fixed coil. Alternatively, an electromagnet powered by a fixed DC voltage can be made to rotate inside a fixed coil, such as in large power generators producing in both cases an alternating current.