Sensorless Field Oriented Control (FOC) for Permanent Magnet Synchronous Motors (PMSM)



Similar documents
How to Turn an AC Induction Motor Into a DC Motor (A Matter of Perspective) Steve Bowling Application Segments Engineer Microchip Technology, Inc.

Digital Control of Acim Using dspic

MODELLING AND SIMULATION OF SVPWM INVERTER FED PERMANENT MAGNET BRUSHLESS DC MOTOR DRIVE

Motor Control Application Tuning (MCAT) Tool for 3-Phase PMSM

Chen. Vibration Motor. Application note

Motors and Generators

Switch Mode Power Supply Topologies

Principles of Adjustable Frequency Drives

Motor Fundamentals. DC Motor

DC Motor control Reversing

Pulse Width Modulated (PWM) Drives. AC Drives Using PWM Techniques

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore.

AC generator theory. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Drivetech, Inc. Innovations in Motor Control, Drives, and Power Electronics

ESTIMATION OF BACK EMF FOR PMSM AT LOW SPEED RANGE

Active Vibration Isolation of an Unbalanced Machine Spindle

3-Phase BLDC Motor Control with Hall Sensors Using 56800/E Digital Signal Controllers

DIRECT CURRENT GENERATORS

DYNAMIC MODEL OF INDUCTION MOTORS FOR VECTOR CONTROL. Dal Y. Ohm Drivetech, Inc., Blacksburg, Virginia

Pulse Width Modulated (PWM)

Application Information

Mathematical Modeling and Dynamic Simulation of a Class of Drive Systems with Permanent Magnet Synchronous Motors

Simple Analysis for Brushless DC Motors Case Study: Razor Scooter Wheel Motor

Simulation of VSI-Fed Variable Speed Drive Using PI-Fuzzy based SVM-DTC Technique

Speed Control Methods of Various Types of Speed Control Motors. Kazuya SHIRAHATA

Dually Fed Permanent Magnet Synchronous Generator Condition Monitoring Using Stator Current

THIS paper reports some results of a research, which aims to investigate the

Mathematical Modelling of PMSM Vector Control System Based on SVPWM with PI Controller Using MATLAB

Digital Signal Processing Solution for Permanent Magnet Synchronous Motor. Application Note Literature Number: BPRA044

EDEXCEL NATIONAL CERTIFICATE/DIPLOMA UNIT 5 - ELECTRICAL AND ELECTRONIC PRINCIPLES NQF LEVEL 3 OUTCOME 4 - ALTERNATING CURRENT

Technical Guide No High Performance Drives -- speed and torque regulation

CONVENTIONALLY reduced order models are being

Comparative Review Of PMSM And BLDCM Based On Direct Torque Control Method

FREQUENCY CONTROLLED AC MOTOR DRIVE

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

Application Note AN-1187

13 ELECTRIC MOTORS Basic Relations

Topics to cover: 1. Structures and Drive Circuits 2. Equivalent Circuit. Introduction

Lab 8: DC generators: shunt, series, and compounded.

The Emergence of Brushless DC Motors Within Medical Applications

Power Quality Paper #3

SPEED CONTROL OF INDUCTION MACHINE WITH REDUCTION IN TORQUE RIPPLE USING ROBUST SPACE-VECTOR MODULATION DTC SCHEME

2. A conductor of length 2m moves at 4m/s at 30 to a uniform magnetic field of 0.1T. Which one of the following gives the e.m.f. generated?

SYNCHRONOUS MACHINES

Setup for PWM Tests of BLDC Motor

Induction Motor Theory

Control Strategies of the Doubly Fed Induction Machine for Wind Energy Generation Applications

How To Measure Power Of A Permanent Magnet Synchronous Motor

Modelling, Simulation and Implementation of a Fault Tolerant Permanent Magnet AC Motor Drive with Redundancy

Microcontroller for Variable Speed BLDC Fan Control System. T.C. Lun System Engineer, Freescale Semiconductor, Inc.

SECTION 4 ELECTRIC MOTORS UNIT 17: TYPES OF ELECTRIC MOTORS

New Pulse Width Modulation Technique for Three Phase Induction Motor Drive Umesha K L, Sri Harsha J, Capt. L. Sanjeev Kumar

