Leonardo da Vinci’s automatic marching-rhythm device was a mechanical drum.
Leonardo designed a drum machine for military use, probably in the late fifteenth century. A cart carried a drum fitted with pegs, and rotating mechanisms caused beaters to strike the drum in sequence. The device could produce a regular rhythm while the cart moved, potentially helping soldiers march in step.
The machine is notable because it converted programmed mechanical movement into music. The placement of pegs determined when the beaters struck, a principle related to later pinned cylinders used in automatic musical instruments. Leonardo’s design also shows how he connected military engineering with mechanical entertainment and automation.
It is sometimes grouped with his famous mechanical lion and robotic knight, but those are separate designs. The drum machine was not a robot in the modern sense; it was a wheeled mechanism programmed to repeat a percussion pattern.