cancel
Showing results for 
Search instead for 
Did you mean: 

I am using STM32g431CB for running a BLDC motor with TIM1 for PWM generation and TIM4 for hall sensor output with hall sensor mode. My motor is running now.I want to measure the rpm of the motor.How can i measure the rpm of motor using hall sensor?

Tejashree
Associate III
1 REPLY 1
GMA
ST Employee

Hello,

If you use HALL sensor as main speed sensor, you can use "MC_GetAverageMecSpeedMotor1_F()" that return the rotation speed in RPM and Float format from HALL sensor.

If you use HALL Sensor as auxiliary speed sensor, you can use "MC_GetMecAuxiliarySpeedAverageMotor1_F()" that return the rotation speed in RPM and Float format from HALL sensor.

Best regards.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA