CN114598214A - Motor rotor position observation method, device, rotor position observer and medium - Google Patents

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

Info

Publication number
CN114598214A
CN114598214A CN202210226684.1A CN202210226684A CN114598214A CN 114598214 A CN114598214 A CN 114598214A CN 202210226684 A CN202210226684 A CN 202210226684A CN 114598214 A CN114598214 A CN 114598214A
Authority
CN
China
Prior art keywords
sampling
current
new
value
motor
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210226684.1A
Other languages
Chinese (zh)
Inventor
王志宇
许培林
陈辉
秦向南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Welling Motor Technology Shanghai Co Ltd
Welling Wuhu Motor Manufacturing Co Ltd
Original Assignee
Midea Welling Motor Technology Shanghai Co Ltd
Welling Wuhu Motor Manufacturing Co Ltd
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 Midea Welling Motor Technology Shanghai Co Ltd, Welling Wuhu Motor Manufacturing Co Ltd filed Critical Midea Welling Motor Technology Shanghai Co Ltd
Priority to CN202210226684.1A priority Critical patent/CN114598214A/en
Publication of CN114598214A publication Critical patent/CN114598214A/en
Priority to PCT/CN2023/078964 priority patent/WO2023169275A1/en
Pending legal-status Critical Current

Links

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)

Abstract

The invention discloses a method and a device for observing the position of a motor rotor, a rotor position observer and a medium, wherein the method comprises the following steps: when high-frequency pulses are injected into a d axis of the motor, a reference value is determined, and six comparison values of three paths of modulation corresponding to output required voltage vectors under single resistance sampling are determined; determining a difference between the reference value and the comparison value Act21 or Act 22; adjusting six comparison values according to the difference value, and adjusting the six comparison values according to the adjusted comparison value Act21NewOr Act22NewDetermining a first current sampling trigger value and a second current sampling trigger value; according to adjustedThe six comparison values control the motor, and current sampling is carried out 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; and estimating the rotor position of the motor according to the first sampling current and the second sampling current. Therefore, the sampling current precision of single-resistor sampling can be effectively improved, and the motor rotor position observation precision is further improved.

Description

电机转子位置观测方法、装置、转子位置观测器及介质Motor rotor position observation method, device, rotor position observer and medium

技术领域technical field

本发明涉及电机控制技术领域,尤其涉及一种电机转子位置观测方法、装置、转子位置观测器及介质。The invention relates to the technical field of motor control, and in particular, to a method and device for observing the rotor position of a motor, a rotor position observer and a medium.

背景技术Background technique

基于高频注入的电机无位置传感器控制方法实现简单,成本低,在低速区域具有较好的控制性能,可以实现电机的低速负载启动。该方法是在d轴注入周期性的正负脉冲,对脉冲引起的q轴高频电流响应进行采样,将高频电流响应送入锁相环求解得到电机的估计位置。传统的观测器方法在中高速区域具有较好的性能,而在低速区域无法收敛,因此高频注入法具有很高的实际应用价值。The motor position sensorless control method based on high frequency injection is simple to implement, low cost, has good control performance in the low speed region, and can realize the low speed load start of the motor. The method is to inject periodic positive and negative pulses in the d-axis, sample the high-frequency current response of the q-axis caused by the pulse, and send the high-frequency current response into a phase-locked loop to obtain the estimated position of the motor. The traditional observer method has good performance in the medium and high-speed region, but cannot converge in the low-speed region, so the high-frequency injection method has high practical application value.

单电阻采样技术是通过利用直流负母线上的采样电阻对电流进行采样,一个控制周期内需要采样两次,分别在两个有效电压矢量(也即非零电压矢量)作用时间内进行采样,采样结束后根据电压矢量情况,判断采样电流所属相序。The single-resistor sampling technology uses the sampling resistance on the DC negative bus to sample the current. It needs to be sampled twice in one control cycle, and the sampling is performed during the action time of the two effective voltage vectors (that is, the non-zero voltage vectors). After the end, according to the voltage vector situation, determine the phase sequence of the sampling current.

在单电阻采样时,两次电流采样均需要一定的时间,一般选取第2个或者第5个开关管动作时刻的前后,即两个有效电压矢量作用时间内进行采样,如果合成电压矢量位于扇区切换边界附近,则存在至少一个有效电压矢量过小的情况,因此为了满足采样时间要求,需要对开关管动作时刻进行移相处理,从而确保两次电流采样的准确性。但是,这样单电阻采样的采样时刻会发生变化,尤其在不同扇区切换区域附近时,移相方式的不同将会导致采样时刻存在较大差异。由于电机低速运行时,反电动势和电阻压降较小,控制器输出电压主要为高频注入电压,且高频注入电压为正负周期性注入,对应的扇区相差180°,导致因移相引入较大的采样时刻误差,从而导致采样得到的q轴高频电流响应存在较大误差,以此求解得到的估计位置也会存在较大误差,从而影响系统的控制性能。In the case of single-resistor sampling, both current samplings take a certain amount of time. Generally, the second or fifth switch tube is selected before and after the action time, that is, the two effective voltage vectors are used for sampling. If the combined voltage vector is located in the fan In the vicinity of the switching boundary of the region, there is at least one effective voltage vector that is too small. Therefore, in order to meet the sampling time requirements, it is necessary to perform phase-shift processing on the switching time of the switch to ensure the accuracy of the two current samplings. However, the sampling time of the single-resistor sampling will change in this way, especially in the vicinity of the switching area of different sectors, the difference of the phase shifting method will lead to a large difference in the sampling time. Since the back electromotive force and resistance voltage drop are small when the motor is running at low speed, the output voltage of the controller is mainly high-frequency injection voltage, and the high-frequency injection voltage is a positive and negative periodic injection, and the corresponding sectors differ by 180°, resulting in phase shift A large sampling time error is introduced, resulting in a large error in the q-axis high-frequency current response obtained by sampling, and a large error in the estimated position obtained by this solution, thus affecting the control performance of the system.

发明内容SUMMARY OF THE INVENTION

本发明旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本发明的第一个目的在于提出一种电机转子位置观测方法,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。The present invention aims to solve one of the technical problems in the related art at least to a certain extent. Therefore, the first object of the present invention is to propose a method for observing the position of the motor rotor, which can effectively improve the sampling current accuracy of single-resistance sampling, thereby improving the accuracy of observing the rotor position of the motor.

本发明的第二个目的在于提出一种计算机可读存储介质。A second object of the present invention is to provide a computer-readable storage medium.

本发明的第三个目的在于提出一种转子位置观测器。The third object of the present invention is to provide a rotor position observer.

本发明的第四个目的在于提出一种电机转子位置观测装置。The fourth object of the present invention is to provide a device for observing the rotor position of a motor.

