Detect stepper motor stall with back EMF technique (Part 1)

Similar documents
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

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

Administrative Notes. DC Motors; Torque and Gearing; Encoders; Motor Control. Today. Early DC Motors. Friday 1pm: Communications lecture

Type of loads Active load torque: - Passive load torque :-

Step vs. Servo Selecting the Best

SPEED CONTROL OF BRUSHLES DC MOTOR

Designing With Motion Handbook

Feedback Devices. By John Mazurkiewicz. Baldor Electric

Robot Actuators. Motors and Control. Stepper Motor Basics. Increased Resolution. Stepper motors. DC motors AC motors. Physics review: Nature is lazy.

Upgrading from Stepper to Servo

MSK4310 Demonstration

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

DC motor control using arduino

Stepping motor controlling apparatus

Brushed DC Motor PWM Speed Control with the NI myrio, Optical Encoder, and H-Bridge

Voltage mode stepper motor control. Smooth stepper motor driving

Understanding RC Servos and DC Motors

Motor Drive Business Unit Gem Li Marketing Manager

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

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

ServoStep technology

Job Sheet 2 Servo Control

Optimizing Performance Using Slotless Motors. Mark Holcomb, Celera Motion

ACTUATORS AND SENSORS. Joint actuating system. Servomotors. Sensors

INTEGRATED CIRCUITS. AN1221 Switched-mode drives for DC motors. Author: Lester J. Hadley, Jr.

Smooth rotation. An adaptive algorithm kills jerky motions in motors.

Computer Numeric Control

ElectroCraft CompletePower Plus Universal Servo Drives

Transconductance vs Voltage Amplifiers

BLOCK DIAGRAM OF THE UC3625

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

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

PART 2 - ACTUATORS. 6.0 Stepper Motors. 6.1 Principle of Operation

Speed control of sensorless BLDC motor with two side chopping PWM

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

Courseware Sample F0

Page ENSC387 - Introduction to Electro-Mechanical Sensors and Actuators: Simon Fraser University Engineering Science

PMSM Control Using a Three-Phase, Six-Step 120 Modulation Inverter

Basic NC and CNC. Dr. J. Ramkumar Professor, Department of Mechanical Engineering Micro machining Lab, I.I.T. Kanpur

Actuators. EECS461, Lecture 5, updated September 16,

A VARIABLE SPEED PFC CONVERTER FOR BRUSHLESS SRM DRIVE

Brushed DC Motor System

MOSFET as a Switch. MOSFET Characteristics Curves

combine regular DC-motors with a gear-box and an encoder/potentiometer to form a position control loop can only assume a limited range of angular

Speed Feedback and Current Control in PWM DC Motor Drives

Motion Control Glossary

Where: (J LM ) is the load inertia referred to the motor shaft. 8.0 CONSIDERATIONS FOR THE CONTROL OF DC MICROMOTORS. 8.

Sensorless Drive for High-Speed Brushless DC Motor Based on the Virtual Neutral Voltage

Placement Paper For Electrical

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

Motor control using FPGA

A Comparative Study of Sinusoidal PWM and Space Vector PWM of a Vector Controlled BLDC Motor

PHASE BRUSHLESS DC MOTOR CONTROLLER/DRIVER FEATURES

ELECTRONIC CONTROL OF A.C. MOTORS

Renewable Energy Based Interleaved Boost Converter

Electronic Speed Controls and RC Motors

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

ADVANCED ROTOR POSITION DETECTION TECHNIQUE FOR SENSORLESS BLDC MOTOR CONTROL

Latest Control Technology in Inverters and Servo Systems

InstaSPIN-BLDC Lab. DRV8312 Setup Jumpers and switches must be setup properly or the kit will not function correctly!

Engineering Reference

Simulation of Solar Powered PMBLDC Motor Drive

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

Semiconductor 9/21/2015

EE 410/510: Electromechanical Systems Chapter 5

3.1.Introduction. Synchronous Machines

Software User Manual

SYNCHRONOUS MACHINES

