cancel
Showing results for 
Search instead for 
Did you mean: 

STEVAL ESC001V1 PID Tuning

tejas_amp
Senior

When i give varying PWM signal at high frequency under range, the motor sometimes produces noise and gets stuck (0 speed even though pwm signal is valid). What is the issue? I feel its due to PID tuning. Kindly share PID tuning method.

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
cedric H
ST Employee

Hello @tejas_amp 

To be able to drive your motor, the ESC state machine must be in ESC_ARMED state. Only once it is in ESC_ARMED state your motor will start as soon as the PWM command stay high more than 1060 us.

To reach ESC_ARMED State, your PWM input must be high between 800us and 1060us for 200 ms.

Do not hesitate to have a look at esc.c file to understand how it works.

Regards

Cedric

 

 

View solution in original post

2 REPLIES 2
cedric H
ST Employee

Hello @tejas_amp 

To be able to drive your motor, the ESC state machine must be in ESC_ARMED state. Only once it is in ESC_ARMED state your motor will start as soon as the PWM command stay high more than 1060 us.

To reach ESC_ARMED State, your PWM input must be high between 800us and 1060us for 200 ms.

Do not hesitate to have a look at esc.c file to understand how it works.

Regards

Cedric

 

 

Hi @cedric H ,
I have used st motor control workbench version 6.4.1, cubeMX version 6.15 cube ide version 1.19. In Motor control workbench i have selected steval_esc001v1 and motor as bldc.txt file (attached below). Now i kept all the settings of the project as default. In which driver settings shows as 16Khz as pwm frequency.
Screenshot (38).png

 

so, I have given the pwm input as 62.5us time period and 10 to 90% duty cycle and i got no response from the motor movement. So is the pwm should be 800us in my case too, or how to calibrate for my esc.

Best Regards,
Santhosh.