2023-01-05 10:56 PM
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
2023-02-01 02:11 AM
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