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.

Hercules_Motorware_Dec2012例程问题请教

Other Parts Discussed in Thread: MOTORWARE, DRV8301

请问Hercules_Motorware_Dec2012例程中,currentAB.value电流、adcData.dcBusV电压、ElecTheta角度、gPwmData.Tabc.value参数值表征多大,例如0.1分别都代表多少?

谢谢!

  • 很抱歉,我对这个例程也不是太熟悉。我去咨询一下drv8301的专家后给您回复
  • 回复如下,请您看一下

    1 currentAB.value
    >> This is a scaled value of the bus current measured by the ADC. The value is assigned in the drv.h file. Look into this file to identify the scaling applied.

    2 adcData.dcBusV
    >> This is a scaled value of the DC bus voltage measured by the ADC.

    3 ElecTheta
    >> This is the electrical angle measured by the quadrature encoder interface.

    4 gPwmData.Tabc.value
    >> This is the duty cycle value computed in the control loop and used to update the PWMs.
  • 您好,

    各参数的基本意思我这边是知道的,其中gPwmData.Tabc.value可以从最终pwm占空比推导出值代表多少,ElecTheta可以从换算关系推导出0-1.0代表0-2pi,但是:

    电流currentAB.value是换算到什么值,例如currentAB.value[0]=0.1时,代表A电流为多少安培,还是某个电流值的10%?

    电压dcBusV是AD值乘了系数0.00024414,是什么关系,dcBusV=0.1时,代表电压为多少伏特,还是某个电压值的10%?

    谢谢!