This application is the National Stage of International Application No. PCT/GB2006/004870 filed Dec. 21, 2006, the disclosures of which are incorporated herein by reference in their entirety, and which claimed priority to Great Britain Patent Application No. 0526274.6 filed Dec. 23, 2005, the disclosures of which are incorporated herein by reference in their entirety.
This invention relates to electric motors, and in particular to the position sensorless control of electric motors.
It is known to use motor control methods that use an algorithm to estimate the motor position rather than using a position sensor. However, many of these sensorless algorithms do not operate well at low motor speeds. Those that can operate at low or zero speeds are significantly more complex than those that only operate at higher speeds. However in some applications, such as fans and pumps, including hydraulic pumps for power steering systems, there is a need to produce relatively low cost systems that avoid the cost of a position sensor and the complication of known zero speed position determining algorithms.
Accordingly the present invention provides a control system for an electric motor, the control system being arranged to determine the position of the motor from at least one electrical parameter by means of a position determining algorithm which is reliant on movement of the motor to determine the motor position, and to start up the motor from rest by applying voltages to the motor that are independent of the position of the motor.
The position determining algorithm may be active for controlling the motor over all speeds, indeed it is preferably active at speeds down to zero. Preferably it is modified at low speeds. For example it may be modified so as to control the direction in which the motor turns, or it may be modified to prevent a term within the algorithm from tending towards infinity at zero speed.
Other advantages of this invention will become apparent to those skilled in the art from the following detailed description of the preferred embodiments, when read in light of the accompanying drawings.
Referring to
The hydraulic circuit comprises a pump 26 arranged to pump hydraulic fluid under pressure from a reservoir 28 to a feed line 30. The feed line is connected to an inlet port 32 of a pressure control valve 34, which is represented functionally in
The pump 26 is driven by a motor 40 which is controlled by a control unit 42. The control unit 42 receives an input signal from a vehicle speed sensor 44 which is variable with vehicle speed, and an input signal from a steering rate sensor 46 which varies with the steering rate, i.e. the rate of rotation of the steering wheel 12. The control unit 42 controls the speed of the pump 26 on the basis of these inputs. This system is therefore referred to as a speed control system.
Referring to
Referring to
A stator 106 in this particular embodiment comprises, for example, a nine slot copper wound element having three groups 108A, 108B, 108C of three teeth, each group of teeth having a common winding forming a respective phase. There are therefore three electrical cycles in each full rotation of the rotor, and the three teeth in any phase 108A, 108B, 108C are always in the same electrical position as each other.
Referring to
A current measuring device in the form of a resistor 134 is provided in the ground line 132 between the motor 40 and ground so that the controller 42 can measure the total current flowing though all of the windings 112, 114, 116. In order to measure the current in each of the windings the total current has to be sampled at precise instants within the PWM period where the voltage applied to each terminal of the winding (and hence the conduction state of a particular phase) is known. As is well known, in order for the currents in each of the windings to be measured in any one PWM period, the drive circuit needs to be in each of at least two different active states for a predetermined minimum time. The drive stage controller 133 can determine the phase currents from the voltages across the resistor 134 measured at different times in the PWM period.
A DC link voltage sensor 135 is arranged to measure the DC link voltage across the drive circuit, i.e. between the supply rail 130 and the ground line 132. The drive stage controller 133 receives an input from this voltage sensor 135. From this input the controller is arranged to measure the phase voltages in the motor. In order to do this, the controller 133 determines the modulation duty cycle of each motor phase, i.e. the proportion of each PWM period for which the phase is connected to the supply rail, and multiplies this by the measured DC link voltage. This gives a measure of the phase voltage for each phase.
The control unit 42 is arranged to determine the phase voltages of the motor that will produce the required motor currents and to input these voltages to the drive stage controller 133. The drive stage controller 133 is arranged to control the transistors of the drive stage to produce the required phase voltages as will now be described.
Referring to
States 1, 2, 3, 4, 5 and 6 are herein also referred to as states +A, −C, +B, −A, +C and −B respectively, because they each represent the states in which the voltage applied across the windings is in a positive or negative direction for a respective one of the phases. For example in the +A state the A phase is connected to the supply rail and the other two phases are connected to the ground link, and in the −A state the connections are reversed.
When the circuit is being controlled to produce PWM, each of the phases will normally be turned on and off once in each PWM period. The relative lengths of time that are taken up in each state will determine the magnitude and direction of the magnetic field produced in each winding, and hence the magnitude and direction of the total torque applied to the rotor. These lengths of time, or duty ratios, can be calculated using various modulation algorithms but in this embodiment a space vector modulation technique is used.
Referring to
Referring to
Referring to
The three measured phase currents Iabc, in this case as measured using the single current sensor 134, are input to a first current converter 206 which converts them to α and βaxis currents Iαβ. These are then input to a second current converter 208, together with the motor position, and the second current converter 208 converts them to d and q axis currents Idq. These measured d and q axis currents are used for comparison with the demanded d and q axis currents as described above.
For reference, a system in which a motor position sensor is used instead of the position determining algorithm is shown in
Referring to
Referring to
The following equation represents in general terms the operation of the observer, which in this case is a non-linear observer to accommodate the non-linear terms in the model of the motor. The state estimates (motor phase currents, rotor position and rotor speed) are represented by {circumflex over (x)}, and the measured phase voltages by u. The motor and system dynamics are represented by the non-linear functions A and B. The actual states are represented by x, so the residuals are represented by (x−{circumflex over (x)}), and the corrector by the non-linear function C.
{dot over ({circumflex over (x)}=A{circumflex over (x)}+Bu+C(x−{circumflex over (x)})
The equations for the non-linear observer in this example are:
The following correction terms are used in the observer:
The terms in these equations are defined as follows:
(α,β)=stator (fixed) reference frame
(d,q)=rotor reference frame
iα, iβ=motor currents
uα, uβ=motor voltages
θe=motor electrical angle (radians electrical)
ωm=motor mechanical angular velocity (radians mechanical per second)
R=motor phase resistance
L=motor inductance (phase self-inductance plus mutual inductance)
B=motor mechanical viscosity
J=motor mechanical inertia
ke=motor back emf constant (as defined below)
kt=motor torque constant (as defined below)
p=number of pole pairs for the motor
gi, gw, gθ=observer gains (tuneable parameters)
The motor back-emf and torque constants are defined as follows:
ke=peak line-to-line voltage/mechanical angular velocity
kt=average motor torque/peak motor current
The symbol ̂ above a quantity indicates that it is an estimated value as opposed to a measured value.
The values for each of the variables are obtained as follows:
iα, iβ are derived from the measured phase currents as described above;
uα, uβ are derived from the measured phase voltages;
θe is the variable being determined from the algorithm;
{circumflex over (ω)}m is an internal state of the observer. Externally of the observer, the angular velocity is determined by differentiating the motor position state θe of the observer;
R, L, B, and J are defined as constants;
ke and kt are defined as indicated above and determined using off-line measurements;
p is the number of motor pole pairs, which is a known constant.
The fact that the controller is arranged to derive the motor speed from the differential of the estimated position has the advantage that, providing the rotor is turning and the system has reached a steady state equilibrium, the accuracy of the speed signal for the speed control of the motor is determined only by the accuracy of the clock of the microprocessor in the controller that is running the algorithm.
The sensorless position determining algorithm described above determines rotor position by monitoring an electrical parameter of the motor that varies with rotational position. Specifically it estimates the phase angle of the rotor back-emf, which in turn is the derivative of rotor flux and varies with the rotational position of the motor. Since the magnitude of the rotor back-emf is zero at zero motor speed, the observer cannot estimate position at zero motor speed. Another problem with the algorithm at zero speed is that the position correction term corro includes the inverse of the motor angular velocity. This term therefore becomes infinite at zero motor speed. However, by modifying the sensorless algorithm at low motor speeds it can be made to function sufficiently well to start the motor, even though it will generally not operate efficiently. This is acceptable for applications where the motor is not required to produce high torques at low speeds, which is the case for the hydraulic pump of this embodiment, and other applications including pumps and fans. Modification of the sensorless algorithm to provide a startup algorithm forces the motor to rotate in the correct direction even though the actual motor position is unknown. As the speed increases, the sensorless algorithm can be changed to its normal operation.
Many sensorless position observers, including the non-linear observer of this embodiment, have two possible solutions for the position estimation: the correct estimation, and an incorrect estimation 180° out of phase. One purpose of the startup algorithm is to ensure that the observer does not converge at the incorrect state. If it does converge on the incorrect state, there is a position error of 180° which will result in incorrect operation of the motor. Either the motor will run backwards, or it will run in correct direction but with very low output torque and efficiency. (The actual operation for 180° error is determined by the design of the motor controller).
To prevent this, the position correction calculation in equation (8) is replaced by:
where F({circumflex over (ω)}m) is a function that calculates the reciprocal of {circumflex over (ω)}m and limits its value to prevent it from going to infinity. F({circumflex over (ω)}m) is calculated as follows:
This limits the magnitude of {circumflex over (ω)}m
min_ω is chosen to be high enough so that its inverse is small enough to be handled by the processor of the control unit.
The behaviour of F({circumflex over (ω)}m) for {circumflex over (ω)}m=0 can be achieved in several ways, for example by setting conditions such that either {circumflex over (ω)}m is greater than, or less than zero, or F({circumflex over (ω)}m) is set to a constant F0 which is calibrateable.
This prevents the speed estimate used in the position correction term from going to zero, which stops the correction term from tending towards infinity. The speed estimate term used in the rest of the algorithm is not affected.
With this modification, the algorithm can be run down to zero speed without going unstable. When the rotor is stationary, the algorithm will be stable. The position estimate will be constant, although its value will be random, and so it will have an error of any value up to ±180°.
With this modification to the position determining algorithm to limit the reciprocal of the speed estimate state, it is possible to start the motor up with the rotor position signal for the motor control being provided by the observer.
In order to start the motor from rest, the controller 42 is arranged to operate as follows.
Hence it can be seen that if the motor control is started up using the position-sensorless observer, the motor will start turning and the position signal will converge, even though the observer cannot correctly determine the position at zero speed. However, there is a 50% chance that the observer will converge on a position close to 180° from the true position, and the motor will rotate in the wrong direction.
In order to overcome the convergence problem in this embodiment, at the instant that the motor control is enabled, a sufficiently large torque demand is applied to the motor to make it start up as described above. Referring to
No matter what the initial position error is, the position correction term ensures that the applied voltages will rotate in the direction required. It therefore ensures that position will rotate in the direction required and the motor will start up and rotate in that direction.
The control unit 42 monitors the motor speed, and when it reaches a predetermined speed, as determined from the differential of the position, the limits are removed from the position correction term and the so that the observer works normally. Since the modified low speed sensorless algorithm does not provide optimum efficiency, but the normal algorithm does not function effectively at low speeds, the speed at which the switch is made is selected to be the lowest at which the normal algorithm can function reliably.
The switch between the two regimes can carried out at a single speed threshold, but in this embodiment as shown in
In a further embodiment, the controller uses an alternative method of ensuring that the motor starts moving in the correct direction. In this embodiment the controller is arranged to start the motor by applying a constant torque demand as described above and, as the motor speed increases, check that it is turning in the required direction. The direction of rotation is determined by differentiating the motor position, as determined by the sensorless algorithm, to determine the motor speed. The algorithm is such that it is impossible for the position, as determined by the algorithm, to be rotating in one direction while the motor rotates in another, so it is guaranteed that the differentiated position will indicate whether the motor is running backwards.
If at any point the control unit detects that the motor is running backwards, it disables the motor control, and the motor is allowed to stop. When it is determined that the motor has stopped, either because sufficient time has been allowed for it to stop or because it is detected as being stationary the motor control is restarted and the torque demand re-applied. The motor can be detected as stationary when the differential of the position signal is below a predetermined threshold. This process is repeated until the motor is detected as running in the correct direction.
The advantage of using a predictor/compensator type of sensorless algorithm is that it compensates for a number of variable parameters that could otherwise affect the accuracy of the position estimation. Some of the parameters used in the algorithm equations will vary from one motor to another. These include, for example, motor phase resistance R, motor inductance L, motor mechanical viscosity B, motor mechanical inertia J, and the motor back emf and torque constants Ke and kt. If a predictor/compensator system were not used, then these parameters could be measured for each motor as it is produced and input individually into the sensorless algorithm. However, this is obviously time consuming and inconvenient. Some of the parameters will also vary with temperature, such as R, L and B. Again, if the predictor/compensator model were not used, then the temperature could be monitored and the equations of the algorithm modified to take the temperature into account. However, this makes the model significantly more complicated, which increases the computational overheads.
While the embodiment described above uses a non-linear observer, other closed loop observers such as a Luenberger observer or a Kalman filter can be used.
In accordance with the provisions of the patent statutes, the principle and mode of operation of this invention have been explained and illustrated in its preferred embodiment. However, it must be understood that this invention may be practiced otherwise than as specifically explained and illustrated without departing from its spirit or scope.
Number | Date | Country | Kind |
---|---|---|---|
0526274.6 | Dec 2005 | GB | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/GB2006/004870 | 12/21/2006 | WO | 00 | 3/27/2009 |