The Leonardo da Vinci invention that counted distance traveled by a cart was an odometer.
Leonardo designed a wheel-based odometer in the late fifteenth century. As the cart moved, a wheel turned and drove a series of gears. After a set number of rotations, the mechanism released a pebble into a container, allowing the operator to count the distance in measured increments.
The design was useful for surveying, mapping, and planning roads or fortifications. It converted continuous rolling motion into a count that could be recorded. Leonardo’s version was not a modern dashboard instrument showing a numerical mileage total, but it used the same central principle: distance can be estimated from wheel circumference and the number of revolutions.
An odometer differs from a speedometer. An odometer records accumulated distance, whereas a speedometer indicates how fast something is moving at a given moment. The ancient Greeks had earlier distance-measuring devices, so Leonardo’s contribution was a refined mechanical design rather than the first odometer in history.