STM32 motor control firmware library. STM32 FOC PMSM SDK v3.0.

Similar documents
STM32 PMSM FOC SDK v3.2. 蒋建国 MCU Application Great China

Sistemi per il controllo motori

ST solutions for efficient and robust motion control. Version 1.0

Power 'n Motors. Critical aspects in power applications design, proper component selection & experimental results

RX23T inverter ref. kit

Overview of the STM32F103xx ACIM and PMSM motor control software libraries release 2.0

UM2392. STM32 motor control SDK. User manual. Introduction

Sensorless Vector Control and Implementation: Why and How

User Guide Introduction. IRMCS3043 System Overview/Guide. International Rectifier s imotion Team. Table of Contents

Firmware plugin for STSW-ESC001V1 board with ST Motor Control FOC SDK

User Guide IRMCS3041 System Overview/Guide. Aengus Murray. Table of Contents. Introduction

RL78 Motor Control. YRMCKITRL78G14 Starter Kit. Renesas Electronics Europe. David Parsons Application Engineering Industrial Business Group.

Sensorless Vector Control with RL78G14

UM1491 User manual. 100 W 3-phase inverter demonstration board using the L6390 and STD5N52U for vector control. Introduction

UM0486 User manual. STM3210B-MCKIT motor control starter kit. Introduction. In this manual, you will find information on:

National Infotech. Electrical Drive Trainers. Developed By: : Authorized Dealer : Embedded System Solutions

UM1478 User manual. STEVAL-IFN003V1: DC PMSM FOC motor driver based on the L6230 and STM32. Introduction

A Practical Primer On Motor Drives (Part 13): Motor Drive Control Architectures And Algorithms

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

2014 Texas Instruments Motor Control Training Series. -V th. Dave Wilson

AP CANmotion. Evaluation Platform with BLDC Motor featuring XC886CM Flash Microcontroller Version 2007/10. Microcontrollers

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

Sensorless Vector Control with RL78G14

Motor Control Solutions

Sensorless PMSM Field-Oriented Control on Kinetis KV and KE

F²MC-8FX/16LX/16FX/FR FAMILY BLDC DRIVE WITH THE PPG

AN4277 Application note

Design of Joint Controller Circuit for PA10 Robot Arm

A COMPARISON STUDY OF THE COMMUTATION METHODS FOR THE THREE-PHASE PERMANENT MAGNET BRUSHLESS DC MOTOR

AN3165 Application note

150 W inverter featuring L639x and STGD3HF60HD for 1-shunt based sinusoidal vector control and trapezoidal scalar control

3-in-1 Air Condition Solution

32-Bit-Digital Signal Controller TMS320F2812

imotion Solution Platform Dedicated to Motor Control

AN Sensorless single-shunt FOC on LPC2900. Document information. LPC2900, FOC, SVPWM, SMC, current observer, PMSM, single shunt DC-link

STM32 for Motor Control. Applications. Features and benefits. MCU Division. Applications

Designing with STM32F3x

Vector Control of a 3-Phase PMSM Using the ZNEO Z16FMC MCU

Hands-on Workshop: Motor Control Part 4 - Brushless DC Motors Made Easy

BLDC Motor Control on Z8FMC16 Series MCUs Using Sensored Sinusoidal PWM Modulation

Getting started with the STSW-SPIN3202 firmware package

2013 Texas Instruments Motor Control Training Series. -V th. InstaSPIN Training

Low Voltage Solutions for DC & BLDC Motors in Industrial Applications

UM1483 User manual. 1 Introduction. Low power motor control board STEVAL-IHM036V1 featuring SLLIMM STGIPN3H60 and MCU STM32F100C6T6B

Motor Control using NXP s LPC2900

FOC Motor Drive XC878 XE164 7,5A

Low Cost Motor Control Family

DMCode-MS(BL) MATLAB Library

SLLIMM - nano Series

TABLE OF CONTENTS CHAPTER NO. TITLE PAGE NO. LIST OF TABLES LIST OF FIGURES LIST OF SYMBOLS AND ABBREVIATIONS

