Leonardo da Vinci’s mechanical drum machine used cams to create rhythm.
The machine was a cart-like musical automaton with drums fitted around its frame. As the mechanism moved, shaped cams engaged levers that struck the drums, producing a programmed sequence of beats. This made it an early example of mechanical music rather than a simple percussion instrument.
A cam is a rotating part whose uneven profile converts continuous rotation into a controlled pushing or lifting motion. Leonardo used this principle in several mechanical studies, making it possible to coordinate repeated actions without a human drummer.
The drum machine is sometimes grouped with Leonardo’s robotic and automaton designs, but it was not the same device as his self-moving cart. The cart was intended to move independently, while the drum mechanism focused on creating sound through timed mechanical contact. Modern reconstructions have helped demonstrate how the cam system could operate.