lego_rip_modeling
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lego_rip_modeling [2016/04/30 17:40] – created joaomatos | lego_rip_modeling [2017/07/21 15:37] (current) – joaomatos | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | . | + | ===== 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** | ||
+ | [[http:// | ||
+ | [[http:// | ||
+ | [[http:// | ||
+ | [[http:// | ||
+ | [[http:// | ||
+ | |||
+ | |||
+ | **You can find the Matlab Script to run the [K] matrix calculation here ** | ||
+ | {{: | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Derivation for Simulink Simulation ===== | ||
+ | |||
+ | 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.1462063236.txt.gz · Last modified: by joaomatos