If you are interested in how similar devices might have been made 100s and 1000s of years ago you should check out the latest videos on the Clickspring Youtube Channel [1]. Chris is building a copy of the Antikythera mechanism (mostly) without using modern tools and he is doing a stellar job.
The quality of his videos and his attention to detail is _amazing_! If you are into this kind of stuff you will most likely end up binge watching his whole channel over the weekend.
[1] https://www.youtube.com/channel/UCworsKCR-Sx6R6-BnIjS2MA