The estimated velocity of open loop does not match the observed velocity of back electromotive force

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

The estimated velocity of open loop does not match the observed velocity of back electromotive force

1,003 次查看
Edison_LI
Contributor II

I ported the S32K144 demo program MCSPTE1AK144_PMSM_FOC_1Sh to MPC5744P and found that the electrical angular velocity estimated by the CalcOpenLoop()  was twice the actual electrical angular velocity and twice the electrical angular velocity observed by the BEMF observer(pospeSensorless. WRotEl).

The estimated electrical angular velocity by the CalcOpenLoop() is the same as the electrical angular velocity which I set.

 

this is the electrical angular velocity estimated by the CalcOpenLoop():
1660130513659.png

Which leads to the unknown how to cut into the closed loop。

But when I halve the frequency of AMCLIB_TrackObsrv_FLT, the pospeSensorless. WRotEl is equal to pospeControl. WRotEl

屏幕截图 2022-08-10 191715.png

0 项奖励
回复
3 回复数

977 次查看
marekmusak
NXP Employee
NXP Employee

Hello,

CalcOpenLoop() and AMCLIB_TrackObsrv_FLT() must be called periodically with the same sampling frequency. In the case of MCSPTE1AK144_PMSM_FOC_1Sh, these functions are executed in the ADC interrupt service routine every 150us. This value (150us) appears also in MCAT as parameter sampling time. You have to make sure that this time is set properly according to your application. If this time is set wrong then also your position will be wrong, because parameters of the integrators are derived from this sampling time.

marekmusak_0-1660812778096.png

Another parameter I would definitely check is pole pairs number pp in MCAT. This might also cause differences. Or do you use the same motor as MCSPTE1AK144 has ?

marekmusak_1-1660813016174.png

Regards,

Marek

968 次查看
Edison_LI
Contributor II

Thanks for your reply,

CalcOpenLoop() and AMCLIB_TrackObsrv_FLT() have the same frequency in my program.
I have now solved this problem by doubling SCALAR_INTEG_GAIN so that the estimated speed in CalcOpenLoop() is the same as that observed by the observer.
But it's not clear to me why that would solve the problem, that I don't understand the rationale behind this integral, right

Edison_LI_0-1660895751107.png

 

I have another question I would like your help with, namely the definition of I_MAX and U_DCB_MAX, which I read in another post refers to the ratio between the actual voltage/current values and the ADC measurements.
So in my program, I need to multiply the ADC value by 800 to get the actual voltage value, so my U_DCB_MAX is 800, is that right?
My current value is the value obtained by the ADC minus the 2.5V offset voltage, and then multiplied by 100, so my I_MAX is 100, is that right?

 

Best regards,

Edison_Li

0 项奖励
回复

991 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I have asked motor control expert for S32K1 to have a look at this.

Best regards,

Peter