VORAGO Timer (TIM) subsystem application note

Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN)

Power Factor Correction in Digital World. Abstract. 1 Introduction. 3 Advantages of Digital PFC over traditional Analog PFC.

CHAPTER 2 VSI FED INDUCTION MOTOR DRIVE

Digital Control of Permanent Magnet Synchronous Motor

POWER- SWITCHING CONVERTERS Medium and High Power

Using the HCS08 TPM Module In Motor Control Applications

STEVALIPMnM2N. 100 W motor control power board based on STIPN2M50T-H SLLIMM nano IPM MOSFET. Data brief. Features. Description

Features

Speed Control of Single Phase Induction Motor Using Infrared Receiver Module

UM0428 User manual IGBT Power module evaluation kit - Semitop2 power board Introduction Features

Analog Devices: High Efficiency, Low Cost, Sensorless Motor Control.

STARTER / GENERATOR MOTOR CONTROLLER

Sensorless PMSM Control on MKV46F256 Using Kinetis SDK

Fuzzy Logic Based Speed Control of BLDC Motor

Implementation of Brushless DC motor speed control on STM32F407 Cortex M4

Generating DTMF Tones Using Z8 Encore! MCU

Brushed DC Motor Control. Module with CAN (MDL-BDC24)

10kW Three-phase SiC PFC Rectifier

Digital PWM Techniques and Commutation for Brushless DC Motor Control Applications: Review

Simulation Study of MOSFET Based Drive Circuit Design of Sensorless BLDC Motor for Space Vehicle

High-speed and High-precision Motion Controller

UM0969 User manual. 3-phase motor control demonstration board featuring IGBT intelligent power module STGIPS10K60A. Introduction

A Modified Sychronous Current Regulator for Brushless Motor Control

MDM5253 DC Motor Driver Module with Position and Current Feedback User Manual

MATLAB/SIMULINK MODEL OF FIELD ORIENTED CONTROL OF PMSM DRIVE USING SPACE VECTORS

Brushless 5 click. PID: MIKROE 3032 Weight: 25 g

Zilog Motor Control Technologies

Control of Electric Machine Drive Systems

Vector CONTROLLERS for BLDC Motors. State of Art Technology Most Reliable - High Efficiency Smooth control - Programmable

BLDC TORQUE RIPPLE MINIMIZATION USING MODIFIED STAIRCASE PWM

Application - Power Factor Correction (PFC) with XMC TM. XMC microcontrollers July 2016

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers

Design of A Closed Loop Speed Control For BLDC Motor

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

Simulation and Dynamic Response of Closed Loop Speed Control of PMSM Drive Using Fuzzy Controller

32-bit Microcontroller for Home

INVESTIGATION OF HARMONIC DETECTION TECHNIQUES FOR SHUNT ACTIVE POWER FILTER

Free Programmable Signal Processing inside a High Performance Servo Amplifier

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM

UM1746 User manual. 500 W fully digital AC-DC power supply based on the STM32F334 microcontroller. Introduction

HIGH PERFORMANCE CONTROL OF AC DRIVES WITH MATLAB/SIMULINK MODELS

Using Z8 Encore! XP MCU for RMS Calculation

TMC603EVAL MANUAL Evaluation board for the TMC603 three phase motor driver with BLDC back EMF commutation hallfx

Introduction to BLDC Motor Control Using Freescale MCU. Tom Wang Segment Biz. Dev. Manager Avnet Electronics Marketing Asia

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

CHAPTER 2 CURRENT SOURCE INVERTER FOR IM CONTROL

XC800 Peripheral Highlights

Motor Control Design Solutions

Transcription:

STM32 motor control firmware library STM32 FOC PMSM SDK v3.0

Contents STM32 FOC PMSM SDK v3.0 overview The FOC (field oriented control) algorithm STM32 with FOC Motor control and electric motor offer FOC with STM32F100 and STM32F103 Support tools for 3-phase motor control application

