Skip to main content
OBEHE.1
Associate II
Solved

how to calculate gains like (PID_SPEED_KP_DEFAULT,PID_SPEED_KI_DEFAULT,PID_SPEED_KD_DEFAULT) and speed PID parameter dividers like (SP_KPDIV) in PMSM motor STM32 , in STEVAL-ESC001V1

..

This topic has been closed for replies.
msingh
msinghBest answer
Senior

Actually, If you are working in the speed control mode you can use the monitor feature of the MCWB, then go to advanced and dynamically change the PIDs whoever if you are working in the position control mode this will not be possible.

6 replies

Laurent Ca...
Senior III

Dear OBEHE.1

Do you have still this problem to solve?

Best regards

Laurent Ca...

OBEHE.1
OBEHE.1Author
Associate II

i am trying to calculate these parameter with out generating code , i mean i want to calculate dynamically these parameters from motor parameters like friction and inertia

msingh
Senior

What is the reason of changing the PIDs dynamically? I'd suggest to find the best combination of PIDs with the highest payload the motor will EVER have. DO NOT RELY ON AUTOMATIC PIDs gains calculated by the MCWB as I don't think they will be anywhere near the values they should be (at least this was the case for me).

OBEHE.1
OBEHE.1Author
Associate II

i have to dynamic the value , i does not want to generate the code by MCWB every time . i want to dynamically change the parameter of profiled motor to the code.