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

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

Sistemi per il controllo motori

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

RX23T inverter ref. kit

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

UM2392. STM32 motor control SDK. User manual. Introduction

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

Sensorless Vector Control and Implementation: Why and How

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

ST solutions for efficient and robust motion control. Version 1.0

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

Sensorless Vector Control with RL78G14

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

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

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

Getting started with the STSW-SPIN3202 firmware package

Sensorless Vector Control with RL78G14

32-Bit-Digital Signal Controller TMS320F2812

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

Design of Joint Controller Circuit for PA10 Robot Arm

Motor Control using NXP s LPC2900

3-in-1 Air Condition Solution

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

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

Sensorless PMSM Field-Oriented Control on Kinetis KV and KE

Sensorless PMSM Control on MKV46F256 Using Kinetis SDK

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

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

Designing with STM32F3x

DMCode-MS(BL) MATLAB Library

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

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

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

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

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

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

High-speed and High-precision Motion Controller

CHAPTER 4 CONTROL ALGORITHM FOR PROPOSED H-BRIDGE MULTILEVEL INVERTER

VORAGO Timer (TIM) subsystem application note

Low Voltage Solutions for DC & BLDC Motors in Industrial Applications

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

Dual FOC Servo Motor Control on i.mx RT

Motor Control Solutions

A Modified Sychronous Current Regulator for Brushless Motor Control

TUTORIAL Simulation and Code Generation of TI InstaSPIN Using DRV8312 EVM

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

Implementation of Brushless DC motor speed control on STM32F407 Cortex M4

ServoStep technology

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

EE152 Final Project Report

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

Chuck Raskin P.E. Principle R&D Engineer. Blaine, MN USA

AN3165 Application note

TUTORIAL Simulation and Code Generation with TI InstaSPIN Block

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

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

Brushed DC Motor Microcontroller PWM Speed Control with Optical Encoder and H-Bridge

MB9BF568R Series FM4 PMSM Servo Motor Speed Control User Manual

LCC-10 Product manual

Using Z8 Encore! XP MCU for RMS Calculation

Automated PMSM Parameter Identification

DC Brushed Motor Controller Module EDP-AM-MC1

maxon document number:

Impact of PWM Control Frequency onto Efficiency of a 1 kw Permanent Magnet Synchronous Motor

RAPID CONTROL PROTOTYPING FOR ELECTRIC DRIVES

Sensorless BLDC Motor Control Using FRDM-KE02Z Based on Tower Board

10kW Three-phase SiC PFC Rectifier

Control of Electric Machine Drive Systems

AVR42778: Core Independent Brushless DC Fan Control Using Configurable Custom Logic on ATtiny817. Features. Introduction. AVR 8-bit Microcontroller

TECO F510 Inverter. Quick Start Guide. Step 1. Supply & Motor connection

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

Motor Control Development Kit

Motor control using FPGA

CHAPTER 2 CURRENT SOURCE INVERTER FOR IM CONTROL

Digital Control of Permanent Magnet Synchronous Motor

PWM Control of Asymmetrical Converter Fed Switched Reluctance Motor Drive

SPEED CONTROL OF INDUCTION MOTOR WITHOUT SPEED SENSOR AT LOW SPEED OPERATIONS

Galil Motion Control. DMC 3x01x. Datasheet

Speed Control of Brushless DC Motors-Block Commutation With Hall Sensors. User s Guide

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

Low Cost PMSM Sensorless Field-Oriented Control Based on KE02

Spansion Sensor-less Washing Machine Solution. May, 2014 / Arthur Zhong

crio Resolver Simulation crio RVDT Simulation Manual V3.0

imotion Solution Platform Dedicated to Motor Control

CHAPTER 2 STATE SPACE MODEL OF BLDC MOTOR

Design of A Closed Loop Speed Control For BLDC Motor

Variable Frequency Drive / Inverter (0.4 ~ 280kW)

Design of double loop-locked system for brush-less DC motor based on DSP

STARTER / GENERATOR MOTOR CONTROLLER

The Research on Servo Control System for AC PMSM Based on DSP BaiLei1, a, Wengang Zheng2, b

In the event of a failure, the inverter switches off and a fault code appears on the display.

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM

Low Cost Motor Control Family

MEGA Servo setup procedure for driving PMS motor

Simplify Motor Control Development with S12 MagniV

Stellaris Brushless DC (BLDC) Motor Control Reference Design Kit with Ethernet and CAN. User s Manual. Copyright Texas Instruments

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