Overview Firmware library (free of charge) It implements the field oriented control (FOC) drive of 3-phase permanent magnet synchronous motors (PMSM), both surface mounted (SM-PMSM) and internal (I-PMSM) STM32 FOC PMSM SDK v 3.0 supporting STM32F103 microcontroller (STM32 performance line) Medium-density devices (up to 256 Kbytes of Flash) or high-density devices (from 256 Kbytes to 1 Mbyte of Flash) STM32F100 microcontroller (STM32 value line) in order to Quickly evaluate ST microcontrollers on 3- phase PMSM motor control applications Save time when developing motor control solutions to be run on ST microcontrollers

Electric motor control at ST Higher efficiency and/or reliability Synchronous Sinusoidal PMSM Permanent magnet Wound field Internal mounted PM Surface mounted PM AC Trapezoidal Electric motors DC Universal ACIM Asynchronous Variable reluctance Squirrel cage wound rotor Stepper Switched reluctance ACIM: 3-phase induction motor STM32 motor control FW library available Also supported by ST products PMSM: 3-phase permanent magnet synchronous motor

Field oriented control (FOC) Mathematical technique used to achieve decoupled control of the flux and torque in a 3-phase motors Block diagram of FOC algorithm example b i qs * + i ds * - + - PID PID v qs v ds REVERSE PARK & circle limitation v αβ v a,b,c CALC SVPWM Bus voltage measurement θ r a i qs i ds θ r el PARK i αβ CLARKE i abc CURRENT READING c Φ m θ r el SENSORLESS Rotor ROTOR Angle/Speed SPEED/POSITION reconstruction STATE OBSERVER i αβ b-emf α b-emf β v αβ BACK-EMFs CALCULATION DC domain AC domain

Benefits of FOC Optimized efficiency even during transient operation Precise and responsive speed control to load variations Precise position control (through instantaneous torque control) Acoustical noise reduction due to precise control technique

FOC with STM32 Power stage d,q d,q α,β θ s α,β Vα Vβ Iα Iβ α,β SV PWM θ s a,b Va Vb Vc Ia Ib 6-channel PWM timer ADCs 6x PWM Fault signals Ia and Ib V BUS M θ s θ s ωm Speed/position feedback timer Tachometer/encoder/Hall sensor Not present for sensorless algorithm FOC algorithm HW peripherals

STM32 FOC PMSM SDK v3.0 key features Single/dual simultaneous vector control (FOC) Any combination of current-reading topologies and speed or position sensors is supported Supports both STM32F100x and STM32F103x families STM32 FOC PMSM SDK v 3.0 Full customization through ST MC workbench (GUI) Algorithm improvements compared to v2.0 Application example based on FreeRTOS

3-phase brushless motor control evolution Performances Q3 2007: STR750 MC kit Q1 2008: STM32 MC kit Q4 2008: STM32 FOC FW library v2.0 High-end FOC Q1 2011: STM32 FOC PMSM SDK v3.0 - Dual FOCs - High-end FOC - Low-end FOC Next step Support new advanced MCUs Adding new features

STM32F100 Value line 32-bit ARM Cortex -M3 core Up to 30 DMIPS at 24 MHz max 2.0 to 3.6 V operation -40 to +105 C Enhanced control 1x 16-bit advanced timer 6x 16-bit PWM timers Advanced analog 1x fast 12-bit 1.2 µs ADC Dual-channel 12-bit DAC System integration Internal 8 MHz RC oscillator Built-in safe reset system Datasheets

FOC single motor drive with STM32F100 Target application characteristics Requirements for dynamic performances are moderate Quietness of sinusoidal current control (versus 6-step drive) is valuable Extended speed range is required Particularly suitable for pumps, fans and compressors Cost optimized More silent Advantages Lower torque ripple Extended speed range more easily achieved Current Current FOC control Six-step drive

Performances of FOC with STM32F100 Configuration: 1 shunt/sensorless at 20 khz PWM,10 khz FOC Motor control code size is 15.82 Kbytes Motor control RAM usage is 2.77 Kbytes FOC total execution time is 65.22 µs (ADC ISR + TIM1 update ISR) FOC introduced CPU load is 65.2% Total CPU load is ~70% (~60% at 8 khz FOC) ISR: interrupt service routine