Modelling, Simulation and Performance Analysis of A Variable Frequency Drive in Speed Control Of Induction Motor

Synchronous motor. Type. Non-excited motors

DC motors: dynamic model and control techniques

DC GENERATOR THEORY. LIST the three conditions necessary to induce a voltage into a conductor.

Simulation and Analysis of Parameter Identification Techniques for Induction Motor Drive

The following document contains information on Cypress products.

Simulation of Electric Drives using the Machines Library and the SmartElectricDrives Library

Introduction to SMPS Control Techniques

Transient analysis of integrated solar/diesel hybrid power system using MATLAB Simulink

Application Information Fully Integrated Hall Effect Motor Driver for Brushless DC Vibration Motor Applications

Application Note, V 1.0, Oct AP16090 XC164CM. Driving of a Brushless DC Motor without Sensors. Microcontrollers. Never stop thinking.

Tamura Closed Loop Hall Effect Current Sensors

LINEAR MOTOR CONTROL IN ACTIVE SUSPENSION SYSTEMS

TORQUE RIPPLES MINIMIZATION ON DTC CONTROLLED INDUCTION MOTOR WITH ADAPTIVE BANDWIDTH APPROACH

INSTRUMENTATION AND CONTROL TUTORIAL 2 ELECTRIC ACTUATORS

AC Induction Motor Slip What It Is And How To Minimize It

AN3327 Application note

Modeling and Simulation of a Novel Switched Reluctance Motor Drive System with Power Factor Improvement

Stepper motor I/O. Application Note DK Motion Control. A General information on stepper motors

Equipment: Power Supply, DAI, Wound rotor induction motor (8231), Electrodynamometer (8960), timing belt.

Magnetic electro-mechanical machines

LOSSELESS STARTING METHOD FOR THE WOUND ROTOR INDUCTION MOTOR

APPLICATION NOTE. Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor. Atmel AVR 8-bit Microcontrollers. Features.

AND8008/D. Solid State Control Solutions for Three Phase 1 HP Motor APPLICATION NOTE

AN1946 APPLICATION NOTE

USE OF ARNO CONVERTER AND MOTOR-GENERATOR SET TO CONVERT A SINGLE-PHASE AC SUPPLY TO A THREE-PHASE AC FOR CONTROLLING THE SPEED OF A THREE-PHASE INDUCTION MOTOR BY USING A THREE-PHASE TO THREE-PHASE CYCLOCONVERTER

Chapter 3 AUTOMATIC VOLTAGE CONTROL

Design and Analysis of Switched Reluctance Motors

Direct Current Motors

DCMS DC MOTOR SYSTEM User Manual

8 Speed control of Induction Machines

Electronic Speed Variator for a Brushless DC Motor

2.6. In-Laboratory Session QICii Modelling Module. Modelling Module Description

Time Response Analysis of DC Motor using Armature Control Method and Its Performance Improvement using PID Controller

PID Control. Proportional Integral Derivative (PID) Control. Matrix Multimedia 2011 MX009 - PID Control. by Ben Rowland, April 2011

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

HIGH SPEED PERMANENT MAGNET SYNCHRONOUS MOTOR / GENERATOR DESIGN FOR FLYWHEEL APPLICATIONS

Advance Electronic Load Controller for Micro Hydro Power Plant

Fundamentals of Power Electronics. Robert W. Erickson University of Colorado, Boulder

STATOR FLUX OPTIMIZATION ON DIRECT TORQUE CONTROL WITH FUZZY LOGIC

Principles and Working of DC and AC machines

WHITE PAPER. DC Motors Explained. DC Motors Explained: White Paper, Title Page

Chapter 6. Synchronous Machines

AN235 Application note

AN2680 Application note

Understanding the Alternator

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE ELECTRICAL MACHINES II UNIT-I SYNCHRONOUS GENERATOR

COMPUTER SIMULATION OF REAL TIME IDENTIFICATION FOR INDUCTION MOTOR DRIVES

Transcription:

ensorless Field Oriented Control (FOC) for Permanent Magnet ynchronous Motors (PMM) 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 1 Welcome to the ensorless Field Oriented Control for Permanent Magnet ynchronous Motors web seminar. 1

