lego_rip_modeling
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lego_rip_modeling [2016/09/09 15:26] – joaomatos | lego_rip_modeling [2017/07/21 15:37] (current) – joaomatos | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | **SYSTEM MODELING** | + | ===== System Modeling ===== |
- | This section is divided as following: | + | After following |
- | * SELECTING THE CONTROL METHOD | + | The first derivation is for the virtual simulation using Simulink |
- | * STATE-SPACE REPRESENTATION | + | |
- | * FINDING THE STATE-SPACE REPRESENTATION | + | |
- | * CALCULATING THE OPTIMAL GAIN MATRIX USING MATLAB | + | |
- | + | ||
- | After reading this steps , you will find the full state feedback gains to be used on the NQC Code to control our Rotary Inverted Pendulum. | + | |
**References** | **References** | ||
Line 15: | Line 10: | ||
[[http:// | [[http:// | ||
[[http:// | [[http:// | ||
+ | [[http:// | ||
+ | **You can find the Matlab Script to run the [K] matrix calculation here ** | ||
+ | {{: | ||
- | **Useful Programs ** | ||
- | {{:: | ||
---- | ---- | ||
+ | ===== Derivation for Simulink Simulation ===== | ||
- | **SELECTING THE CONTROL METHOD | + | 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). |
+ | |||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
- | {{:: | ||
---- | ---- | ||
- | **STATE-SPACE REPRESENTATION ** | + | ===== 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. |
- | ---- | + | {{ :: |
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
+ | {{ :: | ||
- | **FINDING THE STATE-SPACE REPRESENTATION ** | + | {{ :: |
+ | {{ :: | ||
+ | {{ :: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | ---- | ||
- | **CALCULATING THE OPTIMAL GAIN MATRIX USING MATLAB** | ||
- | |||
- | {{:: | ||
- | {{:: | ||
- | {{:: | ||
- | {{:: |
lego_rip_modeling.1473459993.txt.gz · Last modified: by joaomatos