为达到上述目的,本发明第一方面实施例提出一种电机转子位置观测方法,包括:在向电机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 object, the embodiment of the first aspect of the present invention proposes a method for observing the rotor position of a motor, 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 three-way modulation six comparison values Act11, Act21, Act31, Act32, Act22, Act12; determine the difference between the reference value and the comparison value Act21 or Act22; according to the difference, compare the six comparison values Act11, Act21, Act31 , 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 , Act12 New control the motor, and sample the current of 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; A sampled current and a second sampled current estimate the rotor position of the motor.

根据本发明实施例的电机转子位置观测方法,通过根据基准值与比较值之间的差值对单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值进行调整,并根据调整后的比较值确定第一电流采样触发值和第二电流采样触发值,以及根据调整后的六个比较值对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the method for observing the rotor position of the motor according to the embodiment of the present invention, the six comparison values of the three-way modulation corresponding to the output voltage vector required by the 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 adjusted six comparison values, and pairs the first current sampling trigger value and the second current sampling trigger value according to the adjusted comparison value. The motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor according to 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 rotor position of the motor. accuracy.

根据本发明的一个实施例,确定基准值,包括:获取三角波载波顶点计数值;根据三角波载波顶点计数值确定基准值。According to an embodiment of the present invention, determining the reference value includes: acquiring 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 invention, 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 an embodiment of the present invention, the reference value is 0.5 times the count value of the triangular wave carrier vertex.

根据本发明的一个实施例,根据以下公式对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整:According to one embodiment of the present invention, the 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 invention, when single-resistor sampling is performed in the rising phase 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为电流上升至稳定的时间。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 a stable state.

根据本发明的一个实施例,在三角波载波的下降阶段进行单电阻采样时,根据以下公式确定第一电流采样触发值和第二电流采样触发值:According to an embodiment of the present invention, when single-resistor sampling is performed in the falling phase of the triangular wave carrier, the first current sampling trigger value and the second current sampling trigger value are determined according to the following formulas:

Trig1New=Act22New+Tsample;Trig1 New = Act22 New + Tsample;

Trig2New=Act22New-Tdead-Tup;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 a stable state.

为达到上述目的,本发明第二方面实施例提出一种计算机可读存储介质,其上存储有电机转子位置观测程序,该电机转子位置观测程序被处理器执行时实现前述的电机转子位置观测方法。In order to achieve the above object, the embodiment of the second aspect of the present invention provides a computer-readable storage medium on which a motor rotor position observation program is stored, and when the motor rotor position observation program is executed by a processor, the foregoing motor rotor position observation method is implemented. .

根据本发明实施例的计算机可读存储介质,基于前述的电机转子位置观测方法,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the computer-readable storage medium of the embodiment of the present invention, based on the foregoing method for observing the rotor position of the motor, the sampling current accuracy of single-resistance sampling can be effectively improved, thereby improving the accuracy of observing the rotor position of the motor.

为达到上述目的,本发明第三方面实施例提出一种转子位置观测器,包括存储器、处理器及存储在存储器上并可在处理器上运行的电机转子位置观测程序,处理器执行电机转子位置观测程序时,实现前述的电机转子位置观测方法。In order to achieve the above object, the embodiment of the third aspect of the present invention provides a rotor position observer, which includes a memory, a processor, and a motor rotor position observation program stored in the memory and running on the processor, and the processor executes the motor rotor position. When observing the program, the aforementioned method of observing the rotor position of the motor is implemented.

根据本发明实施例的转子位置观测器,基于前述的电机转子位置观测方法,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the rotor position observer of the embodiment of the present invention, based on the aforementioned method for observing the rotor position of the motor, the sampling current accuracy of single-resistance sampling can be effectively improved, thereby improving the accuracy of observing the rotor position of the motor.

为达到上述目的,本发明第四方面实施例提出一种电机转子位置观测装置,包括:第一确定模块,用于确定基准值;第二确定模块,用于确定单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值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, a fourth aspect of the present invention provides an apparatus for observing the rotor position of a motor, including: a first determination module for determining a reference value; a second determination module for determining a 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 adjusted six comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New , Act12 New , and 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 according to the first sampling current and the second sampling current.

根据本发明实施例的电机转子位置观测装置,通过根据基准值与比较值之间的差值对单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值进行调整,并根据调整后的比较值确定第一电流采样触发值和第二电流采样触发值,以及根据调整后的六个比较值对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the device for observing the rotor position of the motor according to the embodiment of the present invention, the six comparison values of the three-way modulation corresponding to the output required voltage vector under single-resistance 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 adjusted six comparison values, and pairs the first current sampling trigger value and the second current sampling trigger value according to the adjusted comparison value. The motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor according to 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 rotor position of the motor. accuracy.

本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.

附图说明Description of drawings

图1为根据本发明一个实施例的电机控制系统图;1 is a diagram of a motor control system according to an embodiment of the present invention;

图2为单电阻高频注入控制系统图;Figure 2 is a diagram of a single-resistor high-frequency injection control system;

图3a为根据本发明一个实施例的0°位置时注入正电压脉冲的电压矢量以及开关管动作示意图;3a is a schematic diagram of the voltage vector of the injected positive voltage pulse and the operation of the switch tube at the 0° position according to an embodiment of the present invention;

图3b为根据本发明一个实施例的0°位置时注入负电压脉冲的电压矢量以及开关管动作示意图;3b is a schematic diagram of the voltage vector of the injected negative voltage pulse and the operation of the switch tube at the 0° position according to an embodiment of the present invention;

图4为根据本发明一个实施例的电机转子位置观测方法的流程示意图;4 is a schematic flowchart of a method for observing a rotor position of a motor according to an embodiment of the present invention;

图5为与图3a和图3b相对应的调整后的开关管动作示意图;FIG. 5 is a schematic diagram of the operation of the adjusted switch tube corresponding to FIG. 3a and FIG. 3b;

图6为根据本发明一个实施例的电机转子位置观测装置的结构示意图。FIG. 6 is a schematic structural diagram of an apparatus for observing the rotor position of a motor according to an embodiment of the present invention.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the present invention and should not be construed as limiting the present invention.

在电机无位置传感器矢量控制过程中,为获得电机转子位置,可在d轴注入周期性的正负电压脉冲,并对脉冲引起的q轴高频电流响应进行采样,以及将高频电流响应送入锁相环求解得到电机转子位置。基于成本考虑,通常采用单电阻采样技术对高频电流响应进行采样,单电阻采样技术是通过利用直流负母线上的采样电阻对电流进行采样,如图1所示,通过直流负母线上的采样电阻R对电流进行采样,在采样时,一个控制周期内需要采样两次,分别在两个有效电压矢量(也即非零电压矢量)的作用时间内进行采样,采样结束后根据电压矢量情况,判断采样电流所属相序,得到两相电流。In the process of motor position sensorless vector control, in order to obtain the rotor position of the motor, periodic positive and negative voltage pulses can be injected into the d-axis, and the high-frequency current response of the q-axis caused by the pulses can be sampled, and the high-frequency current response can be sent to the Enter the phase-locked loop to solve the motor rotor position. Based on cost considerations, the high-frequency current response is usually sampled by the single-resistor sampling technique. The single-resistor sampling technique uses the sampling resistor on the DC negative bus to sample the current, 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 one control cycle, and the sampling is performed during the action time of the two effective voltage vectors (that is, the non-zero voltage vectors). After the sampling, according to the voltage vector conditions, Determine the phase sequence to which the sampling current belongs, and obtain two-phase currents.