TRACK VOLTAGE APPROACH USING CONVENTIONAL PI AND FUZZY LOGIC CONTROLLER FOR PERFORMANCE COMPARISON OF BLDC MOTOR DRIVE SYSTEM FED BY CUK CONVERTER

Sensors and Sensing Motors, Encoders and Motor Control

Stepper Motors WE CREATE MOTION

Module 9. DC Machines. Version 2 EE IIT, Kharagpur

Page 1 of 10. Introduction. Inductive Loads and Diode Protection

AN Industrial Stepper Motor Driver. Application Note Abstract. Introduction. Stepper Motor Control Method

UNIVERSITY OF JORDAN Mechatronics Engineering Department Measurements & Control Lab Experiment no.1 DC Servo Motor

Glossary. Glossary Engineering Reference. 35

Volume 1, Number 1, 2015 Pages Jordan Journal of Electrical Engineering ISSN (Print): , ISSN (Online):

EE152 Final Project Report

Efficiency Optimized Brushless DC Motor Drive. based on Input Current Harmonic Elimination

Inductance, capacitance and resistance

School of Engineering Mechatronics Engineering Department. Experim. ment no. 1

AC Drive Technology. An Overview for the Converting Industry. Siemens Industry, Inc All rights reserved.

Speed Control of BLDC Motor Using FPGA

Introduction to Servo Control & PID Tuning

DC Motor Speed Control using PID Controllers

BLOCK DIAGRAM OF THE UC3625

EE 560 Electric Machines and Drives. Autumn 2014 Final Project. Contents

Reduction of Harmonics and Torque Ripples of BLDC Motor by Cascaded H-Bridge Multi Level Inverter Using Current and Speed Control Techniques

Application Note. Brushless DC Motor Control AN-1114

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

Motors and Servos Part 2: DC Motors

CHAPTER 2 STATE SPACE MODEL OF BLDC MOTOR

Programmable Adaptive Microstep Table

Speed Control of DC Motor Using Microcontroller

DC SERVO MOTOR CONTROL SYSTEM

Using Stepper Motion By: Chuck Raskin P.E. CMCS

Sensorless Control of BLDC Motor Drive Fed by Isolated DC-DC Converter

Voltage-Versus-Speed Characteristic of a Wind Turbine Generator

CHAPTER 6 BRIDGELESS PFC CUK CONVERTER FED PMBLDC MOTOR

In an unmagnetized piece of iron, the atoms are arranged in domains. In each domain the atoms are aligned, but the domains themselves are random.

Transcription:

Detect stepper motor stall with back EMF technique (Part 1) Learn about this method that takes advantage of constant motor parameters and overcomes limitations of traditional stall detection of current and duty-cycle sensing. By David Swanson Principal Engineer STMicroelectronics and Radek Stejskal Application Support Senior Engineer STMicroelectronics The applications for stepper motors in the automotive domain may include headlight leveling, adaptive headlamps (that is where the headlamps turn right or left with the steering wheel), exhaust gas recirculation (EGR) valves, and adjustable mirrors. Non-automotive apps for the method described in this series would be any stepper motor application where the current is around 1A. For many years we thought we understood stepper motors. They seemed fairly straightforward machines. A stepper motor is essentially a motor who is a slave to the controller. Aren t they all? You say. Not like this. Commutation is done by the controller, when the controller wants to; without regard to anything the stepper motor has to say. The controller requires no feedback to help with appropriate times to commutate. In comparison, a brush type motor commutates when it wants to and doesn t need the controller to perform any of the commutation. The brushless DC (BLDC) motor, a close relative to the stepper motor, at least gets to tell the controller when it wants to commutate. A stepper motor, on the other hand, is told to go or told to stop at any point a slave. As a result the motor has to be driven well beyond what is necessary to ensure that it moves (and stops) when told. The stepper motor controller doesn t need feedback. When one is yelling he/she is not interested in feedback. A stepper motor controller is, in effect, yelling at the motor. A good analogy would be a restaurant: A brush type motor is like a buffet You eat what you want when you want. The amount of food available is all that is controlled. A brushless motor is like a fancy sit-down restaurant where the waiter is waiting for you to tell him when to serve you. He does his best to serve you when you want to be served. He only has control as to the amount of food you get to eat. For a stepper motor, the waiter says YOU EAT NOW! or YOU GO HOME NOW! I think you get my point. Feedback is important Even in a stepper motor feedback can be desirable. For instance it would be good to know if the motor stops listening (i.e., stalls). We can look for feedback on the state of the motor by polling a third party such as a position sensor. Or we can look to the motor itself for rotational information. This can be done in the form of motor current monitoring as a reflection of back electro-motive force (Back EMF or BEMF). Or we can look directly at BEMF. External components to monitor motor position can add cost to the system. If we can get what we need without adding components or cost then we will. Our mantra "More Features with Less Cost" is a good thing. After all, we are engineers. L9942 The L9942 is an integrated stepper motor driver for bipolar stepper motors used in automotive headlamp leveling. Among its features is (quoting from the datasheet) a programmable current profile look-up-table to allow for flexible adaptation of the stepper a motor characteristics and intended operating conditions. In other words it can do full stepping, half stepping, and micro-stepping. The L9942 micro-stepping mode provides for 32 programmable current regulated steps over 360 electrical degrees. That translates to eight different levels of current per quadrant. EE Times-Asia eetasia.com Copyright 2011 emedia Asia Ltd. Page 1 of 6

