Simulink Sensorless FOC Motor Example for LAUNCHXL-F280039C and BOOSTXL-DRV8323RS

14 views (last 30 days)
I have purchased the following boards Texas Instrument motol control boards:
  • LAUNCHXL-F280039C
  • BOOSTXL-DRV8323RS
I am looking for a Simulink example for Sensorless FOC Motor control (the motors are actually BLDC, not PMSM).
I found the example mcb_pmsm_foc_sensorless_f280049C.slx from here...
As the example was for the F280049C, I changed the hardware board to TI F280039C LaunchPad...
After changing the hardware board, I also had to assign the hardware mapping for the SCIA interrupt in order to build the model...
The model buildt and downloaded, so I opened the host model mcb_pmsm_foc_host_model.slx to try and control the motor.
Device manager shows XDS110 as COM8 or COM9...
I'm not sure which one I am supposed to use, so in the host model I tried both COM ports 8 and 9 and baud rates of 5.625e6 and 5e6. but nothing works.
When I run the host model, the motor does not spin and the displays and plot show zero.
I assume there is no UART data ?
I also assume there is nothing to detect if the UART isn't functioning, the display will all just show zero ?
The SCI_A settings are shown below...
How can I get this example model (or any other FOC sensorless model) working on these boards ?
The motor I am using is a T-Motor F90 Fpv Racing Drone Motor 5-6S KV1950...
I would also like to be able to use the TI InstaSPIN tool to charactertise the motor, is this possible with the example simulink models ? Or will InstaSPIN only work with CCS example code ?

Answers (1)

Kothuri
Kothuri on 17 Oct 2024
Hi John,
I understand that you are trying to implement the Sensorless FOC of BLDC motor, and when you run the host model, the motor doesnot spin and the displays and plot show zero.
This seems there may be issues with the UART communication between the host model and the hardware and thus preventing the motor from responding.
You can follow the below steps:
  • Ensure that the COM port you select in the host model matches the one shown in your device manager. If XDS110 is listed as COM8 or COM9, try both ports systematically.
  • While testing with baud rates of 5.625e6 and 5e6, ensure that both the model and the host communication settings match exactly. Typically, UART communication for serial data is set to 115200 baud.
  • Double-check the pin assignments for TX and RX in the SCI_A settings (GPIO29 for Tx and GPIO28 for Rx). Make sure the LaunchPad’s TX and RX lines are properly wired to the respective pins on the motor driver.
  • Since the motor you are using is a T-Motor F90 FPV Racing Drone Motor, it may require tuning of the PI controllers for speed and current loops in the example model. The default parameters for PMSM may not work well for a high-speed, low-inductance motor like the F90.
  • Use MATLAB’s “fopen” and “fscanf” commands to open the serial port and read incoming data. If you can’t see any data coming from the target, it’s a sign that SCI communication isn’t properly configured.
You can refer the below links for more info on “fopen” and “fscanf”
  • Check the “HWI_SCIA_RX_INT” block settings and verify that the interrupt is properly mapped and triggering in the model.
  • If you want to use InstaSPIN, you will likely need to use CCS and TI’s MotorWare software rather than Simulink.
You can refer the below links for more info on Sensorless control of BLDC motor and FOC of BLDC motor:

Categories

Find more on Get Started with Motor Control Blockset 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!