Motor position calibration

文档序号:515411 发布日期:2021-05-28 浏览:5次 中文

阅读说明:本技术 马达位置校准 (Motor position calibration ) 是由 C·D·狄克逊 P·G·斯科特森 C·B·威廉姆斯 P·特威 于 2020-11-25 设计创作,主要内容包括:一种确定安装在多相电动马达上的马达位置传感器的电角度偏移的方法,该方法包括:使用外部驱动系统使该多相电动马达的转子以马达速度旋转;测量该多相电动马达的每个相的马达相电压,该马达相电压包括该马达的旋转产生的反电动势;将该马达相电压转换到DQ参考系中以形成DQ马达相电压;以及从这些DQ马达相电压计算该电角度偏移。(A method of determining an electrical angle offset of a motor position sensor mounted on a multi-phase electric motor, the method comprising: rotating a rotor of the multi-phase electric motor at a motor speed 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 electromotive force generated by rotation of the motor; converting the motor phase voltage into a DQ reference frame to form a DQ motor phase voltage; and calculating the electrical angle offset from the DQ motor phase voltages.)

1. A method of determining an electrical angular offset of a motor position sensor mounted on a multi-phase electric motor, the method comprising:

rotating a rotor of the multi-phase electric motor at a motor speed using an external drive system;

measuring motor phase voltages of each phase of the multi-phase electric motor, the motor phase voltages including back electromotive force generated by rotation of the motor;

converting the motor phase voltages into a DQ reference frame to form DQ motor phase voltages;

calculating the electrical angle offset from the DQ motor phase voltage.

2. The method of claim 1, wherein the motor phase voltage is first converted into an α β reference frame before converting into the DQ reference frame.

3. The method of claim 1 or 2, further comprising the step of normalizing the motor phase voltage to the motor speed to form a normalized motor phase voltage prior to converting to the DQ motor phase voltage.

4. The method of any preceding claim, wherein the step of calculating the electrical angle offset from the DQ motor phase voltage is performed by: adjusting the position offset until the 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.

5. The method of claim 4, wherein the position offset is used in the step of converting a normalized motor phase voltage into the DQ reference frame to form the DQ motor phase voltage.

6. The method of any preceding claim, wherein the step of calculating the electrical angle offset from the DQ motor phase voltage is performed by a closed loop controller.

7. The method of claim 6, wherein the closed-loop controller is a PI controller.

8. The method of any of claims 1 to 3, wherein the step of calculating the electrical angle offset from the DQ motor phase voltage is performed by using an arctangent function.

9. A method according to any preceding claim, wherein the step of calculating the electrical angle offset from the DQ motor phase voltage comprises applying a time lag correction to take into account the motor speed when performing the calculation.

10. The method of claim 9, wherein the time lag correction is applied by filtering a motor speed signal indicative of the motor speed using a time lag filter coefficient.

11. The method of any preceding claim, wherein the motor speed is a constant speed.

12. The method of any preceding claim, wherein the motor speed is higher than a minimum motor speed.

13. A method according to any preceding claim, wherein the motor speed is lower than a maximum motor speed.

14. A method according to any preceding claim, further comprising the step of removing a DC offset from the motor phase voltage.

15. A method according to any preceding claim, wherein during operation of the method a drive stage controller of the multiphase electric motor is disabled.

16. The method of any preceding claim, wherein the electrical angle offset is filtered using an offset filter coefficient.

Technical Field

The present invention relates to a method of determining an electrical angular offset of a motor position sensor, particularly, but not necessarily exclusively, for use in an on-board electric motor, such as an Electric Power Assisted Steering (EPAS) system motor.

Background

Permanent magnet synchronous motors (also known as multiphase electric motors) are well known for use in a wide range of applications. These permanent magnet synchronous motors have proven to be particularly suitable for use in Electric Power Assisted Steering (EPAS) systems because they are capable of operating accurately over a wide torque range and are robust and cost effective. In EPAS systems, a motor is driven in response to a torque demand signal to apply torque to a steering shaft or other portion of a steering mechanism to assist a driver in turning a steering wheel.

