This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28062F: LAB11a is not spinning properly,

Part Number: TMS320F28062F
Other Parts Discussed in Thread: DRV8301, MOTORWARE

hello e2e team,

We already have our own inverter board with a TMS320F28062F and we implemented LAB05B (FOC sensorless)

Our application is working fine but we need a better response during zero speed start up with full load, for this we already implemented the recommendation of SPRUHJ1H Chapter 14.4.2, and Rs Calibration Online, but we still do not get a good response, thus we decided to move on to LAB11e to use a HALL_BLDC start-up + FAST switching.

The issue that we are facing now is that LAB11a implementation is not working properly, because sometimes the motor starts spinning in the correct direction and sometimes it starts in reverse. What could be the reason of this wrong activation? we think we need to solve this first in order to move on to LAB11e implementation, because when I run LAB11e the motors does not start.

Note that all the user.h definition are correct, including motor parameters, because those are also used to run Lab05a and Lab05b and these implementation have no problem.

I almost forgot to mention...when lab11a starts spinning properly, we can not set a new trajectory values by setting different values to SpeedRef_krpm.

Regards,

  • Could you please have a detailed description of change you have done in the original lab11a project? Not only including change the motor parameters in user.h. What PWM frequency are you using?  

  • Hi Yanming,

    Thanks for your quick reply. from lab11a we did not used/not implemented

    • Field weakening
    • Power wrap
    • CPU usage
    • And implemented just the MOTOR_Type_Pm configuration.

    the rest is the same.

    for the user.h  these are the main definition

    #define USER_SYSTEM_FREQ_MHz (90.0)

    #define USER_PWM_FREQ_kHz (20.0) 

    #define USER_MAX_VS_MAG_PU (0.5)

    #elif (USER_MOTOR == Bafang)

    #define USER_MOTOR_TYPE MOTOR_Type_Pm

    #define USER_MOTOR_NUM_POLE_PAIRS (4)
    #define USER_MOTOR_Rr (NULL) 
    #define USER_MOTOR_Rs (0.173) 
    #define USER_MOTOR_Ls_d (0.000555) 
    #define USER_MOTOR_Ls_q (0.000555) 
    #define USER_MOTOR_RATED_FLUX (0.080) )
    #define USER_MOTOR_MAGNETIZING_CURRENT (NULL) 
    #define USER_MOTOR_RES_EST_CURRENT (2.0) 
    #define USER_MOTOR_IND_EST_CURRENT (-1.2)
    #define USER_MOTOR_MAX_CURRENT (16.0)

  • What TI EVM kit are you using? Or your own board? Did the motor start with a full load?

  • Hello Yanming,

    With our own board and by now I am testing in free wheel.

    Also when the motors starts it goes to maximum speed. I've tried to change the references speed but it did not work no matter if I change acceleration or gains it always goes to the maximum.

  • Hello Yanming,

    I have two updates...

    Today I test lab11a using the DRV8301 EVM with the same user.h parameters and it works normally, I can set different speedref values without problem and the motor starts always in the right direction.

    The difference between the implementation in our own board and this lab are:

    • Rs wait time is 7s in lab and in my implementation has 0.2s. Does this make a difference?
    • Lab is implemented with motorware 18 and I am using motorware from 2015, I ve followed all the changes since that date till now and I think I have implemented all changes need for this lab. Do you think motorware version is a problem because with previous lab we did not get any issue?

    My second updates is about lab11e , I ve tested without success using the Eval kit. The motor starts vibrating once I activated gHall_Flag_EnableStartup. I ve double checked the commutation sequence and it was not the problem. what do you think could be the problem? 

    Regards.

  • Hello Yanming,

    Now I ran lab11e properly using the DRV8301 eval kit.

    • i ve set the correct Hall commutation sequence.
    • set enough hysteresis values for BLDCtoFAST and FASTtoBLDC activation.

    Once I got the correct parameters that I should set for lab11e I could run in my own borad.

    But I still have the problem that I can not run lab11a/e in our own inverter, because it always spins to the maximum speed and maximum current, also I set a positive speed value to achieve the right direction but sometimes the motor goes in reverse and sometimes not.

    Do you have any idea?

  •  Do you have any update or idea about this?

  • 1. The Rs calibration needs at least 2s to get the right value.

    2. You may try the former lab like lab01b, lab01c, and lab02c to verify your h/w board. The quality of the current and voltage sensing signals is very important for motor drive.

    3. Please make sure if the connections of the hall signals match the using GPIOs of hall signal input as the TI EVM board. If not, you need to change the commutation index array in the project.