cancel
Showing results for 
Search instead for 
Did you mean: 

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

dannypkchan
Associate II

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

1 REPLY 1
Zied b.
ST Employee

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

If you agree with my answer, please accept it by clicking on "Accept as solution".