Figure 1: L9942 microstepping mode. Each step current is regulated by pulse-width modulation (PWM) control. The PWM on-time is fixed by an oscillator. The off-time is set by the current measured. A current mirror feedback provided from the high side switches is compared to a preset (programmable) current value through a look-up table. When the current in the phase matches the value in the look-up table the phase is turned off until the next PWM on-time. As a result a current sine wave is approximated in 32 steps through PWM control of the outputs. Figure 2: L9942 current regulation block diagram. Stall detection methods Of the two methods previously described, monitoring motor current for the absence of back EMF is more indirect. During stall, the motor current rises quickly because the back EMF is absent. Lack of BEMF does two things. First, it increases the potential current in a winding at a given voltage per Ohm s law. Secondly, it increases the rate of change of the current in the windings because the rate of change of current in an inductor is proportional to the voltage across the inductor. With little or no BEMF in a motor winding the current both rises, and rises quickly. EE Times-Asia eetasia.com Copyright 2011 emedia Asia Ltd. Page 2 of 6

Figure 3: Typical motor phase winding components. However, when micro-stepping, the system regulates the motor phase current by turning off the phase when the preprogrammed current threshold is reached. As a result, the motor current will not spike when the motor is stalled. Instead, the duty cycle will reduce to something fairly small as the current control algorithm compensates for the loss of BEMF. Loss of BEMF is then detected by observing an abnormally low duty cycle for a given commanded current. The L9942 has the ability to measure this duty cycle and report back to the host micro the information via SPI (Serial Peripheral Interface). The difficulty with this method is that there are many parameters that can move around in the normal operating space of a stepper motor. Things like temperature, battery voltage, and loading or torque can have a dramatic affect on the current regulation duty cycle. In the end the operating point at one end of the normal spectrum can look like a stalled motor at the other end. Overlapping parameters make it difficult at best to safely discern a stalled rotor. As a result it is not as simple as measuring a current or looking at a regulated duty cycle. To minimize the effects of motor resistance, battery voltage, and temperature the stall detection algorithm can look directly at BEMF. BEMF sensing explained The next thought then is to approach the issue at the source, sensing BEMF directly. Overdriving a stepper motor phase causes the BEMF to be shifted up to 90. As a result in an unloaded stepper motor, the BEMF is highest in a phase when the current is the lowest in that phase. Figure 4: Back EMF and phase current. We can take full advantage of this phenomenon when sensing BEMF. When the phase current is transitioning from one polarity to the other, the current passes through zero. Little or no current in the phase means that when we turn off the phase to look for BEMF there are no big issues with the inductive flyback. Actually, we are off anyway. We might as well look. EE Times-Asia eetasia.com Copyright 2011 emedia Asia Ltd. Page 3 of 6

