Table of Contents

Lego Rotary Inverted Pendulum

Author: Joao Matos Email: jcunha@id.uff.br
Date: Last modified on 02/27/2017
Keywords: Rotary Inverted Pendulum , LQR, NXC.

This tutorial presents a Rotary Inverted Pendulum built with Lego parts and controlled using LQR in Simulink and NQC Language.


Motivation and Audience

This tutorial's motivation is to study about the mechanisms behind the control of a rotary inverted pendulum ,using Lego to build the structure and the NXT Brick to program the balance code using NQC language and the Simulink environment. Readers of this tutorial assumes the reader has the following background and interests:

The rest of the tutorial is presented as follows:


Parts List and Source


Construction


System Modeling


Programming



Final Words

Simulink Version:

Bricx Command Center Version:

Special Thanks to Dr Oh . This Tutorial is based on the following papers and projects:

[1]

[2]

[3]

[4]

[5]

[6]

[7]