Remusco
- 30
- 3
- TL;DR Summary
- I built a rotary inverted pendulum system, and am getting different natural frequencies in the simulation vs. in reality.
I have built this inverted pendulum system (powered by a stepper motor).
I define theta to be the pendulum angle 0 degrees in the vertical position, phi is the motor arm angle.
When I let the physical pendulum go at theta = 90 degrees, with the stepper motor turned off, I get:
Now if I also plot the simulated result on top of this (with equations derived from Lagrangian Mechanics, I get:
However, the frequencies do line up when I use basic Newtonian mechanics. Why is there a difference?
This is the equation I derived using Lagrangian mechanics:
To find b_theta I simply iterated until both plots aligned.
As another weird thing. If I just use I_p in the denominator, the pendulum oscillates correctly (with the correct frequency). However, then the pendulum performs horribly when any control torque is applied. So is there a middle ground here that is correct? Do I use I_p or 4*I_p + m_p*L_p**2???? Either way does not make sense. My derivation is in the Colab link below.
https://colab.research.google.com/drive/1_uAv3Jj6wQPyN1OhDRKam-ZLRShalRYy?usp=sharing
I define theta to be the pendulum angle 0 degrees in the vertical position, phi is the motor arm angle.
When I let the physical pendulum go at theta = 90 degrees, with the stepper motor turned off, I get:
Now if I also plot the simulated result on top of this (with equations derived from Lagrangian Mechanics, I get:
However, the frequencies do line up when I use basic Newtonian mechanics. Why is there a difference?
This is the equation I derived using Lagrangian mechanics:
To find b_theta I simply iterated until both plots aligned.
As another weird thing. If I just use I_p in the denominator, the pendulum oscillates correctly (with the correct frequency). However, then the pendulum performs horribly when any control torque is applied. So is there a middle ground here that is correct? Do I use I_p or 4*I_p + m_p*L_p**2???? Either way does not make sense. My derivation is in the Colab link below.
https://colab.research.google.com/drive/1_uAv3Jj6wQPyN1OhDRKam-ZLRShalRYy?usp=sharing
Last edited: