Final project for ME 333: Introduction to Mechatronics, winter 2016.
The client, written in MATLAB, communicates with the PIC32 on the NU32 development board via serial port, sending control gains and desired setpoints and motion trajectories, and tracking results are sent back to the MATLAB client for plotting. The PIC32 manages a nested control loop system consisting of a PID outer motion control loop and a high-speed PI inner current (torque) control loop:
With my chosen Kp and Ki, the current control performance was as below:
And the position control performance for arbitrary step and cubic trajectories was:
The most important electronic components of the system and their interconnections are shown in the image below:
Date: Mar 1, 2016
Categories: project