This application claims priority to UK Patent Application No. 1917218.8 filed Nov. 26, 2019, the disclosure of which is incorporated herein by reference in its entirety.
The present disclosure relates to a method of determining an electrical angle offset of a motor position sensor, particularly but not necessarily exclusively for use in a vehicular electric motor, such as an electric power-assisted steering (EPAS) system motor.
Permanent magnet synchronous motors, also known as multi-phase electric motors, are well-known for use in a wide range of applications. They have proven especially suitable for use in electric power-assisted steering (EPAS) systems due to their ability to operate precisely over a wide range of torques as well as being robust and cost-effective. In an EPAS system, the motor is driven in response to a torque demand signal to apply a torque to a steering shaft or other part of the steering mechanism that helps the driver to turn the wheel.
To ensure optimal torque generation by the motor, it is necessary for the electrical position of the motor to be accurately known, relative to the zero-crossing of the back-EMF of the motor. Due to manufacturing tolerances, the position sensor system cannot be fitted easily to the system with a high level of accuracy and therefore an alignment error remains between the zero-position (physical) of the position sensor and the zero-position (electrical) of the motor. More accurate alignment of the position sensor and motor would be costly and time-consuming, and therefore is generally unsuitable for use in this context. Present manufacturing techniques and timings allow an alignment accuracy of about ±15° relative to the electrical zero-position of the motor.
In known systems, the remaining alignment error must be removed as part of the end of line (EOL) calibration process for each motor. One such method is that of disabling the current control of the motor and subsequently supplying a Q-axis voltage to the motor in each direction of rotation, consecutively, measuring the resultant speed of the motor in each direction. The position offset can then be adjusted in order that identical speeds for a given voltage demand are produced in both directions of rotation. This is highly time-consuming.
As a time-saving measure, a mapping can be produced for each motor variant in order that any lack of symmetry in the speeds of rotation can be quickly determined as a particular angular offset. In this way, the speeds need only to be checked once, the correction then being applied by mapping the asymmetrical speeds to the corresponding angular offset stored in the map. A disadvantage of this is that producing the mapping is a time-consuming process and is required for each motor variant, as well as if the magnetic design of any single variant is updated. Electromagnetics can also cause distortion to the mapping such that there is not a clear direct map for every position offset.
An improved method of determining an electrical angle offset is therefore desirable.
According to a first aspect, there is provided a method of determining an electrical angle offset of a motor position sensor mounted to a multi-phase electric motor, the method comprising:
rotating a rotor of the multi-phase electric motor at a motor velocity using an external drive system;
measuring a motor phase voltage of each phase of the multi-phase electric motor, the motor phase voltage comprising a back-EMF generated by the rotation of the motor;
converting the motor phase voltage to a DQ reference frame to form a DQ motor phase voltage;
calculating the electrical angle offset from the DQ motor phase voltages.
In this way, the electrical angle offset can be determined for each electric motor individually in a quicker manner than was previously possible. The method requires no calibration of compensation tables and requires reduced time and effort. The back-EMF of the motor can also be measured as a by-product of the process, which may be used in other calculations.
The motor phase voltages may be first converted to an as reference frame prior to conversion to the DQ reference frame.
The method may further comprise the step of normalising the motor phase voltages to the motor velocity to form normalised motor phase voltage prior to conversion into the DQ motor phase voltage.
This ensures that the method is invariant to speed changes of the motor, for example so that the motor need not be rotated at a steady speed or such that it may be rotated in either direction without any alteration required to parameters of the method.
The step of calculating the electrical angle offset from the DQ motor phase voltages may be performed by adjusting a position offset until a D-axis component of the DQ motor phase voltage is zero, at which point it can be determined that the position offset is equal to the electrical angle offset.
The position offset may be used in the step of converting the normalised motor phase to the DQ reference frame to form the DQ motor phase voltage.
The step of calculating the electrical angle offset from the DQ motor phase voltages may be performed by a closed loop controller.
The closed loop controller may be a PI controller.
The step of calculating the electrical angle offset from the DQ motor phase voltages may be performed by using an inverse tan function.
The step of calculating the electrical angle offset from the DQ motor phase voltages may include an application of a time lag correction to take into account the motor velocity when performing the corrections.
This can minimise the angular error introduced when operating the motor at higher speeds due to the time delay in the processing of the signal.
The time lag correction may be applied by filtering a motor velocity signal indicative of the motor velocity with a time lag filter coefficient.
The motor velocity may be a constant velocity.
Ensuring that the velocity of rotation is constant can simplify the signal processing and speed up the process.
The motor velocity may be above a minimum velocity and/or may be below a maximum velocity.
The method may further comprise the step of removing DC offsets from the motor phase voltages.
Removing the DC offsets may remove additional harmonic content in order to improve performance of the method.
During operation of the method, a drive stage controller of the multi-phase electric motor may be disabled.
The electrical angle offset may be filtered with an offset filter coefficient.
The filtering can minimise noise within the system.
Specific embodiments will now be described with reference to the accompanying drawings, in which:
Firstly referring to
The phases 114 of the motor 10 are connected in a Y- or star-configuration with a first end of each phase 114 connecting to a junction between a top and bottom switch 110, 112 of the drive stage 102 and the second end connecting to a common junction of the three phases 114. The top and bottom switches 110, 112 are operated by a motor drive controller 116 that controls the switches 110, 112 to transform the direct current provided at the positive rail 106 to an alternating current provided to the motor phases 114, by way of pulse width modulation (PWM). A rotor 14 of the motor 10 is therefore caused to rotate. The manner in which the PWM signal is controlled will be well-known to the skilled person and will not be discussed further in the present application.
In order to control the motor 10 in an effective and efficient manner, it is necessary to know the position of the rotor 14 of the motor 10 when applying the PWM signals to the phases 114. In order to do this, a position sensor 16, for example in the form of a rotary encoder, is mechanically attached to the rotor 14 during assembly of the system, the output of the position sensor 16 being used to ensure that the correct signals are provided to the drive stage 102 of the motor 10 during use. As it is difficult and time-consuming to ensure perfect accuracy of the assembly, a misalignment, or electrical angle offset, remains between the zero-position of the position sensor 16 and the zero-position of the rotor 14.
The motor 10 can be defined in the DQ reference frame by the equations:
where:
id—D-axis current
iq—Q-axis current
ud—D-axis voltage
uq—Q-axis voltage
Ld—D-axis inductance
Lq—Q-axis inductance
Rs—phase resistance
p—number of magnet pole pairs
ωm—motor speed
Ke— back-EMF constant
Rearranging the equation, with zero current flowing in the motor 10, the voltage is generated at the terminals only when the motor 10 is rotated, and the back-EMF generated is only present on the Q-axis. The fact that the back-EMF appears only on the Q-axis can be used to determine the correct electrical angle offset; if the D-axis voltage is not equal to zero then the electrical angle offset is incorrect.
It is therefore possible for the controller 116 to be configured to determine the electrical offset of the motor position sensor 16 after assembly. The operation of the controller 116 is depicted in
Any DC offset bias can therefore be removed from the voltage measurements before any rotation of the motor 10. Whilst the DC offsets present in the phase voltage measurements do not affect the mean calculated DQ quantities, they do result in additional harmonic content, the removal of which improves the performance of the algorithm executed by the controller 116.
When the motor 10 is rotated, the controller 116 receives a motor phase voltage VU, VV, VW from each phase 114 of the motor 10. This is shown in
It may be necessary for the motor 10 to be rotated above a minimum speed in order for to determine the offset. The minimum speed may be limited by how accurately the back-EMF can be measured, as the back-EMF tends to zero as the speed decreases. The minimum speed may be around 50 rpm.
A maximum speed of operation may be limited by the maximum voltage that the ECU can measure, as the voltage increases with the speed of rotation—back-EMF is proportional to speed of rotation. As the voltage signals measurable by the ECU will be based around the voltages expected to be seen in use, the maximum voltage may be around 30V for a 12V system.
Whilst the magnitude of the motor phase voltages may not be required for offset correction, it can be used to measure the back-EMF constant (KEMF) once the signals have been converted to the DQ reference frame. The KEMF defines the voltage generated by the motor for a given speed and is defined herewith as the peak voltage per radian per second. Using this definition and the model of the motor as defined above, the scaling factor is √{square root over (3)}/2π (with the motor speed in rev/s).
The next step in the process is to convert the signals into the DQ reference frame using as the position of the motor 10 a value representing the motor electrical position plus a position offset. The phase voltages in the αβ and DQ reference frames are shown in
As the position offset is fed back into the DQ transformation of the PI controller, the PI controller can be tuned according to how much time is available to calculate the electrical angle offset. This allows a balance to be achieved between the speed of response and the settling to a steady-state value, taking into account the fact that there is likely to be a level of noise in the system. For example, if the system response is too fast then any harmonic content in the phase voltages will be tracked and variation in the determined electrical angle offset will therefore be introduced.
An example algorithm operating on the controller 116 is shown in
Where the velocity normalisation step has not been used, the controller 116 may utilise two different parameters to determine the electrical angle offset, depending on the direction of rotation of the motor 10. A first parameter can be used with the motor 10 rotating in a first direction, and a second parameter can be used with the motor 10 rotating in the opposite direction. The correct parameter will be automatically selected by the controller 116 depending on the direction of rotation to ensure that the correct electrical angle offset is determined. Where the velocity normalisation step has been included, these two different parameters are not necessary.
When operating the motor 10 at higher speeds, it may be beneficial to compensate for the time delay between receiving the signals and processing the signals to produce the electrical angle offset. In such cases, a filter may be used on the velocity signal to calculate an extrapolated position that compensates for the time delay. As such, the computed offset may be made to be invariant to speed for rotation of the motor 10.
The electric angle coefficient may also be filtered by an offset filter coefficient in order to minimise noise.
In place of determining the electrical angle offset by use of the controller 116 operating an algorithm, it is also possible to determine the electrical angle offset by directly using the inverse tangent (tan−1) function on the DQ values.
The embodiment of the method described above is summarised in the flow chart of
Number | Date | Country | Kind |
---|---|---|---|
1917218.8 | Nov 2019 | GB | national |