STM32 Ecosystem for Motor Control

Overview
Software Tools
Embedded Software
Hardware Tools
Products & Features
Resources
 

From HW boards, SW tools and embedded SW to training resources and documentations, the STM32 ecosystem offers many materials to ease the development of motor control applications.

  • Large STM32/STM8 (32bit/8bit) MCU portfolio, industrial grade, supporting Motor Control requirements
  • Tailored digital and analog peripherals
  • Large set of embedded features (present in the MC-SDK) to cope with different application needs

STM32 MCUs are particularly suitable to develop Permanent Magnet Synchronous Motors (PMSM), Brushless DC motors (BLDC), AC induction motors (ACIM), and Stepper motors., Brushless DC motors (BLDC) and Stepper motors.

STM32 MCU flagships for Motor Control applications

Development Flow

Software Tools

STM32 tools and software provide an integrated development environment to ease and support the design of motor control solutions.

ST MOTOR PROFILER

ST Motor Profiler is a software tool that automatically measures the electrical parameters of PMSM and BLDC motors. It can be used to run an unknown motor from scratch in only few minutes. ST Motor Profiler is included in the X-Cube-MCSDK software development kit for STM32 device.

 

STM32Cube & MC Workbench

STM32Cube is a free set of tools and embedded software bricks for STM32 microcontrollers and microprocessors addressing all the needs of a complete project development cycle. It includes the STM32CubeMX configuration tool which enables the generation of C initialization code for Cortex-M cores. Motor Control Workbench (available in the X-CUBE-MCSDK) is linked with STM32CubeMX. Developers can open STM32CubeMX through Motor Control Workbench during their Motor Control development to change STM32 configuration. Since X-CUBE-MCSDK revision 6.2, the tool supports the new HSO algorithm (state of the art observer) and for selected customers also supports the STM32-ZEST algorithm.

Embedded Software

X-CUBE-MCSDK

The X-CUBE-MCSDK STM32 motor control software development kit for 6-step BLDC motors / PMSM (FOC) solutions includes a Motor Control firmware library and its Graphical User Interface, the Motor Control Workbench, which can be used to configure the library.

STSW-STM8020

This motor control firmware library for BLDC and AC Induction Motors, based on the mainstream STM8S and automotive STM8A microcontrollers, allows users to evaluate STM8 performance in controlling trapezoidal 6-step BLDC motors and in driving V/F control AC Induction Motors.

00 Files selected for download
  Description Version Size Action
DN0005
A three phase induction motor drive using a V/F control
2.1
528KB
PDF
AN1946
Sensorless BLDC motor control and BEMF sampling methods with ST7MC.
2.4
653KB
PDF
AN2820
Driving bipolar stepper motors using a medium-density STM32F103xx microcontroller
2.5
326KB
PDF
DN0005

A three phase induction motor drive using a V/F control

AN1946

Sensorless BLDC motor control and BEMF sampling methods with ST7MC

AN2820

Driving bipolar stepper motors using a medium-density STM32F103xx microcontroller

STEPPER MOTORS SOLUTION

All the Motor control boards are listed in the X-CUBE-MCSDK

Hardware Tools

Hardware tools to evaluate STM32 MCUs in different Motor Control environments (in terms of power range) are available.

 

Focus on Motor Control packs and Discovery kits

STM32 Motor Control hardware tools P-NUCLEO-IHM03
P-NUCLEO-IHM03
  • This platform provides a motor-control solution for three-phase, low- voltage and low-current DC brushless or PMSM motors. It is based on the STSPIN830 driver and on the STM32G431RB MCU
  • The P-NUCLEO-IHM03 STM32 motor-control pack is a kit composed of the X-NUCLEO-IHM16M1 board, the NUCLEO- G431RB board, a brushless Gimbal motor (GBM2804H-100T), and the DC power supply
STM32 Motor Control hardware tools B-G431B-ESC1
B-G431B-ESC1
  • Discovery kit is based on the STM32G431CB microcontroller, L6387 driver and STL180N6F7 power MOSFETs. It is composed of a main power board, and a daughterboard with embedded ST-LINK/V2-1
  • It is an electronic speed controller (ESC), designed to drive a single 3-phase brushless motor (BLDC/PMSM), performing both sensorless FOC algorithm and 6-step control with a speed regulation, and an active braking function algorithm
STM32 Motor Control hardware tools B-G473E-ZEST1S
B-G473E-ZEST1S
  • The B-G473E-ZEST1S Discovery kit is a part of the motor-control development platform supporting ZeST and HSO algorithms. B-G473E-ZEST1S is a control board with the STM32G473QET6 microcontroller in the ZeST
  • Discovery pack and works together with a Power board such as STEVAL-LVLP01, an optional adaptor board such as B-ZEST-ADAPT1, and an accessories package such as B-MOTOR-PMSMA1.

 

