I started with the demo of a simple pendulum: mech_spen in MATLAB® and simply added joints and bodies as they exist for the pendulum stand. To get the sliding motion with friction I used a Prismatic joint and used the velocity to compute a force dampening the sliding motion. So my model does not explicitly model the rollers on which the pendulum stand rocks.
Now the problem is that the synchronization does not happen and I am not sure what goes into a metronome that synchronizes the pendulums. Any comments/suggestions are welcome.
Parasar Kodati (2021). Metronome using SimMechanics (https://www.mathworks.com/matlabcentral/fileexchange/21716-metronome-using-simmechanics), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!