Simulink Embedded Coder Support Package for Texas Instruments C2000 Processors package: Sensorless Motor Parameter Estimation using LAUNCHXL-F28069M MCU

8 views (last 30 days)
Hello,
I'm using LAUNCHXL-F28069M and BOOSTX-DRV8301 to run the PMSM motor with 21 poles.
In order to get the motor parameters, I have tried to follow the example ( Estimate PMSM Parameters Using Recommended Hardware ).
However, their example only supports other MCUs with motor drivers
1. F28069M control card with DRV8312-69M-KIT inverter
or
2. LAUNCHXL-F28379D controller BOOSTXL-DRV8305 inverter
Can I apply this Simulink example to my hardware? (I tried but It seems that serial communication processes are different.)
Thank you!

Accepted Answer

KrishnaKumar
KrishnaKumar on 9 Nov 2022
You can check Estimate PMSM Parameters Using Custom Hardware - MATLAB & Simulink Example (mathworks.com) for using parameter estimation with custom hardware.
  3 Comments
KrishnaKumar
KrishnaKumar on 8 May 2023
Edited: KrishnaKumar on 8 May 2023
I can see that there is information on the function interfaces in generated code and how to integrate with driver code. Could you be more specific on what information is missing?
F28069M is a supported controller and blocks for the same should be available in the c2000 library, you can modify the matlab project in https://www.mathworks.com/help/mcb/gs/estimate-pmsm-parameters-using-custom-hardware.html using these blocks to deploy on the target.
Gu-Cheol Jeong
Gu-Cheol Jeong on 19 May 2023
Edited: Gu-Cheol Jeong on 19 May 2023
Hi Kumar,
Currently, I use the "mcb_open_loop_control_f28069MLaunchPad.slx" to run the PMSM motor and used "Estimate PMSM Parameters Using Custom Hardware" algorithm that you linked above https://www.mathworks.com/help/mcb/gs/estimate-pmsm-parameters-using-custom-hardware.html.
I have two questions for this. ON Estimate PMSM Parameter Using Custom Hardware page,
They build the C code and integrate this for the Custom Hardware Driver.
  1. I made the parameter_estimation_step function. I wonder where should I integrate this to the ADC Code. I found the ADC_conversion code in motor control code(the second screenshot). What kind of information I need to take a look at and is there anything I can refer the sample code?
2. I just added the parameter estimation code to the ADC motor control code like the thrid screenshot.
In parameter estimation function, the "estimateMotorParamAlgoExpo.m" function file is missing. Do you know how to find this?
Thanks!

Sign in to comment.

More Answers (0)

Categories

Find more on Permanent Magnet Synchronous Motors (PMSM) in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!