WOLFRAM SYSTEM MODELER

InvertedPendulum

Example of a linear quadratic regulator used to stabilize an inverted pendulum

Package Contents

Components

Components package for the InvertedPendulum example

InvertedPendulumPulse

A LQR-controlled inverted pendulum system

InvertedPendulumHardware

A LQR-controlled inverted pendulum system, controlled by external hardware using the ModelPlug library

Information

Library Dependency

This model requires the ModelPlug and PlanarMechanics libraries.

  • ModelPlug is a free Modelica library that allows you to link your simulation models to the real world by the use of an Arduino Board or any other board following the Firmata protocol). ModelPlug opens up a wide variety of ways to interact with your models, for example by using buttons, switches, input sensor information or even actuators such as motors and servos.
  • The free PlanarMechanics library was created especially for modeling multibody systems with two-dimensional mechanical components. Compared to the MultiBody library, currently available in the Modelica Standard Library, it is simpler to use and it is more optimized to planar modeling. Planar models of mechanical systems are useful in many different applications, for example, in contact problems that are more easily modeled in 2D than in 3D.

Wolfram Language

In[1]:=
SystemModel["EducationExamples.MechanicalEngineering.InvertedPendulum"]
Out[1]:=