在单电阻采样时,两次电流采样均需要一定的时间,一般选取第2个或者第5个开关管动作时刻的前后,即两个有效电压矢量作用时间内进行采样,如果合成电压矢量位于扇区切换边界附近,则存在至少一个有效电压矢量过小的情况,因此为了满足采样时间要求,需要对开关管动作时刻进行移相处理,从而确保两次电流采样的准确性。但是,这样单电阻采样的采样时刻会发生变化,尤其在不同扇区切换区域附近时,移相方式的不同将会导致采样时刻存在较大差异。由于电机低速运行时,反电动势和电阻压降较小,如图2所示,控制器输出电压主要为高频注入电压,且高频注入电压为正负周期性注入,对应的扇区相差180°,从而会因移相引入较大的采样时刻误差,导致采样得到的q轴高频电流响应存在较大误差,以此求解得到的估计位置也会存在较大误差,从而影响控制系统的控制性能。In the case of single-resistor sampling, both current samplings take a certain amount of time. Generally, the second or fifth switch tube is selected before and after the action time, that is, the two effective voltage vectors are used for sampling. If the combined voltage vector is located in the fan In the vicinity of the switching boundary of the region, there is at least one effective voltage vector that is too small. Therefore, in order to meet the sampling time requirements, it is necessary to perform phase-shift processing on the switching time of the switch to ensure the accuracy of the two current samplings. However, the sampling time of the single-resistor sampling will change in this way, especially in the vicinity of the switching area of different sectors, the difference of the phase shifting method will lead to a large difference in the sampling time. Since the back EMF and resistance voltage drop are small when the motor runs at low speed, as shown in Figure 2, the output voltage of the controller is mainly the high-frequency injection voltage, and the high-frequency injection voltage is positive and negative periodic injection, and the corresponding sector difference is 180 °, which will introduce a large sampling time error due to the phase shift, resulting in a large error in the high-frequency current response of the q-axis obtained by sampling, and the estimated position obtained by this solution will also have a large error, which will affect the control of the control system. performance.

具体来说,以电机处于0°位置为例进行说明。在传统方法中,在进行转子位置估算时,先注入正电压脉冲,参考图3a所示,此时输出的合成电压矢量Uinj基本与U4(100)重合,第一个有效电压矢量的作用时间t1大,第二个有效电压矢量的作用时间t2小,因此需要移相,基于移相后确定的电流采样时刻靠近三角波载波周期的中间,如图3a中的Trig1和Trig2靠近三角波载波周期的中间;正电压脉冲结束后,注入负电压脉冲,参考图3b所示,此时输出的合成电压矢量-Uinj与注入正电压脉冲时的合成电压矢量Uinj近似相差180°,且基本与U3(011)重合,第一个有效电压矢量的作用时间t1小,第二个有效电压矢量的作用时间t2大,同样需要移相,但基于移相后确定的电流采样时刻靠近三角波载波周期的端部,如图3b中的Trig1和Trig2靠近三角波载波周期的尾部。因此注入正电压脉冲时的电流采样时刻与注入负电压脉冲时的电流采样时刻不同,导致采样得到的高频电流响应存在较大误差,进而导致估计位置存在较大误差。Specifically, the description will be given by taking the motor at the 0° position as an example. In the traditional method, when estimating the rotor position, a positive voltage pulse is injected first. Referring to Figure 3a, the output synthetic voltage vector Uinj basically coincides with U4 (100), and the action time of the first effective voltage vector is t1 is large, the action time t2 of the second effective voltage vector is small, so it needs to be phase-shifted. Based on the current sampling time determined after the phase-shift, it is close to the middle of the triangular wave carrier cycle, as shown in Figure 3a, Trig1 and Trig2 are close to the middle of the triangular wave carrier cycle; After the positive voltage pulse ends, inject a negative voltage pulse. Referring to Figure 3b, the output composite voltage vector -Uinj is approximately 180° different from the composite voltage vector Uinj when the positive voltage pulse is injected, and it 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, and the phase shift is also required, but the current sampling time determined based on the phase shift is close to the end of the triangular wave carrier cycle, as shown in the figure Trig1 and Trig2 in 3b are near the tail of the triangular wave carrier period. Therefore, the current sampling time when the positive voltage pulse is injected is different from the current sampling time when the negative voltage pulse is injected, resulting in a large error in the high-frequency current response obtained by sampling, which in turn results in a large error in the estimated position.

基于此,在本申请中可先根据三角波载波周期计数值选取基准值,由于电流采样时刻是基于第2个或者第5个开关管动作时刻计算得到,因此通过将第2个或者第5个开关管动作时刻与基准值对齐,可以保证在移相后,正负电压脉冲注入时的电流采样时刻相同,从而减少因电流采样时刻不同引入的电流采样误差,进而提高电机转子位置的估计精度。Based on this, in the present application, the reference value can be selected according to the triangular wave carrier cycle count value. Since the current sampling time is calculated based on the operation time of the second or fifth switch tube, the second or fifth switch The tube action time is aligned with the reference value, which can ensure that the current sampling time during the injection of positive and negative voltage pulses is the same after the phase shift, thereby reducing the current sampling error caused by different current sampling time, thereby improving the estimation accuracy of the rotor position of the motor.

图4为根据本发明一个实施例的电机转子位置观测方法的流程示意图。参考图4所示,该电机转子位置观测方法可包括以下步骤:FIG. 4 is a schematic flowchart of a method for observing a rotor position of a motor according to an embodiment of the present invention. Referring to FIG. 4 , the method for observing the rotor position of the motor 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, 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。Specifically, when injecting high-frequency pulses, that is, high-frequency positive and negative voltage pulses, into the d-axis of the motor, the reference value required to reduce the current sampling error caused by the different current sampling times can be obtained, and the sampled value based on the single resistance can be obtained. 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 switch tube in the three-phase inverter bridge The count value of the triangular wave carrier corresponding to the action time, Act21 represents the count value of the triangular wave carrier corresponding to the action time of the second switch, Act31 represents the count value of the triangular wave carrier corresponding to the action time of the third switch, and Act32 represents the action time of the fourth switch Corresponding triangular wave carrier count value, Act22 represents the triangular wave carrier count value corresponding to the action moment of the 5th switch tube, Act12 represents the triangular wave carrier count value corresponding to the 6th switch tube action moment. In the present application, the triangular wave carrier count method is an increase first and then a decrease method, correspondingly Act11<Act21<Act31, Act32>Act22>Act12.

