The dynamo uses electromagnetic induction to convert mechanical circular motion into an alternating electric voltage. Such induction can only occur if the magnet and the coil are in relative motion.
Select which object – the magnet (1) or the coil (2) – you want to be rotating.