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.

INSTASPIN-BLDC: Instaspin FOC 5 KW IPMSM motor control solution

Part Number: INSTASPIN-BLDC
Other Parts Discussed in Thread: BOOSTXL-3PHGANINV, C2000WARE, C2000WARE-MOTORCONTROL-SDK, DRV8312, LAUNCHXL-F280049C, BOOSTXL-DRV8320RS

Hi All,

We are developing 5KW IPMSM motor controller solution. For instaspin FOC testing we are using f28004x launchpad, BOOSTXL-3PHGANINV and instaSpin FOC SDK (C2000ware Motor control SDK). . 

I request everyone, if any one can help us in developing this solution, it would be a great help.

Thanks & Regards

Akash

  • You may download the MotorControl software development kit (SDK) for C2000Tm MCUs as below

    C2000WARE-MOTORCONTROL-SDK: http://www.ti.com/tool/C2000WARE-MOTORCONTROL-SDK

     

    The InstaSPIN-FOC example labs for F28004x can be found in the folder below.

    \ti\c2000\C2000Ware_MotorControl_SDK_3_03_00_00\solutions\boostxl_drv8320rs\f28004x\ccs\sensorless_foc

     

    To find the lab guide, MotorControl SDK InstaSPIN Lab Guide.pdf in the folder below, and follow the guide to run/implement the related labs according to your application.

    \ti\c2000\C2000Ware_MotorControl_SDK_3_03_00_00\solutions\common\sensorless_foc\docs\labs

     

    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) design your own hardware for InstaSPIN-FOC that have a detailed description of these.

  • Hi Luo,

    Thanks for the quick response. We looked around the examples and documents shared by you. Can you please suggest examples, labs  and documentation with BOOSTXL-3PHGANINV and f280049C launchpad. We are trying to develop our solution using BOOSTXL-3PHGANINV and f280049C launchpad. But most of guidance, examples and supports are with gate driver DRV8320RS, DRV8312 etc. 

    Thanks & Regards

    Akash

  • No InstaSPIN-FOC example codes for BOOSTXL-3PHGANINV and f280049C launchpad. You may refer to the example lab for BOOSTXL-DRV8320RS and LAUNCHXL-F280049C as mention above.

    1. Change the PWM and ADC configuration in hal.c according to your own hardware board.

     

    1. Set correct parameters based on the hardware board in user.h

    The following three parameters marked RED in the user.h according to the hardware board.

    //! \brief Defines the maximum voltage at the AD converter

    #define USER_ADC_FULL_SCALE_VOLTAGE_V         ((float32_t)(57.528f))

     

    //! \brief Defines the maximum current at the AD converter

    #define USER_ADC_FULL_SCALE_CURRENT_A         ((float32_t)(42.843f))

     

    //! \brief Defines the analog voltage filter pole location, Hz

    #define USER_VOLTAGE_FILTER_POLE_Hz           ((float32_t)(338.357f))

     

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

     The sign of the current sensing value marked RED in the hal.h according to the hardware board.

    static inline void

    HAL_readADCDataWithOffsets(HAL_Handle handle, HAL_ADCData_t *pADCData)

    {

        HAL_Obj *obj = (HAL_Obj *)handle;

     

        float32_t value;

     

        float32_t current_sf = -HAL_getCurrentScaleFactor(handle);

        float32_t voltage_sf = HAL_getVoltageScaleFactor(handle);

    }