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

8 次查看(过去 30 天)
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!

采纳的回答

KrishnaKumar
KrishnaKumar 2022-11-9
You can check Estimate PMSM Parameters Using Custom Hardware - MATLAB & Simulink Example (mathworks.com) for using parameter estimation with custom hardware.
  3 个评论
KrishnaKumar
KrishnaKumar 2023-5-8
编辑:KrishnaKumar 2023-5-8
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 2023-5-19
编辑:Gu-Cheol Jeong 2023-5-19
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!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Permanent Magnet Synchronous Motors (PMSM) 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by