In order to ensure that the motor produces an optimum torque, the electrical position of the motor relative to the zero crossings of the back emf of the motor must be accurately known. Due to manufacturing tolerances, the position sensor system cannot be easily fitted into this system with high accuracy and therefore there remains an alignment error between the zero position (physical) of the position sensor and the zero position (electrical) of the motor. More accurate alignment of the position sensor with the motor would be expensive and time consuming, and therefore generally not suitable for use in such situations. Current manufacturing techniques and timing allow alignment accuracy of about ± 15 ° with respect to the electrical zero position of the motor.

In known systems, for each motor, the remaining alignment error must be removed during an offline (EOL) calibration process. One such method is to disable the current control of the motor and subsequently supply the motor with a Q-axis voltage in each rotational direction in turn, measuring the resulting speed of the motor in each direction. The position offset can then be adjusted to produce the same speed for a given voltage requirement in both rotational directions. This situation is highly time consuming.

As a time saving measure, a map can be generated for each motor variant so that any asymmetry in the rotational speed can be quickly determined as a specific angular offset. In this way, these velocities need to be checked only once, and then corrections are applied by mapping the asymmetric velocities to the corresponding angular offsets stored in the map. The disadvantages of this case are: generating this mapping is a time consuming process and is necessary for each motor variant and for updating the magnetic design of any single variant. Electromagnetism can also cause mapping distortion so that there is no clear direct mapping for each positional offset.

Accordingly, an improved method of determining electrical angle offset is desired.

Disclosure of Invention

According to a first aspect, there is provided a method of determining an electrical angular offset of a motor position sensor mounted on a multi-phase electric motor, the method comprising:

rotating a rotor of the multi-phase electric motor at a motor speed using an external drive system;

measuring motor phase voltages of each phase of the multi-phase electric motor, the motor phase voltages including back electromotive force generated by rotation of the motor;

converting the motor phase voltages into a DQ reference frame to form DQ motor phase voltages;

calculating the electrical angle offset from the DQ motor phase voltage.

In this way, the electrical angle offset can be determined individually for each electric motor in a faster way than before. The method does not require calibration of the compensation table and requires less time and effort. The back emf of the motor can also be measured as a by-product of the process, which can be used in other calculations.

The motor phase voltage may be first converted into an α β reference frame before being converted into the DQ reference frame.

The method may further comprise: normalizing the motor phase voltage to the motor speed to form a normalized motor phase voltage prior to conversion to the DQ motor phase voltage.

This ensures that the method is invariant to speed variations of the motor, for example so that the motor does not need to rotate at a steady speed or so that the motor can be rotated in either direction without any changes to the parameters of the method.

The step of calculating the electrical angle offset from the DQ motor phase voltage may be performed by: adjusting the position offset until the 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 normalized motor phases 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 voltage 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 voltage may be performed by using an arctangent function.

The step of calculating the electrical angle offset from the DQ motor phase voltage may comprise applying a time lag correction to take into account the motor speed when performing the correction.

This can minimize the angular error introduced by time delays in signal processing when operating the motor at higher speeds.

The time lag correction may be applied by filtering a motor speed signal indicative of the motor speed using a time lag filter coefficient.

The motor speed may be a constant speed.

Ensuring that the speed of rotation is constant may simplify speed handling and speed up the process.

The motor speed may be above a minimum speed and/or may be below a maximum speed.

The method may further comprise: removing a DC offset from the motor phase voltage.

Removing these DC offsets may remove additional harmonic content to improve the 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 using an offset filter coefficient.

The filtering may minimize noise within the system.

Drawings

Specific embodiments will now be described with reference to the accompanying drawings, in which:

fig. 1 shows drive stages of an electric motor and three motor phases to which these drive stages are connected;

FIG. 2 illustrates the operation of a controller performing the method of the first aspect;

figure 3 shows an example of the measurement of the back emf in each phase of a motor that is rotating at constant speed, for both an aligned reference and a motor with an offset of 15 °;

FIG. 4 shows the measurements of FIG. 3 transformed into an α β reference frame and subsequently also into a DQ reference frame;

