STM32 Motor Control



Home Page
STM32 Page


INDEX


• Electric motors classification
• Nomenclature
• Scalar and vector drives
• ST motor control ‘Ecosystem’
• Focus on vector control




Introduction

A
generic motor controller kit is show below.

  • The FOC SW/FW is here (STSW-STM32100), this package contain the:
    • ST MC Workbench (PC GUI configuration and monitor tool)
    • All the SW that is necessary for STM32xxx MCU 
  • The Inverter Board must be chosen to meet the motor characteristics.
    See here the STEVAL-IHMxxx. See also here.

ST’s STM32 offers the performance of the industry-standard Cortex®-M core at the service of vector (or field-oriented) control (FOC) algorithms, widely used in high-performance drives.

The STM32 PMSM FOC SDK(STSW-STM32100), which includes the PMSM FOC FW library and ST MC Workbench, allows the user to evaluate the STM32 performance in applications driving single or dual Field Oriented Control of 3-phase Permanent Magnet motors (PMSM, BLDC).

STM32 PMSM FOC SDK is part of ST's motor control ecosystem which offers a wide range of hardware and software solutions for motor control applications.

ST MC Workbench is a PC software which reduces the design effort and time in the STM32 PMSM FOC firmware library configuration.
The user, through a graphical user interface (GUI), generates all parameter header files which configure the library according to the application needs and can in real time monitor and change some variables of the algorithm.






Go UP




Presentation of the FOC controller

















UP









UP





UP


























UP



Summary MCUs and Features








EvaBoard










Click here to get presentation concerning STEVAL-IHM036V1
The purpose of the STEVAL-IHM036V1 demonstration board is to present a universal, fully-tested design consisting of a 3-phase inverter bridge based on the 600 V, 3 A small low-loss intelligent molded module (SLLIMM™) STGIPN3H60 and the STM32F100C6T6B MCU.
Click here for:
STEVAL-IHM036V1 website.
Click here for: Quick reference guide for testing STEVAL-IHM036V1 with SHIMANO motor.










-
How to convert RPM to the Frequency of the sinusoidal current that must be generated for each phase, considering the number of pole pairs.


Suppose to have a 3 phase motor
Suppose to have 20000 rpm, this means 20000
laps (mechanical) per minute.
And suppose that the motor is a 4 pole pairs.

The formula for calculate the mechanical frequency (MF) is:
MF = rpm/60
20000 rpm ==> laps (mechanical) per minute ==> 20000/60 = 333.33 per second (mechanical frequency)

To calculate the electrical frequency (Hz) is necessary multiplied the mechanical frequency by the number of pole pairs.
Hz = MF x Number_of_Pole
333.33 x 4 = 1333.33 Hz
This is the frequency of the sinusoid of current that must be generated for each phase.

But...

The sinusoid must be (Nyquist) at least twice but as we know it is not enough... we say that takes at least 10-12 times, (most bigger is, the better is) to get an accurate reconstruction of the curve... the PWM frequency is our sampling frequency (in the case in which the vector control is done every period of PWM).
So the PWM frequency is:
Fpwm >= 1333.33 * 12 = 16 KHz
Consider that 16 KHz is the minimum conditions.
If it is possible the suggestion is: go up in frequency but take care the switching losses.



Go UP



FOC 4.0 only for SILICA internal use

Only for SILICA internal use there is the: STM32_FOC_SDK_4.0.0_Confidential_140630
IMPORTANT NOTE
At the moment, this SW is only for SILICA internal use.
If you are SILICA customer send me an email and ask me:
STM32_FOC_SDK_4.0.0_Confidential_140630
Please specify your Name, CITY, COUNTRY and your contact in SILICA.
If you are STM customer please contact directly your local office of STM.

UP



-
Training FOC 4.0 and Analog - Catania Luglio 2014 - Only for SILICA internal use


Only for SILICA internal use there is the: Training Motor control Catania 2014
IMPORTANT NOTE
At the moment, this SW is only for SILICA internal use.
If you are SILICA customer send me an email and ask me:
Training Motor control Catania 2014
Please specify your Name, CITY, COUNTRY and your contact in SILICA.
If you are STM customer please contact directly your local office of STM.

UP



-
Motor Control v.2.0 - ACIM and PMSM - only for SILICA internal use


Only for SILICA internal use there is the: Motor Control v.2.1.200(Beta) - ACIM and PMSM
IMPORTANT NOTE
At the moment, this SW is only for SILICA internal use.
If you are SILICA customer send me an email and ask me:
Motor Control v.2.1.200(Beta) - ACIM and PMSM
Please specify your Name, CITY, COUNTRY and your contact in SILICA.
If you are STM customer please contact directly your local office of STM.

UP





LINK

User Manual: PMSM single/dual FOC SDK v.4.0 - UM1052 User manual for STM32F05xx/STM32F100xx/STM32F103xx/STM32F2xx/STM32F3xx/STM32F4xx
The software library implements the Field Oriented Control (FOC) drive of 3-phase Permanent Magnet Synchronous Motors (PMSM), both Surface Mounted (SM-PMSM) and Internal (I-PMSM).

See also:
Intelligent Power Module - IPM - that is here.

Go UP




Home Page
STM32 Page