I am trying to create a physics lab using a simulated pendulum. The students will have to time the period of the pendulum and calcualte the acceleration of gravity using an equation. The only way I have found to time the period of the pendulum is with the Timer X extension. It allows me to set every so many ms using an expression which is calculated based on the length of the pendulum and the acceleration of gravity.
Now the problem. I cannot seem to get enough precision in the setting of the period of the pendulum. Since I cannot set the Timer X object in fractions of a ms, the error in the round off is too large. The less round off error I have, the worse the simulation of the swinging pendulum looks.
Anyone have any ideas, other extensions, some sneaky work around to solve this problem? Any help appreciated.
The attached file is a rough first beta of the simualtion. The error is the difference between the time (ms) for each 6 degrees and the same as an integer. The simulation looks worse the more degrees are skipped between each drawing of the pendulum string and the movement of the bob (weight on the end of the string).