MPC5744P MBDT Motor Encoder

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

MPC5744P MBDT Motor Encoder

1,481 次查看
C_Zuercher_APR
Contributor III

Hi,

I'm currently using a motor encoder to monitor the position of a BLDC motor, however at high motor speeds (circa 1,400rpm or so) the board appears to be unable to read the encoder. I'm using a 1,024 line encoder and am thinking that perhaps the line resolution is too high, or is my programming unsatisfactory for this task (I've attached the model to this post)?

FYI, I've worked out that the subroutine used to calculate the rotor position is being executed every 1.5e-5 seconds at 1,000 rpm.

Thanks in advance for your help,

Crispin

0 项奖励
回复
2 回复数

1,425 次查看
C_Zuercher_APR
Contributor III

Hi @adriantudor 

Thanks for this; now works perfectly!

Thanks,

Crispin

0 项奖励
回复

1,444 次查看
adriantudor
NXP Employee
NXP Employee

Hi @C_Zuercher_APR ,

We have an example for a motor encoder using MPC5744P. You can find it in examples or get it from here.

We use Etimer in Quadrature count mode and we count the pulses at a fixed period of time. And from here you can calculate the motor speed. Try to start from this example.

 

Best regards,

Adrian