How a Mechanical Watch Keeps Time (Interactive 3D)

(martincmartin.github.io)

57 points | by martincmartin 2 days ago

6 comments

  • luplex 0 minutes ago
    I found a tiny little error: the second hand does not take one minute to go once around the watchface. It takes about 59 seconds.
  • dgrcode 1 hour ago
    • martincmartin 44 minutes ago
      Author here. It was partially inspired by that, as mentioned in the second paragraph. When I first read that, I was confused at a few points. For example, Bartosz starts with the mainspring and in the last diagram of the Power section says "the hand spins way too fast." My first thought was "well you could adjust the tension in the mainspring somehow to make it slower!" So I wanted to start with the hairspring, and explain how it keeps time so accurately, it was actually a pivotal invention in the history of horology (watch making).

      I also wanted something that would focus on the basics for an audience who had never seen this stuff before. The Bartosz page is great, but it goes into a lot of detail on all sort of stuff that can be kind of overwhelming on a first reading.

    • o4c 29 minutes ago
      He is an artisan, and I'm curious why Ciechanowski isn't making any new posts?
    • anygivnthursday 1 hour ago
      Thank you for sharing, this is so much better and less artificial
      • martincmartin 39 minutes ago
        Author here, what makes you think my page is more artificial? It was originally designed as a quick slide presentation, but my style is very minimal words on the screen, I find they distract from the speaker. So I wanted to publish a version with the images from the slides plus text to explain them. If you think of it that way, it may explain choices such as the minimal color palette and thick lines. They're designed to work in a bar with bad lighting, and also for red-green color blind people, those ended up being a significant constraint on how much colors had to differ.

        Still, I'm happy with how it turned out.

        Or was there something else that made it seem artificial?

        • jjbinx007 28 minutes ago
          Just out of interest, did you use Claude to help write the text? Some of it triggered my AI-dar but it might have been a false positive.
          • martincmartin 11 minutes ago
            Claude wrote the first version of the text from my notes, but it wasn't in my voice, and it emphasized all the wrong things and left out important stuff, so I rewrote it all. A few phrases and wordings probably slipped through. What in particular triggered your AI-dar? TBH, I was kind of worried that would happen, and kept re-reading things and thinking "would I really say that?" But I'm confident everything in there is something I would say, in a way I would say it, even if it wouldn't be my first choice of wording.
    • evannotfound 57 minutes ago
      Thank you. This is so much more detailed and feels more human than AI-generated slop.
      • martincmartin 21 minutes ago
        Author here. I agree, I love Bartosz's page and it is much more detailed, in fact I found it kind of overwhelming and getting lost in the weeds when I first read it, so created this partly as an introduction or primer for it. Think of this as 101, and Bartosz as a full reference.

        Full disclosure, I did use AI to help create this, but it's about as far from slop as possible. I created the outline for the talk and the topic of each slide before engaging AI, and would fix some code by hand, although I'm a systems programmer and not front end, so it mostly handled that.

        Fun story: the second script it made, to generate the watch model (at the time it was an SVG, I later decided to convert it to WebGL), it kept the data in a dict, e.g.

          TEETH = {"center": 46,
                   "third": 38,
                   ...
                   }
        
        And another dict for radius, another dict for center location, etc. I was blown away, I hadn't seen code that bad since I programed in BASIC in the '80s. You don't even need Object Oriented programming, you just need structs, I started gathering everything together in one struct when I first learned C in the 1990s.

        I asked it why it did that, and it said "Oh I followed the style of your other script" which was a throw away script for an experiment. I have no idea where it learned this style, maybe lots of throw away code in its training data, or code written more by scientists/mathematicians rather than software engineers? I'm genuinely at a loss. So I created my first coding agent skill, a Python code quality skill, that starts with "if you're using dict literals with string literal keys, consider a dataclass or class instead."

        It did write the first draft of the text from my notes, but none of it was in my voice, and it emphasized all the wrong things so I rewrote it all. I'm sure an AI phrase or two slipped through, but it's about as far from slop as AI assisted code/writing could be.

  • jstanley 1 hour ago
    Nice work, but it looks to me as if the escape wheel is unable to provide any impulse to the pallet so I think this watch will not work with the pallets shaped as shown.

    After unlocking, the tooth of the escape wheel needs to press against the pallet, which will press against the impulse jewel, to add some energy to the balance, otherwise the balance will come to a stop.

    It would be good to be able to slow down the animations to check this.

    The escapement really has two jobs. One is to limit the rate at which the mainspring can unwind, and the other is to supply energy to the balance so that the balance keeps swinging.

    (Source: I have spent a lot of time designing clock and watch mechanisms, I wanted to make my own wristwatch but eventually gave up, some notes in https://incoherency.co.uk/blog/stories/the-watch-project.htm... - here's the best model of my escapement that I made: https://www.youtube.com/watch?v=NW2_8KEqEEE )

    • martincmartin 54 minutes ago
      Author here. Very true. This is for people going from no watch knowledge to their first understanding of how watches work, and when choosing between accuracy and clarity, I usually picked clarity. For example, most watches beat faster than once a second, but a hairspring moving that fast is hard to see. Also, most watch gears have more teeth, but fewer teeth is easier to grok.

      I thought of talking about how the pallet stones slide along and are actually pushed by the escape wheel's teeth, and therefore accelerate and knock the impulse jewel. But that would have involved slow motion and zooming in, and felt like an extra level of depth beyond the basics, like a "watch mechanisms 201" where this was 101.

      Also, while showing an early version of this to a friend, and pointing out the impulse to the jewel, they said "wait why do you need that, the hairspring oscillates on its own?" I pointed out that with friction it would stop before long. Bringing friction into all parts opens up a can of worms where you want to talk about lubrication and jewels where the arbors contact the main plate, and that was definitely beyond what I was aiming at here.

      • jstanley 19 minutes ago
        That makes sense but I think dropping in at least a sentence about how the escapement needs to provide energy to the balance would be worthwhile.

        As it stands the article basically acts like the balance works by magic and is liable to confuse readers in my opinion.

  • Luc 29 minutes ago
    I found this quite useful. It's at a different level of abstraction than Ciechanowski's, and a good way to pick up the basics and some jargon when you don't want to spend a lot of time and effort on it. And for me, it helps to have the same thing explained in different ways.

    I understand the negative reactions but if you're interested in watch mechanisms I found it useful.

    • martincmartin 16 minutes ago
      Author here, thanks for the kind words! I agree, that's why I created it.

      There's a local group of friends that gets together every few months, and I wanted to explain my fascination with watches to them. I got a 3D printed plastic model, but it was hard to explain why e.g. the hairspring moves back and forth (we don't think of curved objects doing that, we're more likely to think of straight objects being back towards straight) and that the mainspring was pushing things (I would bend the escapement out of the plane so the mainspring could run to show them). I thought of projecting Bartosz's page, but I'd have to hunt around in it for the specific things I wanted to show, so I decided to make a "quick" presentation, and then it just got more and more elaborate lol.

  • 8-prime 1 hour ago
    Nicely done. Its hard to grasp how such a small spring is able to drive a watch for anything more than a few seconds.
    • martincmartin 35 minutes ago
      Author here, thanks for the kind words! Another aspect which I didn't get into in the post is how this all runs for 40+ hours on a simple wound spring, which is a tiny amount of energy. Friction is a real problem, which drives a lot of the design. Escapements evolved through the ages, one goal being to minimize friction.