PWM Demonstration System Document

Fully Integrated FPGA-based configurable Motor Control

Transcription:

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

Agenda 2 1 st day Morning Overview Key message Basics Feature Performance Hardware support Tools STM32 MC Workbench SDK components Architectural Layer MC Library OOP Object Oriented Programming Our implementation of OOP Interrupt Handling Classes and interaction

Agenda 3 1 st day Afternoon MC Application Interface Tuning Tasks Classes interaction Current regulation Ramp-up Encoder alignment Speed sensors updates Sensorless algorithm improvement How to create User Project Interacting with MC Application Dual motor control Resources sharing Supported configurations Code size efficiency Current reading sensor update

Agenda 4 2nd day Morning User interface Serial Protocal DAC LCD DAC customization STM32 MC Workbench presentation in detail 2nd day Afternoon Quick Start Config the firmware lib with Workbench LCD User Interface IAR IDE MC Workspace Practical hints in motor tuning Draw an arbitrary sensorless start-up waveform Open loop feature Faults generation Motor start-up Demo, Q&A

Agenda 5 1 st day Moring Overview Key message Basics Feature Performance Hardware support Tools STM32 MC Workbench SDK components Architectural Layer MC Library OOP Object Oriented Programming Our implementation of OOP Interrupt Handling Classes and interaction

Key messages 6 The STM32 PMSM FOC Library v3.2 is a: Motor Control Software Development Kit for 3-phase Permanent Magnet Synchronous Motors supporting the whole FOC drives family It allows: Single / Dual simultaneous vector control (FOC) Sensored/sensorless Energy efficient, quite, motor drive Outstanding dynamic performances, speed range Full customization through GUI Wide range of hardware support, system configurations, to address applications from Home Appliances to Factory Automation

PMSM FOC - Basics 7 Permanent Magnet Synchronous Motors: Stator: three phase windings: symmetrical, displaced 120 electrical, Y / connected Rotor: Surface mounted permanent magnets Internal permanent magnets (anisotropic magnetic structure) Sinusoidal BLDC 90 90 el el Φ s Φ r T e maximized if t

PMSM FOC Overview Field Oriented Control: stator currents (Field) are controlled in amplitude and phase (Orientation) with respect to rotor flux current sensing needed (3shunt/1shunt/ICS) rotor angle sensing needed (encoder/hall/algorithm) current controllers needed (PI/D,FF) not easy high frequency sinusoidal references + stiff amplitude modulation.. reference frame transformation allows to simplify the problem: 8

PMSM FOC Overview clarke transformation: transforms ia,ib,ic (120º) to iα,iβ(90º); (consider that ia+ib+ic=0): 9 i i i as i as 2i bs 3 Park s transformation:currents i α,i β seen from a reference frame rotating with rotor and become i d,i q (90º): i i qs ds i i a cos i r r sin i sin cos r r Rev Park s transformation applied to stator voltages v q,v d and become Vα, Vβ: PI regulators now can work efficiently in a DC domain; v v v qs v cos v qs r r ds sin v sin ds r cos r

PMSM FOC Block Diagram 10 Gate drivers Power Bridge IPM/Discrete Motor v a,b,c BKIN DC V TEMP Current sensors: 3shunt/1shunt/ICS Speed sensors: Sensorless, Hall, Encoder Speed Control v abc Space Vector PWM Current Control ω r*,t RAMP GENERATOR MTPA & FLUX WEAKENING CONTROLLER w r * PID + Te* - i q * i d * + + - - PID PID i qd v qs v ds v αβ REVERSE PARK + circle limitation θ r el PARK θ r el i αβ CLARKE i abc ROTOR SPEED/POSITION FEEDBACK PHASE CURRENTS FEEDBACK

Dual PMSM FOC Block Diagram 11 Gate drivers Power bridge1 Motor1 v a,b,c ω r* 1 ω r* 2 BKIN Current sensors: 3shunt/1shunt/ICS Speed sensors: Sensorless, Hall, Encoder BKIN Motor2 v a,b,c Gate drivers Current sensors: 3shunt/1shunt/ICS Power bridge2 Speed sensors: Sensorless, Hall, Encoder

