Skip to main content
AlexanderTHN
Associate
December 13, 2020
Solved

Speed feedback fault when rev-up (B-G431B-ESC1 board and BR2804-1700 kV motor)

  • December 13, 2020
  • 5 replies
  • 2823 views

Hello,

I am trying to get a BR2804-1700 kV motor running utilizing a B-G431B-ESC1 board. Till now I managed to get the motor starting to rev-up, but in the middle/at the end of the rev-up process I receive a "speed feedback"-error in the Motor Control Dashboard. Running the motor from Motor Profiler works without any problem.

I have already applied two fixes from the forum:

To fix ADC2 warning when generating Code, which did work https://community.st.com/s/question/0D53W00000JM31XSAT/adc2-warning-when-generating-project-for-bg431besc1

And I tried following fix, which had no effect eighter positive nor negative: https://community.st.com/s/question/0D53W00000HwV8RSAV/bg431besc1-motor-profiler-not-working-moderator-note-this-post-contains-now-a-bugfix-patch-on-provided-example

I have also tried to adapt the parameters as suggested in the STM32 PMSM FOC SDK

Frequently-asked questions (FAQ) document, e.g. decreasing the C2 gain, but it still does not work.

Is there any fix I missed?

If not, is there any way I can find the right parameter configuration without tens of hours of trial and error, which I have already tried (current parameters attached)?

When I run the motor using the Motor Profiler I get a PWM frequency of 30kHz(measured with oscilloscope), but when I try to use that frequency in my generated code I receive a "FOC-duration"-error and I have to change it to 16kHz. Why is there a difference?

I am currently using the STMCubeMX version 5.4.0 and MCSDK 5.4.4.

Many Thanks!

BR,

Alexander

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

Hello Laurent,

Many Thanks for the answer anyway.

I was able to solve the described problem. Instead of decreasing the PWM frequency I had to increase the execution rate of the regulator, which automatically adapted the control parameters. I guess it would have also worked if I were able to adapt the parameters by myself in similar way.

BR,

Alexander

5 replies

Laurent Ca...
Senior III
December 31, 2020

Dear @Alexander Köbler​ 

Sorry for the late answer.

Do you have still this problem to solve?

And just in case, if not, do not hesitate to share the final solution you found. Thanks by advance.

Best regards

Laurent Ca...

AlexanderTHN
AlexanderTHNAuthorBest answer
Associate
January 1, 2021

Hello Laurent,

Many Thanks for the answer anyway.

I was able to solve the described problem. Instead of decreasing the PWM frequency I had to increase the execution rate of the regulator, which automatically adapted the control parameters. I guess it would have also worked if I were able to adapt the parameters by myself in similar way.

BR,

Alexander

Orso
Associate
April 10, 2021

Hello Alexander,

I have similar problem. Standard speed regulator execution rate is 1.0ms. How much did you incrase it?

Thanks,

Orso

AlexanderTHN
Associate
April 10, 2021

Hello Orso,

I was talking about the execution rate of the flux and torque regulator.

I did set this execution rate from one to two PWM periods.

Whereas I have not adapted the execution rate of the speed regulator.

I hope that helps!

BR,

Alexander