Skip to main content
MUddi.1
Visitor II
January 6, 2023
Question

Can I control a BLDC motor based on encoder counts?

  • January 6, 2023
  • 1 reply
  • 799 views

Hello.

I'm using Nucleo F446re and IHM07M to control a BLDC motor. It has a built-in 2000 pulse quadrature encoder. The MCSDK version is 5.4.8. I tried the position control method and it works fine. However, it only allows me to control the motor based on the provided angle in radian. For a specific purpose, I need to control the motor based on the number of counts it crossed. Is there a way to do that?

Regards,

Sihab

This topic has been closed for replies.

1 reply

GMA
Technical Moderator
February 1, 2023

Hello,

In the position control application note AN5464, the proposed API is only angle based input. Could you use available API as:

MC_ProgramPositionCommandMotor1((DesiredPulseCount/M1_ENCODER_PPR)*2*3.14,DesiredTiming));

Best regards.

GMA

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