STM32 Ecosystem for Motor Control
From hardware tools and embedded software to training resources and documentation, the STM32 ecosystem offers many tools to ease the development of motor control applications.
- Large 8-bit/32-bit portfolio supporting Motor Control requirements
- Tailored digital and analog motor control peripherals
- Temperature range from - 40 to + 125°C
STM32 MCUs are particularly suitable to develop Permanent Magnet Synchronous Motors (PMSM), Brushless DC motors (BLDC) and Stepper motors.
STM32 tools and software provide an integrated development environment to ease and support the design of motor control solutions.
ST-MC-Suite is an online solution finder which offers easy access to all STM32 and STM8 MCU resources available for motor control applications, such as application notes, brochures, presentations, and magazine articles. A software wizard is included to help developers select relevant materials, add them to their bundle and download them in one click.
|ST-MC-SUITE||Online Motor Control solution finder for STM32 and STM8 products|
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.
|Part Number||Configuration||Initialization code Generation||Code Edition||Code Building||Debugging||Binary Programming||Monitoring|
|STM32CubeIDE||(Integrates STM32CubeMX)||(Integrates STM32CubeMX)|
STEPPER MOTORS SOLUTION
|STSW-STM32018||Driving bipolar stepper motors using STM32F103 microcontroller|
|X-CUBE-SPN1||Stepper bipolar motor driver software expansion for STM32Cube|
|X-CUBE-SPN2||Two axes stepper motor driver software expansion for STM32Cube|
|X-CUBE-SPN3||High power stepper motor driver software expansion for STM32Cube|
|X-CUBE-SPN4||Dual brush DC motor driver software expansion for STM32Cube|
|X-CUBE-SPN5||Stepper bipolar motor driver software expansion for STM32Cube|
Hardware tools to evaluate STM32 MCUs in different Motor Control environments (in terms of power range) are available. ST-MC-SUITE wizard is a useful means to select the most appropriate solution for your application.
Focus on Motor Control packs and Discovery kits
- 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
- 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
P-NUCLEO-IHM001 and P-NUCLEO-IHM002
- This pack provides a perfect motor control solution for three-phase, low-voltage and low-current DC brushless motor. It is based on the L6230 driver (belonging to STSPIN family) and on the STM32F302R8 MCU
- The P-NUCLEO-IHM001 is a kit composed of: the X-NUCLEO- IHM07M1 board, the NUCLEO-F302R8 board and a brushless DC motor (+ power supply in P-NUCLEO-IHM002).
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 Series||ARM Core||More CPU frequency||Flash range||Analog integration level||MC timer|
|STM32F303||Cortex-M4 (DSP/FPU)||72MHz||[32KB-512KB]||++++||3x (144 MHz)|
|STM32F302||Cortex-M4 (DSP/FPU)||72 MHz||[32KB-512KB]||+++||1x (144 MHz)|
|STM32F301||Cortex-M4 (DSP/FPU)||72 MHz||[16KB-64KB]||++||1x (144 MHz)|
|STM32G431||Cortex-M4 (DSP/FPU)||170MHz||[32KB-128KB]||+++||2x (170 MHz)|
|STM32G473||Cortex-M4 (DSP/FPU)||170 MHz||[32KB-128KB]||++++||3x (170 MHz)|
|STM32F4xx||Cortex-M4 (DSP/FPU)||180MHz||[256KB-1024KB]||++||2x (180 MHz)|
|STM32F7xx||Cortex-M7||216 MHz||[64KB-2048KB]||++||2x (216 MHz)|
|STM32H7xx||Cortex-M7 + M4 (option)||480 MHz||[128KB-2018KB]||++||2x (240 MHz)|
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.
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.
MOTOR CONTROL LIBRARY PERFORMANCE (PART OF THE X-CUBE-MCSDK)
- PWM frequency = 20kHz - FOC = 10KHz - Sensorless STO+PLL
- Speed regulation (MediumFrequencyTask): 1KHz
- Compiler STM CubeIDE (option -Ofast)
|MCU||CPU Clock (MHz)||Cortex||Current sensing||Preftech||I+D Cache||CCMRAM||ITCMRAM||Total Workload||FOC lib Code (Kb)||HAL drivers (Kb)||Total Code (Kb)||Read Only Data (Kb)||FOC lib data (Kb)||CCMRAM (Kb)|
|1 Shunt||not yet supported in mcsdk 6.1 release|
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:
|Key features||STM32 series compatibility|
|Current Sensing and over current protection OCP||Current 1-shunt or 3-shunt||F0 - F3 - F4 - F7 - L4 - G0 - G4 - H7 - STSpin32F0/G4|
|Insulated Current Sensing||Not yet supported|
|Embedded Comparators OCP, OPAMPs||F3 - G4|
|Speed & Position sensing||Sensor (Hall, Encoder), Sensor-less||F0 - F3 - F4 - F7 - L4 - G0 - G4 - H7 - STSpin32F0/G4|
|Bus voltage sensing/protection (UVP and OVP)||Vbus reading, Under and Over voltage protection||F0 - F3 - F4 - F7 - L4 - G0 - G4 - H7 - STSpin32F0/G4|
|Temperature sensing/protection (OTP)||Temperature measurement, Over Temperature Protection||F0 - F3 - F4 - F7 - L4 - G0 - G4 - H7 - STSpin32F0/G4|
|Field Oriented Control (FOC)||Single||F0 - F3 - F4 - F7 - L4 - G0 - G4 - H7 - STSpin32F0/G4|
|Dual (Couple ADCs per motor)||Not yet supported|
|Dual (Sharing ADCs) resources for both motors||Not yet supported|
|Dual Motor example||F3 - F4 - G4 - H7|
|Six Step||Full support||F0 - F3 - G0 - G4 - STSpin32F0/G4|
|ACIM||Configured through WB, Example only||F0 - F3 - F4 - F7 - L4 - G0 - G4 - H7 - STSpin32F0/G4|
|Control Mode||Torque/Speed or Position control||F0 - F3 - F4 - F7 - L4 - G0 - G4 - H7 - STSpin32F0/G4|
|Other Features||MTPA, Flux weaken, Feed Forward||F0 - F3 - F4 - F7 - L4 - G0 - G4 - H7 - STSpin32F0/G4|
|PCF - FW support||Not yet supported|
|Discontinuous PWM||F0 - F3 - F4 - F7 - L4 - G0 - G4 - H7 - STSpin32F0/G4|
|Over Modulation and Single shunt phase shift||F0 - F3 - F4 - F7 - L4 - G0 - G4 - H7 - STSpin32F0/G4|
|Monitor control pilot - MC Protocol v2||High bandwidth 1.84mbd|
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 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.