This is an old revision of the document!
Lego Rotary Inverted Pendulum
Author: Joao Matos Email: jcunha@id.uff.br
Date: Last modified on 9/9/2016
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:
- Inverted Pendulum Mechanisms
- Automatic Controls Theory (PID and LQR)
- Controls Programming using lego NXT Brick (NQC language).
- Controls Programming using Simulink.
The rest of the tutorial is presented as follows:
- Parts List and Source
- Construction
- System Modeling
- Programming
- Final Words
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: