User Tools

Site Tools


lego_rip_simulation_cad

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lego_rip_simulation_cad [2017/02/27 10:26] joaomatoslego_rip_simulation_cad [2017/02/27 11:41] (current) joaomatos
Line 1: Line 1:
-==== How to export your SolidWorks model into Simulink ====+===== Step by Step instructions =====
  
-Follow this simple tutorial to learn how to export your Lego assemblies using SolidWorks to Simulink. Simulink is a powerfull tool to develop and test your controller before you go to the actual project and start coding.  +You can get all the necessary .STL parts to build the RIP project on this file bellow. If you want the assembly already done, you can find inside the folder "only sensors building" named as “PendulumAssembly”. Also you can find my Simulink block diagrams with all the controllers done under the folder "only sensors building" 
- +
- +
- +
----- +
- +
- +
-==== How to export a SolidWorks Lego assembly into Simulink ==== +
- +
-You can get all the necessary .STL parts to build the RIP project on this file bellow. If you want the assembly already done, you can find inside the folder "only sensors building" named as “PendulumAssembly”+
  
 {{::rip_kit.rar| Kit for the RIP project}} {{::rip_kit.rar| Kit for the RIP project}}
Line 71: Line 62:
 **Under Actuation** ,you can enable/disable the input of some torque on this joint. Latter on the controlled version , we will enable torque input on the “motor” joint , to simulate the torque that the motor give to the system (provided by the LQR calculation). **Under Actuation** ,you can enable/disable the input of some torque on this joint. Latter on the controlled version , we will enable torque input on the “motor” joint , to simulate the torque that the motor give to the system (provided by the LQR calculation).
 Under Sensing , is where you can enable the option to get the “real time” data from this joint . For our controlled version , we will enable position and velocity data. Under Sensing , is where you can enable the option to get the “real time” data from this joint . For our controlled version , we will enable position and velocity data.
 +
 +**To get data from the sensing** , connect a simulink "PS-SIMULINK" block to the output port on the right side of the joint block. On the "PS-SIMULINK" block you can set the unit of the variable that you are measuring ( for example , radians for angles , and radians/seconds for velocity ).  **To send data** (for example send the torque input to the motor joint)  you use the "SIMULINK-PS" block. On this block you can set the unit for the input that you are sending, for example N*m for Torque.
  
 With this briefly explanation you should be able to wire some blocks and make your control scheme and see if it works. I will provide my block diagram with the controller using PD provided by the LQR calculation. There is a lot of ways to construct your block diagram , use your creativity!   With this briefly explanation you should be able to wire some blocks and make your control scheme and see if it works. I will provide my block diagram with the controller using PD provided by the LQR calculation. There is a lot of ways to construct your block diagram , use your creativity!  
  
  
lego_rip_simulation_cad.1488219963.txt.gz · Last modified: 2017/02/27 10:26 by joaomatos