<< Chapter < Page | Chapter >> Page > |
The purpose of this step is to close the current loop and to set the PI regulators correctly to get a stable system while the motor is still running in speed open-loop.
Key Modules:
In addition to the modules already used, we use the PI module:
Vd Testing
Ramp GeneratorVq Testing
For ease of use, the default PID parameters are already tuned. You can still play with them and observe the results. Within the watch windows, the PID coefficients are displayed for both iq and id. Using the following picture will help you to interpret the variables.
During this step we will check the encoder feedback and we will align the calculated angle with the shaft angle.
KEY MODULES:
In addition to the modules already used, we use:
Until now, the magnetic field in the motor was generated without taking care of the shaft position. Even if our motor is a synchronous motor, with no load and at load speed, it was easy to expect the shaft to start and to catch the magnetic field without problem. Now, if we want to close the speed loop, we need to know the shaft angle at every moment. The shaft position is given by the encoder but we still have to align the initial sensed position with the shaft.
For this, we use the Data Log module to display in real time the rmp_out variable (angle we used until now to create the magnetic field) and theta_elec (sensed angle).
The purpose of this step is to verify the speed regulator, close the speed loop and tune up the gains for the speed regulator if necessary. All the modules previously described are used in this final step.
The real-time software will run in the following hardware:
For safety reason it is mandatory that you strictly respect the following picture to connect the DMC 550.
During this build, the speed reference will be given to the DSP through a potentiometer placed on the DMC 550 (R66). To start with, please put the potentiometer around its midle position.
The motor should have good response time now thanks to the speed closed loop. As usual the PID controller is already tuned. Using the same graphical display we used during the lab 4 you can see the impact of the PID parameters.
Since all the kits are different, the default settings for the current and speed PID may not be suitable and the maximum command may be instable
Moving the speed potentiometer, you can appreciate the fast and smooth response time!
Notification Switch
Would you like to follow the 'From matlab and simulink to real-time with ti dsp's' conversation and receive update notifications?