The following animation shows how waterpower was used to generate a hammering motion from the rotation of an undershot waterwheel.