TN1-DesignRobotUsingSolidworksMATLAB-22.02.2018-English
TN1-DesignRobotUsingSolidworksMATLAB-22.02.2018-English
1. Introduction
Simscape Multibody Link is a plug-in that you install on your CAD application to export your
CAD assembly models. The plug-in generates the files that you need to import the model into the
Simscape Multibody environment in MATLAB. From this file, users can program, simulate the
motion of the model (designed by CAD) by attaching sensors, actuators, signal system, etc. into
the model.
You can install the plug-in on 3 CAD applications: SolidWorks, Autodesk Inventor, and PTC
Creo. In this Laboratory lesson, we design a robot in SolidWorks and after that, we import this
model into MATLAB for programming.
Goals:
Have ability to design a mechanical model (robot) using Solidworks.
Have ability to export a designed file in CAD and import this file into MATLAB using
Simscape Multibody Link.
Have ability to simulate robot motion using Simscape Multibody environment of
MATLAB.
3. Experimental Content
3.1 Time: 4.25 hours for each group of students.
3.2 Content
Students do following steps:
- Step 1: Design and assemble a 2DOF robot in SolidWorks (the robot is shown in Figure 1). Next
you should save as an assembly file.
- Step 2: Export a designed 2DOF robot to XML format file and import this file to MATLAB
using Simscape Multibody Link.
- Step 3: Change the color of each link of robot: the base link is grey, the first link is blue, the
second link is red, the end-effector link is green.
Guide: Doule click the desired link (need to change color) and choose Visualization.
- Step 4: Attach a “Body Sensor” to the end-effector link to measure the position of the end-
effector and show this position on Scope, Graph.
Guide: In the end-effector link, add a CS3 coordinate system. The origin of this frame is in the top
of the end-effector. Next, we need to attach a “Body Sensor” in ths frame.
- Step 5: Attach sensors “Joint Sensor” to joint 1 and joint 2 to measure the angles as these joints
and show on Scope.
- Step 6: Attach actuators “Joint Actuator” to joint 1 and joint 2. Choose control mode of Force or
Motion.
- Step 7: Program to control joint 1 and joint 2 to rotate desired angles according to time.
(Example: Joint 1 rotates 60 degrees, Joint 2 rotate 90 degrees).
Step 2:
Step 3:
Step 4:
Step 5:
Step 6:
Step 7:
References
[1] Website MATLAB
Name of Student:……….………….……..………Student ID:……...….………….Group:………
Name of Student:……….………….……..………Student ID:……...….………….Group:………
Name of Student:……….………….……..………Student ID:……...….………….Group:………