举例来说,如图3a-图3b所示,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 Fig. 3a-Fig. 3b, PWM1, PWM2 and PWM3 are the PWM control signals of the upper-side switches VT1, VT3 and VT5 shown in Fig. 1 respectively (the lower-side switches VT4, VT6 and VT2) The PWM control signal corresponds to the PWM control signal of the upper bridge arm switch tubes VT1, VT3 and VT5, and the difference is 180°). When injecting positive and negative voltage pulses, 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 The comparison values corresponding to Act11 and Act12 and 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 an intermediate 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, PWM1 The duty cycle of PWM2 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, and the comparison values corresponding to PWM2 For Act31 and Act32, the corresponding comparison values of PWM3 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 PWM1 corresponds to the comparison value of Act11 and Act12, PWM2 corresponds to the comparison value of Act31 and Act32, PWM3 corresponds to the comparison value of Act21 and Act22, that is, the duty cycle of PWM1 is the maximum value, and the duty cycle of PWM2 is the minimum value. , the duty cycle of PWW3 is an intermediate value.

需要说明的是,在确定各路PWM信号的比较值时,还对确定的比较值进行移相处理,以保证在有效电压矢量作用时间内进行单电阻采样,保证电流采样的有效性和准确性。在进行移相处理时,根据电流采样阶段、t1/2和t2/2的大小调整相应的比较值,以使t1/2和t2/2中的较小值大于最小采样时间。举例来说,如图3a所示,在三角波载波周期下降阶段进行电流采样时,t2/2较小,此时将PWM3的高电平左移,相应的比较值Act31减小,比较值Act32增大;在三角波载波周期上升阶段进行电流采样时,t2/2较小,此时将PWM3的高电平右移,相应的比较值Act31增大,比较值Act32减小。如图3b所示,在三角波载波周期下降阶段进行电流采样时,t1/2较小,此时将PWM1的高电平右移,相应的比较值Act11增大,比较值Act12减小;在三角波载波周期上升阶段进行电流采样时,t1/2较小,此时将PWM1的高电平左移,相应的比较值Act11减小,比较值Act12增大。It should be noted that when the comparison value of each PWM signal is determined, the determined comparison value is also phase-shifted to ensure single-resistor sampling within the effective voltage vector action time, and to ensure the validity and accuracy of current sampling. . During the phase-shift processing, the corresponding comparison value is adjusted according to the current sampling stage, 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 Fig. 3a, when the current sampling is performed during the period of the triangular wave carrier cycle, t2/2 is small. At this time, the high level of PWM3 is shifted to the left, the corresponding comparison value Act31 decreases, and the comparison value Act32 increases. When the current sampling is performed in the rising phase of the triangular wave carrier cycle, t2/2 is small, at this time, the high level of PWM3 is shifted to the right, the corresponding comparison value Act31 increases, and the comparison value Act32 decreases. As shown in Figure 3b, when the current sampling is performed in the period of the triangular wave carrier cycle, t1/2 is small. At this time, the high level of PWM1 is shifted to the right, the corresponding comparison value Act11 is increased, and the comparison value Act12 is decreased; When the current sampling is performed in the rising phase of the carrier cycle, t1/2 is small. At this time, the high level of PWM1 is shifted to the left, the corresponding comparison value Act11 decreases, and the comparison value Act12 increases.

在获取基准值时,由于电流采样时刻是基于第2个或者第5个开关管动作时刻计算得到,因此保证第2个或者第5个开关管动作时刻一致即可保证电流采样时刻一致,如图3a-图3b所示,第5个开关管动作时刻为比较值Act22对应的时刻,Trig1和Trig2对应的时刻即电流采样时刻是根据比较值Act22计算得到,因此保证图3a中的比较值Act22对应的时刻和图3b中比较值Act22对应的时刻一致即可保证图3a中的电流采样时刻和图3b中的电流采样时刻一致。考虑到注入正电压脉冲时的三角波载波周期计数值与注入负电压脉冲时的三角波载波周期计数值是相同的,因此可基于三角波载波周期计数值选取基准值,并将第2个或者第5个开关管动作时刻与该基准值对齐即可保证在移相后正负电压脉冲注入时的电流采样时刻相同,如图3a中的比较值Act22对应的时刻和图3b中比较值Act22对应的时刻均与基准值对齐即可保证图3a中的电流采样时刻和图3b中的电流采样时刻一致,从而减少因移相导致电流采样时刻不同所引入的电流采样误差。When obtaining the reference value, since the current sampling time is calculated based on the operating time of the second or fifth switch, the current sampling time can be guaranteed to be consistent by ensuring that the operating time of the second or fifth switch is consistent, as shown in the figure As shown in Fig. 3a-Fig. 3b, the action time of the fifth switch is the time corresponding to the comparison value Act22. The time corresponding to Trig1 and Trig2, that is, the current sampling time, is calculated according to the comparison value Act22. Therefore, it is guaranteed that the comparison value Act22 in Fig. 3a corresponds to the comparison value Act22. The timing of , and the timing corresponding to the comparison value Act22 in FIG. 3 b are consistent to ensure that the current sampling timing in FIG. 3 a is consistent with the current sampling timing in FIG. 3 b . Considering that the count value of the triangular wave carrier cycle when injecting a positive voltage pulse is the same as the count value of the triangular wave carrier cycle when injecting a negative voltage pulse, the reference value can be selected based on the count value of the triangular wave carrier cycle, and the second or fifth Alignment of the switching tube action time with the reference value can ensure that the current sampling time is the same when the positive and negative voltage pulses are injected after the phase shift. The time corresponding to the comparison value Act22 in Figure 3a and the time corresponding to the comparison value Act22 in Figure 3b are both Aligning with the reference value can ensure that the current sampling time in FIG. 3a is consistent with the current sampling time in FIG. 3b, thereby reducing the current sampling error caused by different current sampling time due to phase shift.

在本发明的一些实施例中,确定基准值可包括:获取三角波载波顶点计数值;根据三角波载波顶点计数值确定基准值。In some embodiments of the present invention, determining the reference value may include: acquiring 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,当然也可以直接计算得到。Specifically, when injecting a high-frequency pulse 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 determined first, and according to the triangular wave carrier vertex count value N 1/ 2Period obtains the reference value Nref. After the positive voltage pulse ends, inject the negative voltage pulse. 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, of course, can also 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 according to the triangular wave carrier vertex count value N 1/2Period and the amplitude of the injected positive and negative voltage pulses. For example, since the amplitude of the selected positive and negative voltage pulses generally does not exceed 50% of the DC bus voltage Udc when estimating the rotor position of the motor based on the high-frequency injection method, the reference value Nref can be 0.5 times the count value of the triangular wave carrier vertex, That is, the reference value Nref=(1/2)*N 1/2Period . It should be noted that the reference value Nref is equal to or greater than the difference between the comparison value Act22 and the comparison value Act11.

