TIDUF31B May 2023 – September 2024
The Sensorless-foc
project
for TIDA-010250 is now active. Click the Build button or select the
Project → Build Project menu, the .out
file is
now generated after the compilation is finished. Figure 4-5 shows the resulting project build.
Now open the ISR.c
file to check
motor parameters, see the register map section in the Sensorless FOC Motor
Control User Guide, this guide is found in the MSPM0 SDK folder:
<install_location>\ti\mspm0_sdk_2_01_00_03\docs\english\middleware\motor_control_bldc_sensorless_foc
Figure 4-6 shows file location.
This design guide introduces all the registers for the FOC algorithm, the designer can also add or remove some special functions of FOC using those registers. Figure 4-7 shows the register map.
Motor and control parameters are found in
ISR.c
, which can be updated per the motor and system of the
user. The parameters for motor EMJ_04APB22,
unit of each parameter are shown below. For more information, see the MSPM0 Sensorless FOC Tuning Guide application
note.
pUserInputRegs->systemParams.mtrResist = 2627; // Rs(mR)
pUserInputRegs->systemParams.mtrInductance = 8608; // Ls(uH)
pUserInputRegs->systemParams.mtrBemfConst = 3779; // 10*BEMP, BEMF(mVpHz)
pUserInputRegs->systemParams.voltageBase = 258.6; // Vbase(V)/sqrt(3)
pUserInputRegs->systemParams.currentBase = 8.25; // Ibase(A)
pUserInputRegs->systemParams.maxMotorSpeed = 200; // Maximum Speed(Hz)
pUserInputRegs->systemParams.speedLoopKp = 0.0539; // Speed Loop Kp
pUserInputRegs->systemParams.speedLoopKi = 0.036; // Speed Loop Ki
pUserInputRegs->systemParams.currLoopKp = 3.42; // Current Loop Kp
pUserInputRegs->systemParams.currLoopKi = 3678; // Current Loop Ki
After update motor and control parameters, click
the Compile button, no error information and the .out
file
are created in the Console window, see Figure 4-8.