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,
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.