Clear Filters
Clear Filters

How do I create a controller to stabilize an inverted pendulum in Simulink?

2 views (last 30 days)
I currently have a inverted pendulum designed in Simscape multibody and it moves by shifting the base from side to side using a prismatic joint (and an input signal to determine the position of the pendulums base). I now want to keep the pendulum upright as the base shifts,using some sort of control system, and I'm not sure how to do this.

Accepted Answer

Nikhil
Nikhil on 13 Jun 2023
You can refer to this article Control of an Inverted Pendulum on a Cart which discusses how to design a PD controller for an inverted pendulum model in Simscape. The x (displacement) and theta (angle) data are imported into Simulink where the controller is designed.
Additionally, you can refer to this article for optimising the control loop parameters: Inverted Pendulum Controller Tuning

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!