This is how I implemented the motion for my simple pendulum videos. Basically, code simple harmonic motion for one pendulum, and then back calculate the length of all pendulums such that they have an integer number of cycles in a given amount of time.
I used a small angle approximation, even in cases that wouldn't be appropriate.
PSU site for pendulum motion is
https://www.acs.psu.edu/drussell/Demo...
Full code with Manim
https://pastebin.com/F42xSZp9
The backend code that I showed here (just the position of the pendulum without the actual part that animates it)
https://pastebin.com/Encps2Zx
https://pastebin.com/WBpMHihj
Computer monitor image in the thumbnail
https://pixabay.com/vectors/lcd-monit...