Antikythera Mechanism
This is the first ever recorded use of clockwork, and dates back to Ancient Greece, It is speculated to have been used to predict astronomical events such as eclipses, or perhaps to track the 4-year cycle of ancient olympic games.
After detailed imaging, it is suggested that the original mechanism contained 37 gears to follow the sun and the moon, to predict eclipses,