FIG. 5 shows the DQ motor phase voltage of FIG. 4, expressed as a voltage phasor;

FIG. 6 shows an angular offset calculated from the DQ motor phase voltage of FIG. 5;

FIG. 7 shows an example of a controller running an algorithm to determine an electrical angular offset with an angular offset of about-46.5;

FIG. 8 shows a simplified view of an electric motor engaged with an external drive device for operating the method of the first aspect;

FIG. 9 illustrates a flow chart of a method of the present invention for determining an electrical angle offset of a motor position sensor.

Detailed Description

Referring first to fig. 1, a drive circuit 100 for a three-phase synchronous electric motor 10 is shown. The electric motor 10 is shown in a simplified version in fig. 8. The driver circuit 100 includes a driver stage having three branches 104 connecting a positive power rail 106 to a ground power rail 108. Each branch 104 includes a top switch 110 and a bottom switch 112 arranged in pairs, which are electrical switches controllable to provide power to three phases 114 of the motor 10 contained within the stator 12 of the motor 10. In the depicted embodiment, the top switch 110 and the bottom switch 112 are provided as MOSFETs, but other electrically controlled switches may also be used.

The phases 114 of the motor 10 are connected in a Y or star configuration, with a first end of each phase 114 connected to a connection point between the top switch 110 and the bottom switch 112 of the drive stage 102, and a second end connected to a common connection point of the three phases 114. A motor drive controller 116 operates the top switch 110 and the bottom switch 112, which controls the switches 110, 112 to convert the dc current provided at the positive rail 106 into ac current provided to the motor phase 114 by way of Pulse Width Modulation (PWM). Thereby causing the rotor 14 of the motor 10 to rotate. The manner in which the PWM signal is controlled is well known to the skilled person and will not be discussed in this application.

In order to control the motor 10 in an efficient and effective manner, it is necessary to know the position of the rotor 14 of the motor 10 when the PWM signal is applied to the phase 114. To do this, during assembly of the system, a position sensor 16 (e.g. in the form of a rotary encoder) is mechanically attached to the rotor 14, the output of the position sensor 16 being used to ensure that the correct signal is provided to the drive stage 102 of the motor 10 during use. Because it is difficult and time consuming to ensure perfect accuracy of assembly, there is a misalignment or electrical angular offset left between the zero position of the position sensor 16 and the zero position of the rotor 14.

The motor 10 may be defined in the DQ reference frame by the following equation:

wherein:

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

Number of p-pole pairs

ωm-motor speed

KeBack electromotive force constant

Rearranging the equation, in the case where zero current flows in the motor 10, a voltage is generated at the terminal only when the motor 10 rotates, and the generated counter electromotive force exists only on the Q-axis. The fact that back emf is only present on the Q-axis can be used to determine the correct electrical angle offset; if the D-axis voltage is not equal to zero, the electrical angle offset is incorrect.

The controller 116 may thus be configured to determine the electrical offset of the motor position sensor 16 after assembly. The operation of the controller 116 is depicted in fig. 2. The controller 116 is configured to operate while the motor 10 is being driven by the external drive system 18, such as another electric motor. The forced rotation of the motor 10 causes a back emf to be generated in the stator 12 by the phases 114 of the electric motor 10 as the rotor 14 rotates. Thus, the drive stage 102 does not actively control the motor 10 when determining the electrical angular offset of the position sensor 16. Thus, at zero motor speed, the voltage sensed from each of the phases 114 will be zero.

Thus, any DC offset bias may be removed from the voltage measurements prior to any rotation of the motor 10. Although the presence of DC offsets in the phase voltage measurements does not affect the amount of DQ being averaged, these DC offsets do cause additional harmonic content, the removal of which improves the performance of the algorithm executed by the controller 116.

As the motor 10 is rotated, the controller 116 receives a motor phase voltage V from each phase 114 of the motor 10U、VV、VW. This is shown in fig. 3. Controller 116 may then convert these motor phase voltages into an α β reference frame, for example, by performing a Clarke transformation. The back electromotive force generated during the rotation of the motor 10 is proportional to the motor speed and the motor direction. In this way, it is advantageous, although not necessary, to normalize the motor phase voltage to the motor speed prior to further processing. Normalization to the motor direction may require the addition of an additional compensation term of 180 °. Additional compensation terms may need to be added to the calculated offset without normalizing the motor speed.

It may be necessary for the motor 10 to rotate at a speed higher than the minimum speed to determine the offset. The minimum speed may be limited by how accurately the back emf can be measured because the back emf tends to zero as the speed decreases. The minimum speed may be about 50 rpm.

The maximum speed of operation may be defined by the maximum voltage that the ECU can measure, since the voltage increases with increasing rotational speed-the back emf is proportional to the rotational speed. Since the voltage signal measurable by the ECU will be based on the voltage expected to be seen in use, this maximum voltage may be about 30V for a 12V system.

Although the magnitude of the motor phase voltage may not be needed for offset correction, once the signal has been converted into the DQ reference frame, the magnitude of the motor phase voltage may be used to measure the back electromotive force constant (K)EMF)。KEMFThe voltage generated by the motor at a given speed, and hence the peak voltage per radian per second, is defined. In the case of using this definition and the model of the motor as defined above, the scaling factor is(motor speed is in rev/s).

The next step in the process is to translate the signal into the DQ reference frame by using the value representing the motor electrical position plus the position offset as the position of the motor 10. The phase voltages in the α β reference frame and the DQ reference frame are shown in fig. 4. The depicted embodiment then operates by controlling the position offset until the D-axis component of the motor phase voltage is zero, as shown in fig. 2. This step is accomplished by using a PI controller (as is well known in the art). At this time, it can be determined that the positional deviation is the same as the deviation of the motor position sensor 16 from the electrical angle of the motor 10 (i.e., the electrical angle deviation). This is shown in fig. 5 in the form of DQ voltage phasors, and then the angle error is shown in fig. 6.

When the position offset is fed back into the DQ conversion of the PI controller, the PI controller may be adjusted according to the time available for calculating the electrical angle offset. This allows a balance to be achieved between response speed and settling to a steady state value, taking into account the level of noise that may be present in the system. For example, if the system response is too fast, any harmonic content in the phase voltages will be tracked and therefore a change in the determined electrical angle offset will be introduced.

An example algorithm for operating the controller 116 is shown in fig. 7. The trace includes three motor phase voltages and a resulting response to the determined electrical offset value. The controller 116 has been adjusted to have a steady state settling time of 4 seconds. It can be seen that the electrical offset value has been determined to be approximately-46.5 deg.. The response is a first order response from 0 ° up to 313.5 °, which equals-46.5 °.

Where a speed normalization step has been used, the controller 116 may determine the electrical angle offset with two different parameters depending on the direction of rotation of the motor 10. The first parameter may be used in the case where the motor 10 rotates in a first direction, and the second parameter may be used in the case where the motor 10 rotates in an opposite direction. The controller 116 will automatically select the correct parameters to ensure that the correct electrical angular offset is determined, depending on the direction of rotation. In case the speed normalization step is already 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 and processing the signal to produce the electrical angle offset. In this case, a filter may be used on the velocity signal to calculate an extrapolated position that compensates for the time delay. In this way, the calculated offset can be made constant for the rotational speed of the motor 10.

The electrical angle coefficients may also be filtered by offsetting the filter coefficients to minimize noise.

Instead of determining the electrical angle offset by the controller 116 using an operating algorithm, it is also possible to use the arctangent (tan) directly on the DQ value-1) The function determines the electrical angle offset.

An embodiment of the method as described above is outlined in the flowchart of fig. 9. In a first step, the motor S100 is rotated by an external drive system. The motor phase voltage is then received and measured by the controller S102. Next, the motor phase voltage is converted into an α β reference frame S104 and normalized with the motor speed S106. The motor phase voltage is then converted into the DQ reference frame S108 and an electrical angle offset S110 can then be calculated.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:同步电动机驱动器中的电流测量增益误差的检测

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!