How to spin a PMSM motor with EVAL_IMD700A_FOC_3SH using MOTIX™ BPA Motor Control Workbench GUI
EVAL_IMD700A_FOC_3SH is an evaluation board fully integrated BLDC/PMSM motor drive solution based on the MOTIX™ IMD701A. MOTIX™ BPA (Battery Powered Applications) Motor Control Workbench GUI is a graphical user interface with parameter configuration for motor control application. The GUI simplifies the process of spinning a PMSM motor using sensorless FOC with the evaluation board, making it easy and convenient for users.
The MOTIX™ IMD701A is Infineon’s fully programmable motor controller integrating XMC1404 microcontroller with 6EDL7141 3-phase gate driver IC in one package. The sensorless FOC firmware functions and all of the 6EDL7141 settings can be quickly changed with the available simple-to-use PC based GUI tool. In addition, with a full suite of system protection features such as OCP, UVLO, and over-temperature, this dedicated motor controller will increase reliability and robustness in severe operating fault conditions.
Despite the many configurations available in the GUI, running a motor can still be accomplished with simple steps, due to the robustness of the algorithm and the intelligence of the gate driver.
1. Installing the GUI
The GUI can be found from Infineon Developer Center. To install the GUI, you need to log in, search for the GUI and then click on “install”.
Figure 1 Installing the GUI
2. Create a new project
In the “Getting Started” tab, click on the “New Project” icon under the “IMD700A 3 Shunts” board.
Figure 2 Create a new project
3. Configuration for hardware
Check the current sense shunt value. Modify the value if it is not correct.
Figure 3 Current sense shunt resistor value
Set a proper gain for the amplifier if necessary according to your current rating of the motor.
Figure 4 Amplifier gain configuration
Make sure the DC link voltage is correct according to your system.
Figure 5 DC link voltage configuration
4. Configuration for protection
Protections must be configured properly to protect the system in case any fault happens.
- Enable the DC link over/under voltage protection.
Figure 6 Enable the DC link over/under voltage protection
- Configure the OCP from the shunt resistors.
Modify the OCP configuration according to your system requirement and the shunt value.
Suggest to enable “Brake on OCP” option, and to set “Brake Configuration” -> “Hi Z” at the beginning.
Figure 7 Configuration for OCP
Figure 8 Brake Configuration
5. Motor parameters configuration
Modify the motor parameters.
Figure 9 Motor parameters configuration
Note: The above mentioned configurations are critical to run a motor. However, it is recommended to check all the configurations in the GUI. It is your responsibility to ensure the safety of the board and the motor.
6. Flash XMC firmware
By clicking “Flash XMC Firmware”, the firmware is flashed into the MCU.
Figure 10 Flash XMC Firmware
The default firmware can be selected.
Figure 11 Select the DEFAULT firmware
7. Write configuration parameters
The configured parameters have to be written to the firmware to make it work. By clicking on “WRITE TO FLASH”, the parameters are written to the flash.
Figure 12 Write parameters to the flash
8. Run the motor in the Test Bench
Now we can run the motor by adjusting the potentiometer on the board. The running status can be seen from the Test Bench tab.
Figure 13 Test Bench
“PID Tuning” and “Oscilloscope” can be launched to tune the control loops PI parameters and to monitor the running waveforms.
9. Finalize the configurations
When the configurations are validated, you can either use the GUI to evaluate the solution, or export the configurations to your firmware project.
As for running the firmware project, refer to this article:
Figure 14 Export the configuration as firmware source code file