步骤S102,确定基准值与比较值Act21或Act22之间的差值。Step S102, determining 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可能不相等,在后续使用时需进行区别。Specifically, when the current sampling is performed in the rising phase 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 sampling is performed in the falling phase of the triangular wave carrier, the corresponding comparison The 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 count method is to increase first and then decrease, and the comparison values Act21 and Act22 are not phase-shifted during phase shifting, the calculated two difference values DetaN are equal, and will be used in subsequent use. 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 difference, 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的高电平时间。Specifically, after the difference value DetaN is obtained, the six comparison values can be adjusted based on the difference value DetaN. The adjustment principle is that if t2 is a small value, the zero voltage vector U0 (000) is used 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 small value, use the zero-voltage vector U7 (111) to compensate the zero-voltage vector U0 (000), namely reducing the duty cycle of PWM1, PWM2 and PWM3, namely reducing the high level time of PWM1, PWM2 and PWM3.

举例来说,如图3a所示,t2为较小值,则利用零电压矢量U0(000)补偿零电压矢量U7(111),调整后的PWM1、PWM2和PWM3如图5(a)所示,相对于调整前的PWM信号,调整后的PWM信号的高电平增加了(即外扩);如图3b所示,t1为较小值,则利用零电压矢量U7(111)补偿零电压矢量U0(000),调整后的PWM1、PWM2和PWM3如图5(b)所示,相对于调整前的PWM信号,调整后的PWM信号的高电平减少了(即内缩)。For example, as shown in Figure 3a, when t2 is a small value, the zero voltage vector U0 (000) is used to compensate the zero voltage vector U7 (111), and the adjusted PWM1, PWM2 and PWM3 are shown in Figure 5(a) , compared with the PWM signal before adjustment, the high level of the adjusted PWM signal has increased (ie, expanded); as shown in Figure 3b, t1 is a small value, then the zero voltage vector U7 (111) is used to compensate for the zero voltage The vector U0 (000), the adjusted PWM1, PWM2 and PWM3 are shown in Fig. 5(b). Compared with the unadjusted PWM signal, 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 small value, the zero-voltage vector U0 (000) is sufficient to supplement the zero-voltage vector U7 (111), Avoid that the zero voltage vector U7 (111) is not enough to be supplemented because the duration of the zero voltage vector U0 (000) is too short, 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 to supplement the zero-voltage vector U0 (000), the normal control of the motor is ensured.

具体地,在根据差值DetaN对六个比较值进行调整时,具体可通过下述公式(1)对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整:Specifically, when the six comparison values are adjusted according to the difference DetaN, the six comparison values Act11, Act21, Act31, Act32, Act22, and Act12 can be adjusted by the following formula (1):

Figure BDA0003539495040000091
Figure BDA0003539495040000091

需要说明的是,由于差值DetaN具有正负之分,因此公式(1)适用于前述两种情况。例如,差值DetaN=Nref-Act22,若t2为较小值,则差值DetaN<0,此时基于公式(1)确定的调整后的六个比较值与图5(a)所示相符合;若t1为较小值,则差值DetaN>0,此时基于公式(1)确定的调整后的六个比较值与图5(b)所示相符合。It should be noted that, since the difference DetaN has positive and negative points, the formula (1) is applicable to the foregoing two situations. For example, the difference value DetaN=Nref-Act22, if t2 is a small value, then the difference value DetaN<0, at this time, the adjusted six comparison values determined based on formula (1) are consistent with those shown in Figure 5(a) ; If t1 is a smaller value, the difference DetaN>0, and the six adjusted comparison values determined based on formula (1) are consistent with those shown in Figure 5(b).

在获得调整后的六个比较值后,基于调整后的比较值Act21New或者Act22New确定第一电流采样触发值和第二电流采样触发值。具体来说,在一个控制周期中,可在第2个或者第5个开关管动作时刻的前后进行电流采样,也即在比较值Act21New或者Act22New对应时刻的前后进行电流采样,因此在获得比较值Act21New和Act22New后,可根据这两个比较值中的一个获取第一电流采样触发值Trig1和第二电流采样触发值Trig2。例如,若选取三角波载波的下降阶段进行单电阻采样,则根据比较值Act22New获取第一电流采样触发值Trig1和第二电流采样触发值Trig2;若选取三角波载波的上升阶段进行单电阻采样,则根据比较值Act21New获取第一电流采样触发值Trig1和第二电流采样触发值Trig2。After the adjusted six comparison values are obtained, 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 . Specifically, in a control cycle, the current sampling can be performed before and after the second or fifth switching tube action time, that is, the current sampling is performed before and after the corresponding time of the comparison value Act21 New or Act22 New . 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 stage of the triangular wave carrier is selected for single-resistor 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 single-resistance sampling is carried out in the rising stage of the triangular wave carrier, then The first current sampling trigger value Trig1 and the second current sampling trigger value Trig2 are acquired according to the comparison value Act21 New .

需要说明的是,在根据比较值Act21New或者Act22New获取第一电流采样触发值Trig1和第二电流采样触发值Trig2时,可根据硬件采样所需时间(如ADC转换器的采样时间)、死区时间(即,PWM信号输出时,为避免同一桥臂的上下开关管同时导通所预留的时间,如在上桥臂开关管关断且延时死区时间后,下桥臂开关管才能导通,或者在下桥臂开关管关断且延时死区时间后,上桥臂开关管才能导通)和开关管通断后的电流稳定时间(如,开关管导通后,电流逐步上升直至处于稳定状态所对应的时间)进行确定,以保证足够的电流采样时间,且避开了死区时间及电流非稳定时间,保证了电流采样的有效性和准确性。It should be noted that when the first current sampling trigger value Trig1 and the second current sampling trigger value Trig2 are obtained according to the comparison value Act21 New or Act22 New , the time required for hardware sampling (such as the sampling time of the ADC converter), the dead time zone time (that is, when the PWM signal is output, in order to avoid the time reserved for the upper and lower switches of the same bridge arm to be turned on at the same time, for example, after the upper bridge arm switch tube is turned off and the dead time is delayed, the lower bridge arm switch tube can be turned on, or after the lower arm switch is turned off and the dead time is delayed, the upper arm switch can be turned on) and the current stabilization time after the switch is turned on (for example, after the switch is turned on, the current gradually rises Until the time corresponding to the stable state) is determined to ensure sufficient current sampling time, and avoid dead time and current instability time, ensuring the validity and accuracy of current sampling.

根据本发明的一个实施例,在三角波载波的上升阶段进行单电阻采样时,根据以下公式(2)确定第一电流采样触发值和第二电流采样触发值:According to an embodiment of the present invention, when single-resistor sampling is performed in the rising phase 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):

