User Tools

Site Tools


lego_rip_modeling

This is an old revision of the document!


System Modeling

After following this tutorial you will be able to find the full state feedback gains to be used on the NQC Code to control your Lego Rotary Inverted Pendulum.

The first derivation is for the virtual simulation using Simulink - The output is the Torque. The second derivation is for your real project , that will use the DC-motor voltage as output.

References [1] [2] [3] [4] [5]

You can find the Matlab Script to run the [K] matrix calculation here rip_kit.rar


Use this derivation if you want to simulate the system virtually trough Simulink. This derivation will neglect the friction in the motor rotation , friction in the pendulum rotation and will USE TORQUE as input to the state-space representation . The real model , have rotation friction , and use Voltage in the DC motor as input ( you can find this derivation on this same page).


Derivation for Real Project

This derivation is closer to reality the output from the state-space representation is the DC voltage, that is applied to the Lego Motor.

lego_rip_modeling.1500676502.txt.gz · Last modified: 2017/07/21 15:35 by joaomatos