Example embodiments are related to electric drive device systems and/or methods for controlling electric drive devices such as Interior Permanent Magnet (IPM) motors or machines.
IPM synchronous motors (IPMSMs) are used in hybrid and electric vehicle systems. Rotor position of the IPMSM is used for high-performance traction or voltage control of the IPMSM.
Electromechanical type of position sensors, e.g., resolvers, optical encoders, and hall-effect sensors, are used to obtain the rotor position and/or speed in IPMSM drive systems. The use of these electromechanical sensors increases cost, size, weight, and hardware wiring complexity of the IPMSM drive systems. Moreover, mounting electromechanical sensors on a rotor of the motor affects the robustness of the IPMSM. Sensors are often subject to failures in harsh environments, such as excessive ambient temperature, super high-speed operation, and other adverse or heavy load conditions.
As an alternative to sensors, sensorless drives including observers are used. One type of an art recognized observer is a sliding mode observer (SMO). A SMO is embodied in a specific purpose computer, mainly a microcontroller or digital signal processor specifically programmed to execute the SMO. In general, a SMO is an observer having inputs that are discontinuous functions of an error between estimated and measured outputs. In a SMO, a manifold is designed such that a system state trajectory exhibits a certain behavior when confined to the manifold. The manifold may also be referred to as a sliding surface.
At least one example embodiment discloses an adaptive Quasi-SMO (QSMO) to estimate the rotor position from extended back electromagnetic force (EMF) quantities in an IPMSM. The QSMO parameters are adaptive to the load and rotor speed.
At least one example embodiment discloses an extended back EMF-based adaptive QSMO for rotor position estimation for a sensorless IPMSM drive. In the context of the present application, a sensorless system is a position/speed sensorless system, where position sensors may not be used to measure rotor position.
In the present application, state trajectory may refer to a difference between measured current and estimated current.
The inventors have discovered that a discrete-time sliding mode observer (DSMO) with conventional switching functions, will keep tight regulation to force the state trajectory close to the sliding surface even when tracking error is within the width of the boundary layer. This could cause a chattering problem during a steady state. To mitigate this chattering problem and achieve a bounded motion within a limited boundary layer, a switching function may be implemented. The switching function leads to a quasi-sliding mode motion of the DSMO at steady state. Since the magnitude of the extended back EMF of the IPMSM changes with both load and speed variations, the parameters allow better performance than conventional SMOs.
At least another example embodiment discloses speed aided stabilizers to improve drive system stability and help the drive system go smoothly at load/speed transients. The inventors have discovered that commonly used methods to improve the stability are system state decoupling, which are used to disconnect direct input/output relationship between each sub-system. However, a second order IPMSM model is a simplified model and d-q axis equations are also coupling with each other. The inductances change with stator current and a gamma angle, and the stator resistance changes with temperature. These parameter variations are difficult to accurately model in a machine model. For other modules in a close-loop system, the inverter and SMO are nonlinear, and linearization methods as well as other approximation methods are needed. So the whole sensorless control system is a high order, nonlinear, coupling system with unmodeled parameters and model uncertainties. The transfer function and pole placement based decoupling methods are difficult for both analysis and implementation.
The speed aided stabilizers are based on the idea that motor rotor speed changes much slower than the position changes in medium and high speed ranges. Thus, during the time interval of consecutive two sampling points, speed can be assumed as a constant value, and can be used to predict the position for a next step. This predicted position for a next step can be used as a reference to adjust the estimated position, so as to help the system go through the transient with high accuracy.
At least one example embodiment discloses a method of estimating a position of a rotor in a motor. The method includes determining a first estimated position of the rotor using a first algorithm, determining a second estimated position of the rotor using a second algorithm, the second algorithm being different than the first algorithm, determining a first error based on the first estimated position and the second estimated position, and determining a third estimated position of the rotor based on the first error.
In one example embodiment, the determining a first estimated position determines the first estimated position for a same point in time as the determining a second estimated position determines the second estimated position.
In one example embodiment, the determining a third estimated position determines the third estimated position for a point in time subsequent to the point in time associated with the determining a first estimated position and the determining a second estimated position.
In one example embodiment, the determining a first estimated position determines the first estimated position by a sliding mode observer by comparing an estimated current to a measured current associated with the motor.
In one example embodiment, the determining a second estimated position determines an estimated speed of the rotor, the second estimated position being based on the speed of the rotor and the third estimated position.
In one example embodiment, the determining a second estimated position determines an estimated speed of the rotor, the second estimated position being based on the estimated speed of the rotor.
In one example embodiment, the determining a third estimated position includes determining if the first error exceeds an error margin, and setting the third estimated position to the second estimated position if the first error exceeds the error margin.
In one example embodiment, the determining a third estimated position includes determining if the first error exceeds an error margin, and setting the third estimated position to the first estimated position if the first error is below the error margin.
In one example embodiment, the determining a first error determines the first error a difference between the first estimated position and the second estimated position.
In one example embodiment, the determining a first error includes determining a current error between the first estimated position and the second estimated position, and determining the first error based on the current error and a previous error.
In one example embodiment, the determining a first estimated position determines the first estimated position by a sliding mode observer.
In one example embodiment, the determining a second estimated position determines an estimated speed of the rotor, the second estimated position being based on the speed of the rotor.
In one example embodiment, the determining a second estimated position determines an estimated speed of the rotor, the second estimated position being based on the speed of the rotor.
In one example embodiment, the determining the first error based on a current error and a previous error adds the current error and the previous error.
In one example embodiment, the determining a third estimated position includes determining if the first error exceeds an error margin, and setting the third estimated position to the first estimated position if the first error is below the error margin.
In one example embodiment, the determining a third estimated position includes determining if the first error exceeds an error margin, and setting the third estimated position to the second estimated position minus the first error if the first error exceeds the error margin.
At least one example embodiment discloses a drive system including a controller configured to determine a first estimated position of the rotor using a first algorithm, determine a second estimated position of the rotor using a second algorithm, the second algorithm being different than the first algorithm, determine a first error based on the first estimated position and the second estimated position, and determine a third estimated position of the rotor based on the first error.
In one example embodiment, the drive system further includes a buffer coupled to the controller and configured to store data for determining the second estimated position.
Example embodiments will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings.
Various example embodiments will now be described more fully with reference to the accompanying drawings in which some example embodiments are illustrated.
Accordingly, while example embodiments are capable of various modifications and alternative forms, embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that there is no intent to limit example embodiments to the particular forms disclosed, but on the contrary, example embodiments are to cover all modifications, equivalents, and alternatives falling within the scope of the claims. Like numbers refer to like elements throughout the description of the figures.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.
It will be understood that when an element is referred to as being “connected” or “coupled” to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being “directly connected” or “directly coupled” to another element, there are no intervening elements present. Other words used to describe the relationship between elements should be interpreted in a like fashion (e.g., “between” versus “directly between,” “adjacent” versus “directly adjacent,” etc.).
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises,” “comprising,” “includes” and/or “including,” when used herein, specify the presence of stated features, integers, steps, operations, elements and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groups thereof.
It should also be noted that in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may in fact be executed substantially concurrently or may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which example embodiments belong. It will be further understood that terms, e.g., those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Portions of example embodiments and corresponding detailed description are presented in terms a processor specifically programmed to execute software, or algorithms and symbolic representations of operation on data bits within a computer memory. These descriptions and representations are the ones by which those of ordinary skill in the art effectively convey the substance of their work to others of ordinary skill in the art. An algorithm, as the term is used here, and as it is used generally, is conceived to be a self-consistent sequence of steps leading to a result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of optical, electrical, or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
In the following description, illustrative embodiments will be described with reference to acts and symbolic representations of operations (e.g., in the form of flowcharts) that may be implemented as program modules or functional processes including routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types and may be implemented using existing hardware. Such existing hardware may include one or more Central Processing Units (CPUs), digital signal processors (DSPs), application-specific-integrated-circuits, field programmable gate arrays (FPGAs) computers or the like.
It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, or as is apparent from the discussion, terms such as “processing” or “computing” or “calculating” or “determining” or “displaying” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical, electronic quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.
Note also that the software implemented aspects of example embodiments are typically encoded on some form of tangible (or recording) storage medium or implemented over some type of transmission medium. The tangible storage medium may be magnetic (e.g., a floppy disk or a hard drive) or optical (e.g., a compact disk read only memory, or “CD ROM”), and may be read only or random access.
In a discrete-time sliding mode controller (DSMC) or observer, to facilitate DSP or micro-controller based applications, controller inputs are calculated once per sampling period and held constant during this interval. The inventors have discovered that due to a finite sampling period or PWM switching frequency, the state trajectory is difficult to precisely move along the sliding surface, which will lead to a quasi-sliding mode motion only. For IPMSM drive applications, limitations in control loop frequency and CPU loading make it challenging to achieve high accuracy in position estimation. Moreover, a magnitude of extended back electromagnetic force (EMF) contains both a speed-related term and current-related terms, which means that both load and speed will affect the magnitude of the extended back EMF.
At least one example embodiment discloses an adaptive Quasi-SMO (QSMO) to estimate the rotor position from the extended back electromagnetic force (EMF) quantities in an IPMSM. The QSMO parameters are adaptive to the load and rotor speed.
In accordance with an example embodiment,
It should be understood that the drive system 100 may include additional features that are not illustrated in
The system 100 includes electronic modules, software modules, or both. In an example embodiment, the drive system 100 includes an electronic data processing system 101 to support storing, processing or execution of software instructions of one or more software modules. The electronic data processing system 101 is indicated by the dashed lines in
The data processing system 101 is coupled to an inverter circuit 150. The inverter circuit 150 may be a three-phase inverter. The inverter circuit 150 includes a semiconductor drive circuit that drives or controls switching semiconductors (e.g., insulated gate bipolar transistors (IGBT) or other power transistors) to output control signals for the motor 155. In turn, the inverter circuit 150 is coupled to the motor 155. The motor 155 is associated with sensors 180a and 180b.
Throughout the specification, the sensors 180a and 180b are referred to as current transducers. However, it should be understood that the sensors 180a and 180b may be another type of current sensor.
The current transducers 180a and 180b and the motor 155 are coupled to the data processing system 101 to provide feedback data (e.g., current feedback data, such as phase current values ia and ib), raw position signals, among other possible feedback data or signals, for example. While only two current transducers 180a and 180b are shown, it should be understood that the driver system 100 may implement three current transducers.
The data processing system 101 includes a software controller 102, converters 160, 165, a pulse width generation module 145, a QSMO 170 and a speed calculator 175.
The software controller 102, converters 160, 165, the pulse width generation module 145, the QSMO 170 and the speed calculator 175 are software modules. While the software controller 102, converters 160, 165, the pulse width generation module 145, the QSMO 170 and the speed calculator 175 are described as executing functions, it should be understood that a data processor, such as a digital signal processor or a microcontroller, is specifically programmed to execute the software controller 102, converters 160, 165, the pulse width generation module 145, the QSMO 170 and the speed calculator 175. For example, a data processor 264 is specifically programmed to execute the software controller 102, converters 160, 165, the pulse width generation module 145, the QSMO 170 and the speed calculator 175, as will be described in
The controller 102 includes a speed regulator 105, a base torque lookup table (LUT) 110, a torque processor 115, a ratio calculator 120, a q-axis current (iq) command LUT 125, a d-axis current (id) command LUT 130, a current regulator 135, a voltage compensator 137 and a converter 140.
In an example embodiment, a speed regulator 105 receives input data representing a difference between an estimated rotor speed {circumflex over (ω)}r and a command rotor speed ω*r as input.
The command rotor speed ω*r may be input by a controller (shown as 266 in
While the term command is used throughout the specification, it should be understood that command refers to a target value.
The base torque LUT 110 determines a base torque value Tbase based on the estimated rotor speed {circumflex over (ω)}r.
From the estimated rotor speed {circumflex over (ω)}r, base torque values are respectively associated with discrete speed points with a nominal dc bus voltage level. In other words, the two-dimensional base torque LUT 110 is established from a motor characterization procedure. During the IPM motor characterization procedure, each rotor shaft speed has a maximum output torque, which is defined as the base torque at that speed. Thus, the base torque may also be referred to as peak torque.
The base torque LUT 110 outputs the associated base torque value as the base torque value Tbase to the torque processor 115.
The torque processor 115 receives the base torque value Tbase and the torque command Tcmd. The torque command Tcmd may be in Nm.
The torque processor 115 is configured to determine an absolute value of the torque command Tcmd. The torque processor 115 is configured to convert the absolute value of the torque command Tcmd into a percentage Torq_Perc of the base torque value Tbase. The torque processor 115 outputs the percentage Torq_Perc to the q-axis current (iq) command LUT 125 and the d-axis current (id) command LUT 130.
In addition to sending the estimated rotor speed {circumflex over (ω)}r to the base torque LUT 110, the speed calculator 175 sends the estimated rotor speed {circumflex over (ω)}r to the ratio calculator 120.
In addition to receiving the estimated rotor speed {circumflex over (ω)}r the ratio calculator 120 is configured to receive the measured operating dc bus voltage value. The measured operating dc bus voltage value is provided by a voltage sensor 185 which measures the DC bus in the inverter circuit 150. The inverter circuit 150 is powered by a direct current (dc) voltage bus. The ratio calculator 120 adjusts the operating DC bus voltage VDC by the voltage sensor 185 to the detected operating rotor shaft speed ratio as follows:
where Tratio is the adjusted detected operating DC bus voltage to the detected operating rotor shaft speed ratio and Y is a coefficient. For example, the coefficient Y may be 0.9. The ratio Tratio is output by the ratio calculator 120 to the d-q axis current command LUTs 125 and 130.
The q-axis current command (iq) LUT 125 and the d-axis current command (id) LUT 130 are configured to receive the ratio Tratio. The q-axis current command LUT 125 and the d-axis current command LUT 130 store q-axis and d-axis current commands, respectively, each of which is associated with a pair of ratio and torque percentage values. The development of the q-axis current command LUT 125 and the d-axis current command LUT 130 may be done using any known method.
The d-q axis current refers to the direct axis current and the quadrature axis current as applicable in the context of vector-controlled alternating current machines, such as the motor 155.
The d-axis current command LUT 130 is configured to output a d-axis current command i*d that is associated with the received torque percentage Torq_Perc and the ratio Tratio. As shown in
The q-axis current command LUT 125 is configured to output a q-axis current command i*q that is associated with the received torque percentage Torq_Perc and ratio Tratio.
It should be understood that i*d and i*q are current commands for a stator of the motor 155.
While the q-axis current command LUT 125 and d-axis current command LUT 130 are illustrated and described as LUTs, it should be understood that the q-axis current command LUT 125 and d-axis current command LUT 130 may be implemented as a set of equations that relate respective torque commands to corresponding direct and quadrature axes currents, or a set of rules (e.g., if-then rules) that relates respective torque commands to corresponding direct and quadrature axes currents.
As shown in
The current regulator 135 is capable of communicating with the pulse-width modulation (PWM) generation module 145 (e.g., space vector PWM generation module). The current regulator 135 receives respective d-q axis current commands (e.g., i*d and i*q) and measured d-q axis currents (e.g., id and is) for the stator and outputs corresponding pre-compensated d-q axis voltage commands v′d and v′q to a voltage compensator 137.
The voltage compensator 137 provides voltage adjustment data to adjust the pre-compensated d-q axis voltage commands v′d and v′q and outputs d-q axis voltage commands v*d and v*q. It should be understood that the voltage compensator 137 may generate the d-q axis voltage commands (e.g., v*d and v*q commands) using any known method such as current feed forward compensation.
The converter 140 receives the d-q axis voltage commands v*d and v*q and performs an inverse Park transformation to generate α-β axis voltage commands v*α and v*β. While at least one example embodiment is described using the α-β axis, it should be understood that example embodiments may be implemented using the d-q axis or three phase representation of a control vector.
In an example embodiment, the PWM generation module 145 converts the α axis voltage and β axis voltage data (voltage commands v*α and v*β) from two phase data representations into three phase representations (e.g., three phase voltage representations, such as va*, vb* and vc*) for control of the motor 155, for example. Outputs of the PWM generation module 145 are coupled to the inverter circuit 150.
The inverter circuit 150 includes power electronics, such as switching semiconductors to generate, modify and control pulse-width modulated signals or other alternating current signals (e.g., pulse, square wave, sinusoidal, or other waveforms) applied to the motor 155. The PWM generation module 145 provides inputs to a driver stage within the inverter circuit 150. An output stage of the inverter circuit 150 provides a pulse-width modulated voltage waveform or other voltage signal for control of the motor 155. In an example embodiment, the inverter 150 is powered by the direct current (dc) voltage bus voltage VDC.
The current transducers 180a, 180b measure two of three phase current data ia and ib, respectively, applied to the motor 155. It should be understood that an additional current transducer may also measure a third phase current data ic.
The converter 160 may apply a Clarke transformation or other conversion equations (e.g., certain conversion equations that are suitable and are known to those of ordinary skill in the art) to convert the measured three-phase representations of current into two-phase representations of current based on the current data ia and ib from the current transducers 180a, 180b and an estimated rotor position {circumflex over (θ)}re from the QSMO 170. The output of the converter 160 module (id, iq) is coupled to the current regulator 135.
The converter 165 may apply a Park transformation or other conversion equations (e.g., certain conversion equations that are suitable and are known to those of ordinary skill in the art) to convert the measured three-phase representations of current into two-phase representations of current based on the current data ia and ib from the current transducers 180a, 180b. The output of the converter 160 module (measured currents iα, iβ) is coupled to the QSMO 170.
The QSMO 170 receives the measured currents iα, iβ and the voltage commands v*α and v*β. Based on the measured currents iα, iβ and the voltage commands v*α and v*β the QSMO 170 is configured to output the estimated rotor position {circumflex over (θ)}re to the speed calculator 175 and the converter 160, as will be described in greater detail in
The speed calculator 175 may convert the estimated rotor position {circumflex over (θ)}re provided by the QSMO 170 into the estimated rotor speed {circumflex over (ω)}r.
In
In an example embodiment, the data processor 264 may include an electronic data processor, a digital signal processor, microprocessor, a microcontroller, a programmable logic array, a logic circuit, an arithmetic logic unit, an application specific integrated circuit, a digital signal processor, a proportional-integral-derivative (PID) controller, or another data processing device.
The data storage device 260 may include any magnetic, electronic, or optical device for storing data. For example, the data storage device 260 may include an electronic data storage device, an electronic memory, non-volatile electronic random access memory, one or more electronic data registers, data latches, a magnetic disc drive, a hard disc drive, an optical disc drive, or the like.
Moreover, in one example embodiment the data storage device 260 may store the controller 102, pulse width generation module 145, converters 160, 165, the QSMO 170 and the speed controller 175 to be used executed by the data processor 264. The data processor 264 may access the data storage device 260 and execute the controller 102, pulse width generation module 145, converters 160, 165, the QSMO 170 and the speed controller 175 via the data bus 262.
As shown in
In an example embodiment as illustrated in
In an example embodiment of the data processing system 101, the speed regulator 105 is associated with or supported by the first data port 268 of the electronic data processing system 101. The first data port 268 may be coupled to a vehicle data bus 118, such as a controller area network (CAN) data bus. The vehicle data bus 118 may provide data bus messages with torque commands to the speed regulator 105 via the first data port 268. The operator of a vehicle may generate the torque commands via a user interface, such as a throttle, a pedal, the controller 266, or other control device.
The dynamics of the motor 155 can be modeled in the d-q rotating reference frame as:
where p is the derivative operator, vsd, vsq, isd, and isq are the stator voltages and currents, respectively, ωre is the rotor electrical speed, and Φm, is the magnetic flux linkage of the motor 155, Ld and Lq are the d-axis and q-axis inductances, respectively; and R is the stator resistance. As should be understood, ωre is the rotor electrical speed and ωr is the mechanical speed and care is car multiplied by the pole-pairs number.
Using the inverse Park transformation, the dynamic model of the motor 155 in the α-β stationary reference frame can be expressed as:
where
and θre is the rotor position angle. While the electrical quantity θre is used described as the rotor position angle, it should be understood that a mechanical quantity may be used where the mechanical quantity is the electrical quantity θre divided by a number of magnetic pole pairs po of the motor 155.
Due to the saliency of the motor (i.e., Ld≠Lq), both the back EMF and the inductance matrix contain the information of the rotor position angle. Moreover, equation (3) contains both 2θre and θre terms. To facilitate rotor position observation, an extended back EMF-based model for the motor 155 may be used as follows:
In equation (4) only the extended back EMF term contains the information of the rotor position. Thus, the rotor position can be extracted by an inverse tangent method or angle tracking observer using an estimated extended back EMF.
Back EMF is defined as:
Whereas extended back EMF may be defined as:
A magnitude of the extended back EMF may be:
η=(Ld−Lq)(ωreid−piq)+ωreφm (5)
The dynamic current equations of the motor 155 can be expressed in matrix form:
X=AX+BV+E (6)
where
V=[v
α
v
β]T (7)
E=η/L
d[sin θre−cos θre]T=[EαEβ]T (8)
X=[i
α
i
β]T (9)
which is selected as the system state;
Using the first-order Euler method, equation (6) may be written into a discrete-time model as follows:
wherein Ts is the sampling period.
Referring back to
The QSMO 170a receives the voltage commands vα and vβ and the measured currents iα and iβ converted from measured phase currents ia, ib and ic.
The sliding mode current estimator 205 receives the voltage commands v*α and v*α and a switching control vector Zαβ. It should be understood that terms having “αβ” as subscripts represent a vector having both the α-axis term and the β-axis term. For example, voltage commands v*α and v*β may be represented as v*αβ such that (v*αβ)T equals [v*αv*β].
Using equation (12), the sliding mode current estimator 205 samples the voltage commands v*α and v*β and the switching control vector Zαβ and generates an estimated current value îαβ (îα and îβ) as follows:
As should be noted, equation (13) has the same form as equation (12). However, in equation (13), the voltage commands v*α and v*β are used, which are received from the converter 140, so that the terminal voltage does not need to be measured. However, if a dead-time effect is not fully compensated for, the voltage command will not equal the terminal voltage. This voltage mismatch will bring some error to the estimated position.
A comparator 207 receives the measured currents iα and iβ and the estimated currents îα and îβ. The comparator 207 determines errors εα and εβ between the measured currents iα and iβ and the estimated currents îα and îβ, respectively. The errors εα and εβ may be differences between the measured currents iα and iβ and the estimated currents îα and îβ, respectively.
The comparator 207 sends the errors εα and εβ to the switching block 210. Based on the errors εα and εβ, the switching block 210 determines the switching control vector Zαβ. The switching control vector Zαβ contains the information of back EMF. Since the switching control vector Zαβ is the output of switching block 210, it contains heavy switching noise. The low-pass filter 215 receives the switching control vector Zαβ to smooth the estimated back EMF profile. The low-pass filter 215 adds a phase delay to original signal input. The phase shift compensator 225 compensates for the phase delay.
Thus, a tracking error between the measured current and estimated current is:
ε[k]T=[Iα[k]−îα[k]Iβ[k]−îβ[k]] (14)
More specifically, equation (15) can be obtained by subtracting (13) from (12):
The QSMO 170a has a sliding surface s[k], which is designed to equal the tracking error ε[k] and 0.
The switching block 210 implements a variable switching function as follows:
where Z0 is an adaptive parameter. A boundary layer is formed between −Z0 and Z0.
If the reaching condition can be satisfied, the state trajectory will approach the sliding surface. When the tracking error ε[k] is limited within a boundary layer (e.g., between −Z0 and Z0), the output of the switching block 210 is equal to the extended back EMF with heavy noise. In other words, Zαβ equals the extended back EMF with high order harmonics. The determination of the adaptive parameter Z0 is described in greater detail below.
It should be understood that the variable switching function may be implemented as hardware or software used with an associated processor to execute the switching function.
The low-pass filter 215 receives the switching control vector Zαβ from the switching block 210 and filters the switching control vector Zαβ to remove noise. The low-pass filter 215 may be a second order low pass Butterworth filter generated in the S-plane, for example.
The low-pass filter 215 outputs the filtered switching control vector Zαβ as an estimated back EMF êαβ to the position calculator 220. The output of the low-pass filter 215 has a same magnitude as the extended back EMF, however, the output of the low-pass filter 215 has a phase difference with respect to the extended back EMF.
The position calculator 220 determines a rotor position of the motor 155 based on the estimated back EMF êαβ. The rotor position determined by the position calculator 220 is not compensated for the phase shift caused by the low-pass filter 215. Therefore, the phase shift compensator 225 adds a phase shift Δθre to the rotor position at a logic unit 227 to compensate for the phase shift. More specifically, the phase shift compensator 225 compensates for the phase difference caused by the low-pass filter 215 using the phase-frequency characteristic of the low-pass filter 215 determined by the phase shift compensator 225.
The QSMO 170 sums the output from the position calculator 220 and the phase shift Δθ, to produce the estimated rotor position {circumflex over (θ)}re.
The position calculator 220 and the phase shift compensator 225 may be referred to as an estimator configured to estimate a position of the rotor based on the switching control vector. As described above, the switching control vector is determined by the QSMO 170a based on the difference between differences between the measured currents iα and iβ and the estimated currents îα and îβ, respectively, and the adaptive parameters Z0 and l.
The QSMO 170a is configured to determine adaptive parameters Z0 and l.
Equation (15) depicts dynamics of the state trajectory (difference between the measured current and the estimated current) of the QSMO 170. In order to ensure the state trajectory can move from an initial point to the sliding surface after a finite time step, the dynamic of state trajectory has a convergent behavior. Thus, the adaptive parameter Z0 and an adaptive parameter l satisfy this convergent condition. The adaptive parameter l is the gain of the QSMO 170.
Alpha axis and beta axis equations have an identical structure in equation (15). Thus, if the convergence can be proved for the equation in alpha axis, the equation in beta axis can be identically proved. In one example embodiment, the following procedures are implemented by the QSMO 170:
Condition (i) controls the direction of the state trajectory (error goes up then goes down) and condition (ii) controls the amount of change between two consecutive samples. Hence, when both conditions (i) and (ii) are implemented, the state trajectory can move from an initial condition to the sliding surface and remains in the boundary layer (between −Z0 and Z0).
For example, in condition (i), if the tracking error εα[k] is greater than the adaptive parameter Z0, such that Za equals the adaptive parameter Z0, the tracking error εα[k+1] would be less than the tracking error εα[k], which can be formulated based on equation (15) as:
which can also be formulated as:
because the adaptive parameter Z0 is less than the tracking error εα[k] and greater than 0, and
If the following inequality is satisfied, equations (17) and (18) are satisfied:
Because R/Ld is positive, a stronger condition can be obtained as lZ0 is greater than the amplitude Eα[k], which means if lZ0 is greater than the magnitude of the extended back EMF η, the tracking error εα [k+1] being greater than the tracking error εα[k] can be satisfied when the tracking error εα[k] is greater than adaptive parameter Z0.
If the tracking error εα[k] is less than −Z0, such that Za equals −Z0, the tracking error εα[k+1] would be greater than the tracking error εα[k], which can be formulated based on equation (15) as:
and can also be formulated as:
because the tracking error εα[k] is greater than −Z0 and less than 0,
If the following inequality is satisfied, equations (20) and (21) are satisfied:
Since R/Ld is positive, a stronger condition can also be proposed as lZ0 is greater than −Eα[k], which means if lZ0 is greater than the an amplitude of the back EMF Eα[k], the tracking error εα[k+1] is greater than the tracking error εα[k] can be satisfied when the tracking error εα[k] is less than −Z0.
Thus, if the product of the QSMO gain 1 and the adaptive parameter Z0 is greater than the magnitude of the extended back EMF η, condition (i) is satisfied. When the tracking error εα[k] is outside the width of the boundary layer, the state trajectory will move in the direction of the sliding surface.
In condition (ii), if the tracking error εα[k] is greater than the adaptive parameter Z0, such that Za equals Z0, the sum of tracking errors ε[k+1]+ε[k] is greater than 0, which can be formulated based on equation (15) as:
and can also be formulated as:
because the tracking error εα[k] is greater than the adaptive parameter Z0 and 0,
If the following inequality is satisfied, equations (23) and (24) are satisfied:
If the tracking error εα[k] is less than −Z0, such that Za=−Z0, the sum tracking errors ε[k+1] and ε[k] is less than 0, which can be formulated based on equation (15) as:
and can also be formulated as:
because the tracking error εα[k] is less than −Z0<0,
If the following inequality is satisfied, equations (26) and (27) are satisfied:
If lZ0 is smaller than
where |Ea[k]| is the amplitude of the extended back EMF η, the condition (ii) is satisfied and the change in the state trajectory between the kth and (k+1)th samples will also be limited.
The amplitude of the extended back EMF |Ea[k] | may be related to the magnitude of the EMF η as follows:
|Ea[k]|=η*|sin θ|
Condition (i) provides a lower boundary for the product of the gain l and the adaptive parameter Z0; while condition (ii) provides an upper boundary for the product of the gain l and the adaptive parameter Z0. In one example embodiment, the upper boundary is larger than the lower boundary, which can be formulated as:
where fs is the sampling frequency. According to the discussion above, in order to converge the state trajectory to the sliding surface s[k] from the initial state after finite time steps, the adaptive parameters Z0 and l of the switching function satisfy the following:
In one example embodiment, based on equation (30), lZ0 is a bounded value and is larger than the magnitude of the back EMF η in the current time sample k. When the speed ωr increases, the magnitude of the back EMF will also increase.
The adaptive parameter Z0 is proportional to the magnitude of the estimated back EMF êαβ. For example, when the magnitude of the estimated back EMF êαβ increases, the change in the back EMF between two consecutive samples will also increase; as a consequence, if the sampling frequency fs remains the same, the tracking error ε[k] will increase.
If the sampling frequency fs increases, the sampling time Ts will decrease, and the minimum value of the adaptive parameter Z0 will also decrease, which indicates that increasing the sampling frequency fs will maintain the state trajectory in a smaller boundary layer and improve the tracking performance.
As shown in
Based on the magnitude of back EMF η, a parameter estimator 235 calculates the adaptive parameters Z0 and l as follows:
where m is a parameter used to satisfy equation (30), and can be between 1-1.6, and preferably 1.1˜1.2, which means 10%˜20% larger than the minimum value of Z0. The parameter m is a testing-tuned coefficient to provide margin for the adaptive parameters Z0 and l.
Equation (5) indicates that the magnitude of the extended back EMF η is a function of the currents id and iq as well as the rotor speed ωr. In steady state diq/dt can be assumed 0. Thus, if the current id and the speed ωr are known, the value of η can be determined.
The back EMF magnitude estimator 230 determines the current id from the torque command Tcmd. For an IPMSM such as the motor 155, a generated electromagnetic torque Te can be expressed as:
T
e=3/2poiq[(Ld−Lq)id+φm] (33)
where po is the number of magnetic pole pairs of the motor 155. The relationship between id and iq depends on the control algorithm used for the motor 155. For example, if a maximum torque per ampere (MTPA) control is used, the relationship between id and iq can be obtained by taking Taylor's series expansion as follows:
Therefore, once the back EMF magnitude estimator 230 receives the torque command Tcmd and the estimated speed {circumflex over (ω)}*r, the back EMF magnitude estimator 230 can determine the values of id and iq using equations (33) and (34). The relationship between the command torque Tcmd and currents id and iq can be implemented by using a look-up table or a high-order polynomial.
The back EMF magnitude estimator 230 and the parameter estimator 235 may be software executed by digital signal processor or microcontroller, for example, to implement the EMF estimations and parameter estimations. The back EMF magnitude estimator 230 and the parameter estimator 235 may be executed by the data processor 264.
The portion 170c is the same as the portion 170b except the portion 170c includes a parameter LUT 240 instead of the back EMF magnitude estimator 230 and the parameter estimator 235. The parameter LUT 240 receives the torque command Tcmd and speed command ω*r. The parameter LUT 240 is a 3-D lookup table. Based on equation (30), the parameter LUT 240 generates the adaptive parameters Z0 and l as follows:
In an example of the parameter LUT 240, the product of QSMO gain l and adaptive parameter Z0 are determined based on machine speed and torque command. For example, for a constant sampling frequency, the QSMO gain l is a constant value, e.g., 8000, for 5000 Hz sampling frequency.
By using the lookup table shown in
While
In one example embodiment, the QSMO 170 is configured to sample the voltage command v*αβ and the measured current iαβ at twice a frequency as the PWM frequency of the pulse width generation module 145.
For example, a PWM frequency of 6,000 Hz is a relatively low switching frequency compared with 20 kHz. For motor speeds around 3,000 RPM, the QSMO 170 with 6,000 Hz sampling frequency has good performance to limit a rotor position error within 3 electric degrees. However, for a much wider speed operation range, e.g., 5,000 RPM, and heavy load conditions, the sampling frequency is incremented.
Although the PWM frequency may be limited, high sampling frequency or control loop rate can be achieved by increasing the execution rate of the QSMO 170 and controller 102. For example, doubling the execution rate per PWM cycle improves the performance of the QSMO 170 while maintaining the same level of switching losses.
The method of
At S310, the drive system generates a measured current. For example, with reference to
The converter 160 may apply a Clarke transformation or other conversion equations (e.g., certain conversion equations that are suitable are known to those of ordinary skill in the art) to convert the measured three-phase representations of current into two-phase representations of current based on the three-phase current data ia and ib from the current transducers 180a, 180b and an estimated rotor position {circumflex over (θ)}re from the QSMO 170. The output of the converter 160 module (isd, isq) is coupled to the current regulator 135.
The converter 165 may apply a Park transformation or other conversion equations (e.g., certain conversion equations that are suitable are known to those of ordinary skill in the art) to convert the measured three-phase representations of current into two-phase representations of current based on the current data ia and ib from the current transducers 180a, 180b.
The QSMO 170 receives the measured currents iα, iβ and the voltage commands v*α and v*β.
Referring back to
At S330, the QSMO determines a difference between the measured current and the estimated current. For example, in
At S340, the QSMO generates a switching control vector based on the difference and adaptive parameters of the QSMO. For example, The switching block 210 implements a variable switching function where Z0 is an adaptive parameter.
Moreover, condition (i) provides a lower boundary for the product of the gain l and the adaptive parameter Z0; while condition (ii) provides an upper boundary for the product of the gain l and the adaptive parameter Z0.
Back to
In
The output of the QSMO 170 is the estimated rotor position {circumflex over (θ)}re without any reference value, and the estimated rotor position {circumflex over (θ)}re is used by the converters 140 and 160.
As described above, the pulse width generation module 145 receives the transformed voltage commands v*α and v*β, which are used to generate three phase voltages/currents for the motor 155. The QSMO 170 receives the measured currents iα and iβ and voltage commands v*α and v*β, as input. Thus,
In order to improve the drive system 100 stability and help the drive system 100 go through smoothly at a load/speed transient, the inventors propose speed aided stabilizers.
The drive system 100 is configured to implement the speed aided stabilizers. The speed aided stabilizers are based on the idea that motor rotor speed changes much slower than the position changes in medium and high speed ranges. Thus, during the time interval of each two sampling points, speed can be assumed as a constant value, and can be used to predict the position for a next sample. This predicted position for a next sample can be used as a reference to adjust the estimated position, so as to help the drive system 100 go through the transient with high accuracy.
In
The QSMO 170 supplies the estimated rotor position to the comparator 402 and the delay 405. The delay 405 delays the estimated rotor position {circumflex over (θ)}[n] and outputs the delayed rotor position to the comparator 402, which is the estimated rotor position in the previous sample. Thus, the comparator 402 determines a difference Δ{circumflex over (θ)}[n] between a current estimated rotor position {circumflex over (θ)}[n] and a subsequent estimated rotor position {circumflex over (θ)}[n+1]. The difference Δ{circumflex over (θ)}[n] represents a position change.
The comparator 402 and the delay 405 may be software used executed by a digital signal processor or microcontroller. For example, the comparator 402 and the delay 405 may be software executed by the data processor 264.
The difference Δ{circumflex over (θ)}[n] and associated time period Δ{circumflex over (θ)}[n] are sent to and stored in a speed buffer 410. As shown, the speed buffer 410 may be stored in DSP RAM 415 or any other known type of tangible computer readable medium that is configured to be executed by a digital signal processor or microcontroller, for example.
The buffer 410 is a rolling buffer, which means if a new position change Δ{circumflex over (θ)}[n] is obtained, it will stored at buffer[0], and original buffer[0]˜buffer[N-2] will be shift right, and become stored at buffer[1]˜buffer[N-1]. Previous information stored in buffer [N-1] will be lost. N is the buffer size. The buffer size N may be determined based on the speed response, for example. If the size of the buffer 410 is small, the speed response will be fast, however, the estimated speed normally has larger oscillation. If the buffer size is large, the speed will be filtered smoothly, however, the speed response will be slower.
As shown in
When the controller 400 implements equation (37), the speed error between estimated and measured speed may be smaller than 1%.
It should be understood that the QSMO 170 in the data processing system 101 of the drive system 100 is configured to implement the methods shown in
At S505, the speed stabilizer determines if drive is enabled. If drive is not enabled, the speed stabilizer sets a selected position (third estimated position) {circumflex over (θ)}[n] and a second estimated position {circumflex over (θ)}2[n] to equal a first estimated position {circumflex over (θ)}1[n]. The first estimated position {circumflex over (θ)}1[n] is the estimated rotor position output from the QSMO 170. The speed stabilizer returns to S505 to monitor if drive is enabled.
If drive is enabled at S505, the QSMO 170 supplies the first estimated position {circumflex over (θ)}1[n] at S515 and the speed stabilizer determines a first error ε[n] at S520. The speed stabilizer determines the first error ε[n] by determining an absolute value of a difference between the second estimated position {circumflex over (θ)}2[n] and the first estimated position {circumflex over (θ)}1[n].
At S525, the speed stabilizer determines if the position error is smaller than the error margin E. The error margin E indicates whether the QSMO 170 is stable. If the speed stabilizer determines that the first error ε[n] is less than the error margin E, then the speed stabilizer sets the selected estimated position {circumflex over (θ)}[n] as the output of the QSMO {circumflex over (θ)}1[n], at S530. If the first error ε[n] is larger than the error margin E, which means QSMO 170 is unstable or large transient occurs, then the speed stabilizer sets the selected estimated position {circumflex over (θ)}[n] as second estimated position {circumflex over (θ)}2[n], at S535.
At S540, the controller controls the motor based on the selected estimated position {circumflex over (θ)}[n].
At S550, the speed stabilizer determines a second estimated position {circumflex over (θ)}2[n] for a next PWM cycle based on a speed prediction algorithm. The second estimated position {circumflex over (θ)}2[n] may be determined by the speed stabilizer as:
{circumflex over (θ)}2[n+1]={circumflex over (θ)}[n]+{circumflex over (ω)}[n]×Ts (38)
The error margin E is a design parameter that is determined based on empirical data.
In the method of
In the method of
At S605, the speed stabilizer determines if drive is enabled. If drive is not enabled, the speed stabilizer sets a selected position (third estimated position) {circumflex over (θ)}[n] and the second estimated position {circumflex over (θ)}2[n]equal the first estimated position {circumflex over (θ)}1[n]. The first estimated position {circumflex over (θ)}1[n] is the estimated rotor position output from the QSMO 170. The speed stabilizer returns to S605 to monitor if drive is enabled.
If drive is enabled at S605, the QSMO 170 supplies the first estimated position {circumflex over (θ)}1[n] at S615 and the speed stabilizer determines a current error ε[n] at S620. The speed stabilizer determines the current error ε[n] by determining an absolute value of a difference between the second estimated position {circumflex over (θ)}2[n] and the first estimated position {circumflex over (θ)}1[n].
At S625, the speed stabilizer determines if the current error ε[n] is smaller than an error margin for a single sample {tilde over (E)}. The error margin {tilde over (E)} indicates whether the QSMO 170 is stable. If the speed stabilizer determines that the current error ε[n] is larger than the error margin for a single sample {tilde over (E)}, then the speed stabilizer sets the selected the second estimated position {circumflex over (θ)}2[n], at S630.
If the current error ε[n] is less than error margin for a single sample {tilde over (E)}, then the speed stabilizer adds the current error ε[n] to a sum of previous errors Σε[n-1] to determine the position error rolling sum Σε[n], at S635.
At S640, the speed stabilizer determines if the position error rolling sum Σε[n] is smaller than the error margin E. The error margin E indicates whether the QSMO 170 is stable. If the speed stabilizer determines that the position error rolling sum Σε[n] is less than the error margin E, then the speed stabilizer sets the selected estimated position {circumflex over (θ)}[n] as the output of the QSMO {circumflex over (θ)}1[n], at S645. If position error rolling sum Σε[n] is larger than the error margin E, which means QSMO 170 is unstable or large transient occurs, then the speed stabilizer sets the selected estimated position {circumflex over (θ)}[n] as second estimated position {circumflex over (θ)}2[n] minus the position error rolling sum Σε[n], at S650.
At S655, the controller controls the motor based on the selected estimated position {circumflex over (θ)}[n].
At S660, the speed stabilizer determines a second estimated position {circumflex over (θ)}2[n] for a next PWM cycle based on a speed prediction algorithm. The step S660 is the same as S550 and, thus, will not be described in greater detail for the sake of clarity.
The error margin for a single sample {tilde over (E)} is a small value, and normally generally within 0.5 electric degree. Moreover, the error margin E may be selected as 3 electric degrees.
As described above, the inventors have discovered an adaptive Quasi-SMO (QSMO) to estimate the rotor position from the extended back electromagnetic force (EMF) quantities in an IPMSM. The QSMO parameters are adaptive to the load and rotor speed.
At least one example embodiment discloses an extended back EMF-based adaptive QSMO for rotor position estimation for a sensorless IPMSM drive. The inventors have discovered that a discrete-time sliding mode observer (DSMO) with conventional switching functions, e.g., a sign function, will keep tight regulation to force the state trajectory close to the sliding surface even when tracking error is within the width of the boundary layer. This could cause a chattering problem during steady state. To mitigate this chattering problem, and to reach a global stability as well as a bounded motion within a limited boundary layer, a switching function may be implemented. The switching function leads to a quasi-sliding mode motion of the DSMO at steady state. Since the magnitude of the extended back EMF of the IPMSM changes with both load and speed variations, the parameters allow better performance than conventional SMOs.
At least another example embodiment discloses speed aided stabilizers to improve the drive system stability and help the drive system go through smoothly at load/speed transients. The speed aided stabilizers are based on the idea that motor rotor speed changes much slower than the position changes in medium and high speed ranges. Thus, during the time interval of each two sampling points, speed can be assumed as a constant value, and can be used to predict the position for a next sample. This predicted position for a next sample can be used as a reference to adjust the estimated position, so as to help the system go through the transient with high accuracy.
Example embodiments being thus described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of example embodiments, and all such modifications as would be obvious to one skilled in the art are intended to be included within the scope of the claims.