Agenda Description of FOC for PMM control Description of sensorless technique used for FOC algorithm 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 2 Here is the Agenda for today s seminar. We will talk about Field Oriented Control (FOC) specifically targeting Permanent Magnet ynchronous Motors (PMM). We will cover the main block for Field Oriented Control. econdly, we will cover a position estimator to allow FOC control in a PMM Motor. 2

Agenda Description of Field Oriented Control (FOC) for Permanent Magnet ynchronous Motors (PMM) Description of ensorless technique used for FOC algorithm 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 3 We will start with an introduction to Permanent Magnet ynchronous Motors. We will talk about internal electrical diagram of a PMM motor, and how it operates. We will also explain how Field Oriented Control works, and how it enables a high performance motor control application. 3

PMM Applications Air Conditioner (AC) compressors 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 4 These are some applications where PMM motors are used. 1. In order to boost the efficiency of air conditioning compressors, PMM motors are used. Also, physical conditions of a compressor, where the motor is flooded in oil, position sensors are not allowed. ensorless algorithms are required for compressors in general. 2. PMM motors are also becoming popular in Direct Drive washing machine due to their torque available at very low speeds. FOC enables better dynamic response in a washing machine without increasing the overall system cost. 3. Refrigerator compressors also require better efficiency and torque performance at low speeds. These requirements are covered by PMM motors as well. 4. Pumps and Air Conditioner compressors in the automotive applications are also transitioning to PMM motors due to they efficiency gains, increased life time compared to DC motors, and high torque at low speeds. 4

PMM Applications Air Conditioner (AC) compressors Direct-drive washing machines 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 5 These are some applications where PMM motors are used. 1. In order to boost the efficiency of air conditioning compressors, PMM motors are used. Also, physical conditions of a compressor, where the motor is flooded in oil, position sensors are not allowed. ensorless algorithms are required for compressors in general. 2. PMM motors are also becoming popular in Direct Drive washing machine due to their torque available at very low speeds. FOC enables better dynamic response in a washing machine without increasing the overall system cost. 3. Refrigerator compressors also require better efficiency and torque performance at low speeds. These requirements are covered by PMM motors as well. 4. Pumps and Air Conditioner compressors in the automotive applications are also transitioning to PMM motors due to they efficiency gains, increased life time compared to DC motors, and high torque at low speeds. 5

PMM Applications Air Conditioner (AC) compressors Direct-drive washing machines Refrigerator compressors 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 6 These are some applications where PMM motors are used. 1. In order to boost the efficiency of air conditioning compressors, PMM motors are used. Also, physical conditions of a compressor, where the motor is flooded in oil, position sensors are not allowed. ensorless algorithms are required for compressors in general. 2. PMM motors are also becoming popular in Direct Drive washing machine due to their torque available at very low speeds. FOC enables better dynamic response in a washing machine without increasing the overall system cost. 3. Refrigerator compressors also require better efficiency and torque performance at low speeds. These requirements are covered by PMM motors as well. 4. Pumps and Air Conditioner compressors in the automotive applications are also transitioning to PMM motors due to they efficiency gains, increased life time compared to DC motors, and high torque at low speeds. 6

PMM Applications Air Conditioner (AC) compressors Direct-drive washing machines Refrigerator compressors Automotive AC compressors 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 7 These are some applications where PMM motors are used. 1. In order to boost the efficiency of air conditioning compressors, PMM motors are used. Also, physical conditions of a compressor, where the motor is flooded in oil, position sensors are not allowed. ensorless algorithms are required for compressors in general. 2. PMM motors are also becoming popular in Direct Drive washing machine due to their torque available at very low speeds. FOC enables better dynamic response in a washing machine without increasing the overall system cost. 3. Refrigerator compressors also require better efficiency and torque performance at low speeds. These requirements are covered by PMM motors as well. 4. Pumps and Air Conditioner compressors in the automotive applications are also transitioning to PMM motors due to they efficiency gains, increased life time compared to DC motors, and high torque at low speeds. 7

