7. Testing and Operation

1. Calibrate the System

In the browser with the T3 software running, click "Calibrate System" under "System Setup."

A safety pop-up will appear. Please read and accept. Please take necessary safety precautions! (Please note, instructions will henceforth skip warning disclaimers.)

Once calibrated, the Status will show "System Calibrated."

2. Execute System ID

Click "Execute System ID" under System Setup.

Follow the directions under the System Setup section.

Once the directions stop, the System ID is calibrated, and ready to test!

3. Test the System

  1. Click "Plot Sensor Data" in order to your ensure that the position sensor is being turned by the arm, the signal is being received by the computer and the software, and the angle measurements are continuous.

After clicking, manually move the arm up and down, and look at the angle reading on the graph. Make sure the readings "make sense" with what the arm is physically doing. After testing, click "stop."

Ensure that you are able to export data by clicking "Export Data." Go through the process of exporting the data to ensure functionality.

Click "Reset Chart and Data" in order to run the next test.

2. Ensure the motor is working. The best way to do this is via directly controlling the motor command. In the image below, you can see three boxes. The red box is the field that controls how much the motor command changes from its current command. Remember that the motor PWM command is represented as a value in the range [0, 1000]. So, to increase the motor command by 10%, you would type 100 in the red box below, then press "Cmd Change" in the blue box below. If the system is currently disarmed, then the arming dialog box will appear after which the system will arm and run at the specified command. Once the system is running, you can put either positive or negative values in the red box and again press the blue box to change the constant command. For example, to step to 20% PWM from 10% PWM, put 100 in the red box (increase by 100 = 10% PWM) and press "Cmd Change" in the blue box. To decrease to 10% PWM from 30% PWM, put -200 in the red box (because the current command is 300) and press "Cmd Change" in the blue box. To stop the system, press "Stop" in the yellow box.

Note: A fun way to use this feature is to first run the controller (discussed in (3) below) until the system is at steady state, then induce a step change to the motor via the "Cmd Change" capability. While the controller is running, the system is keeping track of a moving average value. This enables you to induce a step change from steady state, allowing you to observe the dynamics of the system with the motor already running (i.e. this test will not include the additional time required to spin the motor from off up to a specified PWM; it will already be running in a steady state condition).

3. Ensure motor and controller are working. "Guess and check" controller gains in order to make sure that the system will turn the motor on and the arm will move. Enter values close to what are shown and hit "submit." For "Max I," it may be necessary to put 1000. Ensure that "I" (milliamps) is high enough that the motor will push the arm to the highest possible angle.

Once the system is working, the real engineering begins!

Last updated