lpcware

Motor FOC AN10899 filter coefficients

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by skycurve on Sat Jan 03 19:41:59 MST 2015
Hey guys,

I'm trying to implemet the AppNote AN10899 on my own.
In the souce code (\AN10899 complete package 20100113\LPC2900 source\foc.c) in the initialization of the position estimator, there is this line:

param->Cflt_omega.full = F16_16_CONST(OMEGA0 / PWMSPEEDRATE / 10);


Why is it divided by 10 here?

In the AN10899 PDF is nothing about that.

Without this division, the motor works better. With it, it begins to swing, till the estimator loses the right position angle and nothing works.

more code:
param->F.full = F16_16_CONST(1 - PHASE_RESISTANCE * PWMLOOPTIME / PHASE_INDUCTANCE);
param->G.full = F16_16_CONST(PWMLOOPTIME / PHASE_INDUCTANCE);
param->K_smc.full = F16_16_CONST(K_SMC);
param->smc_max_err.full = F16_16_CONST(SMC_MAX_ERR);
param->Cflt_omega.full = F16_16_CONST(OMEGA0 / PWMSPEEDRATE / 10);


Hope you can help me :)
(sorry for my poor english)

Andrew.

Outcomes