Advantages of ensorless FOC High Efficiency o Position ensor Required Improved Dynamic Response Reduced Torque Ripple Low Audible oise Extended peed Range Operation 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 8 These are some advantages of ensorless FOC for PMM motors. High efficiency is one of the top advantages of Field Oriented Control by aligning rotor and stator flux in order to generate the most optimal torque production of the motor. o positions sensors are required in this algorithm since position and speed of the motor are estimated based on currents and voltages. The implemented estimator will be discuss in this web seminar. Field oriented control improves dynamic response by adjusting both amplitude and phase of the control signals fed back to the motor. Applications such direct drive washing machines benefit with this advantage. In Field oriented control, stator field is continuously updated based on the position of the rotor field. By continuously pulling the rotor to a new position, the rotor is always magnetized with a new vector, thus reducing torque ripple. Applications where low speeds are required take advantage of this property of FOC. inusoidal commutation accomplished with FOC, also reduces audible noise produced by other types of control such as 6 step control. Another advantage of FOC is enabling speeds above motor s rated speed. This is accomplished by energizing the stator windings at an angle where the rotor s magnetic field is weakened, and the resulting magnetic field vector composed by stator s field and rotor s field is increased. peed range can be increased considerably by using field weakening or phase advance control. 8

v PMM Characteristics ea eb ec ωt Back EMF shape of PMM Brushless motor with sinusoidal Back EMF ynchronous AC motor BLAC PMM 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 9 Let us get started with a description of a PMM Motor. What is a PMM motor? If we take a PMM motor, and spin it as a generator, that is, if we spin it with another motor, or even with our hands, these are the measurements we will get from the motor windings. These voltages are sinusoidal in a PMM motor, whereas in a BLDC motor they are trapezoidal. Here are some alternate names we find for Permanent Magnet ynchronous motors: 1. Brushless Motors with inusoidal Back EMF 2. ynchronous AC Motors 3. BLAC, or Brushless AC Motors 4. and PMM, Permanent Magnet ynchronous Motors. A synchronous motor differs from an asynchronous motor in the relationship between the mechanical speed and the electrical speed. In a synchronous motor, the supplied voltages have the same frequency as the mechanical motor speed. In an asynchronous motor, the end mechanical speed is different from the input frequency, and the relationship between input frequency and mechanical speed varies depending on mechanical load applied to the motor. The distribution of the windings in a ynchronous AC motor (or PMM) is 9

PMM Operation θ tator Field Rotor Field 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 10 There are two main components in a PMM motor: Permanent magnet and stator windings. This is how the motor operates: tator windings generate a rotating magnetic field. ince the permanent magnet rotor has its own magnetic field, it will try to align with the stator s magnetic field. The electronics will generate a rotating magnetic field in the stator that is always ahead of the rotor, thus keeping the rotor spinning. The angle between rotor and stator magnetic fields plays an important role on the torque generation of the motor. For simplicity a single pole pair motor is shown, which means that for every revolution of the magnetic field there is one revolution on the motor shaft. In reality most of the motors have multiple pole pairs, where the mechanical speed is the product of input frequency and number of pole pairs. For example, if the motor has five pole pairs, for every revolution on the motor shaft, there will be five revolutions on the magnetic field. 10

PMM Operation θ Without FOC Torque BEMF (V) θ Current (I) T = Fs*Rs*sinθ 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 11 As the motor spins, there is an angle between rotor magnetic field and stator magnetic field. If these two magnetic fields are not ninety degrees from each other, there will be an offset angle between Back EMF and Current. With this phase offset the torque production at a given input power will not be the maximum. This can be seen in the torque Vs angle plot, where torque generation is proportional to sine of theta. If the control logic does not adjust commutation angle to be ninety degrees, torque production will not be the maximum. 11

PMM Operation 90 With FOC Torque BEMF (V) θ Current (I) T = Fs*Rs*sinθ 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 12 If we have a way to detect the rotor magnetic field angle, we can generate a rotating magnetic field that meets the ninety degrees. With this commutation angle of ninety degrees, torque production is maximized. 12

PMM Operation 90 π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 13 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 13

PMM Operation 90 π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 14 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 14

90 PMM Operation π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 15 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 15

PMM Operation 90 π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 16 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 16

PMM Operation 90 π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 17 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 17

PMM Operation 90 π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 18 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 18

PMM Operation 90 π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 19 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 19

PMM Operation π/2 90 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 20 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 20

PMM Operation π/2 90 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 21 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 21

PMM Operation π/2 90 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 22 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 22

PMM Operation 90 π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 23 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 23

PMM Operation 90 π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 24 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 24

