Custom Part Manufacturing Guide
Calculating Kinematics of a CTR
Graph Paper In-Plane Bending Experiment
Out-of-Plane Rotation Experiment
This page will guide you through doing a full test of your actuation system.
Download the sample code. Go to https://github.com/comet-lab/CTR_Educational_Platform and download the code. The simplest way is to download the code as a zip file. If you would like to fork the repository or clone it to your device, you can also do that.
Open MATLAB to the folder that you just downloaded. Double click on the Drive.m file to open it. Change the COMPort variable on line 7 to match the COM Port that your laptop assigned the board. (You can check this by opening Device Manager → Ports).
Double click on the test.mscript to open it. This script is separated into seven sections: one for setup, and six short tests.
Run the first section. You can do this by putting your cursor in the first section of code, and clicking the Run Section button. This will set up your workspace variables.
Test your linear motors. For this test, you will run the linear test sections of code. First, run the Test linear 1 section of code. This should move the linear motor on Cart 1 such that Cart 1 translates 10 mm in the forward direction. Here, “forward” means towards the front of the robot. Measure the distance that the cart travels. The distance should be within 0.25mm of 10mm. Repeat this step for linear motors 2 and 3.

Test the rotational motors. Repeat step 5, but run the code sections that are labeled “rotational test.” This should rotate each tube pulley 90 degrees in the positive direction. Here, we define the positive direction as counterclockwise when looking from the front of the robot.

That is all for the electronics test! If everything works as expected, you can move on to writing your own script to control the robot.