How Do You Model an Inverted Pendulum with a Moving Base?

  • Context: Undergrad 
  • Thread starter Thread starter collinpetty
  • Start date Start date
  • Tags Tags
    Pendulum Simulation
Click For Summary
SUMMARY

This discussion focuses on modeling a single-axis inverted pendulum with a moving base using a PID control system. The key mathematical approaches recommended include Newton's Second Law and the Lagrange formulation to account for large angle motion. The model should encompass both the pendulum's motion and the cart's motion, requiring the development of equations of motion for both components to achieve two degrees of freedom. Participants are encouraged to define variables and create free body diagrams to facilitate accurate modeling.

PREREQUISITES
  • Understanding of PID control systems
  • Familiarity with Newton's Second Law
  • Knowledge of the Lagrange formulation in mechanics
  • Ability to create free body diagrams
NEXT STEPS
  • Research the mathematical modeling of inverted pendulums
  • Learn about PID controller tuning techniques
  • Study the derivation of equations of motion using Lagrangian mechanics
  • Explore simulation tools for dynamic systems, such as MATLAB or Simulink
USEFUL FOR

Engineers, robotics enthusiasts, and students in physics or control systems who are interested in dynamic modeling and simulation of mechanical systems.

collinpetty
Messages
1
Reaction score
0
Hello,

I am attempting to build a single axis inverted pendulum using a PID system to keep the rod balanced. I am interested in writing a program to simulate the rod tipping over and the effects of moving the base (pivot point) left or right to counter the tipping effect. I can't quite figure out the math to model a rod of uniform density that is standing on end falling over. I remember learning formulas for pendulums in physics class but it was for pendulums that swing less than 15 or so degrees (assuming that for values close to 0 sin(x)=x). Also, I'm not sure I know how to model a scenario where the base of the rod that is tipping over is pushed quickly back "under" the rod (beneath and actually slightly past the center of mass of the rod). Any and all help would be appreciated.

Collin
 
Physics news on Phys.org
Before you can worry about making a simulation, you need to get the correct mathematical model, including large angle motion, as you noted. You will need to settle upon an approach to the problem, either by using Newton's Second Law, or by using the Lagrange formulation, if you are familiar with that method. You need to give some thought to what you will include in your model. Will you model only the motion of the pendulum itself, or do you also need to model the motion of the cart (slider, or whatever you want to call it) that carries the pivot point? For a complete system model, you will need to include both, which means that you will need to develop equations of motion for both the pendulum and the cart, so that there will be 2 degrees of freedom. Begin by carefully defining your variables, drawing free body diagrams if you are going to use Newton's second law, and then put together the equations of motion. Good luck.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
3K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K