PMM Operation 90 π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 25 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 25

PMM Operation 90 π/2 0 -π/2 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 26 With this animation we can see how the commutation angle is always ninety degrees ahead of the rotor. On the left we see how the motor spins with Field Oriented Control. On the voltage diagrams we show how the output voltages have a sinusoidal shape. On the lower right we see the rotor angle changing from minus pi (minus one eighty degrees) to plus pi (plus one eighty degrees). 26

PMM with FOC Keep load 90 ahead of rotor position Knowledge of rotor position required at all times 90 Better torque production o torque ripple 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 27 In order to accomplish FOC, stator magnetic field is always kept ninety degrees ahead of the rotor. This requires rotor position information at all times. In a scenario where hall sensors are used to detect rotor position, we get new position information every sixty degrees. In Field Oriented control a different algorithm to detect or estimate rotor position is needed. The outcome of field oriented control is a better torque production and less torque ripple generated by the motor. 27

Field Oriented Control (FOC) 3-phase voltage to control the 3-phase currents vectors 3-phase time variant into a 2-axis time invariant Allows controlling 3-Phase Motors with conventional techniques as in a DC motor 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 28 The FOC algorithm generates a 3-phase voltage as a vector to control the 3-phase stator current. By transforming the physical current into rotational vector using transforms, the torque and flux components become time-invariant allowing control with conventional techniques such as Proportional & Integral (PI) controllers, as with a DC motor. In brushed DC motors, by construction, the stator flux and rotor flux are kept at 90 degrees to each other, thus generating maximum possible torque from the motor. Using the FOC technique, the motor currents are transformed to 2-axis vectors, as seen in a DC motor. The process starts out by measuring the three phase motor currents. In practice, since the instantaneous sum of the three current values will be zero, by measuring only two of the three currents, the value of the third can be determined. Further, there is a reduction in the hardware cost because only two current sensors are required. 28

Vector-Coordinate ystems b β q d a α c 3-Axis tator Reference 2-Axis tator Reference 2 -Axis Rotating Reference 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 29 The first transform moves a 3-axis, 2-dimensional coordinate system referenced to the stator onto a 2-axis system keeping the same reference. At this point, the stator current phasor can be represented on a 2-axis orthogonal system with the axis called α-β. The next step is to transform into another 2-axis system called the d-q axis that is rotating with the rotor flux. 29

3-Phase Coordinate ystem b is ia ib ic a c 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 30 The following animation will help us understand the transformations needed in Field Oriented Control. We start at a three phase system, where Ia, Ib and Ic are the components of vector Is. 30

Projected onto 2-Phase ystem 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 31 When we project the three phase system to a two phase system, we see how the components of vector Is vary with time. I alpha and I beta change their value from maximum to minimum in a sinusoidal fashion. However, the resulting vector does not change as the motor turns. If we were to control alpha and beta variables, we would need to modify our PI control loops, so that the reference and measured values vary with time as well, which makes it more complicated than traditional control loops. 31

Projected onto Rotating ystem 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 32 When we add the commutation angle to vector component calculation, they become stationary. 32

Vectors in the Rotating Reference Frame 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 33 After jumping into the rotor perspective, individual component of vector Is do not change as the motor spins, and traditional PI control loops can be applied to control them. 33

Vectors in the Rotating Reference Frame q iq is id d Torque iq Flux id They are time-invariant and can be treated as DC parameters, which allows them to be controlled independently. 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 34 These two components of the current vector are responsible for torque and flux generation of the motor. ow we are able to have independent control of torque and flux generation by directly compensating the responsible component. 34

