Skip to main content
dannypkchan
Associate III
May 21, 2022
Question

NUCLEO-G431RB + IHM08M + HALL, tried many different combination of KP and KI still no luck to make my motor spin

  • May 21, 2022
  • 1 reply
  • 748 views

MCSDK 5.4.8 profiler work and MCWB work, code generated.

Motor is able to spin under MCWB, but even HALL option is selected, MCWB is spin without HALL and therefore its generated code is not aiming for HALL startup right?

I tried many different combination of below parameters, I can make small motor spin by adjust and focus below parameters, however when I try my skateboard motor (little bigger) I have no luck to make it work, I already spent 4 weeks to understand the speed_torq_ctrl.c and adjust parameters without any luck.

Can anyone help to tech me more on PID parameters ?

PID_SPEED_KP_DEFAULT

PID_SPEED_KI_DEFAULT

PID_SPEED_KD_DEFAULT  

SP_KPDIV_LOG

SP_KIDIV_LOG  

SP_KDDIV_LOG

IQMAX

many thanks in advance,

Danny

This topic has been closed for replies.

1 reply

ST Employee
October 6, 2023

Hello @dannypkchan , sorry for responding so late, so I suggest you try with MCSDK 6.2 which brings many fixes. And before generating your project, profile your Motor then import it to the workbench. You can reply to me if you need anything as help
Regards