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.

DRV8305-Q1EVM: How to detect the flux angle of an encoder using hall sensor signals?

Part Number: DRV8305-Q1EVM
Other Parts Discussed in Thread: DRV8305, C2000WARE, C2000WARE-MOTORCONTROL-SDK

I need to write code for the LaunchPad XL F28379D and DRV8305 that will be used to detect the correct angle of an encoder using hall sensor signals. The encoder has three signal U,V, and W as shown in below picture.

Do we have any example of code in C2000ware? 
Or could somebody give me advice tp write the code?
Thank you in advance!

  • Hi Hoang,

    I'll have to reassign your question to the C2000 team, please give them additional time to get review your question

    Regards,

    Yara

  • Not detect the angle directly, to calculate/estimate the rotor angle according to the inputs of hall sensor.

    You may refer to the lab for the C2000 devices in motor control SDK. The universal motor control lab is available in the current MCSDK, which can support a set of hardware kits and control algorithms for BLDC/PMSM drive. The kits include LAUNCHXL-F280025C, LAUNCHXL-F280039CLAUNCHXL-F2800137 with DRV8316REVM inverter board for low voltage motor.  The control algorithms include sensorless InstaSPIN-FOC with FAST, Sensorless-FOC with eSMO, Sensored-FOC with incremental encoder, Sensored-FOC with hall sensor.  You can refer to the device peripherals (ePWM, ADC, eQEP, or eCAP) configuration for motor control with the other C2000 devices.

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

    Universal Project and Lab User’s Guide: https://www.ti.com/lit/spruj26

    Example lab project at the folder: C:\ti\c2000\C2000Ware_MotorControl_SDK_<version>\solutions\universal_motorcontrol_lab\f28002x

    or                                                         C:\ti\c2000\C2000Ware_MotorControl_SDK_<version>\solutions\universal_motorcontrol_lab\f28003x

    or                                                         C:\ti\c2000\C2000Ware_MotorControl_SDK_<version>\solutions\universal_motorcontrol_lab\f280013x