STM32F103 Performance line 32-bit ARM Cortex -M3 core 1.25 DMIPS/MHz (Dhrystone 2.1) 2 to 3.6 V supply -40 to + 105 C From 16-Kbytes to 1-Mbyte Flash memory Enhanced control Up to 2x 16-bit advanced timer Up to 4x 16-bit PWM timers Advanced analog Up to 3x fast 12-bit 1.2 µs ADC System integration Internal 8 MHz RC oscillator Built-in safe reset system Datasheets

FOC single motor drive with STM32F103 Target applications Wide application range from home appliances to robotics, where: Accurate and quick regulation of motor speed and torque is required (such as in torque load transient or abrupt target speed variations) CPU load granted to motor control must be low due to other duties Power tools Industrial motor drives Fitness, wellness and healthcare Home appliances Games Escalators and elevators

Performances of FOC with STM32F103 Configuration: 1 shunt/sensorless at 10 khz FOC sampling time Motor control code size is 16.2 Kbytes Motor control RAM usage is <2.5 Kbytes FOC total execution time is 26.1 µs (ADC ISR + TIM1 update ISR) FOC introduced CPU load is 30% ISR: interrupt service routine

FOC dual motor drive with STM32F103 Target applications Target applications Wide application range from home appliances to robotics, where: Up to two FOC drives have to run at the same time Accurate and quick regulation of motor speed and torque is required (such as in torque load transient or abrupt target speed variations) Dishwashers: spray + drain pumps Washing machines: drum + drain pumps Air conditioners: compressors + outdoor fans Industrial motor drives

Dual FOC PMSM block diagram Gate drivers Power bridge1 Motor1 ω r* 1 ω r* 2 v a,b,c BKIN Current sensors: 3shunt/1shunt/ICS Speed sensors: Sensorless, Hall, Encoder With STM32 FOC PMSM SDK v3.0, STM32F103 high-density devices with their extended set of peripherals (2 advanced timers, 3 fast ADCs, and more) can drive 2 motors in diverse configurations BKIN Motor2 v a,b,c Gate drivers Current sensors: 3shunt/1shunt/ICS Power bridge2 Speed sensors: Sensorless, Hall, Encoder ICS: isolated current sensors

Performances of dual FOC with STM32F103 Example of configuration No. 1: Motor 1, 1 shunt/sensorless @ 8 khz PWM/FOC flux weakening enabled Motor 2, 1 shunt/sensorless @ 16 khz PWM, 8 khz FOC Motor control code size is 22.3 Kbytes (1.5 times below single motor case) Motor control RAM usage is 4.01 Kbytes FOC introduced CPU load (including TIMx update ISRs) is 44% Total CPU load ~50% ISR: interrupt service routine

Performances of dual FOCs with STM32F103 Example of configuration No. 2: Motor 1, 3 shunts/sensorless @ 16 khz PWM/FOC MTPA and flux weakening enabled Motor 2, 1 shunt/sensorless @ 16 khz PWM, 8 khz FOC Motor control code size is 25.5 Kbytes Motor control RAM usage is 4.14 Kbytes FOCs introduced CPU load (including TIMx update ISRs) is 62.6% Total CPU load <70% ISR: interrupt service routine

Summary table: features set MCU support STM32F103 (Performance line) HD STM32F103 (Performance line) MD and HD STM32F100 (Value line) and STM32F103 1-shunt Flux weakening IPMSM MTPA 3-shunt Dual FOC Feed forward Sensorless (STO + PLL) Sensorless (STO + Cordic) FreeRTOS Max dual FOC ~20 khz Encoder Hall sensors Debug and tuning ICS ST MC workbench support USART-based com protocol add-on Max FOC ~ 11 khz Max FOC ~25 khz Max FOC ~25 khz ICS: isolated current sensors

ST Motor Control Workbench v1.0.2 (STMCWB) STMCWB is a PC code generator tool developed to reduce the firmware development time for STM32 FOC PMSM SDK v3.0. A graphical user interface (GUI) allows you to generate all parameter header files that configure the library, according to application needs. Motor Power stage Drive management Control stage

