cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the PID Kp value

RoyStevens
Associate III

I am trying to tune a 28 pole 50V 20 Amp  motor 6 step  with hall sensors. Motor Pilot does not work for me. To get over this I am using STM32CubeMonitor to plot the speed response. I have also tried to change the values through Cube Monitor by writing to PID_SpeedHandle_M1.hdDefkpgain and even though the values change it has no effect on the performance. Changing values (#define PID_SPEED_KP_DEFAULT) in the drive_parameters.h file and recompiling does not work either.

 

I am only able to change the Kp values by going back to workbench and  completely regenerating the project, which is a time-consuming operation.

 

I would appreciate some advice - thanks.

10 REPLIES 10

Thank you @ADAVE.1 

It works

 

Regards

 

Roy