Estimated RPM and speed in MCSPTE1AK144 FOC PMSM application

cancel
Showing results for 
Search instead for 
Did you mean: 

Estimated RPM and speed in MCSPTE1AK144 FOC PMSM application

220 Views
RajG
Contributor III

Hello to all, I wanted to send the current RPM and speed of the motor in MCSPTE1AK144 kit via UART to console for my application.

From the code provide of 2 resistor sense PMSM FOC based software, I am writing value to "drvFOC.pospeControl.wRotElReq" structure for rotation of motor. Here wRotElReq is the required speed variable, so we can change it to get specific rpm.

I would like to know the calculated/ estimated speed and RPM of the motor so i can transmit it via UART and have a feedback value about the rotation. I kindly request to help me with some variable or structure which i dont know in this code that can directly give such estimated RPM and speed.

Thanks and Regards,

RajG.

0 Kudos
2 Replies

161 Views
marekmusak
NXP Employee
NXP Employee

 

Hello RajG,

To get actual rotor speed, use variable drvFOC.pospeControl.wRotEl which is an electrical speed in format rad/s. 

To get speed in rpm format, it must be multiplied by (60/2*pi*pp), where pp is number of pope pairs. Motor of this kit has two pole pairs, thus pp=2. 

FreeMASTER variable "Speed FOC loop" has the same RPM format.

Regards,

Marek

0 Kudos

196 Views
RajG
Contributor III

@PetrS @marekmusak @mariuslucianand 
stuck since many days and no one replied to my query, so tagging you all sir,

Thanks and Regards,
RajG.

0 Kudos