(See full mathematics derivation: Practice Problem 5 Presentation.pdf)
Simulating and controlling 2D inverted pendulum with pole-placement method in MATLAB
Parameters | Values |
---|---|
Rod's mass ( |
|
Wheel's mass ( |
|
Rod's half length ( |
|
Drag coefficient ( |
Parameters | Values |
---|---|
Wheel's initial position ( |
|
Wheel's initial velocity ( |
|
Rod's initial angle ( |
|
Rod's initial angular velocity ( |
Parameters | Target values |
---|---|
Wheel's position ( |
|
Rod's angle ( |
Define the axes with position direction as follow:
Free-body diagram |
Assuming the rod has uniformly distributed mass, hence the center of gravity
The time derivation can be obtained as
One of the most efficient ways to find the equation of motion of mechanical system is the Lagrangian method.
To use the Lagrangian method the total Kinetic energy (
wheelpend_freefall_compressed.mp4
wheelpend_control_slow_compressed.mp4
wheelpend_control_medium_compressed.mp4
wheelpend_control_fast_compressed.mp4
[1] Steve Brunton. (2017, January 29). Inverted Pendulum on a Cart [Control Bootcamp]. Youtube https://youtu.be/qjhAAQexzLg
[2] Steve Brunton. (2017, January 29). Pole Placement for the Inverted Pendulum on a Cart [Control Bootcamp]. Youtube https://youtu.be/M_jchYsTZvM