A cam is a mechanical element that rotates or moves forwards and backwards to create a set motion in contact with an element known as follower.