Skip to main content
OBEHE.1
Associate II
August 17, 2020
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

  • August 17, 2020
  • 2 replies
  • 1858 views

..

This topic has been closed for replies.
Best answer by msingh

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.

2 replies

Laurent Ca...
Senior III
September 14, 2020

Dear OBEHE.1

Do you have still this problem to solve?

Best regards

Laurent Ca...

OBEHE.1
OBEHE.1Author
Associate II
September 14, 2020

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
September 16, 2020

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
September 17, 2020

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.