General features 12 Single or simultaneous Dual PMSM FOC sensorless / sensored (Dual PMSM FOC only when running on STM32F103xx High-Density, STM32F103xx XL-Density Speed feedbacks: Sensorless (B-EMF State Observer, PLL / CORDIC); Hall sensors; incremental encoder; for each motor, dual simultaneous speed feedback processing; Currents sampling methods: 2 ICS (only when running on STM32F103xx); 1shunt resistor (ST patented); 3shunt resistors(only when running on STM32F103xx); Flux Weakening, I-PMSM, FeedForward; Torque mode / speed mode; When running Dual FOC: any combination of the above-mentioned speed feedback, current sampling, control mode, optional algorithm

Support for dual and single MC for STM32F103 HD Support for single MC for STM32F100 1 shunt current reading supported All type of speed/position sensors are supported New features 13 Increase code safety through MISRA C rules 2004 compliancy Strict ANSI C compliancy New object oriented FW architecture (better code encapsulation, abstraction and modularity) Auto-detection of errors due to FOC execution overrun Serial communication with PC Applicative example based on FreeRTOS available Full library customizability with a new PC GUI configurator input parameters: analog and digital GPIO choice, timer selection, digital filters, clock freq selection, power board features

Some performances figure example... 1/3 14 STM32F100 (Value Line) 1shunt/sensorless @20kHz PWM,10kHZ FOC USART enabled Motor Control code size is 15.82Kb Motor Control RAM usage is 2.77Kb FOC Total execution time is 65.22us (ADC ISR + TIM1 Update ISR) FOC introduced CPU load is 65.2% Total CPU load is <70%

Some performances figure example... 2/3 15 STM32F103 HD, dual FOC Motor 1, 1shunt/sensorless @8kHz PWM/FOC. Flux Weakening enabled Motor 2, 1 shunt/sensorless @16kHz PWM, 8kHZ FOC. Motor Control code size is 22.3Kb (below 1.5 times single motor case) Motor Control RAM usage is 4.01Kb FOCs introduced CPU load (including TIMx Update ISRs) is 44% Total CPU load ~50%

Some performances figure example... 3/3 16 STM32F103 HD, dual FOC Motor 1, 3shunts/sensorless @16kHz PWM/FOC. MTPA and Flux Weakening enabled Motor 2, 1shunt/sensorless @16kHz PWM, 8kHZ FOC. Motor Control code size is 25.5Kb Motor Control RAM usage is 4.14Kb FOCs introduced CPU load (including TIMx Update ISRs) is 62.6% Total CPU load <70%

Feature set, uc support 17 F103x (PERFORMANCE) HD/(XL) F2x F4x F103x (PERFORMANCE) LD/MD F100x (VALUE) LD/MD/(HD) 1shunt Sensorless STO+PLL Debug Tuning 3shunt Dual Motor Control Flux Weakening IPMSM MTPA Feed Forward Sensorless STO+CORDIC Encoder Hall GUI support USART Max FOC* ~ 11 khz ICS FreeRTOS Max FOC* ~25 khz Max FOC Single* ~25 khz Max FOC Dual * ~20 khz

STM32MCKIT, ST evalboards, HW support 18 The STM32-MCKit is clearly supported, default parameters of the Library fit for purpose ST s control boards supported (out-of-the-box): STM3210B-EVAL STM3210E-EVAL STM32100B-EVAL STM322xG-EVAL STM324xG-EVAL STEVAL-IHM022V1 (dual motor) STEVAL-IHM034 + STEVAL-IHM035 (dual motor) ST s power boards supported (GUI) Any power board featuring the ST s MC connector But, what s more important to underline, is that, the MC library v3.2 can be fully configured by means of ST MC Worbench GUI so as to adapt to ANY customer s Hardware Platform

Toos 19 IDE and compiler: IAR EWARM V6.4 MC Workbench V2.0 ST-LINK V2 ST-LINK V2-ISOL: good debugging/programing tool for motor control application because of opto-isolation J-LINK

ST Motor Control Workbench (STMCWB) 20 ST Motor Control Workbench, in this version, is a PC code generator tool that reduces the designer effort and time in the firmware development for all the ST Motor control FW library (starting from STM32 PMSM FOC FW library 3.0). The user through a graphical user interface (GUI) generate the parameter header files w h i c h c o n f i g u r e s t h e l i b r a r y a c c o r d i n g t h e a p p l i c a t i o n n e e d s.

Features STMCWB:evolution 21 Release 1.0 - Dual Motor Release 2.0 - Object library - Graphical PIN assignment - Board communication Release 0.9 - Single Motor Time