FOC for PMMs ref Σ PI iq ref - - id ref Σ Σ PI PI Vq Vd d,q α,β Vα Vβ VM 3 Phase Bridge - θ iq d,q iα α,β ia id α,β iβ a,b,c ib peed and Position QEI A B Encoder Motor This allows optimal torque production. 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 35 The entire process is illustrated in this block diagram, including coordinate transformations, PI iteration, transforming back and generating PWM. This block diagram also describes the functions required for FOC control. Error signals are formed using Id, Iq and reference values for each. The Id reference controls rotormagnetizing flux. The flux vector must be kept in alignment with the rotor magnetic poles at all times, so that the motor can produce the maximum torque. This is accomplished by a flux reference of zero. Keep in mind that Id and Iq (representing torque and flux) are only time-invariant under steady-state load conditions. The Iq reference controls the torque output of the motor. The outputs of the PI controllers provide Vd and Vq, which is a voltage vector that is sent to the motor. A new coordinate transformation angle is calculated based on the motor speed, rotor electrical time constant, Id and Iq. The FOC algorithm uses the new angle to place the next voltage vector, in order to produce an amount of torque needed to keep the rotor spinning. The Vd and Vq output values from the PI controllers are rotated back to the stationary reference frame, using the new angle. This calculation provides quadrature voltage values vα and vβ. ext, the vα and vβ values are transformed back to 3-phase values va, vb and vc. The 3-phase voltage values are used to calculate new PWM duty-cycle values that generate the desired voltage vector. The transformation angle, theta, and motor speed are coming from an optical encoder mounted on the shaft of the motor. Later on in the presentation we will see how to estimate this angle so no position sensor is used for field oriented control. 35

Without FOC θ PMM Operation Torque With FOC 90 θ T = Fs*Rs*sinθ BEMF (V) BEMF (V) Current (I) Current (I) 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 36 This is a side to side comparison between Field Oriented Control and conventional speed control. Main difference is in the commutation angle between rotor and stator of the motor. 36

Phase-Current Response PI peed Control PI peed + FOC Control 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 37 Let s look at some actual results. As an input we have a step in the speed reference of the motor. On the upper plot, we see the current consumption using conventional PI control loop. We can see how current consumption goes up to 0.3 Amps. On the other hand, we see how PI Controller with FOC improves current consumption. We only get a transient response, and then current consumption goes back to 0.2 Amps. It is important to note that PI controller coefficient are the same in both scenarios, but by adding FOC current consumption is now regulated. 37

peed Response PI peed Control PI peed + FOC Control 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 38 With the same step input on the speed reference, we have a comparison between the two control topologies. There is a noticeable difference on the dynamic response. PI control plus FOC improves dynamic response significantly compared to conventional PI control loop. 38

Agenda Description of FOC for PMM control Description of ensorless technique used for FOC algorithm 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 39 In this section of the web seminar, we will discuss a special technique used to calculate the position and speed of the motor without using any position sensor. This algorithm will allow us to implement sensorless field oriented control. 39

ensorless FOC for PMM ref Σ PI iq ref - - id ref Σ Σ PI PI Vq Vd d,q α,β Vα Vβ VM 3-Phase Bridge - θ iq d,q iα α,β ia id α,β iβ a,b,c ib Position peed Position and peed Estimator Vα Vβ Motor 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 40 As we can see from this block diagram, field oriented control block diagrams did not change, we still jump from stator to rotor perspective in order to control the motor. We added a new block to calculate position and speed of the motor. As we can see from the yellow block, there is no position or speed sensor as input. Current sensors and software voltages are used to estimate position and speed of the motor. I alpha and I beta are derived by current measurements from motor windings. V alpha and V beta are variables that we calculate during FOC. Those four variables are inputs to the position and speed estimator. But how do we calculate position and speed from those four variables? 40

Position Estimation es π/2 ωt -π/2 Rotor position is calculated with BEMF information 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 41 First of all, let s take a look at a characteristic of PMM motors. We have plotted back EMF of the motor and position of the rotor together in this plot. There is a perfect phase relationship between these two signals in a PMM motor. ince we are trying to measure position of the motor, we need to find a way to detect or measure the back EMF voltage. There are some algorithms where the back EMF zero crossings are detected by measuring phase voltages, but in FOC, the phases are being driven during the complete cycle, so these methods are not feasible in FOC control. 41

Position Estimation i PMM Electric Model R L e d v s = Ris + L is + e dt s v Motor d dt i s = R L i s + 1 L ( v e ) s s PMM motor has the same electric model as Brushed-DC (BDC) and Brushless-DC (BLDC) motors 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 42 What we use instead of back EMF zero crossing detection, is back EMF voltage estimation using a simplified electric model of the PMM motor. If we look at the model per each phase, we have a phase resistance, phase inductance, and the back EMF generation of the motor. Right next to the electric diagram we have the equation representation of the PMM motor, which is similar to a brushed DC motor or Brushless DC motor. 42

