MPC5744P MBDT Motor Encoder

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5744P MBDT Motor Encoder

801 Views
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 Kudos
2 Replies

745 Views
C_Zuercher_APR
Contributor III

Hi @adriantudor 

Thanks for this; now works perfectly!

Thanks,

Crispin

0 Kudos

764 Views
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