WO2023169275A1 - Motor rotor position observation method and apparatus, rotor position observer, and medium - Google Patents

Motor rotor position observation method and apparatus, rotor position observer, and medium Download PDF

Info

Publication number
WO2023169275A1
WO2023169275A1 PCT/CN2023/078964 CN2023078964W WO2023169275A1 WO 2023169275 A1 WO2023169275 A1 WO 2023169275A1 CN 2023078964 W CN2023078964 W CN 2023078964W WO 2023169275 A1 WO2023169275 A1 WO 2023169275A1
Authority
WO
WIPO (PCT)
Prior art keywords
new
value
current
sampling
act22
Prior art date
Application number
PCT/CN2023/078964
Other languages
French (fr)
Chinese (zh)
Inventor
王志宇
许培林
陈辉
秦向南
Original Assignee
威灵(芜湖)电机制造有限公司
美的威灵电机技术(上海)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 威灵(芜湖)电机制造有限公司, 美的威灵电机技术(上海)有限公司 filed Critical 威灵(芜湖)电机制造有限公司
Publication of WO2023169275A1 publication Critical patent/WO2023169275A1/en

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/14Estimation or adaptation of machine parameters, e.g. flux, current or voltage
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/13Observer control, e.g. using Luenberger observers or Kalman filters
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/14Estimation or adaptation of machine parameters, e.g. flux, current or voltage
    • H02P21/18Estimation of position or speed
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/22Current control, e.g. using a current control loop
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P21/00Arrangements or methods for the control of electric machines by vector control, e.g. by control of field orientation
    • H02P21/24Vector control not involving the use of rotor position or rotor speed sensors

Definitions

  • the present disclosure relates to the field of motor control technology, and in particular to a motor rotor position observation method, device, rotor position observer and medium.
  • the motor position sensorless control method based on high-frequency injection is simple to implement, low in cost, has good control performance in the low-speed area, and can realize low-speed load starting of the motor.
  • This method is to inject periodic positive and negative pulses into the d-axis, sample the q-axis high-frequency current response caused by the pulse, and send the high-frequency current response into the phase-locked loop to solve to obtain the estimated position of the motor.
  • the observer method in the related art has good performance in the medium-high speed region, but cannot converge in the low-speed region, so the high-frequency injection method has high practical application value.
  • the single-resistance sampling technology uses the sampling resistor on the DC negative bus to sample the current. It needs to be sampled twice in one control cycle, sampling within the action time of two effective voltage vectors (that is, non-zero voltage vectors). After the end, according to the voltage vector situation, the phase sequence of the sampled current is judged.
  • both current samplings require a certain amount of time.
  • sampling is done before and after the second or fifth switching tube action time, that is, within the action time of the two effective voltage vectors. If the resultant voltage vector is located in the fan Near the area switching boundary, there is a situation where at least one effective voltage vector is too small. Therefore, in order to meet the sampling time requirements, the switching tube action moment needs to be phase-shifted to ensure the accuracy of the two current samplings.
  • the sampling time of single-resistance sampling will change, especially near different sector switching areas, and the different phase shifting methods will lead to large differences in sampling time.
  • the controller output voltage is mainly high-frequency injection voltage, and the high-frequency injection voltage is positive and negative periodic injection.
  • the corresponding sectors are 180° different, resulting in phase shift. Introducing a large sampling time error will lead to a large error in the q-axis high-frequency current response obtained by sampling, and the estimated position obtained by solving the problem will also have a large error, thus affecting the control performance of the system.
  • the present disclosure aims to solve one of the technical problems in the related art, at least to a certain extent.
  • the first purpose of the present disclosure is to propose a motor rotor position observation method that can effectively improve the sampling current accuracy of single resistor sampling, thereby improving the accuracy of motor rotor position observation.
  • a second object of the present disclosure is to provide a computer-readable storage medium.
  • a third object of the present disclosure is to provide a rotor position observer.
  • the fourth object of the present disclosure is to provide a motor rotor position observation device.
  • the first embodiment of the present disclosure proposes a motor rotor position observation method, which includes: when injecting high-frequency pulses into the d-axis of the motor, determining a reference value, and determining the required voltage vector output under single-resistance sampling.
  • the six comparison values of the three-way modulation corresponding to the output required voltage vector under single resistor sampling are adjusted according to the difference between the reference value and the comparison value, and according to The adjusted comparison value determines the first current sampling trigger value and the second current sampling trigger value, and controls the motor according to the six adjusted comparison values, and controls the motor according to the first current sampling trigger value and the second current sampling trigger value.
  • the motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor based on the first sampling current and the second sampling current, which can effectively improve the sampling current accuracy of single-resistance sampling, thereby improving the observation of the motor rotor position. accuracy.
  • determining the reference value includes: obtaining a triangular wave carrier vertex count value; and determining the reference value according to the triangular wave carrier vertex count value.
  • the reference value is greater than or equal to the difference between the comparison value Act22 and the comparison value Act11.
  • the reference value is 0.5 times the vertex count value of the triangular wave carrier.
  • DetaN is the difference value and Nref is the reference value.
  • the first current sampling trigger value and the second current sampling trigger value are determined according to the following formula:
  • Trig1 New Act21 New -Tsample
  • Trig1 New is the first current sampling trigger value
  • Trig2 New is the second current sampling trigger value
  • Tsample is the time required for hardware sampling
  • Tdead is the dead time
  • Tup is the time for the current to rise to stability.
  • the first current sampling trigger value and the second current sampling trigger value are determined according to the following formula:
  • Trig2 New Act22 New -Tdead-Tup
  • Trig1 New is the first current sampling trigger value
  • Trig2 New is the second current sampling trigger value
  • Tsample is the time required for hardware sampling
  • Tdead is the dead time
  • Tup is the time for the current to rise to stability.
  • a second embodiment of the present disclosure proposes a computer-readable storage medium on which a motor rotor position observation program is stored.
  • the motor rotor position observation program is executed by a processor, the aforementioned motor rotor position observation method is implemented. .
  • the sampling current accuracy of single resistor sampling can be effectively improved, thereby improving the accuracy of motor rotor position observation.
  • a third embodiment of the present disclosure proposes a rotor position observer, which includes a memory, a processor, and a motor rotor position observation program stored in the memory and executable on the processor.
  • the processor executes the motor rotor position.
  • When observing the program implement the aforementioned motor rotor position observation method.
  • the sampling current accuracy of single resistor sampling can be effectively improved, thereby improving the accuracy of motor rotor position observation.
  • the fourth embodiment of the present disclosure proposes a motor rotor position observation device, including: a first determination module for determining a reference value; a second determination module for determining the required output voltage under single-resistance sampling The six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 of the three-way modulation corresponding to the vector; the adjustment module is used to determine the difference between the reference value and the comparison value Act21 or Act22 when injecting high-frequency pulses into the d-axis of the motor.
  • the third determination module is used to determine the first current according to the adjusted comparison value Act21 New or Act22 New
  • the sampling trigger value and the second current sampling trigger value
  • the control module is used to control the motor according to the six adjusted comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New , and Act12 New , and control the motor according to the first
  • the current sampling trigger value and the second current sampling trigger value perform current sampling on the motor, obtain the first sampling current and the second sampling current, and estimate the rotor position of the motor based on the first sampling current and the second sampling current.
  • the six comparison values of the three-way modulation corresponding to the output required voltage vector under single resistor sampling are adjusted according to the difference between the reference value and the comparison value, and according to The adjusted comparison value determines the first current sampling trigger value and the second current sampling trigger value, and controls the motor according to the six adjusted comparison values, and controls the motor according to the first current sampling trigger value and the second current sampling trigger value.
  • the motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor based on the first sampling current and the second sampling current, which can effectively improve the sampling current accuracy of single-resistance sampling, thereby improving the observation of the motor rotor position. accuracy.
  • Figure 1 is a diagram of a motor control system according to an embodiment of the present disclosure
  • Figure 2 is a single resistor high frequency injection control system diagram
  • Figure 3 (a) and (b) are schematic diagrams of the voltage vector of a positive voltage pulse injected at the 0° position and the operation of the switching tube according to an embodiment of the present disclosure
  • Figure 4 (a) and (b) are schematic diagrams of the voltage vector of a negative voltage pulse injected at the 0° position and the operation of the switch tube according to an embodiment of the present disclosure
  • Figure 5 is a schematic flowchart of a motor rotor position observation method according to an embodiment of the present disclosure
  • Figure 6 (a) and (b) are schematic diagrams of the adjusted switching tube operations corresponding to Figure 3 (a) and (b) and Figure 4 (a) and (b);
  • Figure 7 is a schematic structural diagram of a motor rotor position observation device according to an embodiment of the present disclosure.
  • both current samplings require a certain amount of time.
  • sampling is done before and after the second or fifth switching tube action time, that is, within the action time of the two effective voltage vectors. If the resultant voltage vector is located in the fan Near the area switching boundary, there is a situation where at least one effective voltage vector is too small. Therefore, in order to meet the sampling time requirements, the switching tube action moment needs to be phase-shifted to ensure the accuracy of the two current samplings.
  • the sampling time of single-resistance sampling will change, especially near different sector switching areas, and the different phase shifting methods will lead to large differences in sampling time.
  • the controller output voltage is mainly high-frequency injection voltage, and the high-frequency injection voltage is positive and negative periodic injection, and the corresponding sectors differ by 180 °, which will introduce a large sampling time error due to phase shift, resulting in a large error in the sampled q-axis high-frequency current response, and a large error in the estimated position obtained by solving the problem, thus affecting the control of the control system. performance.
  • the motor is at the 0° position for illustration.
  • a positive voltage pulse is first injected, as shown in (a) of Figure 3.
  • the output synthetic voltage vector Uinj basically coincides with U4(100), and the first effective voltage vector
  • the action time t1 of is large, and the action time t2 of the second effective voltage vector is small, so the phase shift is required.
  • the current sampling time determined after the phase shift is close to the middle of the triangular wave carrier cycle, as shown in Trig1 and Trig1 in (b) of Figure 3
  • Trig2 is close to the middle of the triangular wave carrier period; after the positive voltage pulse ends, a negative voltage pulse is injected, as shown in (a) of Figure 4.
  • the resultant voltage vector -Uinj output at this time is similar to the resultant voltage vector Uinj when the positive voltage pulse is injected.
  • the difference is 180°, and basically coincides with U3(011).
  • the action time t1 of the first effective voltage vector is small, and the action time t2 of the second effective voltage vector is large.
  • the phase shift is also required, but based on the current determined after the phase shift.
  • the sampling time is close to the end of the triangular wave carrier cycle. Trig1 and Trig2 in (b) of Figure 4 are close to the end of the triangular wave carrier cycle. Therefore note
  • the current sampling time when a positive voltage pulse is injected is different from the current sampling time when a negative voltage pulse is injected, resulting in a large error in the sampled high-frequency current response, which in turn leads to a large error in the estimated position.
  • the reference value can first be selected based on the triangular wave carrier cycle count value. Since the current sampling time is calculated based on the action time of the second or fifth switch tube, the second or fifth switch is Aligning the tube action moment with the reference value can ensure that the current sampling moments when positive and negative voltage pulses are injected are the same after phase shifting, thereby reducing the current sampling error caused by different current sampling moments, thereby improving the estimation accuracy of the motor rotor position.
  • FIG. 5 is a schematic flowchart of a motor rotor position observation method according to an embodiment of the present disclosure.
  • the motor rotor position observation method may include the following steps:
  • Step S101 when injecting high-frequency pulses into the d-axis of the motor, determine the reference value and determine the six comparison values Act11, Act21, Act31, Act32, Act22, Act11, Act21, Act31, Act32, Act22, Act12.
  • the reference value required to reduce the current sampling error caused by different current sampling moments can be obtained, and the reference value can be obtained according to the single-resistance sampling Calculate the comparison values Act11, Act21, Act31, Act32, Act22, and Act12 of each PWM (Pulse Width Modulation) signal required to control the motor, where Act11 represents the first switching tube in the three-phase inverter bridge.
  • PWM Pulse Width Modulation
  • the triangular wave carrier count value corresponding to the action time Act21 represents the triangular wave carrier count value corresponding to the second switch tube action time
  • Act31 represents the triangular wave carrier count value corresponding to the third switch tube action time
  • Act32 represents the fourth switch tube action time
  • the corresponding triangular wave carrier count value Act22 represents the triangular wave carrier count value corresponding to the fifth switching tube action time
  • Act12 represents the triangular wave carrier count value corresponding to the sixth switch tube action time.
  • the triangular wave carrier counting method is first increasing and then decreasing, corresponding to Act11 ⁇ Act21 ⁇ Act31, Act32>Act22>Act12.
  • PWM1, PWM2 and PWM3 are the PWM control signals of the upper arm switch tubes VT1, VT3 and VT5 shown in Figure 1 respectively (lower arm switch tubes VT1, VT3 and VT5).
  • the PWM control signals of switching tubes VT4, VT6 and VT2 correspond to the PWM control signals of the upper arm switching tubes VT1, VT3 and VT5, which are 180° different from each other).
  • the duty cycle of PWW3 is middle value; when the voltage vector is in sector IV, the comparison values corresponding to PWM1 are Act31 and Act32, the comparison values corresponding to PWM2 are Act21 and Act22, and the comparison values corresponding to PWM3 are Act11 and Act12, that is, the duty cycle of PWM1 is the minimum value , the duty cycle of PWM2 is the middle value, and the duty cycle of PWW3 is the maximum value; when the voltage vector is in sector V, the comparison values corresponding to PWM1 are Act21 and Act22, the comparison values corresponding to PWM2 are Act31 and Act32, and the corresponding comparison values of PWM3
  • the comparison values are Act11 and Act12, that is, the duty cycle of PWM1 is the middle value, the duty cycle of PWM2 is the minimum value, and the duty cycle of PWW3 is the maximum value; when the voltage vector is in sector VI, the comparison value corresponding to PWM1 are Act11 and Act12, the comparison values corresponding to PWM2 are Act31 and
  • the determined comparison value is also phase-shifted to ensure single-resistance sampling within the effective voltage vector action time and ensure the effectiveness and accuracy of current sampling.
  • the corresponding comparison value is adjusted according to the current sampling stage, the size of t1/2 and t2/2, so that the smaller value of t1/2 and t2/2 is greater than the minimum sampling time. For example, as shown in (b) of Figure 3, when current sampling is performed during the decreasing stage of the triangular wave carrier cycle, t2/2 is small. At this time, the high level of PWM3 is shifted to the left, and the corresponding comparison value Act31 decreases.
  • the comparison value Act32 increases; when current sampling is performed during the rising stage of the triangular wave carrier cycle, t2/2 is small. At this time, the high level of PWM3 is shifted to the right, and the corresponding comparison value Act31 increases and the comparison value Act32 decreases. As shown in (b) of Figure 4, when current sampling is performed during the decreasing stage of the triangular wave carrier cycle, t1/2 is small. At this time, the high level of PWM1 is moved to the right, and the corresponding comparison value Act11 increases, and the comparison value Act12 decreases. Small; when current sampling is performed during the rising stage of the triangular wave carrier cycle, t1/2 is small. At this time, the high level of PWM1 is shifted to the left, and the corresponding comparison value Act11 decreases and the comparison value Act12 increases.
  • the action time of the fifth switching tube is the time corresponding to the comparison value Act22.
  • the time corresponding to Trig1 and Trig2, that is, the current sampling time, is calculated based on the comparison value Act22, so it is guaranteed
  • the time corresponding to the comparison value Act22 in (a) of Figure 3 is consistent with the time corresponding to the comparison value Act22 in (b) of Figure 4 to ensure that the current sampling time in (a) of Figure 3 is the same as that of (b) of Figure 4
  • the current sampling moments in are consistent.
  • the base value can be selected based on the triangular wave carrier cycle count value, and the second or fifth Aligning the switching tube action moment with this reference value ensures that the current sampling moment when the positive and negative voltage pulses are injected after the phase shift is the same.
  • the time corresponding to the comparison value Act22 in Figure 3 (b) is the same as that in Figure 4 (b)
  • the time corresponding to the comparison value Act22 is aligned with the reference value to ensure that the current sampling time in (b) of Figure 3 is consistent with the current sampling time in (b) of Figure 4, thereby reducing the difference in current sampling time due to phase shift.
  • the current sampling error introduced.
  • determining the reference value may include: obtaining a triangular wave carrier vertex count value; and determining the reference value according to the triangular wave carrier vertex count value.
  • a positive voltage pulse when injecting high-frequency pulses into the d-axis of the motor, a positive voltage pulse can be injected first.
  • the triangular wave carrier vertex count value N 1/2Period corresponding to the positive voltage pulse is first determined, and based on the triangular wave carrier vertex count value N 1 /2Period gets the reference value Nref.
  • a negative voltage pulse is injected. Since the negative voltage pulse is a voltage pulse in the opposite direction to the positive voltage pulse, the reference value Nref determined when the positive voltage pulse is injected can be directly used as the reference determined when the negative voltage pulse is injected. The value Nref can of course be calculated directly.
  • Step S102 determine the difference between the reference value and the comparison value Act21 or Act22.
  • the corresponding comparison value is Act21
  • the corresponding The comparison value is Act22
  • Step S103 adjust the six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 according to the differences, and determine the first current sampling trigger value and the second current sampling trigger according to the adjusted comparison value Act21 New or Act22 New . value.
  • the six comparison values can be adjusted based on the difference value DetaN.
  • the adjustment principle is that if t2 is a smaller value, use the zero voltage vector U0 (000) to compensate the zero voltage vector U7 (111), that is, increase the duty cycle of PWM1, PWM2 and PWM3, that is, increase the high level time of PWM1, PWM2 and PWM3; if t1 is a smaller value, use the zero voltage vector U7 (111) to compensate the zero voltage vector U0(000), that is, reduce the duty cycle of PWM1, PWM2 and PWM3, that is, reduce the high level time of PWM1, PWM2 and PWM3.
  • the zero voltage vector U0 (000) is used to compensate the zero voltage vector U7 (111).
  • the adjusted PWM1, PWM2 and PWM3 are as shown in Figure 6 As shown in (a), compared to before adjustment PWM signal, the high level of the adjusted PWM signal is increased (i.e., expanded); as shown in Figure 4 (b), if t1 is a smaller value, the zero voltage vector U7 (111) is used to compensate the zero voltage vector U0 (000), the adjusted PWM1, PWM2 and PWM3 are shown in (b) of Figure 6. Compared with the PWM signal before adjustment, the high level of the adjusted PWM signal is reduced (ie, indented).
  • the purpose of setting the reference value Nref to be greater than or equal to the difference between the comparison value Act22 and the comparison value Act11 is to ensure that when t2 is a smaller value, the zero voltage vector U0 (000) is enough to supplement the zero voltage vector U7 (111). Avoid the fact that the duration of the zero voltage vector U0(000) is too short to supplement the zero voltage vector U7(111), and when t1 is a small value, the zero voltage vector U7(111) is sufficient to supplement the zero voltage vector U0(000). Avoid Because the duration of the zero-voltage vector U7(111) is too short, it is not enough to supplement the zero-voltage vector U0(000), ensuring normal control of the motor.
  • the six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 can be adjusted specifically through the following formula (1):
  • the difference DetaN can be positive or negative
  • formula (1) is applicable to the above two situations.
  • the difference value DetaN Nref-Act22. If t2 is a smaller value, the difference value DetaN ⁇ 0.
  • the six adjusted comparison values determined based on formula (1) are the same as shown in (a) of Figure 6 consistent; if t1 is a smaller value, the difference value DetaN>0, at this time, the six adjusted comparison values determined based on formula (1) are consistent with what is shown in (b) of Figure 6.
  • the first current sampling trigger value and the second current sampling trigger value are determined based on the adjusted comparison value Act21 New or Act22 New .
  • current sampling can be performed before and after the second or fifth switching tube action time, that is, before and after the time corresponding to the comparison value Act21 New or Act22 New , current sampling can be obtained.
  • the first current sampling trigger value Trig1 and the second current sampling trigger value Trig2 can be obtained according to one of the two comparison values.
  • the first current sampling trigger value Trig1 and the second current sampling trigger value Trig2 are obtained according to the comparison value Act22 New ; if the rising phase of the triangular wave carrier is selected for single-resistance sampling, then The first current sampling trigger value Trig1 and the second current sampling trigger value Trig2 are obtained according to the comparison value Act21 New .
  • the time required for hardware sampling such as the sampling time of the ADC converter
  • dead time Zone time that is, when the PWM signal is output, the time reserved to prevent the upper and lower switching tubes of the same bridge arm from being turned on at the same time.
  • the lower bridge arm switch tube can be turned on, or the upper arm switch can be turned on after the lower arm switch is turned off and the dead time is delayed) and the current stabilization time after the switch tube is turned on and off (for example, after the switch tube is turned on, the current gradually rises
  • the time corresponding to the stable state is determined to ensure sufficient current sampling time, avoid dead time and current non-stable time, and ensure the effectiveness and accuracy of current sampling.
  • the first current sampling trigger value and the second current sampling trigger value are determined according to the following formula (2):
  • Trig1 New is the first current sampling trigger value
  • Trig2 New is the second current sampling trigger value
  • Tsample is the time required for hardware sampling
  • Tdead is the dead time
  • Tup is the time for the current to rise to stability.
  • the first current sampling trigger value and the second current sampling trigger value are determined according to the following formula (3):
  • Trig1 New is the first current sampling trigger value
  • Trig2 New is the second current sampling trigger value
  • Tsample is the time required for hardware sampling
  • Tdead is the dead time
  • Tup is the time for the current to rise to stability.
  • the first current sampling is performed before the second or fifth switching tube action moment, and the second current sampling is performed after it.
  • the two sampling moments are as close as possible to reduce the sampling time error.
  • For the first current sampling just reserve a time Tsample required for hardware sampling.
  • For the second current sampling reserve a dead time Tdead and the time Tup for the current to rise to stability.
  • Step S104 control the motor according to the six adjusted comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New , and Act12 New , and control the motor according to the first current sampling trigger value and the second current sampling trigger value. Perform current sampling to obtain the first sampling current and the second sampling current.
  • the motor is also controlled based on the six adjusted comparison values, and during the control process, the first current sampling trigger value Trig1 and the second current sampling trigger are The value Trig2 is used for current sampling, thereby obtaining the first sampling current and the second sampling current.
  • VT2 is turned on, the upper arm switching tubes VT1 and VT3 remain on, and the other switching tubes are turned off; when the timer count value is equal to the first current sampling trigger value Trig1, current sampling is performed through the sampling resistor R in Figure 1.
  • the first sampling current when the timer count value is equal to the comparison value Act22 New , the lower arm switch VT6 in Figure 1 is controlled to be turned on, the upper arm switch VT1 and the lower arm switch VT2 remain turned on, and the other switches
  • the tubes are all turned off; when the timer count value is equal to the second current sampling trigger value Trig2, the current is sampled through the sampling resistor R in Figure 1 to obtain the second sampling current; when the timer count value is equal to the comparison value Act12 New , the control In Figure 1, the lower arm switch tube VT4 is turned on, the lower arm switch tubes VT2 and VT6 remain on, and the other switch tubes are turned off.
  • the motor can be controlled, and current sampling can be performed during the control process. It should be noted that the process of performing single-resistance sampling during the rising stage of the triangular wave carrier is the same as the process of performing single-resistance sampling during the falling stage of the triangular wave carrier, and will not be described in detail here.
  • Step S105 Estimate the rotor position of the motor based on the first sampling current and the second sampling current.
  • position observation can be performed based on the first sampling current and the second sampling current to obtain the rotor position of the motor. This can be specifically implemented using existing technology, which will not be described here.
  • the six comparison values of the three-way modulation corresponding to the output required voltage vector under single resistor sampling are adjusted according to the difference between the reference value and the comparison value, and according to The adjusted comparison value determines the first current sampling trigger value and the second current sampling trigger value, and controls the motor according to the six adjusted comparison values, and controls the motor according to the first current sampling trigger value and the second current sampling trigger value.
  • the motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor based on the first sampling current and the second sampling current, which can effectively improve the sampling current accuracy of single-resistance sampling, thereby improving the observation of the motor rotor position.
  • the accuracy is high, the algorithm is simple, and it is easy to apply in engineering, thus maintaining excellent control performance at a low cost.
  • a computer-readable storage medium is also provided, on which the motor rotor position observations are stored.
  • Program when the motor rotor position observation program is executed by the processor, the aforementioned motor rotor position observation method is implemented.
  • the sampling current accuracy of single resistor sampling can be effectively improved, thereby improving the accuracy of motor rotor position observation.
  • a rotor position observer which includes a memory, a processor, and a motor rotor position observation program stored in the memory and executable on the processor.
  • the processor executes the motor rotor position observation program , realize the aforementioned motor rotor position observation method.
  • the sampling current accuracy of single resistor sampling can be effectively improved, thereby improving the accuracy of motor rotor position observation.
  • FIG. 7 is a schematic diagram of a motor rotor position observation device according to an embodiment of the present disclosure.
  • the motor rotor position observation device may include: a first determination module 10, a second determination module 20, an adjustment module 30, a third Three determination module 40 and control module 50.
  • the first determination module 10 is used to determine the reference value; the second determination module 20 is used to determine the six comparison values Act11, Act21, Act31, Act32, Act22 of the three-way modulation corresponding to the required voltage vector output under single resistor sampling. , Act12; the adjustment module 30 is used to determine the difference between the reference value and the comparison value Act21 or Act22 when injecting high-frequency pulses into the d-axis of the motor, and compare the six comparison values Act11, Act21, Act31, and Act32 based on the difference.
  • the comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New , and Act12 New control the motor, and conduct current sampling on the motor according to the first current sampling trigger value and the second current sampling trigger value to obtain the first sample current and the second sampled current, and estimating the rotor position of the motor based on the first sampled current and the second sampled current.
  • the first determination module 10 is specifically configured to: obtain a triangular wave carrier vertex count value; and determine a reference value according to the triangular wave carrier vertex count value.
  • the reference value is greater than or equal to the difference between the comparison value Act22 and the comparison value Act11.
  • the reference value is 0.5 times the vertex count value of the triangular wave carrier.
  • the adjustment module 30 is specifically configured to adjust the six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 according to the following formula:
  • DetaN is the difference value and Nref is the reference value.
  • the third determination module 40 is specifically configured to determine the first current sampling trigger value and the second current sampling trigger value according to the following formula when performing single-resistance sampling during the rising stage of the triangular wave carrier:
  • Trig1 New Act21 New -Tsample
  • Trig1 New is the first current sampling trigger value
  • Trig2 New is the second current sampling trigger value
  • Tsample is the time required for hardware sampling
  • Tdead is the dead time
  • Tup is the time for the current to rise to stability.
  • the third determination module 40 is specifically configured to determine the first current sampling trigger value and the second current sampling trigger value according to the following formula when performing single-resistance sampling during the falling stage of the triangular wave carrier:
  • Trig2 New Act22 New -Tdead-Tup
  • Trig1 New is the first current sampling trigger value
  • Trig2 New is the second current sampling trigger value
  • Tsample is the time required for hardware sampling
  • Tdead is the dead time
  • Tup is the time for the current to rise to stability.
  • the six comparison values of the three-way modulation corresponding to the output required voltage vector under single resistor sampling are adjusted according to the difference between the reference value and the comparison value, and according to The adjusted comparison value determines the first current sampling trigger value and the second current sampling trigger value, and controls the motor according to the six adjusted comparison values, and controls the motor according to the first current sampling trigger value and the second current sampling trigger value.
  • the motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor based on the first sampling current and the second sampling current, which can effectively improve the sampling current accuracy of single-resistance sampling, thereby improving the observation of the motor rotor position. accuracy.
  • a "computer-readable medium” may be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
  • Non-exhaustive list of computer readable media include the following: electrical connections with one or more wires (electronic device), portable computer disk cartridges (magnetic device), random access memory (RAM), Read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM).
  • the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, and subsequently edited, interpreted, or otherwise suitable as necessary. process to obtain the program electronically and then store it in computer memory.
  • various parts of the present disclosure may be implemented in hardware, software, firmware, or combinations thereof.
  • various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a logic gate circuit with a logic gate circuit for implementing a logic function on a data signal.
  • Discrete logic circuits application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
  • first and second are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as “first” and “second” may explicitly or implicitly include at least one of these features.
  • “plurality” means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
  • connection In this disclosure, unless otherwise explicitly stated and limited, the terms “installation”, “connection”, “connection”, “fixing” and other terms should be understood in a broad sense. For example, it can be a fixed connection or a detachable connection. , or integrated into one; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two elements or an interactive relationship between two elements, unless otherwise specified restrictions. For those of ordinary skill in the art, the specific meanings of the above terms in this disclosure can be understood according to specific circumstances.

Abstract

A motor rotor position observation method and apparatus, a rotor position observer, and a medium, wherein the method comprises: determining a reference value when a high-frequency pulse is injected into a d axis of a motor, and determining six comparison values of three modulations corresponding to a voltage vector required for output under single resistance sampling (S101); determining a difference between the reference value and the comparison value Act21 or Act22 (S102); adjusting the six comparison values according to the difference, and determining a first current sampling trigger value and a second current sampling trigger value according to the adjusted comparison value Act21New or Act22New (S103); controlling the motor according to the adjusted six comparison values, and performing current sampling on the motor according to the first current sampling trigger value and the second current sampling trigger value to obtain a first sampling current and a second sampling current (S104); and estimating a rotor position of the motor according to the first sampling current and the second sampling current (S105).

Description

电机转子位置观测方法、装置、转子位置观测器及介质Motor rotor position observation method, device, rotor position observer and medium
相关申请的交叉引用Cross-references to related applications
本公开要求于2022年03月09日提交的申请号为202210226684.1,名称为“电机转子位置观测方法、装置、转子位置观测器及介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application with application number 202210226684.1 submitted on March 9, 2022, titled "Motor Rotor Position Observation Method, Device, Rotor Position Observer and Medium", the entire content of which is incorporated by reference in This disclosure is ongoing.
技术领域Technical field
本公开涉及电机控制技术领域,尤其涉及一种电机转子位置观测方法、装置、转子位置观测器及介质。The present disclosure relates to the field of motor control technology, and in particular to a motor rotor position observation method, device, rotor position observer and medium.
背景技术Background technique
基于高频注入的电机无位置传感器控制方法实现简单,成本低,在低速区域具有较好的控制性能,可以实现电机的低速负载启动。该方法是在d轴注入周期性的正负脉冲,对脉冲引起的q轴高频电流响应进行采样,将高频电流响应送入锁相环求解得到电机的估计位置。相关技术中的观测器方法在中高速区域具有较好的性能,而在低速区域无法收敛,因此高频注入法具有很高的实际应用价值。The motor position sensorless control method based on high-frequency injection is simple to implement, low in cost, has good control performance in the low-speed area, and can realize low-speed load starting of the motor. This method is to inject periodic positive and negative pulses into the d-axis, sample the q-axis high-frequency current response caused by the pulse, and send the high-frequency current response into the phase-locked loop to solve to obtain the estimated position of the motor. The observer method in the related art has good performance in the medium-high speed region, but cannot converge in the low-speed region, so the high-frequency injection method has high practical application value.
单电阻采样技术是通过利用直流负母线上的采样电阻对电流进行采样,一个控制周期内需要采样两次,分别在两个有效电压矢量(也即非零电压矢量)作用时间内进行采样,采样结束后根据电压矢量情况,判断采样电流所属相序。The single-resistance sampling technology uses the sampling resistor on the DC negative bus to sample the current. It needs to be sampled twice in one control cycle, sampling within the action time of two effective voltage vectors (that is, non-zero voltage vectors). After the end, according to the voltage vector situation, the phase sequence of the sampled current is judged.
在单电阻采样时,两次电流采样均需要一定的时间,一般选取第2个或者第5个开关管动作时刻的前后,即两个有效电压矢量作用时间内进行采样,如果合成电压矢量位于扇区切换边界附近,则存在至少一个有效电压矢量过小的情况,因此为了满足采样时间要求,需要对开关管动作时刻进行移相处理,从而确保两次电流采样的准确性。但是,这样单电阻采样的采样时刻会发生变化,尤其在不同扇区切换区域附近时,移相方式的不同将会导致采样时刻存在较大差异。由于电机低速运行时,反电动势和电阻压降较小,控制器输出电压主要为高频注入电压,且高频注入电压为正负周期性注入,对应的扇区相差180°,导致因移相引入较大的采样时刻误差,从而导致采样得到的q轴高频电流响应存在较大误差,以此求解得到的估计位置也会存在较大误差,从而影响系统的控制性能。When sampling a single resistor, both current samplings require a certain amount of time. Generally, sampling is done before and after the second or fifth switching tube action time, that is, within the action time of the two effective voltage vectors. If the resultant voltage vector is located in the fan Near the area switching boundary, there is a situation where at least one effective voltage vector is too small. Therefore, in order to meet the sampling time requirements, the switching tube action moment needs to be phase-shifted to ensure the accuracy of the two current samplings. However, the sampling time of single-resistance sampling will change, especially near different sector switching areas, and the different phase shifting methods will lead to large differences in sampling time. Since the back electromotive force and resistance voltage drop of the motor are small when the motor is running at low speed, the controller output voltage is mainly high-frequency injection voltage, and the high-frequency injection voltage is positive and negative periodic injection. The corresponding sectors are 180° different, resulting in phase shift. Introducing a large sampling time error will lead to a large error in the q-axis high-frequency current response obtained by sampling, and the estimated position obtained by solving the problem will also have a large error, thus affecting the control performance of the system.
公开内容 public content
本公开旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本公开的第一个目的在于提出一种电机转子位置观测方法,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。The present disclosure aims to solve one of the technical problems in the related art, at least to a certain extent. To this end, the first purpose of the present disclosure is to propose a motor rotor position observation method that can effectively improve the sampling current accuracy of single resistor sampling, thereby improving the accuracy of motor rotor position observation.
本公开的第二个目的在于提出一种计算机可读存储介质。A second object of the present disclosure is to provide a computer-readable storage medium.
本公开的第三个目的在于提出一种转子位置观测器。A third object of the present disclosure is to provide a rotor position observer.
本公开的第四个目的在于提出一种电机转子位置观测装置。The fourth object of the present disclosure is to provide a motor rotor position observation device.
为达到上述目的,本公开第一方面实施例提出一种电机转子位置观测方法,包括:在向电机d轴注入高频脉冲时,确定基准值,并确定单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值Act11、Act21、Act31、Act32、Act22、Act12;确定基准值与比较值Act21或Act22之间的差值;根据差值对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整,并根据调整后的比较值Act21New或者Act22New确定第一电流采样触发值和第二电流采样触发值;根据调整后的六个比较值Act11New、Act21New、Act31New、Act32New、Act22New、Act12New对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流;根据第一采样电流和第二采样电流估算电机的转子位置。In order to achieve the above purpose, the first embodiment of the present disclosure proposes a motor rotor position observation method, which includes: when injecting high-frequency pulses into the d-axis of the motor, determining a reference value, and determining the required voltage vector output under single-resistance sampling. Corresponding six comparison values Act11, Act21, Act31, Act32, Act22, Act12 of the three-way modulation; determine the difference between the reference value and the comparison value Act21 or Act22; compare the six comparison values Act11, Act21, Act31 based on the difference , Act32, Act22, Act12 are adjusted, and the first current sampling trigger value and the second current sampling trigger value are determined according to the adjusted comparison value Act21 New or Act22 New ; according to the adjusted six comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New , and Act12 New control the motor and conduct current sampling on the motor according to the first current sampling trigger value and the second current sampling trigger value to obtain the first sampling current and the second sampling current; according to the The first sampled current and the second sampled current estimate the rotor position of the motor.
根据本公开实施例的电机转子位置观测方法,通过根据基准值与比较值之间的差值对单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值进行调整,并根据调整后的比较值确定第一电流采样触发值和第二电流采样触发值,以及根据调整后的六个比较值对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the motor rotor position observation method according to the embodiment of the present disclosure, the six comparison values of the three-way modulation corresponding to the output required voltage vector under single resistor sampling are adjusted according to the difference between the reference value and the comparison value, and according to The adjusted comparison value determines the first current sampling trigger value and the second current sampling trigger value, and controls the motor according to the six adjusted comparison values, and controls the motor according to the first current sampling trigger value and the second current sampling trigger value. The motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor based on the first sampling current and the second sampling current, which can effectively improve the sampling current accuracy of single-resistance sampling, thereby improving the observation of the motor rotor position. accuracy.
根据本公开的一个实施例,确定基准值,包括:获取三角波载波顶点计数值;根据三角波载波顶点计数值确定基准值。According to an embodiment of the present disclosure, determining the reference value includes: obtaining a triangular wave carrier vertex count value; and determining the reference value according to the triangular wave carrier vertex count value.
根据本公开的一个实施例,基准值大于等于比较值Act22与比较值Act11之差。According to an embodiment of the present disclosure, the reference value is greater than or equal to the difference between the comparison value Act22 and the comparison value Act11.
根据本公开的一个实施例,基准值为三角波载波顶点计数值的0.5倍。According to one embodiment of the present disclosure, the reference value is 0.5 times the vertex count value of the triangular wave carrier.
根据本公开的一个实施例,根据以下公式对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整:According to an embodiment of the present disclosure, six comparison values Act11, Act21, Act31, Act32, Act22, Act12 are adjusted according to the following formula:
Act11New=Act11+DetaN;Act11 New = Act11+DetaN;
Act21New=Nref; Act21 New =Nref;
Act31New=Act31+DetaN;Act31 New = Act31+DetaN;
Act32New=Act32-DetaN;Act32 New = Act32-DetaN;
Act22New=Nref;Act22 New =Nref;
Act12New=Act12-DetaN;Act12 New = Act12-DetaN;
其中,DetaN为差值,Nref为基准值。Among them, DetaN is the difference value and Nref is the reference value.
根据本公开的一个实施例,在三角波载波的上升阶段进行单电阻采样时,根据以下公式确定第一电流采样触发值和第二电流采样触发值:According to an embodiment of the present disclosure, when single-resistance sampling is performed during the rising stage of the triangular wave carrier, the first current sampling trigger value and the second current sampling trigger value are determined according to the following formula:
Trig1New=Act21New-Tsample;Trig1 New = Act21 New -Tsample;
Trig2New=Act21New+Tdead+Tup;Trig2 New =Act21 New +Tdead+Tup;
其中,Trig1New为第一电流采样触发值,Trig2New为第二电流采样触发值,Tsample为硬件采样所需时间,Tdead为死区时间,Tup为电流上升至稳定的时间。Among them, Trig1 New is the first current sampling trigger value, Trig2 New is the second current sampling trigger value, Tsample is the time required for hardware sampling, Tdead is the dead time, and Tup is the time for the current to rise to stability.
根据本公开的一个实施例,在三角波载波的下降阶段进行单电阻采样时,根据以下公式确定第一电流采样触发值和第二电流采样触发值:According to an embodiment of the present disclosure, when single-resistance sampling is performed during the falling stage of the triangular wave carrier, the first current sampling trigger value and the second current sampling trigger value are determined according to the following formula:
Trig1New=Act22New+Tsample;Trig1 New = Act22 New +Tsample;
Trig2New=Act22New-Tdead-Tup;Trig2 New = Act22 New -Tdead-Tup;
其中,Trig1New为第一电流采样触发值,Trig2New为第二电流采样触发值,Tsample为硬件采样所需时间,Tdead为死区时间,Tup为电流上升至稳定的时间。Among them, Trig1 New is the first current sampling trigger value, Trig2 New is the second current sampling trigger value, Tsample is the time required for hardware sampling, Tdead is the dead time, and Tup is the time for the current to rise to stability.
为达到上述目的,本公开第二方面实施例提出一种计算机可读存储介质,其上存储有电机转子位置观测程序,该电机转子位置观测程序被处理器执行时实现前述的电机转子位置观测方法。In order to achieve the above object, a second embodiment of the present disclosure proposes a computer-readable storage medium on which a motor rotor position observation program is stored. When the motor rotor position observation program is executed by a processor, the aforementioned motor rotor position observation method is implemented. .
根据本公开实施例的计算机可读存储介质,基于前述的电机转子位置观测方法,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the computer-readable storage medium according to the embodiment of the present disclosure, based on the aforementioned motor rotor position observation method, the sampling current accuracy of single resistor sampling can be effectively improved, thereby improving the accuracy of motor rotor position observation.
为达到上述目的,本公开第三方面实施例提出一种转子位置观测器,包括存储器、处理器及存储在存储器上并可在处理器上运行的电机转子位置观测程序,处理器执行电机转子位置观测程序时,实现前述的电机转子位置观测方法。In order to achieve the above object, a third embodiment of the present disclosure proposes a rotor position observer, which includes a memory, a processor, and a motor rotor position observation program stored in the memory and executable on the processor. The processor executes the motor rotor position. When observing the program, implement the aforementioned motor rotor position observation method.
根据本公开实施例的转子位置观测器,基于前述的电机转子位置观测方法,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。 According to the rotor position observer according to the embodiment of the present disclosure, based on the aforementioned motor rotor position observation method, the sampling current accuracy of single resistor sampling can be effectively improved, thereby improving the accuracy of motor rotor position observation.
为达到上述目的,本公开第四方面实施例提出一种电机转子位置观测装置,包括:第一确定模块,用于确定基准值;第二确定模块,用于确定单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值Act11、Act21、Act31、Act32、Act22、Act12;调整模块,用于在向电机d轴注入高频脉冲时,确定基准值与比较值Act21或Act22之间的差值,并根据差值对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整;第三确定模块,用于根据调整后的比较值Act21New或者Act22New确定第一电流采样触发值和第二电流采样触发值;控制模块,用于根据调整后的六个比较值Act11New、Act21New、Act31New、Act32New、Act22New、Act12New对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置。In order to achieve the above purpose, the fourth embodiment of the present disclosure proposes a motor rotor position observation device, including: a first determination module for determining a reference value; a second determination module for determining the required output voltage under single-resistance sampling The six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 of the three-way modulation corresponding to the vector; the adjustment module is used to determine the difference between the reference value and the comparison value Act21 or Act22 when injecting high-frequency pulses into the d-axis of the motor. and adjust the six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 according to the difference; the third determination module is used to determine the first current according to the adjusted comparison value Act21 New or Act22 New The sampling trigger value and the second current sampling trigger value; the control module is used to control the motor according to the six adjusted comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New , and Act12 New , and control the motor according to the first The current sampling trigger value and the second current sampling trigger value perform current sampling on the motor, obtain the first sampling current and the second sampling current, and estimate the rotor position of the motor based on the first sampling current and the second sampling current.
根据本公开实施例的电机转子位置观测装置,通过根据基准值与比较值之间的差值对单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值进行调整,并根据调整后的比较值确定第一电流采样触发值和第二电流采样触发值,以及根据调整后的六个比较值对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the motor rotor position observation device according to the embodiment of the present disclosure, the six comparison values of the three-way modulation corresponding to the output required voltage vector under single resistor sampling are adjusted according to the difference between the reference value and the comparison value, and according to The adjusted comparison value determines the first current sampling trigger value and the second current sampling trigger value, and controls the motor according to the six adjusted comparison values, and controls the motor according to the first current sampling trigger value and the second current sampling trigger value. The motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor based on the first sampling current and the second sampling current, which can effectively improve the sampling current accuracy of single-resistance sampling, thereby improving the observation of the motor rotor position. accuracy.
本公开附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本公开的实践了解到。Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
附图说明Description of the drawings
图1为根据本公开一个实施例的电机控制系统图;Figure 1 is a diagram of a motor control system according to an embodiment of the present disclosure;
图2为单电阻高频注入控制系统图;Figure 2 is a single resistor high frequency injection control system diagram;
图3的(a)和(b)为根据本公开一个实施例的0°位置时注入正电压脉冲的电压矢量以及开关管动作示意图;Figure 3 (a) and (b) are schematic diagrams of the voltage vector of a positive voltage pulse injected at the 0° position and the operation of the switching tube according to an embodiment of the present disclosure;
图4的(a)和(b)为根据本公开一个实施例的0°位置时注入负电压脉冲的电压矢量以及开关管动作示意图;Figure 4 (a) and (b) are schematic diagrams of the voltage vector of a negative voltage pulse injected at the 0° position and the operation of the switch tube according to an embodiment of the present disclosure;
图5为根据本公开一个实施例的电机转子位置观测方法的流程示意图;Figure 5 is a schematic flowchart of a motor rotor position observation method according to an embodiment of the present disclosure;
图6的(a)和(b)为与图3的(a)和(b)以及图4的(a)和(b)相对应的调整后的开关管动作示意图;Figure 6 (a) and (b) are schematic diagrams of the adjusted switching tube operations corresponding to Figure 3 (a) and (b) and Figure 4 (a) and (b);
图7为根据本公开一个实施例的电机转子位置观测装置的结构示意图。 Figure 7 is a schematic structural diagram of a motor rotor position observation device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性地,旨在用于解释本公开,而不能理解为对本公开的限制。Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are illustrative and intended to explain the present disclosure and are not to be construed as limiting the present disclosure.
在电机无位置传感器矢量控制过程中,为获得电机转子位置,可在d轴注入周期性的正负电压脉冲,并对脉冲引起的q轴高频电流响应进行采样,以及将高频电流响应送入锁相环求解得到电机转子位置。基于成本考虑,通常采用单电阻采样技术对高频电流响应进行采样,单电阻采样技术是通过利用直流负母线上的采样电阻对电流进行采样,如图1所示,通过直流负母线上的采样电阻R对电流进行采样,在采样时,一个控制周期内需要采样两次,分别在两个有效电压矢量(也即非零电压矢量)的作用时间内进行采样,采样结束后根据电压矢量情况,判断采样电流所属相序,得到两相电流。In the motor position sensorless vector control process, in order to obtain the motor rotor position, periodic positive and negative voltage pulses can be injected into the d-axis, the q-axis high-frequency current response caused by the pulses is sampled, and the high-frequency current response is sent to Enter the phase-locked loop to solve and obtain the motor rotor position. Based on cost considerations, single-resistance sampling technology is usually used to sample the high-frequency current response. The single-resistance sampling technology samples the current by using the sampling resistor on the DC negative bus. As shown in Figure 1, through the sampling on the DC negative bus The resistor R samples the current. When sampling, it needs to be sampled twice in a control cycle, respectively within the action time of two effective voltage vectors (that is, non-zero voltage vectors). After the sampling is completed, according to the voltage vector situation, Determine the phase sequence of the sampling current and obtain the two-phase current.
在单电阻采样时,两次电流采样均需要一定的时间,一般选取第2个或者第5个开关管动作时刻的前后,即两个有效电压矢量作用时间内进行采样,如果合成电压矢量位于扇区切换边界附近,则存在至少一个有效电压矢量过小的情况,因此为了满足采样时间要求,需要对开关管动作时刻进行移相处理,从而确保两次电流采样的准确性。但是,这样单电阻采样的采样时刻会发生变化,尤其在不同扇区切换区域附近时,移相方式的不同将会导致采样时刻存在较大差异。由于电机低速运行时,反电动势和电阻压降较小,如图2所示,控制器输出电压主要为高频注入电压,且高频注入电压为正负周期性注入,对应的扇区相差180°,从而会因移相引入较大的采样时刻误差,导致采样得到的q轴高频电流响应存在较大误差,以此求解得到的估计位置也会存在较大误差,从而影响控制系统的控制性能。When sampling a single resistor, both current samplings require a certain amount of time. Generally, sampling is done before and after the second or fifth switching tube action time, that is, within the action time of the two effective voltage vectors. If the resultant voltage vector is located in the fan Near the area switching boundary, there is a situation where at least one effective voltage vector is too small. Therefore, in order to meet the sampling time requirements, the switching tube action moment needs to be phase-shifted to ensure the accuracy of the two current samplings. However, the sampling time of single-resistance sampling will change, especially near different sector switching areas, and the different phase shifting methods will lead to large differences in sampling time. Since the back electromotive force and resistor voltage drop are small when the motor is running at low speed, as shown in Figure 2, the controller output voltage is mainly high-frequency injection voltage, and the high-frequency injection voltage is positive and negative periodic injection, and the corresponding sectors differ by 180 °, which will introduce a large sampling time error due to phase shift, resulting in a large error in the sampled q-axis high-frequency current response, and a large error in the estimated position obtained by solving the problem, thus affecting the control of the control system. performance.
示例性地,以电机处于0°位置为例进行说明。在相关技术中,在进行转子位置估算时,先注入正电压脉冲,参考图3的(a)所示,此时输出的合成电压矢量Uinj基本与U4(100)重合,第一个有效电压矢量的作用时间t1大,第二个有效电压矢量的作用时间t2小,因此需要移相,基于移相后确定的电流采样时刻靠近三角波载波周期的中间,如图3的(b)中的Trig1和Trig2靠近三角波载波周期的中间;正电压脉冲结束后,注入负电压脉冲,参考图4的(a)所示,此时输出的合成电压矢量-Uinj与注入正电压脉冲时的合成电压矢量Uinj近似相差180°,且基本与U3(011)重合,第一个有效电压矢量的作用时间t1小,第二个有效电压矢量的作用时间t2大,同样需要移相,但基于移相后确定的电流采样时刻靠近三角波载波周期的端部,如图4的(b)中的Trig1和Trig2靠近三角波载波周期的尾部。因此注 入正电压脉冲时的电流采样时刻与注入负电压脉冲时的电流采样时刻不同,导致采样得到的高频电流响应存在较大误差,进而导致估计位置存在较大误差。For example, the motor is at the 0° position for illustration. In related technologies, when estimating the rotor position, a positive voltage pulse is first injected, as shown in (a) of Figure 3. At this time, the output synthetic voltage vector Uinj basically coincides with U4(100), and the first effective voltage vector The action time t1 of is large, and the action time t2 of the second effective voltage vector is small, so the phase shift is required. The current sampling time determined after the phase shift is close to the middle of the triangular wave carrier cycle, as shown in Trig1 and Trig1 in (b) of Figure 3 Trig2 is close to the middle of the triangular wave carrier period; after the positive voltage pulse ends, a negative voltage pulse is injected, as shown in (a) of Figure 4. The resultant voltage vector -Uinj output at this time is similar to the resultant voltage vector Uinj when the positive voltage pulse is injected. The difference is 180°, and basically coincides with U3(011). The action time t1 of the first effective voltage vector is small, and the action time t2 of the second effective voltage vector is large. The phase shift is also required, but based on the current determined after the phase shift. The sampling time is close to the end of the triangular wave carrier cycle. Trig1 and Trig2 in (b) of Figure 4 are close to the end of the triangular wave carrier cycle. Therefore note The current sampling time when a positive voltage pulse is injected is different from the current sampling time when a negative voltage pulse is injected, resulting in a large error in the sampled high-frequency current response, which in turn leads to a large error in the estimated position.
基于此,在本公开中可先根据三角波载波周期计数值选取基准值,由于电流采样时刻是基于第2个或者第5个开关管动作时刻计算得到,因此通过将第2个或者第5个开关管动作时刻与基准值对齐,可以保证在移相后,正负电压脉冲注入时的电流采样时刻相同,从而减少因电流采样时刻不同引入的电流采样误差,进而提高电机转子位置的估计精度。Based on this, in this disclosure, the reference value can first be selected based on the triangular wave carrier cycle count value. Since the current sampling time is calculated based on the action time of the second or fifth switch tube, the second or fifth switch is Aligning the tube action moment with the reference value can ensure that the current sampling moments when positive and negative voltage pulses are injected are the same after phase shifting, thereby reducing the current sampling error caused by different current sampling moments, thereby improving the estimation accuracy of the motor rotor position.
图5为根据本公开一个实施例的电机转子位置观测方法的流程示意图。参考图5所示,该电机转子位置观测方法可包括以下步骤:Figure 5 is a schematic flowchart of a motor rotor position observation method according to an embodiment of the present disclosure. Referring to Figure 5, the motor rotor position observation method may include the following steps:
步骤S101,在向电机d轴注入高频脉冲时,确定基准值,并确定单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值Act11、Act21、Act31、Act32、Act22、Act12。Step S101, when injecting high-frequency pulses into the d-axis of the motor, determine the reference value and determine the six comparison values Act11, Act21, Act31, Act32, Act22, Act11, Act21, Act31, Act32, Act22, Act12.
示例性地,在向电机d轴注入高频脉冲,即频率较高的正负电压脉冲时,可获取用于减少因电流采样时刻不同引入电流采样误差所需的基准值,并根据单电阻采样计算得到控制电机所需的各路PWM(Pulse Width Modulation,脉冲宽度调制)信号的比较值Act11、Act21、Act31、Act32、Act22、Act12,其中,Act11表示三相逆变桥中第1个开关管动作时刻对应的三角波载波计数值,Act21表示第2个开关管动作时刻对应的三角波载波计数值,Act31表示第3个开关管动作时刻对应的三角波载波计数值,Act32表示第4个开关管动作时刻对应的三角波载波计数值,Act22表示第5个开关管动作时刻对应的三角波载波计数值,Act12表示第6个开关管动作时刻对应的三角波载波计数值。在本公开中,三角波载波计数方式为先增大后减小方式,相应的Act11<Act21<Act31,Act32>Act22>Act12。For example, when injecting high-frequency pulses, that is, positive and negative voltage pulses with higher frequency, into the d-axis of the motor, the reference value required to reduce the current sampling error caused by different current sampling moments can be obtained, and the reference value can be obtained according to the single-resistance sampling Calculate the comparison values Act11, Act21, Act31, Act32, Act22, and Act12 of each PWM (Pulse Width Modulation) signal required to control the motor, where Act11 represents the first switching tube in the three-phase inverter bridge. The triangular wave carrier count value corresponding to the action time, Act21 represents the triangular wave carrier count value corresponding to the second switch tube action time, Act31 represents the triangular wave carrier count value corresponding to the third switch tube action time, Act32 represents the fourth switch tube action time The corresponding triangular wave carrier count value, Act22 represents the triangular wave carrier count value corresponding to the fifth switching tube action time, Act12 represents the triangular wave carrier count value corresponding to the sixth switch tube action time. In this disclosure, the triangular wave carrier counting method is first increasing and then decreasing, corresponding to Act11<Act21<Act31, Act32>Act22>Act12.
举例来说,如图3的(b)和图4的(b)所示,PWM1、PWM2和PWM3分别为图1所示上桥臂开关管VT1、VT3和VT5的PWM控制信号(下桥臂开关管VT4、VT6和VT2的PWM控制信号与上桥臂开关管VT1、VT3和VT5的PWM控制信号对应互差180°)。在注入正负电压脉冲时,当电压矢量处于扇区I时,PWM1对应的比较值为Act11和Act12,PWM2对应的比较值为Act21和Act22,PWM3对应的比较值为Act31和Act32,即PWM1的占空比为最大值,PWM2的占空比为中间值,PWW3的占空比为最小值;当电压矢量处于扇区II时,PWM1对应的比较值为Act21和Act22,PWM2对应的比较值为Act11和Act12,PWM3对应的比较值为Act31和Act32,即PWM1的占空比为中间值,PWM2的占空比为最大值,PWW3的占空比为最小值;当电压矢量处于扇区III时,PWM1对应的比较值为Act31和Act32,PWM2对应的比较值为Act11和Act12,PWM3对应的比较值为Act21和Act22,即PWM1的占空比为最小值,PWM2的占空比为最大值,PWW3的占空比为中间 值;当电压矢量处于扇区IV时,PWM1对应的比较值为Act31和Act32,PWM2对应的比较值为Act21和Act22,PWM3对应的比较值为Act11和Act12,即PWM1的占空比为最小值,PWM2的占空比为中间值,PWW3的占空比为最大值;当电压矢量处于扇区V时,PWM1对应的比较值为Act21和Act22,PWM2对应的比较值为Act31和Act32,PWM3对应的比较值为Act11和Act12,即PWM1的占空比为中间值,PWM2的占空比为最小值,PWW3的占空比为最大值;当电压矢量处于扇区VI时,PWM1对应的比较值为Act11和Act12,PWM2对应的比较值为Act31和Act32,PWM3对应的比较值为Act21和Act22,即PWM1的占空比为最大值,PWM2的占空比为最小值,PWW3的占空比为中间值。For example, as shown in Figure 3 (b) and Figure 4 (b), PWM1, PWM2 and PWM3 are the PWM control signals of the upper arm switch tubes VT1, VT3 and VT5 shown in Figure 1 respectively (lower arm switch tubes VT1, VT3 and VT5). The PWM control signals of switching tubes VT4, VT6 and VT2 correspond to the PWM control signals of the upper arm switching tubes VT1, VT3 and VT5, which are 180° different from each other). When positive and negative voltage pulses are injected, when the voltage vector is in sector I, the comparison values corresponding to PWM1 are Act11 and Act12, the comparison values corresponding to PWM2 are Act21 and Act22, and the comparison values corresponding to PWM3 are Act31 and Act32, that is, the comparison values of PWM1 The duty cycle is the maximum value, the duty cycle of PWM2 is the middle value, and the duty cycle of PWW3 is the minimum value; when the voltage vector is in sector II, the comparison values corresponding to PWM1 are Act21 and Act22, and the comparison values corresponding to PWM2 are Act11 and Act12, the corresponding comparison values of PWM3 are Act31 and Act32, that is, the duty cycle of PWM1 is the middle value, the duty cycle of PWM2 is the maximum value, and the duty cycle of PWW3 is the minimum value; when the voltage vector is in sector III , the comparison values corresponding to PWM1 are Act31 and Act32, the comparison values corresponding to PWM2 are Act11 and Act12, and the comparison values corresponding to PWM3 are Act21 and Act22, that is, the duty cycle of PWM1 is the minimum value, and the duty cycle of PWM2 is the maximum value. The duty cycle of PWW3 is middle value; when the voltage vector is in sector IV, the comparison values corresponding to PWM1 are Act31 and Act32, the comparison values corresponding to PWM2 are Act21 and Act22, and the comparison values corresponding to PWM3 are Act11 and Act12, that is, the duty cycle of PWM1 is the minimum value , the duty cycle of PWM2 is the middle value, and the duty cycle of PWW3 is the maximum value; when the voltage vector is in sector V, the comparison values corresponding to PWM1 are Act21 and Act22, the comparison values corresponding to PWM2 are Act31 and Act32, and the corresponding comparison values of PWM3 The comparison values are Act11 and Act12, that is, the duty cycle of PWM1 is the middle value, the duty cycle of PWM2 is the minimum value, and the duty cycle of PWW3 is the maximum value; when the voltage vector is in sector VI, the comparison value corresponding to PWM1 are Act11 and Act12, the comparison values corresponding to PWM2 are Act31 and Act32, and the comparison values corresponding to PWM3 are Act21 and Act22, that is, the duty cycle of PWM1 is the maximum value, the duty cycle of PWM2 is the minimum value, and the duty cycle of PWW3 is Median.
需要说明的是,在确定各路PWM信号的比较值时,还对确定的比较值进行移相处理,以保证在有效电压矢量作用时间内进行单电阻采样,保证电流采样的有效性和准确性。在进行移相处理时,根据电流采样阶段、t1/2和t2/2的大小调整相应的比较值,以使t1/2和t2/2中的较小值大于最小采样时间。举例来说,如图3的(b)所示,在三角波载波周期下降阶段进行电流采样时,t2/2较小,此时将PWM3的高电平左移,相应的比较值Act31减小,比较值Act32增大;在三角波载波周期上升阶段进行电流采样时,t2/2较小,此时将PWM3的高电平右移,相应的比较值Act31增大,比较值Act32减小。如图4的(b)所示,在三角波载波周期下降阶段进行电流采样时,t1/2较小,此时将PWM1的高电平右移,相应的比较值Act11增大,比较值Act12减小;在三角波载波周期上升阶段进行电流采样时,t1/2较小,此时将PWM1的高电平左移,相应的比较值Act11减小,比较值Act12增大。It should be noted that when determining the comparison value of each PWM signal, the determined comparison value is also phase-shifted to ensure single-resistance sampling within the effective voltage vector action time and ensure the effectiveness and accuracy of current sampling. . When performing phase shifting processing, the corresponding comparison value is adjusted according to the current sampling stage, the size of t1/2 and t2/2, so that the smaller value of t1/2 and t2/2 is greater than the minimum sampling time. For example, as shown in (b) of Figure 3, when current sampling is performed during the decreasing stage of the triangular wave carrier cycle, t2/2 is small. At this time, the high level of PWM3 is shifted to the left, and the corresponding comparison value Act31 decreases. The comparison value Act32 increases; when current sampling is performed during the rising stage of the triangular wave carrier cycle, t2/2 is small. At this time, the high level of PWM3 is shifted to the right, and the corresponding comparison value Act31 increases and the comparison value Act32 decreases. As shown in (b) of Figure 4, when current sampling is performed during the decreasing stage of the triangular wave carrier cycle, t1/2 is small. At this time, the high level of PWM1 is moved to the right, and the corresponding comparison value Act11 increases, and the comparison value Act12 decreases. Small; when current sampling is performed during the rising stage of the triangular wave carrier cycle, t1/2 is small. At this time, the high level of PWM1 is shifted to the left, and the corresponding comparison value Act11 decreases and the comparison value Act12 increases.
在获取基准值时,由于电流采样时刻是基于第2个或者第5个开关管动作时刻计算得到,因此保证第2个或者第5个开关管动作时刻一致即可保证电流采样时刻一致,如图3的(b)和图4的(b)所示,第5个开关管动作时刻为比较值Act22对应的时刻,Trig1和Trig2对应的时刻即电流采样时刻是根据比较值Act22计算得到,因此保证图3的(a)中的比较值Act22对应的时刻和图4的(b)中比较值Act22对应的时刻一致即可保证图3的(a)中的电流采样时刻和图4的(b)中的电流采样时刻一致。考虑到注入正电压脉冲时的三角波载波周期计数值与注入负电压脉冲时的三角波载波周期计数值是相同的,因此可基于三角波载波周期计数值选取基准值,并将第2个或者第5个开关管动作时刻与该基准值对齐即可保证在移相后正负电压脉冲注入时的电流采样时刻相同,如图3的(b)中的比较值Act22对应的时刻和图4的(b)中比较值Act22对应的时刻均与基准值对齐即可保证图3的(b)中的电流采样时刻和图4的(b)中的电流采样时刻一致,从而减少因移相导致电流采样时刻不同所引入的电流采样误差。 When obtaining the reference value, since the current sampling time is calculated based on the action time of the second or fifth switch tube, ensuring that the action time of the second or fifth switch tube is consistent can ensure that the current sampling time is consistent, as shown in the figure As shown in (b) of Figure 3 and (b) of Figure 4, the action time of the fifth switching tube is the time corresponding to the comparison value Act22. The time corresponding to Trig1 and Trig2, that is, the current sampling time, is calculated based on the comparison value Act22, so it is guaranteed The time corresponding to the comparison value Act22 in (a) of Figure 3 is consistent with the time corresponding to the comparison value Act22 in (b) of Figure 4 to ensure that the current sampling time in (a) of Figure 3 is the same as that of (b) of Figure 4 The current sampling moments in are consistent. Considering that the triangular wave carrier cycle count value when a positive voltage pulse is injected is the same as the triangular wave carrier cycle count value when a negative voltage pulse is injected, the base value can be selected based on the triangular wave carrier cycle count value, and the second or fifth Aligning the switching tube action moment with this reference value ensures that the current sampling moment when the positive and negative voltage pulses are injected after the phase shift is the same. The time corresponding to the comparison value Act22 in Figure 3 (b) is the same as that in Figure 4 (b) The time corresponding to the comparison value Act22 is aligned with the reference value to ensure that the current sampling time in (b) of Figure 3 is consistent with the current sampling time in (b) of Figure 4, thereby reducing the difference in current sampling time due to phase shift. The current sampling error introduced.
在本公开的一些实施例中,确定基准值可包括:获取三角波载波顶点计数值;根据三角波载波顶点计数值确定基准值。In some embodiments of the present disclosure, determining the reference value may include: obtaining a triangular wave carrier vertex count value; and determining the reference value according to the triangular wave carrier vertex count value.
示例性地,在向电机d轴注入高频脉冲时,可先注入正电压脉冲,此时先确定正电压脉冲对应的三角波载波顶点计数值N1/2Period,并根据三角波载波顶点计数值N1/2Period获取基准值Nref。在正电压脉冲结束后,注入负电压脉冲,由于负电压脉冲为与正电压脉冲方向相反的电压脉冲,因此可直接将注入正电压脉冲时确定的基准值Nref作为注入负电压脉冲时确定的基准值Nref,当然也可以直接计算得到。For example, when injecting high-frequency pulses into the d-axis of the motor, a positive voltage pulse can be injected first. At this time, the triangular wave carrier vertex count value N 1/2Period corresponding to the positive voltage pulse is first determined, and based on the triangular wave carrier vertex count value N 1 /2Period gets the reference value Nref. After the positive voltage pulse ends, a negative voltage pulse is injected. Since the negative voltage pulse is a voltage pulse in the opposite direction to the positive voltage pulse, the reference value Nref determined when the positive voltage pulse is injected can be directly used as the reference determined when the negative voltage pulse is injected. The value Nref can of course be calculated directly.
需要说明的是,在确定基准值Nref时,具体可根据三角波载波顶点计数值N1/2Period、注入的正负电压脉冲的幅值进行确定。例如,由于基于高频注入法估计电机转子位置时,所选取的正负电压脉冲的幅值一般不超过直流母线电压Udc的50%,因此基准值Nref可为三角波载波顶点计数值的0.5倍,即基准值Nref=(1/2)*N1/2Period。需要说明的是,基准值Nref大于等于比较值Act22与比较值Act11之差。It should be noted that when determining the reference value Nref, it can be specifically determined based on the triangular wave carrier vertex count value N 1/2Period and the amplitude of the injected positive and negative voltage pulses. For example, when estimating the motor rotor position based on the high-frequency injection method, the amplitude of the selected positive and negative voltage pulses generally does not exceed 50% of the DC bus voltage Udc, so the reference value Nref can be 0.5 times the triangular wave carrier vertex count value, That is, the reference value Nref=(1/2)*N 1/2Period . It should be noted that the reference value Nref is greater than or equal to the difference between the comparison value Act22 and the comparison value Act11.
步骤S102,确定基准值与比较值Act21或Act22之间的差值。Step S102, determine the difference between the reference value and the comparison value Act21 or Act22.
示例性地,在三角波载波上升阶段进行电流采样时,对应的比较值为Act21,基准值与比较值Act21之间的差值DetaN=Nref-Act21;在三角波载波下降阶段进行电流采样时,对应的比较值为Act22,基准值Nref与比较值Act22之间的差值DetaN=Nref-Act22。可以理解的是,当三角波载波计数方式为先增大后减小、且移相时未对比较值Act21和Act22进行移相处理时,所计算的两个差值DetaN是相等的,在后续使用时可不其进行区分,而在其它情况下,所计算的两个差值DetaN可能不相等,在后续使用时需进行区别。For example, when the current is sampled during the rising stage of the triangular wave carrier, the corresponding comparison value is Act21, and the difference between the reference value and the comparison value Act21 is DetaN = Nref-Act21; when the current is sampled during the falling stage of the triangular wave carrier, the corresponding The comparison value is Act22, and the difference between the reference value Nref and the comparison value Act22 is DetaN=Nref-Act22. It can be understood that when the triangular wave carrier counting method is to increase first and then decrease, and the comparison values Act21 and Act22 are not phase-shifted during the phase shift, the two calculated differences DetaN are equal and will be used later. However, in other cases, the two calculated differences DetaN may not be equal and need to be distinguished in subsequent use.
步骤S103,根据差值对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整,并根据调整后的比较值Act21New或者Act22New确定第一电流采样触发值和第二电流采样触发值。Step S103, adjust the six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 according to the differences, and determine the first current sampling trigger value and the second current sampling trigger according to the adjusted comparison value Act21 New or Act22 New . value.
示例性地,在获得差值DetaN后,可基于差值DetaN对六个比较值进行调整,其调整原则是,若t2为较小值,则利用零电压矢量U0(000)补偿零电压矢量U7(111),即增加PWM1、PWM2和PWM3的占空比,也即增加PWM1、PWM2和PWM3的高电平时间;若t1为较小值,则利用零电压矢量U7(111)补偿零电压矢量U0(000),即减小PWM1、PWM2和PWM3的占空比,也即减小PWM1、PWM2和PWM3的高电平时间。For example, after obtaining the difference value DetaN, the six comparison values can be adjusted based on the difference value DetaN. The adjustment principle is that if t2 is a smaller value, use the zero voltage vector U0 (000) to compensate the zero voltage vector U7 (111), that is, increase the duty cycle of PWM1, PWM2 and PWM3, that is, increase the high level time of PWM1, PWM2 and PWM3; if t1 is a smaller value, use the zero voltage vector U7 (111) to compensate the zero voltage vector U0(000), that is, reduce the duty cycle of PWM1, PWM2 and PWM3, that is, reduce the high level time of PWM1, PWM2 and PWM3.
举例来说,如图3的(b)所示,t2为较小值,则利用零电压矢量U0(000)补偿零电压矢量U7(111),调整后的PWM1、PWM2和PWM3如图6的(a)所示,相对于调整前的 PWM信号,调整后的PWM信号的高电平增加了(即外扩);如图4的(b)所示,t1为较小值,则利用零电压矢量U7(111)补偿零电压矢量U0(000),调整后的PWM1、PWM2和PWM3如图6的(b)所示,相对于调整前的PWM信号,调整后的PWM信号的高电平减少了(即内缩)。For example, as shown in (b) of Figure 3, if t2 is a small value, the zero voltage vector U0 (000) is used to compensate the zero voltage vector U7 (111). The adjusted PWM1, PWM2 and PWM3 are as shown in Figure 6 As shown in (a), compared to before adjustment PWM signal, the high level of the adjusted PWM signal is increased (i.e., expanded); as shown in Figure 4 (b), if t1 is a smaller value, the zero voltage vector U7 (111) is used to compensate the zero voltage vector U0 (000), the adjusted PWM1, PWM2 and PWM3 are shown in (b) of Figure 6. Compared with the PWM signal before adjustment, the high level of the adjusted PWM signal is reduced (ie, indented).
需要说明的是,设置基准值Nref大于等于比较值Act22与比较值Act11之差的目的是为了保证在t2为较小值时,零电压矢量U0(000)足够补充零电压矢量U7(111),避免因零电压矢量U0(000)持续时间过短不够补充零电压矢量U7(111),以及在t1为较小值时,零电压矢量U7(111)足够补充零电压矢量U0(000),避免因零电压矢量U7(111)持续时间过短不够补充零电压矢量U0(000),保证了对电机的正常控制。It should be noted that the purpose of setting the reference value Nref to be greater than or equal to the difference between the comparison value Act22 and the comparison value Act11 is to ensure that when t2 is a smaller value, the zero voltage vector U0 (000) is enough to supplement the zero voltage vector U7 (111). Avoid the fact that the duration of the zero voltage vector U0(000) is too short to supplement the zero voltage vector U7(111), and when t1 is a small value, the zero voltage vector U7(111) is sufficient to supplement the zero voltage vector U0(000). Avoid Because the duration of the zero-voltage vector U7(111) is too short, it is not enough to supplement the zero-voltage vector U0(000), ensuring normal control of the motor.
示例性地,在根据差值DetaN对六个比较值进行调整时,具体可通过下述公式(1)对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整:
For example, when adjusting the six comparison values according to the difference value DetaN, the six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 can be adjusted specifically through the following formula (1):
需要说明的是,由于差值DetaN具有正负之分,因此公式(1)适用于前述两种情况。例如,差值DetaN=Nref-Act22,若t2为较小值,则差值DetaN<0,此时基于公式(1)确定的调整后的六个比较值与图6的(a)所示相符合;若t1为较小值,则差值DetaN>0,此时基于公式(1)确定的调整后的六个比较值与图6的(b)所示相符合。It should be noted that since the difference DetaN can be positive or negative, formula (1) is applicable to the above two situations. For example, the difference value DetaN=Nref-Act22. If t2 is a smaller value, the difference value DetaN<0. At this time, the six adjusted comparison values determined based on formula (1) are the same as shown in (a) of Figure 6 consistent; if t1 is a smaller value, the difference value DetaN>0, at this time, the six adjusted comparison values determined based on formula (1) are consistent with what is shown in (b) of Figure 6.
在获得调整后的六个比较值后,基于调整后的比较值Act21New或者Act22New确定第一电流采样触发值和第二电流采样触发值。示例性地,在一个控制周期中,可在第2个或者第5个开关管动作时刻的前后进行电流采样,也即在比较值Act21New或者Act22New对应时刻的前后进行电流采样,因此在获得比较值Act21New和Act22New后,可根据这两个比较值中的一个获取第一电流采样触发值Trig1和第二电流采样触发值Trig2。例如,若选取三角波载波的下降阶段进行单电阻采样,则根据比较值Act22New获取第一电流采样触发值Trig1和第二电流采样触发值Trig2;若选取三角波载波的上升阶段进行单电阻采样,则根据比较值Act21New获取第一电流采样触发值Trig1和第二电流采样触发值Trig2。 After obtaining the six adjusted comparison values, the first current sampling trigger value and the second current sampling trigger value are determined based on the adjusted comparison value Act21 New or Act22 New . For example, in a control cycle, current sampling can be performed before and after the second or fifth switching tube action time, that is, before and after the time corresponding to the comparison value Act21 New or Act22 New , current sampling can be obtained. After comparing the values Act21 New and Act22 New , the first current sampling trigger value Trig1 and the second current sampling trigger value Trig2 can be obtained according to one of the two comparison values. For example, if the falling phase of the triangular wave carrier is selected for single-resistance sampling, the first current sampling trigger value Trig1 and the second current sampling trigger value Trig2 are obtained according to the comparison value Act22 New ; if the rising phase of the triangular wave carrier is selected for single-resistance sampling, then The first current sampling trigger value Trig1 and the second current sampling trigger value Trig2 are obtained according to the comparison value Act21 New .
需要说明的是,在根据比较值Act21New或者Act22New获取第一电流采样触发值Trig1和第二电流采样触发值Trig2时,可根据硬件采样所需时间(如ADC转换器的采样时间)、死区时间(即,PWM信号输出时,为避免同一桥臂的上下开关管同时导通所预留的时间,如在上桥臂开关管关断且延时死区时间后,下桥臂开关管才能导通,或者在下桥臂开关管关断且延时死区时间后,上桥臂开关管才能导通)和开关管通断后的电流稳定时间(如,开关管导通后,电流逐步上升直至处于稳定状态所对应的时间)进行确定,以保证足够的电流采样时间,且避开了死区时间及电流非稳定时间,保证了电流采样的有效性和准确性。It should be noted that when obtaining the first current sampling trigger value Trig1 and the second current sampling trigger value Trig2 based on the comparison value Act21 New or Act22 New , the time required for hardware sampling (such as the sampling time of the ADC converter), dead time Zone time (that is, when the PWM signal is output, the time reserved to prevent the upper and lower switching tubes of the same bridge arm from being turned on at the same time. For example, after the upper bridge arm switch tube is turned off and the dead zone time is delayed, the lower bridge arm switch tube can be turned on, or the upper arm switch can be turned on after the lower arm switch is turned off and the dead time is delayed) and the current stabilization time after the switch tube is turned on and off (for example, after the switch tube is turned on, the current gradually rises The time corresponding to the stable state) is determined to ensure sufficient current sampling time, avoid dead time and current non-stable time, and ensure the effectiveness and accuracy of current sampling.
根据本公开的一个实施例,在三角波载波的上升阶段进行单电阻采样时,根据以下公式(2)确定第一电流采样触发值和第二电流采样触发值:
According to an embodiment of the present disclosure, when single-resistance sampling is performed during the rising stage of the triangular wave carrier, the first current sampling trigger value and the second current sampling trigger value are determined according to the following formula (2):
其中,Trig1New为第一电流采样触发值,Trig2New为第二电流采样触发值,Tsample为硬件采样所需时间,Tdead为死区时间,Tup为电流上升至稳定的时间。Among them, Trig1 New is the first current sampling trigger value, Trig2 New is the second current sampling trigger value, Tsample is the time required for hardware sampling, Tdead is the dead time, and Tup is the time for the current to rise to stability.
根据本公开的一个实施例,在三角波载波的下降阶段进行单电阻采样时,根据以下公式(3)确定第一电流采样触发值和第二电流采样触发值:
According to an embodiment of the present disclosure, when single-resistance sampling is performed during the falling stage of the triangular wave carrier, the first current sampling trigger value and the second current sampling trigger value are determined according to the following formula (3):
其中,Trig1New为第一电流采样触发值,Trig2New为第二电流采样触发值,Tsample为硬件采样所需时间,Tdead为死区时间,Tup为电流上升至稳定的时间。Among them, Trig1 New is the first current sampling trigger value, Trig2 New is the second current sampling trigger value, Tsample is the time required for hardware sampling, Tdead is the dead time, and Tup is the time for the current to rise to stability.
也就是说,在第2个或第5个开关管动作时刻之前进行第一次电流采样,在其之后进行第二次电流采样,考虑到两次采样时刻尽可能接近,以减少采样时间误差,针对第一次电流采样,预留一硬件采样所需时间Tsample即可,针对第二次电流采样,预留一死区时间Tdead和电流上升至稳定的时间Tup即可。That is to say, the first current sampling is performed before the second or fifth switching tube action moment, and the second current sampling is performed after it. Considering that the two sampling moments are as close as possible to reduce the sampling time error, For the first current sampling, just reserve a time Tsample required for hardware sampling. For the second current sampling, reserve a dead time Tdead and the time Tup for the current to rise to stability.
步骤S104,根据调整后的六个比较值Act11New、Act21New、Act31New、Act32New、Act22New、Act12New对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流。Step S104, control the motor according to the six adjusted comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New , and Act12 New , and control the motor according to the first current sampling trigger value and the second current sampling trigger value. Perform current sampling to obtain the first sampling current and the second sampling current.
示例性地,在获得调整后的六个比较值后,还根据调整后的六个比较值对电机进行控制,并在控制的过程中,根据第一电流采样触发值Trig1和第二电流采样触发值Trig2进行电流采样,从而得到第一采样电流和第二采样电流。 For example, after obtaining the six adjusted comparison values, the motor is also controlled based on the six adjusted comparison values, and during the control process, the first current sampling trigger value Trig1 and the second current sampling trigger are The value Trig2 is used for current sampling, thereby obtaining the first sampling current and the second sampling current.
以在三角波载波的下降阶段进行单电阻采样为例。如图6的(a)和图6的(b)所示,在获得调整后的六个比较值后,若利用定时器计数值产生三角波载波,则在定时器计数值等于比较值Act11New时,控制图1中的上桥臂开关管VT1导通,下桥臂开关管VT6和VT2保持导通,其余开关管均关断;在定时器计数值等于比较值Act21New时,控制图1中的上桥臂开关管VT3导通,上桥臂开关管VT1和下桥臂开关管VT2保持导通,其余开关管均关断;在定时器计数值等于比较值Act31New时,控制图1中的上桥臂开关管VT5导通,上桥臂开关管VT1和VT3保持开通,其余开关管均关断;在定时器计数值等于比较值Act32New时,控制图1中的下桥臂开关管VT2导通,上桥臂开关管VT1和VT3保持导通,其余开关管均关断;在定时器计数值等于第一电流采样触发值Trig1时,通过图1中的采样电阻R进行电流采样得到第一采样电流;在定时器计数值等于比较值Act22New时,控制图1中的下桥臂开关管VT6导通,上桥臂开关管VT1和下桥臂开关管VT2保持导通,其余开关管均关断;在定时器计数值等于第二电流采样触发值Trig2时,通过图1中的采样电阻R进行电流采样得到第二采样电流;在定时器计数值等于比较值Act12New时,控制图1中的下桥臂开关管VT4导通,下桥臂开关管VT2和VT6保持导通,其余开关管均关断。Take single-resistance sampling during the falling phase of the triangular wave carrier as an example. As shown in Figure 6 (a) and Figure 6 (b), after obtaining the six adjusted comparison values, if the timer count value is used to generate a triangular wave carrier, then when the timer count value is equal to the comparison value Act11 New , control the upper arm switch VT1 in Figure 1 to be turned on, the lower arm switches VT6 and VT2 to remain on, and the other switch tubes are turned off; when the timer count value is equal to the comparison value Act21 New , control the The upper arm switch VT3 is turned on, the upper arm switch VT1 and the lower arm switch VT2 remain on, and the other switch tubes are turned off; when the timer count value is equal to the comparison value Act31 New , the control in Figure 1 The upper arm switch tube VT5 is turned on, the upper arm switch tubes VT1 and VT3 remain on, and the other switch tubes are turned off; when the timer count value is equal to the comparison value Act32 New , the lower arm switch tube in Figure 1 is controlled. VT2 is turned on, the upper arm switching tubes VT1 and VT3 remain on, and the other switching tubes are turned off; when the timer count value is equal to the first current sampling trigger value Trig1, current sampling is performed through the sampling resistor R in Figure 1. The first sampling current; when the timer count value is equal to the comparison value Act22 New , the lower arm switch VT6 in Figure 1 is controlled to be turned on, the upper arm switch VT1 and the lower arm switch VT2 remain turned on, and the other switches The tubes are all turned off; when the timer count value is equal to the second current sampling trigger value Trig2, the current is sampled through the sampling resistor R in Figure 1 to obtain the second sampling current; when the timer count value is equal to the comparison value Act12 New , the control In Figure 1, the lower arm switch tube VT4 is turned on, the lower arm switch tubes VT2 and VT6 remain on, and the other switch tubes are turned off.
由此,基于比较值和采样触发值,可实现对电机的控制,并在控制过程进行电流采样。需要说明的是,在三角波载波的上升阶段进行单电阻采样的过程与在三角波载波的下降阶段进行单电阻采样的过程相同,具体这里不再详述。Therefore, based on the comparison value and the sampling trigger value, the motor can be controlled, and current sampling can be performed during the control process. It should be noted that the process of performing single-resistance sampling during the rising stage of the triangular wave carrier is the same as the process of performing single-resistance sampling during the falling stage of the triangular wave carrier, and will not be described in detail here.
步骤S105,根据第一采样电流和第二采样电流估算电机的转子位置。Step S105: Estimate the rotor position of the motor based on the first sampling current and the second sampling current.
示例性地,可根据第一采样电流和第二采样电流,进行位置观测,得到电机的转子位置,具体可采用现有技术实现,这里不做展开说明。For example, position observation can be performed based on the first sampling current and the second sampling current to obtain the rotor position of the motor. This can be specifically implemented using existing technology, which will not be described here.
根据本公开实施例的电机转子位置观测方法,通过根据基准值与比较值之间的差值对单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值进行调整,并根据调整后的比较值确定第一电流采样触发值和第二电流采样触发值,以及根据调整后的六个比较值对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度,算法简单,易于工程应用,从而实现了在低成本优势下保持优异的控制性能。According to the motor rotor position observation method according to the embodiment of the present disclosure, the six comparison values of the three-way modulation corresponding to the output required voltage vector under single resistor sampling are adjusted according to the difference between the reference value and the comparison value, and according to The adjusted comparison value determines the first current sampling trigger value and the second current sampling trigger value, and controls the motor according to the six adjusted comparison values, and controls the motor according to the first current sampling trigger value and the second current sampling trigger value. The motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor based on the first sampling current and the second sampling current, which can effectively improve the sampling current accuracy of single-resistance sampling, thereby improving the observation of the motor rotor position. The accuracy is high, the algorithm is simple, and it is easy to apply in engineering, thus maintaining excellent control performance at a low cost.
在本公开的实施例中,还提供一种计算机可读存储介质,其上存储有电机转子位置观测 程序,该电机转子位置观测程序被处理器执行时实现前述的电机转子位置观测方法。In an embodiment of the present disclosure, a computer-readable storage medium is also provided, on which the motor rotor position observations are stored. Program, when the motor rotor position observation program is executed by the processor, the aforementioned motor rotor position observation method is implemented.
根据本公开实施例的计算机可读存储介质,基于前述的电机转子位置观测方法,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the computer-readable storage medium according to the embodiment of the present disclosure, based on the aforementioned motor rotor position observation method, the sampling current accuracy of single resistor sampling can be effectively improved, thereby improving the accuracy of motor rotor position observation.
在本公开的实施例中,还提供一种转子位置观测器,包括存储器、处理器及存储在存储器上并可在处理器上运行的电机转子位置观测程序,处理器执行电机转子位置观测程序时,实现前述的电机转子位置观测方法。In an embodiment of the present disclosure, a rotor position observer is also provided, which includes a memory, a processor, and a motor rotor position observation program stored in the memory and executable on the processor. When the processor executes the motor rotor position observation program , realize the aforementioned motor rotor position observation method.
根据本公开实施例的转子位置观测器,基于前述的电机转子位置观测方法,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the rotor position observer according to the embodiment of the present disclosure, based on the aforementioned motor rotor position observation method, the sampling current accuracy of single resistor sampling can be effectively improved, thereby improving the accuracy of motor rotor position observation.
图7为根据本公开一个实施例的电机转子位置观测装置的示意图,参考图7所示,该电机转子位置观测装置可包括:第一确定模块10、第二确定模块20、调整模块30、第三确定模块40、控制模块50。Figure 7 is a schematic diagram of a motor rotor position observation device according to an embodiment of the present disclosure. Referring to Figure 7, the motor rotor position observation device may include: a first determination module 10, a second determination module 20, an adjustment module 30, a third Three determination module 40 and control module 50.
其中,第一确定模块10用于确定基准值;第二确定模块20用于确定单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值Act11、Act21、Act31、Act32、Act22、Act12;调整模块30用于在向电机d轴注入高频脉冲时,确定基准值与比较值Act21或Act22之间的差值,并根据差值对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整;第三确定模块40用于根据调整后的比较值Act21New或者Act22New确定第一电流采样触发值和第二电流采样触发值;控制模块50用于根据调整后的六个比较值Act11New、Act21New、Act31New、Act32New、Act22New、Act12New对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置。Among them, the first determination module 10 is used to determine the reference value; the second determination module 20 is used to determine the six comparison values Act11, Act21, Act31, Act32, Act22 of the three-way modulation corresponding to the required voltage vector output under single resistor sampling. , Act12; the adjustment module 30 is used to determine the difference between the reference value and the comparison value Act21 or Act22 when injecting high-frequency pulses into the d-axis of the motor, and compare the six comparison values Act11, Act21, Act31, and Act32 based on the difference. , Act22 and Act12 are adjusted; the third determination module 40 is used to determine the first current sampling trigger value and the second current sampling trigger value according to the adjusted comparison value Act21 New or Act22 New ; the control module 50 is used to determine the first current sampling trigger value and the second current sampling trigger value according to the adjusted six comparison values Act21 New or Act22 New. The comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New , and Act12 New control the motor, and conduct current sampling on the motor according to the first current sampling trigger value and the second current sampling trigger value to obtain the first sample current and the second sampled current, and estimating the rotor position of the motor based on the first sampled current and the second sampled current.
根据本公开的一个实施例,第一确定模块10具体用于:获取三角波载波顶点计数值;根据三角波载波顶点计数值确定基准值。According to an embodiment of the present disclosure, the first determination module 10 is specifically configured to: obtain a triangular wave carrier vertex count value; and determine a reference value according to the triangular wave carrier vertex count value.
根据本公开的一个实施例,基准值大于等于比较值Act22与比较值Act11之差。According to an embodiment of the present disclosure, the reference value is greater than or equal to the difference between the comparison value Act22 and the comparison value Act11.
根据本公开的一个实施例,基准值为三角波载波顶点计数值的0.5倍。According to one embodiment of the present disclosure, the reference value is 0.5 times the vertex count value of the triangular wave carrier.
根据本公开的一个实施例,调整模块30具体用于根据以下公式对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整:According to an embodiment of the present disclosure, the adjustment module 30 is specifically configured to adjust the six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 according to the following formula:
Act11New=Act11+DetaN;Act11 New = Act11+DetaN;
Act21New=Nref;Act21 New =Nref;
Act31New=Act31+DetaN; Act31 New = Act31+DetaN;
Act32New=Act32-DetaN;Act32 New = Act32-DetaN;
Act22New=Nref;Act22 New =Nref;
Act12New=Act12-DetaN;Act12 New = Act12-DetaN;
其中,DetaN为差值,Nref为基准值。Among them, DetaN is the difference value and Nref is the reference value.
根据本公开的一个实施例,第三确定模块40具体用于在三角波载波的上升阶段进行单电阻采样时,根据以下公式确定第一电流采样触发值和第二电流采样触发值:According to an embodiment of the present disclosure, the third determination module 40 is specifically configured to determine the first current sampling trigger value and the second current sampling trigger value according to the following formula when performing single-resistance sampling during the rising stage of the triangular wave carrier:
Trig1New=Act21New-Tsample;Trig1 New = Act21 New -Tsample;
Trig2New=Act21New+Tdead+Tup;Trig2 New =Act21 New +Tdead+Tup;
其中,Trig1New为第一电流采样触发值,Trig2New为第二电流采样触发值,Tsample为硬件采样所需时间,Tdead为死区时间,Tup为电流上升至稳定的时间。Among them, Trig1 New is the first current sampling trigger value, Trig2 New is the second current sampling trigger value, Tsample is the time required for hardware sampling, Tdead is the dead time, and Tup is the time for the current to rise to stability.
根据本公开的一个实施例,第三确定模块40具体用于在三角波载波的下降阶段进行单电阻采样时,根据以下公式确定第一电流采样触发值和第二电流采样触发值:According to an embodiment of the present disclosure, the third determination module 40 is specifically configured to determine the first current sampling trigger value and the second current sampling trigger value according to the following formula when performing single-resistance sampling during the falling stage of the triangular wave carrier:
Trig1New=Act22New+Tsample;Trig1 New = Act22 New +Tsample;
Trig2New=Act22New-Tdead-Tup;Trig2 New = Act22 New -Tdead-Tup;
其中,Trig1New为第一电流采样触发值,Trig2New为第二电流采样触发值,Tsample为硬件采样所需时间,Tdead为死区时间,Tup为电流上升至稳定的时间。Among them, Trig1 New is the first current sampling trigger value, Trig2 New is the second current sampling trigger value, Tsample is the time required for hardware sampling, Tdead is the dead time, and Tup is the time for the current to rise to stability.
需要说明的是,关于本公开中电机转子位置观测装置的描述,请参考本公开中关于电机转子位置观测方法的描述,具体这里不再赘述。It should be noted that for the description of the motor rotor position observation device in this disclosure, please refer to the description of the motor rotor position observation method in this disclosure, which will not be described again here.
根据本公开实施例的电机转子位置观测装置,通过根据基准值与比较值之间的差值对单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值进行调整,并根据调整后的比较值确定第一电流采样触发值和第二电流采样触发值,以及根据调整后的六个比较值对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the motor rotor position observation device according to the embodiment of the present disclosure, the six comparison values of the three-way modulation corresponding to the output required voltage vector under single resistor sampling are adjusted according to the difference between the reference value and the comparison value, and according to The adjusted comparison value determines the first current sampling trigger value and the second current sampling trigger value, and controls the motor according to the six adjusted comparison values, and controls the motor according to the first current sampling trigger value and the second current sampling trigger value. The motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor based on the first sampling current and the second sampling current, which can effectively improve the sampling current accuracy of single-resistance sampling, thereby improving the observation of the motor rotor position. accuracy.
需要说明的是,在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他 可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, for example, may be considered to be a sequenced list of executable instructions for implementing logical functions, which may be embodied in any computer. in a readable medium for instruction execution in a system, device or device (such as a computer-based system, a system including a processor or other A system that fetches instructions and executes instructions from, or in conjunction with, an instruction execution system, device, or device. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wires (electronic device), portable computer disk cartridges (magnetic device), random access memory (RAM), Read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, and subsequently edited, interpreted, or otherwise suitable as necessary. process to obtain the program electronically and then store it in computer memory.
应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or combinations thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if it is implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following technologies known in the art: a logic gate circuit with a logic gate circuit for implementing a logic function on a data signal. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本公开的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "an example," "specific examples," or "some examples" or the like means that specific features are described in connection with the embodiment or example. , structures, materials, or features are included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本公开的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
在本公开中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本公开中的具体含义。 In this disclosure, unless otherwise explicitly stated and limited, the terms "installation", "connection", "connection", "fixing" and other terms should be understood in a broad sense. For example, it can be a fixed connection or a detachable connection. , or integrated into one; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two elements or an interactive relationship between two elements, unless otherwise specified restrictions. For those of ordinary skill in the art, the specific meanings of the above terms in this disclosure can be understood according to specific circumstances.
尽管上面已经示出和描述了本公开的实施例,可以理解的是,上述实施例是示例性地,不能理解为对本公开的限制,本领域的普通技术人员在本公开的范围内可以对上述实施例进行变化、修改、替换和变型。 Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above-mentioned embodiments are illustrative and should not be construed as limitations to the present disclosure. Those of ordinary skill in the art can make modifications to the above-mentioned embodiments within the scope of the present disclosure. The embodiments are subject to changes, modifications, substitutions and variations.

Claims (10)

  1. 电机转子位置观测方法,包括:Motor rotor position observation methods include:
    在向电机d轴注入高频脉冲时,确定基准值,并确定单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值Act11、Act21、Act31、Act32、Act22、Act12;When injecting high-frequency pulses into the d-axis of the motor, determine the reference value and determine the six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 of the three-way modulation corresponding to the required voltage vector output under single-resistance sampling;
    确定所述基准值与比较值Act21或Act22之间的差值;Determine the difference between the reference value and the comparison value Act21 or Act22;
    根据所述差值对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整,并根据调整后的比较值Act21New或者Act22New确定第一电流采样触发值和第二电流采样触发值;The six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 are adjusted according to the difference, and the first current sampling trigger value and the second current sampling trigger value are determined according to the adjusted comparison value Act21 New or Act22 New . ;
    根据调整后的六个比较值Act11New、Act21New、Act31New、Act32New、Act22New、Act12New对电机进行控制,并根据所述第一电流采样触发值和所述第二电流采样触发值对所述电机进行电流采样,获得第一采样电流和第二采样电流;The motor is controlled according to the six adjusted comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New , and Act12 New , and the motor is controlled according to the first current sampling trigger value and the second current sampling trigger value. The motor performs current sampling to obtain the first sampling current and the second sampling current;
    根据所述第一采样电流和所述第二采样电流估算所述电机的转子位置。The rotor position of the motor is estimated based on the first sampling current and the second sampling current.
  2. 根据权利要求1所述的方法,其中,确定基准值,包括:The method of claim 1, wherein determining the reference value includes:
    获取三角波载波顶点计数值;Get the triangular wave carrier vertex count value;
    根据所述三角波载波顶点计数值确定所述基准值。The reference value is determined based on the triangular wave carrier vertex count value.
  3. 根据权利要求2所述的方法,其中,所述基准值大于等于比较值Act22与比较值Act11之差。The method according to claim 2, wherein the reference value is greater than or equal to the difference between the comparison value Act22 and the comparison value Act11.
  4. 根据权利要求2所述的方法,其中,所述基准值为所述三角波载波顶点计数值的0.5倍。The method according to claim 2, wherein the reference value is 0.5 times the vertex count value of the triangular wave carrier.
  5. 根据权利要求1-4中任一项所述的方法,其中,根据以下公式对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整:
    Act11New=Act11+DetaN;
    Act21New=Nref;
    Act31New=Act31+DetaN;
    Act32New=Act32-DetaN;
    Act22New=Nref;
    Act12New=Act12-DetaN;
    The method according to any one of claims 1-4, wherein the six comparison values Act11, Act21, Act31, Act32, Act22, Act12 are adjusted according to the following formula:
    Act11 New = Act11+DetaN;
    Act21 New =Nref;
    Act31 New = Act31+DetaN;
    Act32 New = Act32-DetaN;
    Act22 New =Nref;
    Act12 New = Act12-DetaN;
    其中,DetaN为所述差值,Nref为所述基准值。Wherein, DetaN is the difference value, and Nref is the reference value.
  6. 根据权利要求1-5任一项所述的方法,其中,在三角波载波的上升阶段进行单电阻采样时,根据以下公式确定所述第一电流采样触发值和所述第二电流采样触发值:
    Trig1New=Act21New-Tsample;
    Trig2New=Act21New+Tdead+Tup;
    The method according to any one of claims 1 to 5, wherein when single resistance sampling is performed during the rising stage of the triangular wave carrier, the first current sampling trigger value and the second current sampling trigger value are determined according to the following formula:
    Trig1 New = Act21 New -Tsample;
    Trig2 New =Act21 New +Tdead+Tup;
    其中,Trig1New为所述第一电流采样触发值,Trig2New为所述第二电流采样触发值,Tsample为硬件采样所需时间,Tdead为死区时间,Tup为电流上升至稳定的时间。Wherein, Trig1 New is the first current sampling trigger value, Trig2 New is the second current sampling trigger value, Tsample is the time required for hardware sampling, Tdead is the dead time, and Tup is the time for the current to rise to stability.
  7. 根据权利要求1-5任一项所述的方法,其中,在三角波载波的下降阶段进行单电阻采样时,根据以下公式确定所述第一电流采样触发值和所述第二电流采样触发值:
    Trig1New=Act22New+Tsample;
    Trig2New=Act22New-Tdead-Tup;
    The method according to any one of claims 1 to 5, wherein when single-resistance sampling is performed during the falling stage of the triangular wave carrier, the first current sampling trigger value and the second current sampling trigger value are determined according to the following formula:
    Trig1 New = Act22 New +Tsample;
    Trig2 New = Act22 New -Tdead-Tup;
    其中,Trig1New为所述第一电流采样触发值,Trig2New为所述第二电流采样触发值,Tsample为硬件采样所需时间,Tdead为死区时间,Tup为电流上升至稳定的时间。Wherein, Trig1 New is the first current sampling trigger value, Trig2 New is the second current sampling trigger value, Tsample is the time required for hardware sampling, Tdead is the dead time, and Tup is the time for the current to rise to stability.
  8. 计算机可读存储介质,其上存储有电机转子位置观测程序,该电机转子位置观测程序被处理器执行时实现根据权利要求1-7中任一项所述的电机转子位置观测方法。A computer-readable storage medium on which a motor rotor position observation program is stored. When the motor rotor position observation program is executed by a processor, the motor rotor position observation method according to any one of claims 1-7 is implemented.
  9. 转子位置观测器,包括存储器、处理器及存储在存储器上并可在处理器上运行的电机转子位置观测程序,所述处理器执行所述电机转子位置观测程序时,实现根据权利要求1-7中任一项所述的电机转子位置观测方法。The rotor position observer includes a memory, a processor, and a motor rotor position observation program stored in the memory and executable on the processor. When the processor executes the motor rotor position observation program, the method according to claims 1-7 is implemented. The motor rotor position observation method described in any one of the above.
  10. 电机转子位置观测装置,包括:Motor rotor position observation device, including:
    第一确定模块,用于确定基准值;The first determination module is used to determine the reference value;
    第二确定模块,用于确定单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值Act11、Act21、Act31、Act32、Act22、Act12;The second determination module is used to determine the six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 of the three-way modulation corresponding to the required voltage vector output under single-resistance sampling;
    调整模块,用于在向电机d轴注入高频脉冲时,确定所述基准值与比较值Act21或Act22之间的差值,并根据所述差值对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整;The adjustment module is used to determine the difference between the reference value and the comparison value Act21 or Act22 when injecting high-frequency pulses into the d-axis of the motor, and adjust the six comparison values Act11, Act21, Act31, Act32, Act22, Act12 are adjusted;
    第三确定模块,用于根据调整后的比较值Act21New或者Act22New确定第一电流采样触发值和第二电流采样触发值;The third determination module is used to determine the first current sampling trigger value and the second current sampling trigger value according to the adjusted comparison value Act21 New or Act22 New ;
    控制模块,用于根据调整后的六个比较值Act11New、Act21New、Act31New、Act32New、 Act22New、Act12New对电机进行控制,并根据所述第一电流采样触发值和所述第二电流采样触发值对所述电机进行电流采样,获得第一采样电流和第二采样电流,以及根据所述第一采样电流和所述第二采样电流估算所述电机的转子位置。 The control module is used to adjust the six comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New and Act12 New control the motor, conduct current sampling on the motor according to the first current sampling trigger value and the second current sampling trigger value, obtain the first sampling current and the second sampling current, and according to The first sampled current and the second sampled current estimate the rotor position of the electric machine.
PCT/CN2023/078964 2022-03-09 2023-03-01 Motor rotor position observation method and apparatus, rotor position observer, and medium WO2023169275A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210226684.1 2022-03-09
CN202210226684.1A CN114598214A (en) 2022-03-09 2022-03-09 Motor rotor position observation method and device, rotor position observer and medium

Publications (1)

Publication Number Publication Date
WO2023169275A1 true WO2023169275A1 (en) 2023-09-14

Family

ID=81817955

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/078964 WO2023169275A1 (en) 2022-03-09 2023-03-01 Motor rotor position observation method and apparatus, rotor position observer, and medium

Country Status (2)

Country Link
CN (1) CN114598214A (en)
WO (1) WO2023169275A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598214A (en) * 2022-03-09 2022-06-07 威灵(芜湖)电机制造有限公司 Motor rotor position observation method and device, rotor position observer and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016032403A (en) * 2014-07-30 2016-03-07 株式会社東芝 Motor controller, air conditioner, washing machine and refrigerator
CN108712124A (en) * 2018-06-20 2018-10-26 安徽美芝精密制造有限公司 The method, apparatus and electric machine control system of single resistance detection DC bus current
US10320323B1 (en) * 2018-03-28 2019-06-11 Infineon Technologies Austria Ag Pulse width modulation (PWM) scheme for single shunt motor control
CN112260601A (en) * 2020-09-29 2021-01-22 广东工业大学 Low-speed running single-resistor sampling permanent magnet synchronous motor phase current reconstruction method
JP2021164320A (en) * 2020-03-31 2021-10-11 株式会社富士通ゼネラル Motor controller
CN113687126A (en) * 2021-07-22 2021-11-23 上海新时达电气股份有限公司 Single-resistor current sampling method and device
CN114598214A (en) * 2022-03-09 2022-06-07 威灵(芜湖)电机制造有限公司 Motor rotor position observation method and device, rotor position observer and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016032403A (en) * 2014-07-30 2016-03-07 株式会社東芝 Motor controller, air conditioner, washing machine and refrigerator
US10320323B1 (en) * 2018-03-28 2019-06-11 Infineon Technologies Austria Ag Pulse width modulation (PWM) scheme for single shunt motor control
CN108712124A (en) * 2018-06-20 2018-10-26 安徽美芝精密制造有限公司 The method, apparatus and electric machine control system of single resistance detection DC bus current
JP2021164320A (en) * 2020-03-31 2021-10-11 株式会社富士通ゼネラル Motor controller
CN112260601A (en) * 2020-09-29 2021-01-22 广东工业大学 Low-speed running single-resistor sampling permanent magnet synchronous motor phase current reconstruction method
CN113687126A (en) * 2021-07-22 2021-11-23 上海新时达电气股份有限公司 Single-resistor current sampling method and device
CN114598214A (en) * 2022-03-09 2022-06-07 威灵(芜湖)电机制造有限公司 Motor rotor position observation method and device, rotor position observer and medium

Also Published As

Publication number Publication date
CN114598214A (en) 2022-06-07

Similar Documents

Publication Publication Date Title
WO2020125770A1 (en) Vehicle and power battery heating apparatus and method therefor
US8810177B2 (en) System and method for implementing a remedial electrical short
US8519649B2 (en) Control device of a synchronous motor
CN105453412B (en) For the controller of brushless motor
WO2023169275A1 (en) Motor rotor position observation method and apparatus, rotor position observer, and medium
BRPI0311657B1 (en) drive system for a multiphase brushless motor
US9577555B2 (en) Methods of estimating a position of a rotor in a motor under transient and systems thereof
CN108063575B (en) I/F starting method and system for self-starting permanent magnet synchronous motor
WO2024040823A1 (en) Linear brake control method and apparatus applied to competition-level remote-controlled model vehicle
BR112016003749B1 (en) ELECTRIC MOTOR CONTROL APPARATUS
CN113131805A (en) Control device and method of brushless direct current motor
WO2023123676A1 (en) Single-resistor measurement method, electric motor control method, electric motor controller, and electric motor control system
WO2023169268A1 (en) Motor rotor position observation methods and devices, rotor position observer and medium
CN111585481A (en) Counter potential zero crossing point detection method and device of brushless direct current motor
CN113972868A (en) Permanent magnet synchronous motor starting control method and device and permanent magnet synchronous motor
US20240063739A1 (en) Control method for fan, fan, household appliance, and computer-readable storage medium
BR112018006618B1 (en) ELECTRIC POWER CONTROL METHOD AND ELECTRIC POWER CONTROL DEVICE
CN111525868B (en) Phase shifting method and system for three-phase inverter and readable storage medium
WO2020059814A1 (en) Motor control device, motor system and inverter control method
CN109245654B (en) Starting control method and device of direct current fan, outdoor unit and air conditioner
KR20170080566A (en) Air conditioner and startup control method and system for outdoor fan of the air conditioner
CN114826036B (en) Brushless direct current motor control method capable of reducing commutation torque pulsation
CN110417310B (en) Unified control method for two running states of electric and power generation of brushless direct current motor
CN109150050A (en) Stator resistance identification method, electric machine controller and computer readable storage medium
WO2024000488A1 (en) Current source inverter and control method therefor, compressor and household appliance

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23765853

Country of ref document: EP

Kind code of ref document: A1