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: Consultation on hardware and program parameter adjustment

Part Number: TMS320F28027F
Other Parts Discussed in Thread: MOTORWARE

The OK.RAR compression package contains the schematic and program configuration files for designing a fan driver board using F28027FPTT. This solution has been in mass production for many years and has been running steadily. The new product has made some adjustments to the previous mass production plan, as detailed in the schematic diagram and program configuration file in the NG.RAR compressed package. The program only includes user. h and proj_ The content in lab05b. c has been modified, and other program files have not been modified.

The following Fan problems may probable occur with the controller configuration program of NG , and the OK controller have no problem.

  1. normal temperature startup failure
  2. Cold start failure
  3. upwind startup failed
  4. Downwind startup failed
  5. Fan blockage cannot be detected

On the hardware, the main IPM and drive circuit have changed, and the phase current and phase voltage sampling circuit have been adjusted.

In terms of software, due to the adjustment of hardware, there are have following adjustment.

(user.h)

  1. #define USER_IQ_FULL_SCALE_FREQ_Hz (400.0)
  2. #define USER_ZEROSPEEDLIMIT (0.004)

3.#define USER_VOLTAGE_FILTER_POLE_Hz        (388.9*0.5)

  1. #define USER_MOTOR_Rs (1.589485*0.7)
  2. #define USER_MOTOR_Ls_d (0.0306818*0.7)
  3. #define USER_MOTOR_Ls_q (0.0306818*0.7)

(proj_lab05b.c)

  1. gMotorVars.Flag_enableForceAngle = 0; <1039 line>

Please give us guidance from software configuration and hardware on how to solve these problems,?

If you need more information from us, please let us know.

thank you.

NG.rarOK.rar

  • Please follow the steps below to change the example labs and verify the current and voltage signals of the hardware board before run the InsatSPIN labs.

     

    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

  • First of all, thank you for your answer.

    As for the issue of whether the software and hardware match, we have already confirmed that there is no problem.

    1. The basic configurations of pwn and adc have not been modified by the old and new software.

    2. There is no problem with the configuration of voltage and current sampling coefficients.

    3. Regarding the issue of sampling direction, if there is a problem here, it will occur in batches of 100%, rather than a probability problem.

    4. The motor parameter issue has been tested with a new electronic control board and there are no issues.

    Now we want to know if our hardware design and TI's library will be sensitive to our hardware?

    What are the effects of the software parameters we modified, such as current and voltage sampling secondary filtering and layout?

    For example, why is it better for some models to start with a motor resistance inductance of 0.7?

    Why can't a forced angle fan be started when the low temperature is -25 ℃? Can it be started without using a forced angle fan at a low temperature of -25 ℃?

  • Now we want to know if our hardware design and TI's library will be sensitive to our hardware?

    All of the FOC algorithm include InstaSPIN require a better current and voltage sensing signal for angle estimation.

    What are the effects of the software parameters we modified, such as current and voltage sampling secondary filtering and layout?

    The parameters are related to the motor and hardware. Please take a look at chapter 5.2 (Hardware Prerequisites)  and 4.1 (Currents and Voltages) of  InstaSPIN-FOC and InstaSPIN-MOTION User's Guide ( https://www.ti.com/lit/spruhj1) that have a detailed description of these.

    Why can't a forced angle fan be started when the low temperature is -25 ℃? Can it be started without using a forced angle fan at a low temperature of -25 ℃?

    Having an incorrect Rs value (especially a value higher than the actual Rs) will make the start-up behave poorly. You might refer to chapter 14 "Managing Full Load at Startup, Low-Speed and Speed Reversal" in InstaSPIN-FOC and InstaSPIN-MOTION User's Guide

    https://www.ti.com/lit/spruhj1

    1. Enable stator Rs recalibration before startup
    2. Enable forced angle
    3. Make sure that the current ADC offset is calibrated.