Position Estimation i s ( n + 1) i T s s ( n) = R L i s ( n) + 1 L ( v ( n) e ( n) ) s s i s R Ts ( n + 1) = 1 Ts is ( n) + s s n L L ( v ( n) e ( )) 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 43 We solve the equation for the derivative of the current, and we get the digital interpretation of the phase current. All variables with a subscript of represent a vector with two components: alpha and beta. The vector variables we have are: Is (n+1) is the most recent phase current vector. Is(n) is the current vector on the previous sample. Vs(n) is the phase voltage vector on previous sample, and es(n) is the back EMF vector on the previous sample. The constants we have in the equation are: Ts for the sampling period, so if we have current samples at a 20 khz rate, Ts will be 50 microseconds. R is the phase current and L represents phase inductance. ome motor datasheet have line to line resistance and inductance specification, so they need to be divided by two for this equation. 43

Current Observer Hardware lide-mode Vs PMM Is Controller - +K d dt * R * 1 is = is + L L * ( v e z) s s I*s + ign (I*s Is) z -K * Estimated variable 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 44 The position and speed estimator is based on a current observer. This observer is a digitized model of the motor, as represented by Equation on the yellow block diagram. Variables and constants include: Motor Phase Current (is) Input voltage (vs) Back EMF (es) Winding resistance (R) Winding inductance (L) Control period (Ts) Output Correction Factor Voltage (z) The digitized model provides a software representation of the hardware. However, in order to match measured current and estimated current, the digitized motor model needs to be corrected using the closed loop. Considering two motor representations, one in hardware (shaded area) and one in software, with the same input (vs) fed into both systems, and matching the measured current (is) with estimated current (is*) from the model, we can presume that back EMF (es*) from our digitized model is the same as the back EMF (es) from the motor. A slide mode controller, or MC, is used to compensate the digitized motor model. An MC consists of a summation point that calculates the sign of the error between measured current from the motor and estimated current from the digitized motor model. The computed sign of the error (+1 or -1) is multiplied by an MC gain (K). The output of the MC controller is the correction factor (Z). This gain is added to 44

Back-EMF Estimation d dt i R = i L + L * * 1 s s * ( v e z) s s e * s z LPF LPF e filtered * s e arctan e α β θ * * Estimated variable 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 45 After compensating the digitized model, you have a motor model with the same variable values for the input voltage (Vs) and for current (is*). Once the digitized model is compensated, the next step is to estimate Back EMF (es*) by filtering the correction factor (Z), as shown in the block diagram. The back EMF estimation (e*s) is fed back to the model to update the variable es* after every control cycle. Values eα and eβ (vector components of es) are used for the estimated theta calculation. 45

Back-EMF Estimation e arctan e α β θ* ω* + + θ*comp 7 ω = i= 0 ( θ ( n) -θ ( n -1)) K speed LPF ω* filtered * Estimated variable 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 46 Due to the filtering function applied during the theta calculation, some phase compensation is needed before the calculated angle is used to energize the motor windings. The amount of theta compensation depends on the rate of change of theta, or speed of the motor. The theta compensation is performed in two steps. First, the speed of the motor is calculated based on the uncompensated theta calculation. Motor speed is calculated by accumulating theta values over m samples and then multiplying the accumulated theta by a constant. Once we have a speed calculation based on uncompensated theta, the calculated speed is filtered and used to calculate the amount of compensation. 46

Vs PMM Is Current Observer Hardware lide Mode Controller - -1 d dt * R * 1 is = is + L L z LPF * ( v e z) s e * s s LPF e filtered * s eα arctan eβ I*s + θ* ign (I*s Is) z ω* +1 θ*comp + + * Estimated variable 7 ω = ( θ ( n) -θ ( n -1)) K speed i= 0 LPF ω* filtered 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 47 The complete position and speed estimation block diagram is shown here. Inputs to this estimator are voltage vector Vs and current vector Is and the outputs are the estimated theta and estimated speed of the motor. 47

Practical Results Encoder Rotor Position Estimated Rotor Position 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 48 We can see how the estimator generates an estimated position very similar to a measured position using an encoder. Once we have this position information of the rotor, we can continue to do our field oriented control algorithm. 48

