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.

DRV8301-69M-KIT: DRV8301-69M-KIT

Part Number: DRV8301-69M-KIT
Other Parts Discussed in Thread: MOTORWARE

Hello There,

I am running DRV830x-HC-C2-KIT with INSTASPIN-FOC GUI.

I have following questions regarding the motorware_1_01_00_18 Lab solutions:\ti\motorware\motorware_1_01_00_18\docs\labs .

 Lab 11 b \ user.h \ #define USER_NUM_CURRENT_SENSORS            (3)

My query in two part :-

What is difference between two current sensor and three current sensor in DRV830x-HC-C2-KIT ? 

How we implement in own hardware and software ? 

Thanks in advance. 

  • The subject matter expert is out of office. Please expect a response by Tuesday. 

    Thanks.

  • What is difference between two current sensor and three current sensor in DRV830x-HC-C2-KIT ? 

    You need to use the three shunt if you want to implement the over modulation when using a duty cycle over 100% as shown in lab10a. You can find more details about 2 or 3 shunt in Chapter 17 Shunt Current Measurements of  InstaSPIN-FOC and InstaSPIN-MOTION User's Guide.

    How we implement in own hardware and software ? 

    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