Products & Key Features for Motor Control

The STM32 portfolio includes devices based on Arm® Cortex®-M cores (M0, M0+, M3, M33, M4, and M7). Thanks to the MCUs' shared ecosystem, developers benefit from enhanced flexibility to move forward with their motor control design. STM8 MCUs, our 8-bit family of microcontrollers, complement our offer and enable the design of very cost-sensitive motor control solutions.

Each STM32 series offers a different set of peripherals matching different Motor Control application requirements.

STM32 F3 series and G4 series

The STM32G4 series combines a 32-bit Arm® Cortex®-M4 core (with FPU and DSP instructions) running at 170 MHz combined with three different hardware accelerators, rich analog peripherals and advanced motor control timers to meet all motor control application requirements. These product series are ideal for Motor Control applications.

STSPIN32F0

The STSPIN32F0 is a System-In-Package providing an integrated solution suitable for driving three-phase BLDC motors using different driving modes. This product series combines an STM32F031 microcontroller with triple half-bridge gate driver able to drive power MOSFETs or IGBTs with a current capability of 600 mA (sink and source) as well as other analog components.

STSPIN32G0

The STSPIN32G0 series is an integrated motor control solution for driving three-phase brushless motors using different driving modes. These Systems-in-Package series combines an advanced 3-Phase Gate Drivers able to drive power MOSFETs or IGBTs with an STM32G031 microcontroller embedding 64Kb Flash and 8Kb SRAM. The integrated power management and analog components make STSPIN32G0 a convenient and efficient choice for motor control designs.

STSPIN32G4

The STSPIN32G4 is a System-In-Package enabling your high-end three-phase brushless motor driving applications with extra computational capacity and a high-performance gate driver. This product series combines an STM32G431 microcontroller, a triple half-bridge gate driver with advanced features, and power management in a small 9x9 mm QFN package.

MOTOR CONTROL LIBRARY PERFORMANCE (PART OF THE X-CUBE-MCSDK)

    Test configuration 1:
  • HW boards based on STM32 Nucleo (as control board) + X-NUCLEO-IHM16M1 (as LV-LP power board)
  • Running ‘legacy’ STO/PLL sensorless solution
  • PWM frequency = 20kHz - FOC = 10KHz
  • Speed regulation (MediumFrequencyTask): 1KHz
  • Compiler STM CubeIDE (option -Ofast)
    Test configuration 2:
  • HW boards based on B-G473E-ZeSTS1 (as control board) + STEVAL-LVLP01 (as LV-LP power board)
  • Running HSO sensorless solution
  • PWM frequency = 10kHz
  • Speed regulation (MediumFrequencyTask): 1KHz
  • Compiler IAR (option - HighSpeed)
Legend:
  Default configuration generated from MCSDK Workbench
  In post MCSDK Workbench generation, to improve executions time, by using CubeMx change default options in System Core categories or by using CCMRAM in F3 & G4 cases

PRODUCT KEY FEATURES TO ENABLE MOTOR CONTROL

The Motor Control Library included in X-CUBE-MCSDK (today available for PMSM/BLDC motors) enables the features listed below.

Full Integration/configuration in MC Workbench tools:

Resources

Getting started with STM32 Motor control SDK6.0

The new MC-SDK v6.0.0 offers a completely renewed GUI (Motor Control Workbench V2), fully supporting FOC and 6-Step control, to enhance developers autonomy and support more features and products in the future.

Getting Started with the NEW Motor Control Nucleo Pack

Getting Started with the P-NUCLEO-IHM001

Getting starting with P-NUCLEO-IHM03

The P-NUCLEO-IHM03 STM32 motor-control pack is a kit composed of the X-NUCLEO-IHM16M1 board, the NUCLEO-G431RB board, a brushless Gimbal motor (GBM2804H-100T), and the DC power supply.

STM32G4 series - Product overview

The STM32G4 Series combines a 32-bit Arm® Cortex®-M4 core (with FPU and DSP instructions) ru nning at 170 MHz combined with 3 different hardware accelerators: ART Accelerator™, CCM-SRAM routine booster and mathematical accelerators.

Motor Control MOOC

STM32 online training courses in MOOC format to help you design with ST products, software and tools.

Get involved in the STM32 Community

Ask questions, share projects and collaborate with your fellow community members.

Fundamentals of Motor Control