Motor tart Up Initial Torque Demand iq ref id ref Σ Σ - PI PI Vq Vd d,q α,β Vα Vβ VM 3-Phase Bridge - θ iq d,q iα α,β ia id α,β iβ a,b,c ib Motor tartup θ Motor 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 49 t ince the sensorless FOC algorithm is based on the back EMF estimation, a minimum speed is needed to get the estimated back EMF value. Therefore, the motor windings must be energized with the appropriate estimated angle. To handle this, a motor start-up subroutine was developed. When the motor is at standstill, and the start/stop button has been pressed, the dspic generates a series of sinusoidal voltages to get the motor spinning. The motor spins at a fixed acceleration rate, and the FOC algorithm controls the currents Id and Iq. The angle Theta (or commutation angle) is incremented based on the acceleration rate. As shown in the Motor tartup block, phase angle is incremented at a squared rate to get a constant acceleration on the motor. Even if Theta is being generated by the open loop-state machine, Field Oriented Control blocks are still being executed and are controlling torque component current and flux component current. An external potentiometer is used to set the desired torque required to start the motor. This potentiometer is set experimentally depending on mechanical load characteristics. This start-up subroutine provides a constant torque to start up the motor. At the end of the startup ramp, the software switches over to closed-loop, sensorless control, taking Theta from the position and speed estimator. 49

Main oftware tate Machine Reset Initialize Variables and Peripherals Motor topped Motor topped 4 Pressed Initialize Variables for Running Motor top Motor Initialize PI Controller Parameters 4 Pressed or FAULT Enable Interrupts Read Reference Torque from VR1 4 Pressed or FAULT Motor Running tart Up Measure Winding Currents A/D Interrupt Motor Running ensorless FOC et ew Duty Cycles using VM Convert Currents to Iq and Id Open Loop FOC End of tart Up Ramp A/D Interrupt Read Reference peed from VR2 Execute PI Controllers for Iq and Id Increment Theta Based on Ramp et ew Duty Cycles using VM ensorless FOC Measure Winding Currents Execute PI Controllers for peed, Iq and Id Compensate Theta Based on peed Calculate peed Estimate Theta using MC Convert Currents to Iq and Id 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 50 It is helpful to visualize the FOC algorithm as a software state machine. First, the motor windings are de-energized and the system awaits the user to press the start/stop button. Once the user presses start/stop button, the system enters initialization state, where all variables are set to their initial value and interrupts are enabled. Then the start-up subroutine is executed, where current components for torque (Iq) and flux production (Id) are being controlled, and commutation angle (Theta) is being generated in a ramp fashion to get the motor spinning. After going through the start-up subroutine, the system switches over to sensorless FOC control, where the speed controller is added to the execution thread, and the slide mode controller (MC) starts estimating theta as previously explained. When the motor enters sensorless FOC control state, the reference speed is continuously read from an external potentiometer and the start/stop button is monitored to stop the motor. Any fault in the system causes the motor to stop and return to Motor topped state. The state diagram shows all the different states of the software and the conditions that make the system transition to a different state. 50

Resources For resources and information regarding designing motor-control applications, visit Microchip s motorcontrol design center at: www.microchip.com/motor Microchip Application otes for Motor-Control Applications: PIC18CXXX/PIC16CXXX ervomotor Using the dspic30f for ensorless BLDC Control Using the dspic30f for Vector Control of an ACIM ensored BLDC Motor Control Using dspic30f2010 An Introduction to ACIM Control Using the dspic30f inusoidal Control of PMM Motors with dspic30f Getting tarted with the BLDC Motors and dspic30f Measuring peed and Position with the QEI Module Driving ACIM with the dspic DC MCPWM Module Using the dspic30f ensorless Motor Tuning Interface A696 A901 A908 A957 A984 A1017 G001 G002 G004 G005 2007 Microchip Technology Incorporated. All Rights Reserved. ensorless FOC for PMM lide 51 We have application notes on motor control. These documents can be obtained from the Microchip web site, by clicking on the dspic Digital ignal Controllers or Technical Documentation link. We also have a motor control design center at www.microchip.com/motor. This wraps up the seminar on ensorless Field Oriented Control of Permanent Magnet ynchronous Motors. Thank you for your interest in the dspic30f Family of Digital ignal Controllers. 51