Figure BDA0003539495040000101
Figure BDA0003539495040000101

其中,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 a stable state.

根据本发明的一个实施例,在三角波载波的下降阶段进行单电阻采样时,根据以下公式(3)确定第一电流采样触发值和第二电流采样触发值:According to an embodiment of the present invention, when single-resistor sampling is performed in 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):

Figure BDA0003539495040000102
Figure BDA0003539495040000102

其中,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 a stable state.

也就是说,在第2个或第5个开关管动作时刻之前进行第一次电流采样,在其之后进行第二次电流采样,考虑到两次采样时刻尽可能接近,以减少采样时间误差,针对第一次电流采样,预留一硬件采样所需时间Tsample即可,针对第二次电流采样,预留一死区时间Tdead和电流上升至稳定的时间Tup即可。That is to say, the first current sampling is performed before the second or fifth switching tube action time, and the second current sampling is performed after that. Considering that the two sampling times are as close as possible to reduce the sampling time error, For the first current sampling, reserve a time Tsample required for hardware sampling, and for the second current sampling, reserve a dead time Tdead and a time Tup when the current rises to a stable state.

步骤S104,根据调整后的六个比较值Act11New、Act21New、Act31New、Act32New、Act22New、Act12New对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流。Step S104, control the motor according to the adjusted six 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 a first sampling current and a second sampling current.

具体来说,在获得调整后的六个比较值后,还根据调整后的六个比较值对电机进行控制,并在控制的过程中,根据第一电流采样触发值Trig1和第二电流采样触发值Trig2进行电流采样,从而得到第一采样电流和第二采样电流。Specifically, after the adjusted six comparison values are obtained, the motor is also controlled according to the adjusted six comparison values, and during the control process, the first current sampling trigger value Trig1 and the second current sampling trigger value are triggered. The value Trig2 is current sampled, thereby obtaining the first sampled current and the second sampled current.

以在三角波载波的下降阶段进行单电阻采样为例。如图5(a)-图5(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-resistor sampling in the falling phase of the triangular wave carrier as an example. As shown in Figure 5(a)-Figure 5(b), after obtaining the adjusted six comparison values, if the timer count value is used to generate a triangular wave carrier, when the timer count value is equal to the comparison value Act11 New , the control The upper bridge arm switch VT1 in Figure 1 is turned on, the lower bridge arm switches VT6 and VT2 are kept on, and the rest of the switches are turned off; when the timer count value is equal to the comparison value Act21 New , the upper switch in Figure 1 is controlled The bridge arm switch VT3 is turned on, the upper bridge arm switch VT1 and the lower bridge arm switch VT2 are kept on, and the rest of the switches are turned off; when the timer count value is equal to the comparison value Act31 New , control the upper The bridge arm switch VT5 is turned on, the upper bridge arm switch VT1 and VT3 remain on, and the rest of the switches are turned off; when the timer count value is equal to the comparison value Act32 New , the lower bridge arm switch VT2 in Figure 1 is controlled to conduct 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 Fig. 1 to obtain 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 are kept turned on, and the rest of the switches are Turn off; when the timer count value is equal to the second current sampling trigger value Trig2, the second sampling current is obtained by current sampling through the sampling resistor R in Figure 1; when the timer count value is equal to the comparison value Act12 New , control Figure 1 The lower bridge arm switch tube VT4 in the middle is turned on, the lower bridge arm switch tubes VT2 and VT6 are kept on, and the rest of the switch tubes are turned off.

由此,基于比较值和采样触发值,可实现对电机的控制,并在控制过程进行电流采样。需要说明的是,在三角波载波的上升阶段进行单电阻采样的过程与在三角波载波的下降阶段进行单电阻采样的过程相同,具体这里不再详述。Therefore, based on the comparison value and the sampling trigger value, the control of the motor can be realized, and current sampling is performed during the control process. It should be noted that the process of performing single-resistance sampling in the rising phase of the triangular wave carrier is the same as the process of performing single-resistance sampling in the falling phase of the triangular wave carrier, which will not be described in detail here.

步骤S105,根据第一采样电流和第二采样电流估算电机的转子位置。Step S105, the rotor position of the motor is estimated according to the first sampled current and the second sampled current.

具体地,可根据第一采样电流和第二采样电流,进行位置观测,得到电机的转子位置,具体可采用现有技术实现,这里不做展开说明。Specifically, position observation can be performed according to the first sampled current and the second sampled current to obtain the rotor position of the motor, which can be realized by using the prior art, which will not be described here.

根据本发明实施例的电机转子位置观测方法,通过根据基准值与比较值之间的差值对单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值进行调整,并根据调整后的比较值确定第一电流采样触发值和第二电流采样触发值,以及根据调整后的六个比较值对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度,算法简单,易于工程应用,从而实现了在低成本优势下保持优异的控制性能。According to the method for observing the rotor position of the motor according to the embodiment of the present invention, the six comparison values of the three-way modulation corresponding to the output voltage vector required by the 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 adjusted six comparison values, and pairs the first current sampling trigger value and the second current sampling trigger value according to the adjusted comparison value. The motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor according to 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 rotor position of the motor. High precision, simple algorithm and easy engineering application, thus achieving excellent control performance at low cost.

在本发明的实施例中,还提供一种计算机可读存储介质,其上存储有电机转子位置观测程序,该电机转子位置观测程序被处理器执行时实现前述的电机转子位置观测方法。In an embodiment of the present invention, there is also provided a computer-readable storage medium on which a motor rotor position observation program is stored, and when the motor rotor position observation program is executed by a processor, the foregoing motor rotor position observation method is implemented.

根据本发明实施例的计算机可读存储介质,基于前述的电机转子位置观测方法,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the computer-readable storage medium of the embodiment of the present invention, based on the foregoing method for observing the rotor position of the motor, the sampling current accuracy of single-resistance sampling can be effectively improved, thereby improving the accuracy of observing the rotor position of the motor.

在本发明的实施例中,还提供一种转子位置观测器,包括存储器、处理器及存储在存储器上并可在处理器上运行的电机转子位置观测程序,处理器执行电机转子位置观测程序时,实现前述的电机转子位置观测方法。In an embodiment of the present invention, 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 running on the processor. When the processor executes the motor rotor position observation program , to realize the aforementioned method for observing the rotor position of the motor.

根据本发明实施例的转子位置观测器,基于前述的电机转子位置观测方法,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the rotor position observer of the embodiment of the present invention, based on the aforementioned method for observing the rotor position of the motor, the sampling current accuracy of single-resistance sampling can be effectively improved, thereby improving the accuracy of observing the rotor position of the motor.

图6为根据本发明一个实施例的电机转子位置观测装置的示意图,参考图6所示,该电机转子位置观测装置可包括:第一确定模块10、第二确定模块20、调整模块30、第三确定模块40、控制模块50。FIG. 6 is a schematic diagram of a motor rotor position observation device according to an embodiment of the present invention. Referring to FIG. 6 , the motor rotor position observation device may include: a first determination module 10 , a second determination module 20 , an adjustment module 30 , and a first determination module 10 . Three determination module 40, 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对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置。Wherein, 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 output required voltage vector under single resistance 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 to compare the six comparison values Act11, Act21, Act31, Act32 according to the difference , Act22 and Act12 are adjusted; the third determination module 40 is used for determining 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 for according to the adjusted six The comparison values Act11 New , Act21 New , Act31 New , Act32 New , Act22 New , and Act12 New control the motor, and perform current sampling on the motor according to the first current sampling trigger value and the second current sampling trigger value, and obtain the first sampling current and the second sampled current, and the rotor position of the motor is estimated from the first sampled current and the second sampled current.

根据本发明的一个实施例,第一确定模块10具体用于:获取三角波载波顶点计数值;根据三角波载波顶点计数值确定基准值。According to an embodiment of the present invention, the first determination module 10 is specifically configured to: acquire the count value of the triangular wave carrier vertex; and determine the reference value according to the triangular wave carrier vertex count value.

根据本发明的一个实施例,基准值大于等于比较值Act22与比较值Act11之差。According to an embodiment of the present invention, 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 an embodiment of the present invention, the reference value is 0.5 times the count value of the triangular wave carrier vertex.

根据本发明的一个实施例,调整模块30具体用于根据以下公式对六个比较值Act11、Act21、Act31、Act32、Act22、Act12进行调整:According to an embodiment of the present invention, 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 invention, 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 single-resistance sampling is performed in the rising phase 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为电流上升至稳定的时间。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 a stable state.

根据本发明的一个实施例,第三确定模块40具体用于在三角波载波的下降阶段进行单电阻采样时,根据以下公式确定第一电流采样触发值和第二电流采样触发值:According to an embodiment of the present invention, 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 formulas when single-resistor sampling is performed in 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为电流上升至稳定的时间。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 a stable state.

需要说明的是,关于本申请中电机转子位置观测装置的描述,请参考本申请中关于电机转子位置观测方法的描述,具体这里不再赘述。It should be noted that, for the description of the motor rotor position observation device in this application, please refer to the description of the motor rotor position observation method in this application, and details are not repeated here.

根据本发明实施例的电机转子位置观测装置,通过根据基准值与比较值之间的差值对单电阻采样下输出所需电压矢量所对应的三路调制的六个比较值进行调整,并根据调整后的比较值确定第一电流采样触发值和第二电流采样触发值,以及根据调整后的六个比较值对电机进行控制,并根据第一电流采样触发值和第二电流采样触发值对电机进行电流采样,获得第一采样电流和第二采样电流,以及根据第一采样电流和第二采样电流估算电机的转子位置,能够有效提高单电阻采样的采样电流精度,进而提高电机转子位置观测的精度。According to the device for observing the rotor position of the motor according to the embodiment of the present invention, the six comparison values of the three-way modulation corresponding to the output required voltage vector under single-resistance 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 adjusted six comparison values, and pairs the first current sampling trigger value and the second current sampling trigger value according to the adjusted comparison value. The motor performs current sampling, obtains the first sampling current and the second sampling current, and estimates the rotor position of the motor according to 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 rotor position of the motor. 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 as an ordered listing of executable instructions for implementing the logical functions, and may be embodied in any computer readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device), or in combination with these used to execute a system, device or device. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or apparatus. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wiring (electronic devices), portable computer disk cartridges (magnetic devices), random access memory (RAM), Read Only Memory (ROM), Erasable Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, 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, followed by editing, interpretation, or other suitable medium 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 invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following techniques known in the art: 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, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular 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 only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically defined.

在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise expressly specified and limited, the terms "installed", "connected", "connected", "fixed" and other terms should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection , or integrated; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between the two elements, unless otherwise specified limit. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present invention. Embodiments are subject to variations, modifications, substitutions and variations.

Claims (10)

1. A method for observing the position of a rotor of an electric motor, comprising:
when high-frequency pulses are injected into a d axis of the motor, a reference value is determined, and six comparison values Act11, Act21, Act31, Act32, Act22 and Act12 of three-way modulation corresponding to the output required voltage vector under single resistance sampling are determined;
determining a difference between the reference value and a comparison value Act21 or Act 22;
adjusting six comparison values Act11, Act21, Act31, Act32, Act22 and Act12 according to the difference values, and adjusting the six comparison values according to the adjusted comparison values Act21NewOr Act22NewDetermining a first current sampling trigger value and a second current sampling trigger value;
according to the adjusted six comparison values Act11New、Act21New、Act31New、Act32New、Act22New、Act12NewControlling a motor, and sampling the current of 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;
and estimating the rotor position of the motor according to the first sampling current and the second sampling current.
2. The method of claim 1, wherein determining a reference value comprises:
acquiring a triangular wave carrier peak count value;
and determining the reference value according to the triangular wave carrier peak count value.
3. The method according to claim 2, wherein the reference value is equal to or greater than the difference between the comparison value Act22 and the comparison value Act 11.
4. The method according to claim 2, wherein the reference value is 0.5 times the triangular carrier vertex count value.
5. Method according to any of claims 1-4, characterized in that the six comparison values Act11, Act21, Act31, Act32, Act22, Act12 are adjusted according to the following formula:
Act11New=Act11+DetaN;
Act21New=Nref;
Act31New=Act31+DetaN;
Act32New=Act32-DetaN;
Act22New=Nref;
Act12New=Act12-DetaN;
where DetaN is the difference value and Nref is the reference value.
6. The method of claim 1, wherein the first current sampling trigger value and the second current sampling trigger value are determined according to the following equations when single resistance sampling is performed during the rise phase of a triangular carrier wave:
Trig1New=Act21New-Tsample;
Trig2New=Act21New+Tdead+Tup;
wherein, the Trig1NewSampling a trigger value, Trig2, for the first currentNewAnd sampling the trigger value for the second current, wherein Tsample is the time required by hardware sampling, Tdead is the dead time, and Tup is the time for the current to rise to be stable.
7. The method of claim 1, wherein the first current sampling trigger value and the second current sampling trigger value are determined according to the following equations when single resistance sampling is performed during a falling phase of a triangular carrier wave:
Trig1New=Act22New+Tsample;
Trig2New=Act22New-Tdead-Tup;
wherein, the Trig1NewSampling a trigger value, Trig2, for the first currentNewAnd sampling the trigger value for the second current, wherein Tsample is the time required by hardware sampling, Tdead is the dead time, and Tup is the time for the current to rise to be stable.
8. A computer-readable storage medium, characterized in that a motor rotor position observation program is stored thereon, which, when being executed by a processor, implements the motor rotor position observation method according to any one of claims 1-7.
9. A rotor position observer, comprising a memory, a processor and an electric machine rotor position observation program stored on the memory and executable on the processor, when executing the electric machine rotor position observation program, implementing the electric machine rotor position observation method according to any one of claims 1-7.
10. An electric motor rotor position observation device, comprising:
a first determination module for determining a reference value;
the second determination module is used for determining six comparison values Act11, Act21, Act31, Act32, Act22 and Act12 of three-way modulation corresponding to the voltage vector required by the single-resistor sampling output;
the adjusting module is used for determining the difference value between the reference value and the comparison value Act21 or Act22 when high-frequency pulses are injected into the d shaft of the motor, and adjusting six comparison values Act11, Act21, Act31, Act32, Act22 and Act12 according to the difference value;
a third determination module for determining the adjusted comparison value Act21NewOr Act22NewDetermining a first current sampling trigger value and a second current sampling trigger value;
a control module for adjusting six comparison values Act11New、Act21New、Act31New、Act32New、Act22New、Act12NewControlling a motor, sampling the current of the motor according to the first current sampling trigger value and the second current sampling trigger value, obtaining a first sampling current and a second sampling current, and estimating the position of a rotor of the motor according to the first sampling current and the second sampling current.
CN202210226684.1A 2022-03-09 2022-03-09 Motor rotor position observation method, device, rotor position observer and medium Pending CN114598214A (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN114598214A true CN114598214A (en) 2022-06-07

Family

ID=81817955

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

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

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127500A (en) * 2006-08-17 2008-02-20 上海日立电器有限公司 DC frequency conversion controller and its method for controlling speed of permanent magnetic synchronous electromotor rotor
JP2010148301A (en) * 2008-12-22 2010-07-01 Hitachi Ltd Controller of three-phase ac motor and its method of control
CN101769953A (en) * 2010-01-14 2010-07-07 东元总合科技(杭州)有限公司 Phase current detection method of motor based on direct-current bus current
US20130289934A1 (en) * 2012-04-27 2013-10-31 The Board Of Trustees Of The University Of Illinois Angle-based speed estimation of alternating current machines utilizing a median filter
CN105450094A (en) * 2015-12-16 2016-03-30 四川长虹电器股份有限公司 Current sampling method and air conditioning device
CN108712124A (en) * 2018-06-20 2018-10-26 安徽美芝精密制造有限公司 The method, apparatus and electric machine control system of single resistance detection DC bus current
CN112260601A (en) * 2020-09-29 2021-01-22 广东工业大学 A Phase Current Reconstruction Method of Single Resistor Sampling Permanent Magnet Synchronous Motors Running at Low Speed
CN112994578A (en) * 2021-03-05 2021-06-18 苏州士林电机有限公司 Phase current single-resistor sampling reconstruction optimization method for frequency converter

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6290028B2 (en) * 2014-07-30 2018-03-07 株式会社東芝 Motor control device, 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
JP7447636B2 (en) * 2020-03-31 2024-03-12 株式会社富士通ゼネラル motor control device
CN113687126B (en) * 2021-07-22 2024-08-23 上海新时达电气股份有限公司 Single-resistor current sampling method and device thereof
CN114598214A (en) * 2022-03-09 2022-06-07 威灵(芜湖)电机制造有限公司 Motor rotor position observation method, device, rotor position observer and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127500A (en) * 2006-08-17 2008-02-20 上海日立电器有限公司 DC frequency conversion controller and its method for controlling speed of permanent magnetic synchronous electromotor rotor
JP2010148301A (en) * 2008-12-22 2010-07-01 Hitachi Ltd Controller of three-phase ac motor and its method of control
CN101769953A (en) * 2010-01-14 2010-07-07 东元总合科技(杭州)有限公司 Phase current detection method of motor based on direct-current bus current
US20130289934A1 (en) * 2012-04-27 2013-10-31 The Board Of Trustees Of The University Of Illinois Angle-based speed estimation of alternating current machines utilizing a median filter
CN105450094A (en) * 2015-12-16 2016-03-30 四川长虹电器股份有限公司 Current sampling method and air conditioning device
CN108712124A (en) * 2018-06-20 2018-10-26 安徽美芝精密制造有限公司 The method, apparatus and electric machine control system of single resistance detection DC bus current
CN112260601A (en) * 2020-09-29 2021-01-22 广东工业大学 A Phase Current Reconstruction Method of Single Resistor Sampling Permanent Magnet Synchronous Motors Running at Low Speed
CN112994578A (en) * 2021-03-05 2021-06-18 苏州士林电机有限公司 Phase current single-resistor sampling reconstruction optimization method for frequency converter

Cited By (1)

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

Also Published As

Publication number Publication date
WO2023169275A1 (en) 2023-09-14

Similar Documents

Publication Publication Date Title
CN108964547B (en) Fault-tolerant control method for two-phase open-circuit fault of five-phase permanent magnet synchronous motor
US8519649B2 (en) Control device of a synchronous motor
US8810177B2 (en) System and method for implementing a remedial electrical short
CN110445443A (en) The control method and control system of internal permanent magnet synchronous motor position-sensor-free
US20240322715A1 (en) Single-resistor measurement method, motor control method, controller, and control system
CN114710073B (en) Detection method of rotor initial position and speed at high speed of permanent magnet synchronous motor
CN110677088A (en) Control method and control device of permanent magnet synchronous motor
CN114598214A (en) Motor rotor position observation method, device, rotor position observer and medium
CN113972868A (en) Permanent magnet synchronous motor starting control method and device and permanent magnet synchronous motor
CN104521131B (en) Synchronous electric motor driving system
WO2023169268A1 (en) Motor rotor position observation methods and devices, rotor position observer and medium
US20240063739A1 (en) Control method for fan, fan, household appliance, and computer-readable storage medium
CN116085295B (en) Method and device for detecting starting state of compressor and centrifugal compressor
CN113179064B (en) Inductance identification method based on current ripple
CN115021629B (en) Permanent magnet motor current one-step compensation reconstruction method based on fixed sampling interval
CN114513151A (en) Ice-breaking starting method and system for hydrogen circulating pump
JP2010163872A (en) Start/stop control device for internal combustion engine and control device for rotary machine
CN114665774B (en) Current sampling method, device and storage medium
CN118554818A (en) Motor control method, motor control device, motor, compressor and storage medium
CN115333417B (en) Method, system and medium for controlling weakening of composite weakening permanent magnet synchronous motor
CN118573073B (en) Low-noise single-resistor sampling method and device and three-phase motor
CN118694216A (en) A method, device and storage medium for starting a permanent magnet synchronous motor with load
CN118984089A (en) A compensation control method, device, equipment and product
CN112640290B (en) Motor control device
CN116232161A (en) A non-inductive FOC high-speed motor control device and method based on MT32F006

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination