cancel
Showing results for 
Search instead for 
Did you mean: 

MC Workbench 6.3.0 - Random Motor Behaviour

FVan .1
Associate III

Hello,

Some requests for support.

History:

Motor profile generated for I-PMSM motor.
Motor profile carried out with:

NUCLEO-F303RE

STEVAL-IPM20B

See attachment (JEE15IHM1150012MH.zip) for motor profile result.

After this MC workbench project made with inverter EVSPIN32F0602S1. Motor file used.

See attachment 20241001.zip

Result is a motor which starts CW, after a while it changes to CCW and finally it stops with com port error.
See attachment result.zip.

Any idea how to get a better/stable result?

Thanks in advance for any support.
I will share any progress from my side.

 

9 REPLIES 9
GMA
ST Employee

Hello @FVan .1,

In your 20241001.zip, the "STMSUPPORT 01102024.stwb6" is a EVSPIN32F0602S1 use case and not a NUCLEO-F303RE...
If you are using the HALL sensor, did you use the HALL sensor profiler too? 

In a first step could you please try decreasing the PWM frequency?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
FVan .1
Associate III

Hello GMA,
Thanks for your reaction.
Some extra background about differences in inverter / power evm's.
We want to use BLDC motors in our products in future. We are in the feasibility phase: research & concept tests. The STM32G0B1 mcu is our default MCU in our products, so we selected the EVSPIN32F0602S1 evm. After initial tests we noted we need more specification about motor and hall parameters. The information from the motor manufacturer is to minimal. So, we decided to use the ST Motor Profiler. We noted this was not possible with the EVSPIN32F0602S1. So we started a new test set-up with the F303 and IHM20. With this set-up it was possible to profile the motor, first the electrical and mechanical motor parameters, and with this result also the hall sensor parameter (especially the electrical angle = 248 degrees). The hall sensor displacement is from the motor datasheet = 120 degrees concept.
With the achieved motor file (JEE15IHM1150012MH json file) we created a new project in MC Workbench for the original EVSPIN32F0602S1, because this is the main research goal.
Today I checked a lower PWM frequency (16 kHz -> 4 kHz). Almost same motor performance result. See attached movie.
Please note the screencopy of Pilot log data; is this normal?

Capture warnings motor pilot after start 2 times.JPG

 

Hello GMA,

Some update.

The warnings can be solved by not setting the following option in MC Workbench
FVan1_0-1728053724655.png

But the performance of the motor is still the same (first CW, then CCW, then communication error at USB)
See above log.

 

 

FVan .1
Associate III

FVan1_2-1728053877014.png

 

Hello @FVan .1,

A remark, you mention STM32G0B1, but EVSPIN32F0602S1 is based on STSPIN32F0602 (STM32F031x6x7).
Decreasing PWM frequency to 12k for example, could you set STO-PLL as primary speed sensor and hall sensor as auxiliary and check with motor pilot high frequency plot that STOPLL_EN_ANGLE and HALL_EN_ANGLE are correctly aligned?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
FVan .1
Associate III

Hi GMA,

Small update.

- USB communication errors are solved by removing the used USB isolater. Most likely this one was not working well under all circumstances.

- I also changed to 8 kHz PWM, baudrate = 115200, no reduction of numer of registers and also HAL to LL.
- Now it is possible to have a motor running for longer period. 

Current issues:

- sound of motor is not really quiet, during motor profiler was more smoothly. 

- VBUS is jumping

- Shaft rotation is switching between CCW and CW when a small torque is applied.

Any ideas how to solve / recommendations.

 

GMA
ST Employee

Hello @FVan .1,

As mentioned: could you set STO-PLL as primary speed sensor and hall sensor as auxiliary and check with motor pilot high frequency plot that STOPLL_EN_ANGLE and HALL_EN_ANGLE are correctly aligned?

About "VBUS jumping", is it a current limitation of your DC Supply?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
FVan .1
Associate III

Hello GMA,

I tried to make a plot but it was not possible due an error (speed feedback) a few seconds after each start. See attachments.

GMA
ST Employee

Hello @FVan .1,

For error management, could you please have a look at user Manual documentation available through "Workbench tool">About>Documentations>Documentation>"User manual" tab, "Firmware errors" link, "7. Speed Feedback error" chapter.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA