Hello @Community member,
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 EVSPIN32F0601S3 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.
The evaluation board can be used in FOC sensorless mode without modifications, current signals are read through shunt resistors, amplified and brought to MCU ADC channels 5, 6 and 7.
You can find more details on the EVSPIN32F0601S3 hardware setting in the user manual UM2596
Let me know if these info are useful to you, if yes please "Select as Best" button to close the topic.