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.

TMS320F28027F-Q1: TMS320F28027F-Q1

Part Number: TMS320F28027F-Q1
Other Parts Discussed in Thread: MOTORWARE

TMS320F28027F-Q1 ,When applying TI motor algorithm library InstaSPIN, how to modify the conversion factor in the software according to the sampled resistance value of the circuit designed by the user。

  • how to modify the conversion factor in the software according to the sampled resistance value of the circuit designed by the user。

    You may take a look at the lab user's guide and InstaSPIN user's guide as below that include the contents you want.

    C:\ti\motorware\motorware_1_01_00_18\docs\labs\instaspin_labs.pdf

    C:\ti\motorware\motorware_1_01_00_18\docs\boards\kits\docs\readmefirst_instaspin_launchboost.pdf

    Or, please follow the steps to change the example labs and verify the current and voltage signals of the hardware board before run the lab02a/b/c since you are using your own board. Make sure that the current and voltage sampling works well.

     

    1. Please refer to the guide, motorware_hal_tutorial.pdf below, to change the peripherals configuration like PWM and ADC in hal.c and hal.h according to your hardware board.

    C:\ti\motorware\motorware_1_01_00_18\docs\tutorials

     

    2. Set correct parameters based on the hardware board in user.h. You can refer to the Chapter 5 Managing Motor Signals of  InstaSPIN-FOC and InstaSPIN-MOTION User's Guide to calculate and define the value of these variables.

    #define USER_IQ_FULL_SCALE_VOLTAGE_V           (xx)

    #define USER_VOLTAGE_FILTER_POLE_Hz               (xx)

    #define USER_ADC_FULL_SCALE_VOLTAGE_V       (xx)

    #define USER_IQ_FULL_SCALE_CURRENT_A           (xx)

    #define USER_ADC_FULL_SCALE_CURRENT_A       (xx)

     

    3. Make sure that the sign of the current coefficient in HAL_readAdcData() in hal.h matches the current sensing circuit. Refer to chapter 5.2.2 Current Feedback Polarity in InstaSPIN user's guide (SPRUHJ1, https://www.ti.com/lit/spruhj1) to set the sign of the current scale factor.

     

    static inline void HAL_readAdcData(HAL_Handle handle,HAL_AdcData_t *pAdcData)

    {

       _iq current_sf = (+/-)HAL_getCurrentScaleFactor(handle);

    }

     

    4. Follow the instaSPIN lab guide to use lab01b and lab01c to verify your own hardware since you are not using the TI EVM kits and then run the subsequent labs.

     

     

    5. Using the lab02b or lab02c and tuning the identification variables parameter below to identify the motor parameters, and use the identified parameters to run the motor if the current and voltage sensing signals are verified and good.

    #define USER_MOTOR_RES_EST_CURRENT      (1.0)                               // A -  10-30% of rated current of the motor

    #define USER_MOTOR_IND_EST_CURRENT      (-1.0)                             // A -  10-30% of rated current of the motor,  just enough to enable rotation

    #define USER_MOTOR_MAX_CURRENT            (5.0)                               // A -  30~150%  of rated current of the motor

    #define USER_MOTOR_FLUX_EST_FREQ_Hz     (40.0)                            // Hz - 10~30% rated frequency of the motor

     

  • Thank you very much. This reminder helped us tremendously. It helped us solve big problems.

    static inline void HAL_readAdcData(HAL_Handle handle,HAL_AdcData_t *pAdcData)

    {

       _iq current_sf = (+/-)HAL_getCurrentScaleFactor(handle);

    }

  • Here I have two questions,

    question 1 : what is the meaning of this frequency ( USER_IQ_FULL_SCALE_FREQ_Hz ) value, how to calculate  it, if I set it wrong, what will affect the performance of the motor?
    question 2 :  Is this voltage ( USER_IQ_FULL_SCALE_VOLTAGE_V) set to the rated input voltage of the motor? What is its significance? If the setting is wrong, which performance of the motor will be affected?

    question 3 :  What does (pu) mean?

  • question 1 : what is the meaning of this frequency ( USER_IQ_FULL_SCALE_FREQ_Hz ) value, how to calculate  it, if I set it wrong, what will affect the performance of the motor?
    question 2 :  Is this voltage ( USER_IQ_FULL_SCALE_VOLTAGE_

    Both can be close to or less than the USER_ADC_FULL_SCALE_VOLTAGE_V and USER_ADC_FULL_SCALE_CURRENT_A separately.

    question 3 :  What does (pu) mean?

    Per Unit Format. You can search it on Website that has many source about this for power electric application with PU format.