STM3210B-MCKIT starter kit MC connector STM3210B-MCKIT STM3210B-MCKIT starter kit

STM3210B-MCKIT starter kit Driving strategy: vector control AC induction motors, sensored PMSM motors, sensored and sensorless 34-pin dedicated motor control connector Encoder, Hall sensor, tachometer sensor inputs Current sensing mode: 3 shunt resistors Single shunt Main features ST complete offer STM32F103 (32-bit MCU with dedicated motor control timer) L6386DE (gate driver) VIPer12AS (power supply downconverter) L7815CP, L7805CP, LD1117S33TR (voltage regulators) STGF7NC60H (IGBT) TSV994, TS374ID, TS372ID (op-amps) M74HC09RM13TR, M74HCT7007RM13TR (logic)

STM32 evaluation boards (control board) STM32 FOC PMSM SDK v3.0 FOC FOC FOC Dual FOC Optimized for STM32F100x High performance High performance STM32100B-EVAL STEVAL-IHM032V1 STM3210B-EVAL STM3210E-EVAL STEVAL-IHM022V1 http://www.st.com/evalboards

Complementary high-voltage power stages SLLIMM (ST IPMs) based Gate-driver and power-transistor based STEVAL-IHM025V1 1000 W 1x IGBT SLLIMM : STGIPL14K60 1x converter based on VIPer16 1x IGBT: STGP10NC60KD STEVAL-IHM027V1 1000 W 1x IGBT SLLIMM : STGIPS10K60A 1x converter based on VIPer16 1x IGBT: STGP10NC60KD STEVAL-IHM028V1 2000 W 1x IGBT SLLIMM : STGIPS20K60 1x PWM SMPS: VIPer26LD 1x IGBT: STGW35NB60SD (*) Available in Q4/2011 http://www.st.com/evalboards STEVAL-IHM023V2 1000 W 3x PWM smart drivers: L6390 1x converter based on VIPer16 7x IGBT power switches: STGP10NC60KD STEVAL-IHM021V1 3x PWM smart drivers: L6390 1x converter based on VIPer12 6x MOSFET power switches: STD5N52U STEVAL-IHM024V1 3x PWM smart drivers: L6390 1x converter based on VIPer12 6x IGBT power switches: STGDL35NC60DI STEVAL-IHM032V1 (*) 150 W 3x PWM smart drivers: 2xL6392D and 1x L6391D 1x converter based on VIPer12 6x IGBT power switches: STGD3HF60HD

Low voltage power stages and drive solutions Low-voltage power stages Complete motor drive solutions STEVAL-IFN003V1 (*) STEVAL-IHM031V1 120 W 3x dual power MOSFETs: STS8DNH3L 2x PWM smart drivers: L6387E 1x step-down converter: L4976D FOC PMSM motor drive 80 W 1x 32-bit microcontroller: STM32F103C 1x motor drive IC: L6230PD STEVAL-IEM003V1 Power stage up to 48 V 2000 W 3x PWM smart drivers: L6388 6x LV power MOSFETs: STV250N55F3 1x step-down converter: L4978D (*) Available in Q4/2011 http://www.st.com/evalboards

Example: STEVAL-IHM025V1 configurations Field oriented control (FOC) STM32 FOC PMSM SDK v3.0 configuration through the PC GUI: STMCWB v1.0.2 STM32 MC STM32 control board Segger J-Link STEVAL-IHM025V1 HW ready to work in FOC control PMSM motor

More information Download: Consult: STM32 FOC PMSM SDK v 3.0 firmware library zip file ST MC Workbenchv1.0.2 zip file Technical note TN0516 Overview of the STM32F103/STM32F100 PMSM single/dual FOC SDK V3.0 User manual UM1052 STM32F103 or STM32F100 PMSM single/dual FOC SDK V3.0 User manual UM1053 Advanced dev. guide for STM32F103/STM32F100 PMSM single/dual FOC library

www.st.com/stm32 Thank you