Synchronized Metronomes

Yesterday a tweep of mine posted this

and it got me thinking. First, here’s the youtube he’s refering to:

I wanted to see if I could model it in Mathematica. As usual, my first attempt didn’t quite get it right. But, eventually, I got it figured out. For those of you who just want to see the animation:

Ok, so how’d I do it? First I tried just coupling several pendula to a common base. I was able to determine the equations of motion quite quickly using the Lagrangian formalism and Mathematica’s excellent ability to abstract things. There’s a screenshot below showing what I mean about that. I was able to make a few animations using varying values for the friction, etc, but I never really got the synchronization I was looking for.

Here’s what I was thinking: every system has a set of normal modes where every dynamic variable oscillates with the same frequency. I figured that each mode would have a different average speed of the particles and so the slowest ones would last the longest in the presence of friction. I still think that’s true, but the problem is that you’ll only see the synchronization at very small amplitudes. It didn’t seem like that’s what was going on in the original movie, so I thought I’d do a little digging.

It turns out that there’s a nice publication in the American Journal of Physics all about this that came out in 2002. In there, I learned how to model metronomes, as it turns out assuming they’re just simple pendulums (ok, grammar nazis: pendula), but rather, they’re pendula with an added van der Pol term that tries to keep them at a fixed amplitude. Basically, there’s a term that augments the friction term so that when the angle is less than your target amplitude, it adds energy to the system, and when it’s larger than your target amplitude, it takes energy out of the system.

So, by simply changing one line in my code, I was able to see the synchronization. Pretty cool!

Here’s the screenshot:

Shows the Mathematica code for my simulation

About Andy Rundquist

Professor of physics at Hamline University in St. Paul, MN
This entry was posted in mathematica, physics. Bookmark the permalink.

10 Responses to Synchronized Metronomes

  1. Kris Shaffer says:

    That is awesome. György Ligeti, the composer I studied for my dissertation, wrote a piece for 100 metronomes purposefully out of sync ( Maybe I should try to arrange a performance of that piece mounted on cylinders and see if this scales.

  2. Pingback: What I need from FOSS | SuperFly Physics

  3. Paul Gribble says:

    After looking at various papers on the topic I found some equations of motion, did some algebra and wrote some python code. Here is the result

    video of simulation results animated:

    python code:

  4. Pingback: You are getting sleeeeeeepy….. » Gocnhin Archive

  5. Pingback: You are getting sleeeeeeepy….. | Cosmic Variance » Gocnhin Archive

  6. Pingback: You are getting sleeeeeeepy….. – 56th Edition » Gocnhin Archive

  7. Pingback: Synchronization of metronomes and why physics rocks | Science Teaching Tools

  8. Bryan says:

    Actually, the grammar nazis will tell you that “pendulums” is the correct plural.

  9. Pingback: Relativistic Lagrangians | SuperFly Physics

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s