Figure 5: Back EMF waveforms on an active stepper motor. The resulting waveforms (figure 5) look as we would expect. In an unloaded motor at the points where the phase current is at or near zero the back EMF for that phase is the strongest. Where we have to be careful is when understanding the effects of motor loading on the phasing (or phase shifting) of the back EMF. Since this algorithm only looks for BEMF when the phase is not being driven, there is a very short window to look. As the motor is loaded, the back EMF shifts such that it will be more in line with the driving voltage/current for that phase. As can be expected motor loading adds some variation to the BEMF detection. A fully loaded motor just on the edge of stall looks to be the same as a fully stalled motor. Fortunately, a stepper motor is not intended to be driven with that much load. Universal motor concepts There are two universal concepts in motors that will always be true. The first is that Back EMF is directly proportional to angular velocity (or armature speed). The second is that motor torque is directly proportional to motor current. EE Times-Asia eetasia.com Copyright 2011 emedia Asia Ltd. Page 4 of 6

BEMF vs. angular velocity The back EMF equations illustrate the relationship between angular velocity and BEMF quite clearly: Notice that N, B, and A are all constants specific to the motor construction. They never change, unless there is some dramatic entropy going on! At that point BEMF detection is the least of your concerns! Aside from the sinusoidal nature of the signal, BEMF (bemf) is directly proportional to motor speed (ω) and nothing else. Current vs. torque The next universal concept is the relationship between motor torque and motor current. Again, the equations describe this clearly: Note again that current (I) and torque (T) are directly proportional to each other. Yes, there are other factors that affect current like voltage and the temperature dependence on resistivity of copper. These things can increase or decrease the motor current capability which will affect the total available torque. However, they will not change the torque-to-current relationship. Let s think for a moment. A stepper motor is typically a fixed current system. That is, the controller feeds a fixed set of currents into two phases at a rotational velocity that ends up being directly reflected by the rotor. If a fixed current into a motor produces a fixed torque how can a stepper motor have a fixed current and rotate at a fixed speed for a wide range of loads or torques? The answer is in the phase shifting, automatically, of the BEMF with respect to the drive current. The phase current will generate the torque based on the aforementioned equations. What direction that torque will be applied will depend on the load. A lightly loaded stepper motor will have a small portion of the torque actually driving the load. A remaining portion of the motor torque is used to slow the motor down. To never go above the commanded rotational speed the current is first driving the motor to go faster and then braking it to go slower. The overall torque coming out the output shaft is zero for an unloaded motor. Figure 6: Phase shift in an unloaded motor. EE Times-Asia eetasia.com Copyright 2011 emedia Asia Ltd. Page 5 of 6

The graphs estimate BEMF and motor current. BEMF also is a good representation of rotor position as the moving magnets in the rotor induce BEMF in the stator. It is not as pretty as I have drawn it but it is a reasonable illustration of the point. The rotor magnetic field is fixed to the rotor and rotates with it. The stator field is related to the current in the stator. A positive current in the stator creates a positive field and vice versa. With magnetics (and some people), opposites attract. Looking at figure 6 above when the polarity in the stator is the opposite of the rotor there is attraction and thus acceleration. When the polarity is the same in both the rotor and stator, braking occurs. In an unloaded motor we get an almost perfect distribution of acceleration and braking. As the stepper motor is loaded, the BEMF shifts to convert more of the torque to forward motion and less to braking. Figure 7: A partially loaded motor. Note the phase shift of the BEMF. In figure 7, which illustrates a partially loaded stepper motor, the back EMF has shifted to increase the percentage of driving torque over the braking torque. This shift will continue as external loading is increased until the loading exceeds the potential torque capability. Figure 8: A full loaded motor. Note the complete alignment of current and BEMF. In a fully loaded stepper motor, the moment that the torque demand causes the back EMF to shift any further the output torque decreases. Then it is all over. The motor stops rotating. YOU EAT NOW! has no effect. All the yelling in the world is not going to get this thing moving again. About the authors David Swanson is principal engineer at STMicroelectronics. Radek Stejskal is application support senior engineer at STMicroelectronics. EE Times-Asia eetasia.com Copyright 2011 emedia Asia Ltd. Page 6 of 6