cancel
Showing results for 
Search instead for 
Did you mean: 

How I can use STEVAL-SPIN3201 for BLDC with MotorControl Workbench?

oleg_sidorovich_1981
Associate II

How I can use STEVAL-SPIN3201 for BLDC with MotorControl Workbench (SM PMSM, IPMSM)? In MotorControl Workbench only two types motors? To choose SM PMSM?

1 ACCEPTED SOLUTION

Accepted Solutions
Cristiana SCARAMEL
ST Employee

Hello @oleg_sidorovich_1981,

you can create your project to drive a motor with FOC algorithms with STM32 motor control workbench following these steps:

  • Open the STM32 motor control workbench
  • Click on “New Project�? (top-left corner)
  • In the new project windows Select Boards “Inverter�? and choose the STEVAL-SPIN3201 from the dropdown list. In this way, the application automatically loads all the hardware-related parameters for the FOC library.
  • From the motor list, one of the pre-configured motors (or a generic starting model can be selected)
  • Click OK. A new project is now created according to the starting parameters selected.

A new configuration window appears, allowing the parameters to be set for each blocks.

Clicking on the “Motor�? icon you can select the Magnetic structure: Internal PMSM or Surface Mounted PMSM and all parameters according your motor characteristics.

You can customize your application and save the project by clicking on the save button.

This is the configuration file of parameters used and generate the code by clicking on "Generation" button.

In the generation windows you can set more parameters and after create the custom folder with your library code.

You can find more details on the UM2168 Using STM32 motor control workbench with STSPIN32F0 and STSPIN32F0A

If I answered to your questions please "Select as Best" ;)

If you feel a post has answered your question, please click "Accept as Solution"

View solution in original post

2 REPLIES 2
Cristiana SCARAMEL
ST Employee

Hello @oleg_sidorovich_1981,

you can create your project to drive a motor with FOC algorithms with STM32 motor control workbench following these steps:

  • Open the STM32 motor control workbench
  • Click on “New Project�? (top-left corner)
  • In the new project windows Select Boards “Inverter�? and choose the STEVAL-SPIN3201 from the dropdown list. In this way, the application automatically loads all the hardware-related parameters for the FOC library.
  • From the motor list, one of the pre-configured motors (or a generic starting model can be selected)
  • Click OK. A new project is now created according to the starting parameters selected.

A new configuration window appears, allowing the parameters to be set for each blocks.

Clicking on the “Motor�? icon you can select the Magnetic structure: Internal PMSM or Surface Mounted PMSM and all parameters according your motor characteristics.

You can customize your application and save the project by clicking on the save button.

This is the configuration file of parameters used and generate the code by clicking on "Generation" button.

In the generation windows you can set more parameters and after create the custom folder with your library code.

You can find more details on the UM2168 Using STM32 motor control workbench with STSPIN32F0 and STSPIN32F0A

If I answered to your questions please "Select as Best" ;)

If you feel a post has answered your question, please click "Accept as Solution"
Laurent Ca...
Lead II

The question has been moved from the section "Motor Control Hardware" to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards