Skip to main content
Associate III
December 7, 2023
Solved

Motor works well with FOC algo, but with 6-step algo makes squeeling sounds at higher

  • December 7, 2023
  • 1 reply
  • 990 views
HI I have a motor which I've used for while with many 6-step controllers, including commercial ESCs.
 
I profiled this motor and it works well with the ST sensorless FOC, but using the same motor profile in a 6-step app gives very bad results, the motor works OK at low RPM, but above 1K or so it makes a terrible squeeling sound and operates very inefficiently.. I had a quick look at the scope but nothing jumped out at me
 
A couple other Qs:
-Where in the MCW config do I configure the PWM input control? 
-Is there an example of controlling the speed with the Potentiometer on the B-G431B-ESC1
 
Motor control workbench Version: 6.2.0
STM32CubeMX Version: 6.10.0
STM32CubeIDE Version: 1.14.0
Controler/Driver: B-G431B-ESC1 kit
MCW application: Electronic speed control on B-G431B-ESC1 kit (6Step)
 
    This topic has been closed for replies.
    Best answer by SRedd.5

    Where in the MCW config do I configure the PWM input control? 

    SRedd5_0-1702016349290.png

    It is available in the Stage Configuration.

    Is there an example of controlling the speed with the Potentiometer on the B-G431B-ESC1

    The source code is available in 

    \CLN_MCLib\MotorControl\Any\Src

    potentiometer.c

    speed_potentiometer.c 

    You have to add to your project and map to one of the ADC's.

     

     

    1 reply

    SRedd.5
    SRedd.5Best answer
    Senior III
    December 8, 2023

    Where in the MCW config do I configure the PWM input control? 

    SRedd5_0-1702016349290.png

    It is available in the Stage Configuration.

    Is there an example of controlling the speed with the Potentiometer on the B-G431B-ESC1

    The source code is available in 

    \CLN_MCLib\MotorControl\Any\Src

    potentiometer.c

    speed_potentiometer.c 

    You have to add to your project and map to one of the ADC's.