CN113541569B - Motor drive device, method, air conditioner, and computer-readable storage medium - Google Patents

Motor drive device, method, air conditioner, and computer-readable storage medium Download PDF

Info

Publication number
CN113541569B
CN113541569B CN202110767225.XA CN202110767225A CN113541569B CN 113541569 B CN113541569 B CN 113541569B CN 202110767225 A CN202110767225 A CN 202110767225A CN 113541569 B CN113541569 B CN 113541569B
Authority
CN
China
Prior art keywords
phase
switch
carrier
carrier wave
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.)
Active
Application number
CN202110767225.XA
Other languages
Chinese (zh)
Other versions
CN113541569A (en
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.)
Aux Air Conditioning Co Ltd
Ningbo Aux Electric Co Ltd
Original Assignee
Aux Air Conditioning Co Ltd
Ningbo Aux Electric 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 Aux Air Conditioning Co Ltd, Ningbo Aux Electric Co Ltd filed Critical Aux Air Conditioning Co Ltd
Priority to CN202110767225.XA priority Critical patent/CN113541569B/en
Publication of CN113541569A publication Critical patent/CN113541569A/en
Application granted granted Critical
Publication of CN113541569B publication Critical patent/CN113541569B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H02P27/00Arrangements or methods for the control of AC motors characterised by the kind of supply voltage
    • H02P27/04Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage
    • H02P27/06Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage using DC to AC converters or inverters
    • H02P27/08Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage using DC to AC converters or inverters with pulse width modulation
    • H02P27/085Arrangements or methods for the control of AC motors characterised by the kind of supply voltage using variable-frequency supply voltage, e.g. inverter or converter supply voltage using DC to AC converters or inverters with pulse width modulation wherein the PWM mode is adapted on the running conditions of the motor, e.g. the switching frequency
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/88Electrical aspects, e.g. circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Inverter Devices (AREA)

Abstract

The invention provides a motor driving device, a method, an air conditioner and a computer readable storage medium, wherein the motor driving device comprises a preceding stage processing circuit and a three-phase inverter circuit, the preceding stage processing circuit is used for inputting alternating current output by a power supply into the three-phase inverter circuit, the connection point of an upper bridge arm switching element and a lower bridge arm switching element of each phase of the three-phase inverter circuit is connected with a motor, and the motor driving device also comprises a control device which is used for counteracting conduction interference and leakage current caused by the change of phase voltage of another phase by using the change of the phase voltage of one phase of the motor. The invention changes the switching timing and pulse width of the upper and lower bridge arm switching elements of each phase according to the current direction detected by the current detection device by arranging the current detection device in the driving loop, controls the waveform of one-phase voltage applied to the motor, can effectively compensate the voltage deviation caused by dead time, eliminates current distortion, and simultaneously reduces conduction interference and leakage current generated in the switching process of the other phase by using the change of the one-phase voltage.

Description

电机驱动装置、方法、空调及计算机可读存储介质Motor drive device, method, air conditioner, and computer-readable storage medium

技术领域technical field

本发明涉及开关电源领域,具体而言,涉及电机驱动装置、方法、空调及计算机可读存储介质。The present invention relates to the field of switching power supplies, and in particular, to a motor driving device, a method, an air conditioner, and a computer-readable storage medium.

背景技术Background technique

一直以来,由于电机驱动装置内设置的转换器和逆变器在做开关动作时产生的电压或电流的急剧变化,有电容流向接地的高频漏电流产生,且会在开关电源的输入和输出端产生很强的传导干扰,漏电流和传导干扰有时会成为空调中设备故障或误判的原因。In the past, due to the rapid changes in voltage or current generated by the converter and inverter installed in the motor drive device during switching operations, high-frequency leakage current from the capacitor to the ground is generated, and the input and output of the switching power supply are generated. The terminal produces strong conduction interference, and leakage current and conduction interference sometimes become the cause of equipment failure or misjudgment in the air conditioner.

日本专利特开平10-094244公开了一种共模干扰消除器,采用星形连接电容器检测电压型PWM逆变器的半导体元件在开关操作期间产生的共模电压,通过开关功率半导体元件进行功率转换,控制电压源由上述检测到的共模电压产生与共模电压大小相同、极性相反的电压,共模变压器将该控制电压源产生的电压叠加在逆变器的输出端从而抵消共模电压,采用该设置需要追加设置较为复杂的回路,成本较高。Japanese Patent Laid-Open No. 10-094244 discloses a common-mode interference canceller, which uses a star-connected capacitor to detect the common-mode voltage generated by the semiconductor elements of the voltage-type PWM inverter during switching operations, and performs power conversion by switching the power semiconductor elements. , the control voltage source generates a voltage with the same magnitude and opposite polarity as the common-mode voltage from the detected common-mode voltage, and the common-mode transformer superimposes the voltage generated by the control voltage source on the output end of the inverter to offset the common-mode voltage, Adopting this setting requires additionally setting up a more complicated loop, and the cost is high.

日本专利特开平9-233837公开了一种逆变器驱动负载的逆变装置、防漏电装置及防漏电方法,所述逆变装置设置有与主体负荷的泄漏阻抗等价的阻抗,给该阻抗提供电压的开关部,驱动开关部的驱动部,开关部使用主体转换器的输出端作为电源,通过开关单元,将由逆变器的开关动作产生的各相的对地间电压和逆相位的电压施加到与负荷泄漏阻抗等价的等价阻抗上,消除了由电力转换设备的开关动作产生的漏电流,采用该设置需要追加设置等价阻抗、开关部、驱动部等元器件,对回路的成本影响也较大。Japanese Patent Laid-Open No. 9-233837 discloses an inverter device, an anti-leakage device and an anti-leakage method for an inverter to drive a load. The inverter device is provided with an impedance equivalent to the leakage impedance of the main load. The switch unit that supplies the voltage, the drive unit that drives the switch unit, the switch unit uses the output terminal of the main converter as a power source, and through the switch unit, the voltage between the ground and the reverse phase of each phase generated by the switching operation of the inverter is converted. It is applied to the equivalent impedance equivalent to the load leakage impedance, and the leakage current generated by the switching operation of the power conversion equipment is eliminated. With this setting, it is necessary to add components such as the equivalent impedance, the switching part, and the driving part. The cost impact is also greater.

另外,在电机驱动装置内的逆变器通常由并联有环流二极管的开关元件构成,由上桥臂侧的开关元件和下桥臂侧的开关元件构成的串联电路分三相,这些串联回路中的上桥臂和下桥臂的相互连接点连接到负荷,由于上桥臂和下桥臂的开关元件串联连接,如果两个开关元件在短时间内同时接通,将会发生短路而破坏开关元件,因此,在电机驱动过程中设置了死区时间,以便在各开关元件接通时发生延迟,在该情况下,当相电流为正极性时,连接到电源负侧的二极管导通,在死区时间内,逆变器的输出电压变为负极性,输出电压为正极性的时间变短,因而导致输出电压存在偏差。In addition, the inverter in the motor drive device is usually composed of a switching element connected in parallel with a circulating diode, and the series circuit composed of the switching element on the upper arm side and the switching element on the lower arm side is divided into three phases. The mutual connection point of the upper arm and the lower arm is connected to the load. Since the switching elements of the upper arm and the lower arm are connected in series, if the two switching elements are turned on at the same time in a short period of time, a short circuit will occur and the switch will be destroyed. elements, therefore, a dead time is provided during motor drive so that a delay occurs when each switching element is turned on, in which case the diode connected to the negative side of the power supply conducts when the phase current is of positive polarity, at During the dead time, the output voltage of the inverter becomes negative, and the time when the output voltage is positive becomes shorter, resulting in a deviation of the output voltage.

日本专利特开平3-117369公开了一种逆变器电压控制装置,包括将逆变器的输出电压和PWM控制电压进行比较,修正PWM控制信号以补偿逆变器桥的无效时间的无效时间补偿回路,用于负荷电流补偿的电路,该负荷电流补偿电路检测逆变器的输出电流,并修正PWM控制信号,以补偿由负荷电流引起的主电路的电压下降,在该方案中,虽然可以补偿由逆变器的死区时间引起的电流失真,但由于输出电压的脉冲定时没有同步,伴随开关的干扰发生很大,不能降低来自逆变器的干扰或漏电流。Japanese Patent Laid-Open No. 3-117369 discloses an inverter voltage control device, including an inactive time compensation that compares the output voltage of the inverter with a PWM control voltage, and corrects the PWM control signal to compensate for the inactive time of the inverter bridge The loop, a circuit for load current compensation, the load current compensation circuit detects the output current of the inverter and corrects the PWM control signal to compensate for the voltage drop of the main circuit caused by the load current. In this scheme, although it can be compensated The current is distorted by the dead time of the inverter, but because the pulse timing of the output voltage is not synchronized, the interference accompanying the switch occurs greatly, and the interference or leakage current from the inverter cannot be reduced.

有鉴于此,特提出本发明。In view of this, the present invention is proposed.

发明内容SUMMARY OF THE INVENTION

本发明解决的问题是,现有技术中,为了解决电机驱动时的传导干扰或漏电流,需要额外设置回路,成本增加,以及电机驱动中死区时间的设置会导致输出电压存在偏差。The problem solved by the present invention is that, in the prior art, in order to solve the conduction interference or leakage current when the motor is driven, an additional loop needs to be set up, which increases the cost, and the setting of the dead time in the motor drive will lead to deviation of the output voltage.

为解决上述问题,本发明提供一种电机驱动装置,一种电机驱动装置,用于驱动电机,所述电机为三相电机,其特征在于,包括前级处理电路及三相逆变器电路,所述前级处理电路用于将电源输出的交流电后输入三相逆变器电路,所述三相逆变器电路包括上桥臂电源线及下桥臂电源线,以及在上桥臂电源线及下桥臂电源线之间,按各相串联方式连接的上桥臂开关元件和下桥臂开关元件,各相的上桥臂开关元件与下桥臂开关元件的连接点连接电机,还包括控制装置,所述控制装置用于控制各相的上桥臂开关元件和下桥臂开关元件的开关定时,用所述电机一相相电压的变化抵消另一相的相电压变化导致的传导干扰和漏电流。In order to solve the above problems, the present invention provides a motor drive device, a motor drive device for driving a motor, and the motor is a three-phase motor, which is characterized in that it includes a pre-processing circuit and a three-phase inverter circuit, The pre-processing circuit is used to input the AC power output by the power supply into the three-phase inverter circuit, and the three-phase inverter circuit includes the power supply line of the upper bridge arm and the power supply line of the lower bridge arm, and the power supply line of the upper bridge arm. and the lower bridge arm power line, the upper bridge arm switch element and the lower bridge arm switch element connected in series in each phase, the connection point between the upper bridge arm switch element and the lower bridge arm switch element of each phase is connected to the motor, and also includes A control device, the control device is used to control the switching timing of the upper arm switching element and the lower arm switching element of each phase, and use the variation of the phase voltage of one phase of the motor to offset the conduction disturbance caused by the variation of the phase voltage of the other phase and leakage current.

所述电机一相相电压的变化抵消另一相的相电压变化导致的传导干扰和漏电流具体是指,在一个载波周期Tc内,至少有一个时刻,不同的两相之间的上桥臂开关元件或下桥臂开关元件同时进行相反的开关动作,相反的开关动作是指,上桥臂或者下桥臂中,一相的开关元件打开,另一相的开关元件关闭,该技术方案可以显著地降低开关元件在开关过程中产生的传导干扰和电机的漏电流,该技术方案与电流的方向无关,仅与所述上桥臂开关元件和下桥臂开关元件的开关定时有关。The variation of the phase-to-phase voltage of one phase of the motor offsets the conducted interference and leakage current caused by the variation of the phase-to-phase voltage of the other phase. The switching element or the switching element of the lower bridge arm performs opposite switching actions at the same time. The opposite switching action means that in the upper bridge arm or the lower bridge arm, the switching element of one phase is turned on, and the switching element of the other phase is turned off. This technical solution can The conduction interference and the leakage current of the motor generated by the switching element during the switching process are significantly reduced. The technical solution has nothing to do with the direction of the current, but is only related to the switching timing of the upper-side switching element and the lower-side switching element.

进一步的,在所述下桥臂电源线和所述前级处理电路之间设置有电流检测装置,所述电流检测装置用于检测各相输出的电流,所述控制装置根据所述电流检测装置检测到的电流方向,控制各相的上桥臂开关元件和下桥臂开关元件的脉冲宽度及时间,补偿因各相的上桥臂开关元件和/或下桥臂开关元件的死区时间而产生的电压偏移。Further, a current detection device is provided between the power line of the lower arm and the pre-processing circuit, the current detection device is used to detect the current output by each phase, and the control device is based on the current detection device. The detected current direction controls the pulse width and time of the upper and lower arm switching elements of each phase, and compensates for the delay caused by the dead time of the upper and/or lower arm switching elements of each phase. resulting voltage offset.

通过调整所述各相的上桥臂开关元件和下桥臂开关元件的脉冲宽度及时间,改变各相电流流向不同时的电压输出情况,当电流方向为负时,在死区时间的输出电压为高电压侧的电压,当电流方向为正时,在死区时间的输出电压为低电压侧的电压,各相的输出的平均电压并不会根据电流方向的变化而有所变化,即该设置对于因死区时间而产生的电压偏移进行补偿,消除了现有技术中死区时间导致的电流失真。By adjusting the pulse width and time of the upper arm switching element and the lower arm switching element of each phase, the voltage output of each phase when the current flows in different directions is changed. When the current direction is negative, the output voltage in the dead time is the voltage on the high-voltage side. When the current direction is positive, the output voltage at the dead time is the voltage on the low-voltage side, and the average output voltage of each phase does not change according to the current direction. The setting compensates for voltage offset due to dead time, eliminating current distortion caused by dead time in the prior art.

进一步的,所述控制装置包括:Further, the control device includes:

三相输出电压指令生成模块,用于生成三相电压指令;所述三相电压指令包括U相电压指令、V相电压指令和W相电压指令;a three-phase output voltage command generation module, configured to generate a three-phase voltage command; the three-phase voltage command includes a U-phase voltage command, a V-phase voltage command and a W-phase voltage command;

电流方向检测模块,用于根据所述电流检测装置检测到的电流判断电流的流向,并将电流流向判断结果输入载波选择模块;a current direction detection module for judging the current flow direction according to the current detected by the current detection device, and inputting the current flow direction judgment result into the carrier selection module;

锯波生成模块,用于生成若干组锯形载波,若干组所述锯波为脉冲输出的载波;a saw wave generation module, used to generate several groups of saw waves, and the several groups of the saw waves are the carriers of pulse output;

载波选择模块,用于根据电流方向检测模块的判断结果从锯波生成模块输出的若干组锯波中选择输入各相的载波;The carrier selection module is used to select and input the carrier of each phase from several groups of saw waves output by the saw wave generation module according to the judgment result of the current direction detection module;

比较器模块,用于比较三相电压指令和载波,并根据比较结果输出开关元件的驱动脉冲;The comparator module is used to compare the three-phase voltage command and the carrier wave, and output the driving pulse of the switching element according to the comparison result;

开关元件驱动模块,用于根据比较器模块输出的驱动脉冲驱动控制开关元件的打开或关闭。The switching element driving module is used for driving and controlling the switching element to be turned on or off according to the driving pulse output by the comparator module.

通过上述设置可以实现在同一时刻、同一桥臂中两相之间的开关元件做相反的动作,相互抵消开关动作时产生的传导干扰和漏电流,将整体的传导干扰和漏电流降低了一半左右,起到了显著的效果,同时还可以实现对于因死区时间而产生的电压偏移进行补偿,消除了现有技术中死区时间导致的电流失真,无论电机中流动的电流的方向如何,都能够输出不受各相的上下桥臂的开关产生的死区时间影响的输出电压。Through the above settings, the switching elements between the two phases in the same bridge arm can perform opposite actions at the same time, cancel each other out the conduction interference and leakage current generated during the switching action, and reduce the overall conduction interference and leakage current by about half , has a significant effect, and can also compensate for the voltage offset caused by the dead time, eliminating the current distortion caused by the dead time in the prior art, regardless of the direction of the current flowing in the motor. It is possible to output an output voltage that is not affected by the dead time caused by the switching of the upper and lower arms of each phase.

本发明还公开了一种电机驱动方法,用于驱动电机,所述电机为三相电机,其特征在于,所述驱动方法包括:控制电机各相的上桥臂开关元件和下桥臂开关元件的开关定时,在一个载波周期Tc内,至少有一个时刻,电机中不同的两相之间的上桥臂开关元件或下桥臂开关元件同时进行相反的开关动作。The invention also discloses a motor driving method for driving the motor, wherein the motor is a three-phase motor, and is characterized in that the driving method comprises: controlling an upper arm switch element and a lower arm switch element of each phase of the motor The switching timing of , in one carrier cycle Tc, at least one moment, the upper arm switching element or the lower arm switching element between different two phases in the motor simultaneously perform opposite switching actions.

该技术方案可以显著地降低开关元件在开关过程中产生的传导干扰和电机的漏电流。The technical solution can significantly reduce the conduction interference generated by the switching element during the switching process and the leakage current of the motor.

进一步的,检测电机各相电流方向,根据电流方向控制各相的上桥臂开关元件和下桥臂开关元件的脉冲宽度及时间,补偿因各相的上桥臂开关元件和/或下桥臂开关元件的死区时间而产生的电压偏移。Further, detect the current direction of each phase of the motor, control the pulse width and time of the upper arm switching element and the lower arm switching element of each phase according to the current direction, and compensate for the upper arm switching element and/or lower arm switching element of each phase. Voltage offset due to dead time of switching elements.

通过调整所述各相的上桥臂开关元件和下桥臂开关元件的脉冲宽度及时间,改变各相电流流向不同时的电压输出情况,当U相、V相电流方向均为负时,在死区时间的输出电压为高电压侧的电压,当U相、V相电流方向均为正时,在死区时间的输出电压为低电压侧的电压,各相的输出的平均电压并不会根据电流方向的变化而有所变化,即该设置对于因死区时间而产生的电压偏移进行补偿,消除了现有技术中死区时间导致的电流失真。By adjusting the pulse width and time of the upper arm switching element and the lower arm switching element of each phase, the voltage output when each phase current flows in different directions is changed. When the U-phase and V-phase current directions are both negative, the The output voltage at the dead time is the voltage on the high voltage side. When the U-phase and V-phase current directions are both positive, the output voltage at the dead time is the voltage on the low voltage side, and the average output voltage of each phase does not change. It varies according to the change of the current direction, that is, the setting compensates for the voltage offset caused by the dead time, which eliminates the current distortion caused by the dead time in the prior art.

进一步的,根据载波的变化控制各相的上桥臂开关元件和下桥臂开关元件的开关定时,或,根据电流方向选择各相的上桥臂开关元件和下桥臂开关元件驱动脉冲所需的载波,并根据载波控制各相的上桥臂开关元件和下桥臂开关元件脉冲宽度及时间。Further, control the switching timing of the upper arm switching element and the lower arm switching element of each phase according to the change of the carrier wave, or select the driving pulse required for the upper arm switching element and the lower arm switching element of each phase according to the current direction. and control the pulse width and time of the upper bridge arm switching element and the lower bridge arm switching element of each phase according to the carrier wave.

根据载波控制开关定时和/或脉冲宽度简单有效,对成本的影响有限。Controlling switch timing and/or pulse width based on the carrier is simple and effective with limited impact on cost.

进一步的,所述载波为锯形载波,包括:Further, the carrier is a saw-shaped carrier, including:

第1载波,所述第1载波为在一个载波周期Tc相对于时间具有正倾斜的锯齿波;the first carrier wave, the first carrier wave is a sawtooth wave with a positive slope with respect to time in one carrier cycle Tc;

第2载波,所述第2载波为在一个载波周期Tc相对于时间具有负倾斜的锯齿波;a second carrier wave, the second carrier wave is a sawtooth wave having a negative slope with respect to time in one carrier cycle Tc;

第3载波,所述第3载波是相对于第1载波将时间提前了死区时间的锯齿波;a third carrier, the third carrier is a sawtooth wave whose time is advanced by the dead time relative to the first carrier;

第4载波,所述第4载波是相对于第2载波将时间提前了死区时间的锯齿波;the fourth carrier, the fourth carrier is a sawtooth wave whose time is advanced by the dead time relative to the second carrier;

第5载波,所述第5载波是相对于第1载波将时间延迟了死区时间的锯齿波;a fifth carrier, the fifth carrier is a sawtooth wave whose time is delayed by the dead time relative to the first carrier;

第6载波,所述第6载波是相对于第2载波将时间延迟了死区时间的锯齿波。The sixth carrier is a sawtooth wave whose time is delayed by the dead time with respect to the second carrier.

通过多个载波的变化,可以控制电机各相的脉冲宽度和/或开关定时,可以有效地降低开关元件进行开关动作时的传导干扰和漏电流,也可以降低死区时间产生的输出电压偏差,消除电流失真。Through the change of multiple carriers, the pulse width and/or switching timing of each phase of the motor can be controlled, which can effectively reduce the conduction interference and leakage current when the switching element performs switching operations, and can also reduce the output voltage deviation caused by dead time. Eliminate current distortion.

进一步的,所述电机包括U相、V相、W相,U相、V相、W相上桥臂依次设置第一开关、第三开关、第五开关,下桥臂依次设置第二开关、第四开关、第六开关,选择第6载波作为第一开关的驱动脉冲载波、第2载波作为第二开关的驱动脉冲载波;选择第3载波作为第三开关的驱动脉冲载波、第1载波作为第四开关的驱动脉冲载波。Further, the motor includes U-phase, V-phase, and W-phase. The upper bridge arms of U-phase, V-phase and W-phase are sequentially provided with a first switch, a third switch, and a fifth switch, and the lower bridge arms are sequentially provided with a second switch, The fourth switch and the sixth switch select the sixth carrier as the driving pulse carrier of the first switch, and the second carrier as the driving pulse carrier of the second switch; select the third carrier as the driving pulse carrier of the third switch, and the first carrier as the driving pulse carrier of the third switch. The driving pulse carrier of the fourth switch.

该设置实现了在同一时刻、同一桥臂中两相之间的开关元件做相反的开关动作,相互抵消了开关动作时产生的传导干扰和漏电流。The setting realizes that the switching elements between the two phases in the same bridge arm perform opposite switching actions at the same time, and mutually cancel the conduction interference and leakage current generated during the switching action.

进一步的,所述电机包括U相、V相、W相,U相、V相、W相上桥臂依次设置第一开关、第三开关、第五开关,下桥臂依次设置第二开关、第四开关、第六开关,当U相、V相电流方向均为正时,选择第2载波作为第一开关的驱动脉冲载波、第4载波作为第二开关的驱动脉冲载波,选择第1载波作为第三开关的驱动脉冲载波、第5载波作为第四开关的驱动脉冲载波;当U相、V相电流方向均为负时,选择第6载波作为第一开关的驱动脉冲载波、第2载波作为第二开关的驱动脉冲载波,选择第3载波作为第三开关的驱动脉冲载波、第1载波作为第四开关的驱动脉冲载波。Further, the motor includes U-phase, V-phase, and W-phase. The upper bridge arms of U-phase, V-phase and W-phase are sequentially provided with a first switch, a third switch, and a fifth switch, and the lower bridge arms are sequentially provided with a second switch, The fourth switch and the sixth switch, when the U-phase and V-phase current directions are both positive, select the second carrier as the driving pulse carrier of the first switch, the fourth carrier as the driving pulse carrier of the second switch, and select the first carrier As the driving pulse carrier of the third switch, the fifth carrier is used as the driving pulse carrier of the fourth switch; when the U-phase and V-phase current directions are both negative, the sixth carrier is selected as the driving pulse carrier and the second carrier of the first switch. As the driving pulse carrier of the second switch, the third carrier is selected as the driving pulse carrier of the third switch, and the first carrier is selected as the driving pulse carrier of the fourth switch.

该设置对于因死区时间而产生的电压偏移进行补偿,消除了现有技术中死区时间导致的电流失真。This setting compensates for the voltage offset due to dead time, eliminating the current distortion caused by dead time in the prior art.

本发明还公开了一种空调,包括存储有计算机程序的计算机可读存储介质和处理器,所述计算机程序被所述处理器读取并运行时,实现如上所述的电机驱动方法。The present invention also discloses an air conditioner, comprising a computer-readable storage medium storing a computer program and a processor, and when the computer program is read and run by the processor, the above-mentioned motor driving method is implemented.

所述空调与上述电机驱动方法相对于现有技术所具有的优势相同,在此不再赘述。The air conditioner and the above-mentioned motor driving method have the same advantages over the prior art, which will not be repeated here.

本发明还公开了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器读取并运行时,实现如上所述的电机驱动方法。The present invention also discloses a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is read and executed by a processor, the above-mentioned motor driving method is implemented.

相对于现有技术,本发明所述的电机驱动装置、方法、空调及计算机可读存储介质具有以下优势:Compared with the prior art, the motor drive device, method, air conditioner and computer-readable storage medium of the present invention have the following advantages:

本发明通过在驱动回路中设置电流检测装置,根据电流检测装置检测到的电流方向,变更各相的上下桥臂开关元件的开关定时,使用一相相电压的变化降低另一相开关过程产生的传导干扰及漏电流,另外,根据电流检测装置检测到的电流方向,变更各相的上下桥臂开关元件的开关定时以及脉冲宽度,可以有效地补偿死区时间引起的电压偏移,消除电流失真,本发明提供的电机驱动装置结构简单,仅需增设电流检测装置即可,在降低了消除传导干扰和漏电流成本的同时,消除了死区时间带来的电压偏移及电流失真本发明结构简单,对现有逆变器电路的变动较小,仅增加了电流检测及载波选择模块,对成本影响较小。In the present invention, a current detection device is arranged in the driving circuit, and according to the current direction detected by the current detection device, the switching timing of the upper and lower bridge arm switching elements of each phase is changed, and the change of the phase voltage of one phase is used to reduce the voltage generated by the switching process of the other phase. Conduction interference and leakage current, in addition, according to the current direction detected by the current detection device, the switching timing and pulse width of the upper and lower bridge arm switching elements of each phase can be changed, which can effectively compensate for the voltage offset caused by dead time and eliminate current distortion. The motor drive device provided by the present invention has a simple structure, and only needs to add a current detection device, which not only reduces the cost of eliminating conduction interference and leakage current, but also eliminates the voltage offset and current distortion caused by dead time. The structure of the present invention Simple, the change to the existing inverter circuit is small, only the current detection and carrier selection modules are added, and the impact on the cost is small.

附图说明Description of drawings

图1为本发明实施例所述的电机驱动装置的结构示意图;FIG. 1 is a schematic structural diagram of a motor drive device according to an embodiment of the present invention;

图2为现有技术中电机驱动装置逆变电路上下桥臂开关元件的开关控制装置的结构示意图;2 is a schematic structural diagram of a switch control device for switching elements of upper and lower bridge arms of an inverter circuit of a motor drive device in the prior art;

图3为现有技术中电机驱动装置逆变电路上下桥臂开关元件的开关时序图;3 is a switching sequence diagram of the switching elements of the upper and lower bridge arms of the inverter circuit of the motor drive device in the prior art;

图4为现有技术中电机驱动装置U相、V相的端子电压相对于电流方向的推移时序图;FIG. 4 is a timing chart of the transition of the terminal voltage of the U-phase and the V-phase of the motor drive device with respect to the current direction in the prior art;

图5为本发明中控制电机驱动装置逆变器回路上下桥臂开关元件的开关控制装置的结构示意图;5 is a schematic structural diagram of the switch control device for controlling the switch elements of the upper and lower bridge arms of the inverter circuit of the motor drive device according to the present invention;

图6为本发明中电机驱动装置逆变电路上下桥臂开关元件的开关时序图;6 is a switching sequence diagram of the switching elements of the upper and lower bridge arms of the inverter circuit of the motor drive device in the present invention;

图7为现有技术中的电机驱动装置的三相开关波形和传导干扰、漏电流检测结果的波形示意图;7 is a schematic diagram of the waveforms of the three-phase switching waveform and the conduction interference and leakage current detection results of the motor drive device in the prior art;

图8为本发明中的电机驱动装置的三相开关波形和传导干扰、漏电流的检测结果的波形示意图;8 is a schematic diagram of waveforms of three-phase switching waveforms and detection results of conduction interference and leakage current of the motor drive device of the present invention;

图9为本发明中U相电流为负、V相电流为负时,电机驱动装置逆变电路上下桥臂开关元件的开关时序图;9 is a switching timing diagram of the switching elements of the upper and lower bridge arms of the inverter circuit of the motor drive device when the U-phase current is negative and the V-phase current is negative in the present invention;

图10为本发明中U相电流为正、V相电流为正时,电机驱动装置逆变电路上下桥臂开关元件的开关时序图。10 is a switching timing diagram of the switching elements of the upper and lower bridge arms of the inverter circuit of the motor drive device when the U-phase current is positive and the V-phase current is positive in the present invention.

附图标记说明:Description of reference numbers:

1-交流电源;2-整流回路;3-平滑电容;4a-第一开关;4b-第一回流二极管;5a-第二开关;5b-第二回流二极管;6a-第三开关;6b-第三回流二极管;7a-第四开关;7b-第四回流二极管;8a-第五开关;8b-第五回流二极管;9a-第六开关;9b-第六回流二极管;10-电机;11-控制装置;12-电流检测装置;20-三角载波生成模块;21-三相电压指令生成模块;22a-第一比较器;22b-第二比较器;22c-第三比较器;22d-第四比较器;22e-第五比较器;22f-第六比较器;23a-第一驱动器;23b-第二驱动器;23c-第三驱动器;23d-第四驱动器;23e-第五驱动器;23f-第六驱动器;30-锯波生成模块;31-载波选择模块;32-电流方向检测模块;33-三相输出电压指令生成模块;34a-第七比较器;34b-第八比较器;34c-第九比较器;34d-第十比较器;34e-第十一比较器;34f-第十二比较器;35a-第七驱动器;35b-第八驱动器;35c-第九驱动器;35d-第十驱动器;35e-第十一驱动器;35f-第十二驱动器。1-AC power supply; 2-rectification loop; 3-smoothing capacitor; 4a-first switch; 4b-first return diode; 5a-second switch; 5b-second return diode; 6a-third switch; 6b-th Three return diodes; 7a-fourth switch; 7b-fourth return diode; 8a-fifth switch; 8b-fifth return diode; 9a-sixth switch; 9b-sixth return diode; 10-motor; 11-control device; 12-current detection device; 20-triangle carrier generation module; 21-three-phase voltage command generation module; 22a-first comparator; 22b-second comparator; 22c-third comparator; 22d-fourth comparison 22e-fifth comparator; 22f-sixth comparator; 23a-first driver; 23b-second driver; 23c-third driver; 23d-fourth driver; 23e-fifth driver; 23f-sixth Driver; 30-saw wave generation module; 31-carrier selection module; 32-current direction detection module; 33-three-phase output voltage command generation module; 34a-seventh comparator; 34b-eighth comparator; 34c-ninth comparator; 34d-tenth comparator; 34e-eleventh comparator; 34f-twelfth comparator; 35a-seventh driver; 35b-eighth driver; 35c-ninth driver; 35d-tenth driver; 35e - eleventh drive; 35f - twelfth drive.

具体实施方式Detailed ways

为使本发明目的、技术方案和优点更加清楚,下面将结合附图及实施例,对本发明进行进一步详细说明。应当理解,所描述的实施例是本发明一部分实施例,而不是全部的实施例。此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the described embodiments are some, but not all, of the embodiments of the present invention. The specific embodiments described herein are only used to explain the present invention, and are not intended to limit the present invention. It should be noted that the embodiments of the present invention and the features of the embodiments may be combined with each other under the condition of no conflict.

现有技术中,三相逆变电路上下桥臂开关元件包括第一开关4a及与其并联设置的第一回流二极管4b、第二开关5a及与其并联设置的第二回流二极管5b、第三开关6a及与其并联设置的第三回流二极管6b、第四开关7a及与其并联设置的第四回流二极管7b、第五开关8a及与其并联设置的第五回流二极管8b、第六开关9a及与其并联设置的第六回流二极管9b;其中,所述第一开关4a、第一回流二极管4b、第三开关6a、第三回流二极管6b、第五开关8a、第五回流二极管8b构成上桥臂开关元件,第二开关5a、第二回流二极管5b、第四开关7a、第四回流二极管7b、第六开关9a、第六回流二极管9b构成下桥臂开关元件,所述第一开关4a、第二开关5a的串联连接点与电机10的U相连接,所述第三开关6a、第四开关7a的串联连接点与电机10的V相连接,所述第五开关8a、第六开关9a的串联连接点与电机10的W相连接,逆变电路中上下桥臂开关元件的控制装置结构如图2所示,包括:In the prior art, the switching elements of the upper and lower arms of the three-phase inverter circuit include a first switch 4a and a first return diode 4b arranged in parallel with it, a second switch 5a and a second return diode 5b arranged in parallel with it, and a third switch 6a. and the third return diode 6b arranged in parallel with it, the fourth switch 7a and the fourth return diode 7b arranged in parallel with it, the fifth switch 8a and the fifth return diode 8b arranged in parallel with it, the sixth switch 9a and its parallel arrangement The sixth freewheeling diode 9b; wherein, the first switch 4a, the first freewheeling diode 4b, the third switch 6a, the third freewheeling diode 6b, the fifth switch 8a, and the fifth freewheeling diode 8b constitute the upper bridge arm switching element, and the The two switches 5a, the second freewheeling diode 5b, the fourth switch 7a, the fourth freewheeling diode 7b, the sixth switch 9a, and the sixth freewheeling diode 9b constitute the lower arm switching element. The series connection point is connected to the U phase of the motor 10, the series connection point of the third switch 6a and the fourth switch 7a is connected to the V phase of the motor 10, and the series connection point of the fifth switch 8a and the sixth switch 9a is connected to the V phase of the motor 10. The W phase of the motor 10 is connected, and the control device structure of the upper and lower bridge arm switching elements in the inverter circuit is shown in Figure 2, including:

三相电压指令生成模块21,用于生成三相交流电压指令;所述三相电压指令包括U相电压指令、V相电压指令和W相电压指令;The three-phase voltage command generation module 21 is used to generate a three-phase AC voltage command; the three-phase voltage command includes a U-phase voltage command, a V-phase voltage command and a W-phase voltage command;

三角载波生成模块20,用于生成三角波,所述三角波为脉冲输出的载波;A triangular carrier generation module 20 is used to generate a triangular wave, and the triangular wave is a carrier wave of pulse output;

比较器模块,用于比较三相电压指令和载波,并根据比较结果输出开关元件的驱动脉冲;The comparator module is used to compare the three-phase voltage command and the carrier wave, and output the driving pulse of the switching element according to the comparison result;

开关元件驱动模块,用于根据比较器模块输出的驱动脉冲驱动控制开关元件的打开或关闭;The switching element driving module is used to drive and control the opening or closing of the switching element according to the driving pulse output by the comparator module;

其中,所述比较器模块包括第一比较器22a、第二比较器22b、第三比较器22c、第四比较器22d、第五比较器22e、第六比较器22f;开关元件驱动模块包括第一驱动器23a、第二驱动器23b、第三驱动器23c、第四驱动器23d、第五驱动器23e、第六驱动器23f;所述第一比较器22a、第一驱动器23a、第一开关4a依次连接;第二比较器22b、第二驱动器23b、第二开关5a依次连接,第三比较器22c、第三驱动器23c、第三开关6a依次连接;第四比较器22d、第四驱动器23d、第四开关7a依次连接;第五比较器22e、第五驱动器23e、第五开关8a依次连接;第六比较器22f、第六驱动器23f、第六开关9a依次连接;The comparator module includes a first comparator 22a, a second comparator 22b, a third comparator 22c, a fourth comparator 22d, a fifth comparator 22e, and a sixth comparator 22f; the switching element driving module includes a A driver 23a, a second driver 23b, a third driver 23c, a fourth driver 23d, a fifth driver 23e, and a sixth driver 23f; the first comparator 22a, the first driver 23a, and the first switch 4a are connected in sequence; The two comparators 22b, the second driver 23b, and the second switch 5a are connected in sequence; the third comparator 22c, the third driver 23c, and the third switch 6a are connected in sequence; the fourth comparator 22d, the fourth driver 23d, and the fourth switch 7a connected in sequence; the fifth comparator 22e, the fifth driver 23e, and the fifth switch 8a are connected in sequence; the sixth comparator 22f, the sixth driver 23f, and the sixth switch 9a are connected in sequence;

为了降低逆变电路中开关元件打开或关闭时产生的泄露电流及传导干扰,所述三角载波生成模块20生成相对应的两种载波,分别为第I载波和第II载波,所述第II载波相对于第I载波提前了死区时间,如图2所示,所述第I载波连接下桥臂开关元件对应的比较器的正极,所述第II载波连接上桥臂相关开关元件对应的比较器的负极,所述三相电压指令生成模块21分别连接上桥臂相关开关元件对应的比较器的正极,以及下桥臂开关元件对应的比较器的负极,并据此可以获得图3所示的现有技术中电机驱动装置逆变电路上下桥臂开关元件的开关时序图,图3上半部分表示的是PWM调制中载波和输出电压指令值的时间推移变化情况,下半部分表示与三相交流对应的第一开关4a~9a的开关时间,应当理解的,第一开关4a~9a表示包括第一开关4a、第二开关5a、第三开关6a、第四开关7a、第五开关8a、第六开关9a在内的开关,后续以此类推。In order to reduce the leakage current and conduction interference generated when the switching element in the inverter circuit is turned on or off, the triangular carrier generation module 20 generates two corresponding carriers, which are the first carrier and the second carrier respectively, and the second carrier Compared with the first carrier, the dead time is advanced. As shown in FIG. 2 , the first carrier is connected to the positive pole of the comparator corresponding to the switching element of the lower bridge arm, and the second carrier is connected to the comparison corresponding to the relevant switching element of the upper bridge arm. The three-phase voltage command generation module 21 is respectively connected to the positive pole of the comparator corresponding to the relevant switching element of the upper bridge arm, and the negative pole of the comparator corresponding to the switching element of the lower bridge arm, and accordingly, the shown in FIG. 3 can be obtained. The switching timing diagram of the switching elements of the upper and lower bridge arms of the inverter circuit of the motor drive device in the prior art, the upper part of Fig. 3 shows the time-lapse variation of the carrier wave and the output voltage command value in the PWM modulation, and the lower part shows the same as the three. With respect to the switching times of the first switches 4a to 9a corresponding to AC, it should be understood that the first switches 4a to 9a include the first switch 4a, the second switch 5a, the third switch 6a, the fourth switch 7a, and the fifth switch 8a , switches including the sixth switch 9a, and so on.

从图3中可以看出,对于U相的电压指令,对应的第一开关4a、5a根据U相电压指令与第I载波、第II载波的比较器的比较结果,在时刻t3~t6期间第二开关5a导通,与此相对,通过驱动器进行开关控制,使得第一开关4a以设置有用于避免同时导通的死区时间的脉冲宽度接通。同样,对于V相的输出电压,对应的第三开关6a、第四开关7a根据V相电压指令和第I载波、第II载波的比较器的比较结果,在时刻t4~t5之间第四开关7a接通,与此相对,通过驱动器进行开关控制,使得第三开关6a以设置有用于避免同时导通的死区时间的脉冲宽度导通;W相在该区间被固定为电压0,三相交流以U相和V相的电压差成为驱动电机10的交流电压,用于驱动电机10。It can be seen from FIG. 3 that, for the U-phase voltage command, the corresponding first switches 4a and 5a will switch the first switch 4a and 5a according to the comparison result between the U-phase voltage command and the comparators of the first carrier and the second carrier during the period of time t3 to t6. On the other hand, the two switches 5a are turned on. On the other hand, the driver performs switching control so that the first switch 4a is turned on with a pulse width that provides a dead time for avoiding simultaneous turn-on. Similarly, for the output voltage of the V-phase, the corresponding third switch 6a and the fourth switch 7a switch the fourth switch between time t4 and t5 according to the comparison result between the V-phase voltage command and the comparators of the first carrier and the second carrier. 7a is turned on, on the other hand, the switching control is performed by the driver so that the third switch 6a is turned on with a pulse width provided with a dead time for avoiding simultaneous conduction; the W phase is fixed to a voltage of 0 in this interval, and the three-phase The AC voltage is used to drive the motor 10 as the voltage difference between the U-phase and the V-phase as the AC voltage for driving the motor 10 .

图4上半部分是与图3下半部分对应的第一开关4a~第六开关9a的开关时间,图4的下半部分表示各相电流方向对应的输出电压的变化情况,其中,电流从逆变器电路向电机10方向流动时电流方向为正,电流从电机10向逆变器电路流动时电流方向为负,各相输出电压在图1中直流部的正侧电压(设为+Vdc)和负侧电压(设为0)之间变化,从图4中可以看出,在死区时间区间中,在各相电流为正时,输出为负侧电压0,各相电流为负时,输出为正侧电压+Vdc,以U向的输出电压为例,在电流为正时,在t1~t8期间输出电压为0,但是在电流为负时,在t3~t6期间的输出电压为0,因此,死区时间的设置导致各相的输出的平均电压根据电流方向的变化而有所变化,导致输出电压在死区时间出现偏移,电机10无法施加所需的电压,产生电流偏移,导致电流失真。The upper part of FIG. 4 is the switching time of the first switch 4a to the sixth switch 9a corresponding to the lower part of FIG. 3 , and the lower part of FIG. 4 shows the change of the output voltage corresponding to the current direction of each phase. When the inverter circuit flows in the direction of the motor 10, the current direction is positive, and when the current flows from the motor 10 to the inverter circuit, the current direction is negative, and the output voltage of each phase is the positive side voltage of the DC part in FIG. ) and the negative side voltage (set to 0). As can be seen from Figure 4, in the dead time interval, when the current of each phase is positive, the output is the negative side voltage of 0, and when the current of each phase is negative , the output is the positive side voltage +Vdc. Taking the output voltage of the U direction as an example, when the current is positive, the output voltage is 0 during the period of t1~t8, but when the current is negative, the output voltage during the period of t3~t6 is 0, therefore, the setting of the dead time causes the average voltage of the output of each phase to change according to the change of the current direction, resulting in an offset of the output voltage in the dead time, and the motor 10 cannot apply the required voltage, resulting in a current bias. shift, resulting in current distortion.

图7上半部分为现有技术中U、V、W三相上桥臂开关元件的开关状态波形,图7下半部分为现有技术中通过LISN(Line Impedance Stabilization Network,线路阻抗稳定网络)检测到的开关元件开关过程中产生的传导干扰以及电机的漏电流。The upper part of Fig. 7 is the switching state waveform of the U, V, W three-phase upper arm switching elements in the prior art, and the lower part of Fig. 7 is the prior art through LISN (Line Impedance Stabilization Network, line impedance stabilization network) Conducted disturbances detected during switching of switching elements and leakage currents of the motor.

下面结合附图具体描述本发明实施例的电机驱动装置、方法、空调及计算机可读存储介质。The motor driving apparatus, method, air conditioner, and computer-readable storage medium according to the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

实施例1Example 1

本实施例提供一种电机驱动装置,用于驱动电机10,所述电机10为三相电机,如图1所示,包括前级处理电路及三相逆变器电路,所述前级处理电路用于将电源输出的交流电后输入三相逆变器电路,所述三相逆变器电路包括上桥臂电源线及下桥臂电源线,以及在上桥臂电源线及下桥臂电源线之间,按各相串联方式连接的上桥臂开关元件和下桥臂开关元件,各相的上桥臂开关元件与下桥臂开关元件的连接点连接电机10,还包括控制装置11,所述控制装置11用于控制各相的上桥臂开关元件和下桥臂开关元件的开关定时,用所述电机10一相相电压的变化抵消另一相的相电压变化导致的传导干扰和漏电流。具体在本实施例中,所述前级处理电路包括交流电源1、整流回路2、平滑电容3,用于将所述交流电源1输出的交流电暂时转化成平滑的直流电,所述上桥臂开关元件、下桥臂开关元件的结构及连接方式与现有技术中相同,在此不再赘述。所述电机10一相相电压的变化抵消另一相的相电压变化导致的传导干扰和漏电流具体是指,在一个载波周期Tc内,至少有一个时刻,不同的两相之间的上桥臂开关元件或下桥臂开关元件同时进行相反的开关动作,相反的开关动作是指,上桥臂或者下桥臂中,一相的开关元件打开,另一相的开关元件关闭,具体如图6所示,在t10时刻,U相下桥臂的第二开关5a打开,V相下桥臂的第四开关7a关闭,通过两相之间同步的打开、关闭的操作,降低了开关元件在开关时产生的共模干扰以及电机10的漏电流,其检测结果见图8,相对于图7,本实施例提供的技术方案可以显著地降低开关元件在开关过程中产生的传导干扰和电机10的漏电流,该技术方案与电流的方向无关,仅与所述上桥臂开关元件和下桥臂开关元件的开关定时有关。The present embodiment provides a motor driving device for driving a motor 10. The motor 10 is a three-phase motor, as shown in FIG. 1, including a pre-processing circuit and a three-phase inverter circuit. The pre-processing circuit It is used to input the AC power output by the power supply into a three-phase inverter circuit, and the three-phase inverter circuit includes the power supply line of the upper bridge arm and the power supply line of the lower bridge arm, and the power supply line of the upper bridge arm and the lower bridge arm. Between the upper bridge arm switching elements and the lower bridge arm switching elements connected in series in each phase, the connection point of the upper bridge arm switching element and the lower bridge arm switching element of each phase is connected to the motor 10, and also includes a control device 11, so The control device 11 is used to control the switching timing of the upper arm switching element and the lower arm switching element of each phase, and use the variation of the phase voltage of one phase of the motor 10 to offset the conduction disturbance and leakage caused by the variation of the phase voltage of the other phase. current. Specifically in this embodiment, the pre-processing circuit includes an AC power supply 1, a rectifier circuit 2, and a smoothing capacitor 3, which are used to temporarily convert the AC power output by the AC power supply 1 into a smooth DC power. The upper bridge arm switches The structure and connection manner of the element and the lower arm switch element are the same as those in the prior art, and will not be repeated here. The variation of the phase-to-phase voltage of the motor 10 offsets the conducted interference and leakage current caused by the variation of the phase-to-phase voltage of the other phase. The arm switching element or the lower arm switching element performs opposite switching actions at the same time. The opposite switching action means that in the upper arm or lower arm, the switching element of one phase is turned on, and the switching element of the other phase is turned off, as shown in the figure. 6, at time t10, the second switch 5a of the U-phase lower arm is turned on, and the fourth switch 7a of the V-phase lower arm is turned off. The detection results of the common mode interference and the leakage current of the motor 10 generated during switching are shown in FIG. 8 . Compared with FIG. 7 , the technical solution provided in this embodiment can significantly reduce the conduction interference generated by the switching element during the switching process and the motor 10 . The technical solution has nothing to do with the direction of the current, and is only related to the switching timing of the upper-bridge switching element and the lower-arm switching element.

较佳的,在所述下桥臂电源线和所述前级处理电路之间设置有电流检测装置12,所述电流检测装置12用于检测各相输出的电流,所述控制装置11根据所述电流检测装置12检测到的电流方向,控制各相的上桥臂开关元件和下桥臂开关元件的脉冲宽度及时间,补偿因各相的上桥臂开关元件和/或下桥臂开关元件的死区时间而产生的电压偏移。具体如图9、图10所示,通过调整所述各相的上桥臂开关元件和下桥臂开关元件的脉冲宽度及时间,改变各相电流流向不同时的电压输出情况,当电流方向为负时,在死区时间的输出电压为高电压侧的电压,当电流方向为正时,在死区时间的输出电压为低电压侧的电压,各相的输出的平均电压并不会根据电流方向的变化而有所变化,即该设置对于因死区时间而产生的电压偏移进行补偿,消除了现有技术中死区时间导致的电流失真。Preferably, a current detection device 12 is provided between the power line of the lower bridge arm and the pre-processing circuit, and the current detection device 12 is used to detect the current output by each phase, and the control device 11 According to the current direction detected by the current detection device 12, the pulse width and time of the upper and lower arm switching elements of each phase are controlled, and the pulse width and time of the upper arm switching element and/or the lower arm switching element of each phase are compensated. voltage offset due to the dead time. Specifically, as shown in Figure 9 and Figure 10, by adjusting the pulse width and time of the upper arm switching element and the lower arm switching element of each phase, the voltage output of each phase when the current flows in different directions is changed. When the current direction is When it is negative, the output voltage at the dead time is the voltage on the high voltage side. When the current direction is positive, the output voltage at the dead time is the voltage on the low voltage side. The average output voltage of each phase does not depend on the current. changes in direction, that is, this setting compensates for the voltage offset caused by dead time, eliminating the current distortion caused by dead time in the prior art.

具体的,所述控制装置11包括:Specifically, the control device 11 includes:

三相输出电压指令生成模块33,用于生成三相电压指令;所述三相电压指令包括U相电压指令、V相电压指令和W相电压指令;The three-phase output voltage command generation module 33 is used to generate a three-phase voltage command; the three-phase voltage command includes a U-phase voltage command, a V-phase voltage command and a W-phase voltage command;

电流方向检测模块32,用于根据所述电流检测装置12检测到的电流判断电流的流向,并将电流流向判断结果输入载波选择模块31;The current direction detection module 32 is used to judge the current flow direction according to the current detected by the current detection device 12, and input the current flow direction judgment result into the carrier selection module 31;

锯波生成模块30,用于生成若干组锯波,若干组所述锯波为脉冲输出的载波;The saw wave generation module 30 is used for generating several groups of saw waves, and the several groups of the saw waves are the carrier waves of the pulse output;

载波选择模块31,用于根据电流方向检测模块32的判断结果从锯波生成模块30输出的若干组锯波中选择输入各相的载波;The carrier selection module 31 is used to select and input the carrier of each phase from several groups of saw waves output by the saw wave generation module 30 according to the judgment result of the current direction detection module 32;

比较器模块,用于比较三相电压指令和载波,并根据比较结果输出开关元件的驱动脉冲;The comparator module is used to compare the three-phase voltage command and the carrier wave, and output the driving pulse of the switching element according to the comparison result;

开关元件驱动模块,用于根据比较器模块输出的驱动脉冲驱动控制开关元件的打开或关闭。The switching element driving module is used for driving and controlling the switching element to be turned on or off according to the driving pulse output by the comparator module.

具体在本实施例中,所述比较器模块包括第七比较器34a、第八比较器34b、第九比较器34c、第十比较器34d、第十一比较器34e、第十二比较器34f;所述开关元件驱动模块包括第七驱动器35a、第八驱动器35b、第九驱动器35c、第十驱动器35d、第十一驱动器35e、第十二驱动器35f;所述第七比较器34a、第七驱动器35a、第一开关4a依次连接;第八比较器34b、第八驱动器35b、第二开关5a依次连接,第九比较器34c、第九驱动器35c、第三开关6a依次连接;第十比较器34d、第十驱动器35d、第四开关7a依次连接;第十一比较器34e、第十一驱动器35e、第五开关8a依次连接;第十二比较器34f、第十二驱动器35f、第六开关9a依次连接;Specifically in this embodiment, the comparator module includes a seventh comparator 34a, an eighth comparator 34b, a ninth comparator 34c, a tenth comparator 34d, an eleventh comparator 34e, and a twelfth comparator 34f ; The switching element driving module includes a seventh driver 35a, an eighth driver 35b, a ninth driver 35c, a tenth driver 35d, an eleventh driver 35e, and a twelfth driver 35f; the seventh comparator 34a, the seventh The driver 35a and the first switch 4a are connected in sequence; the eighth comparator 34b, the eighth driver 35b, and the second switch 5a are connected in sequence; the ninth comparator 34c, the ninth driver 35c, and the third switch 6a are connected in sequence; the tenth comparator 34d, the tenth driver 35d, and the fourth switch 7a are connected in sequence; the eleventh comparator 34e, the eleventh driver 35e, and the fifth switch 8a are connected in sequence; the twelfth comparator 34f, the twelfth driver 35f, the sixth switch 9a are connected in sequence;

在其中的一些实施例中,所述锯波生成模块30用于生成6组载波,分别为:In some of the embodiments, the saw wave generation module 30 is configured to generate 6 groups of carriers, which are:

第1载波,所述第1载波为在一个载波周期Tc相对于时间具有正倾斜的锯齿波;the first carrier wave, the first carrier wave is a sawtooth wave with a positive slope with respect to time in one carrier cycle Tc;

第2载波,所述第2载波为在一个载波周期Tc相对于时间具有负倾斜的锯齿波;a second carrier wave, the second carrier wave is a sawtooth wave having a negative slope with respect to time in one carrier cycle Tc;

第3载波,所述第3载波是相对于第1载波将时间提前了死区时间的锯齿波;a third carrier, the third carrier is a sawtooth wave whose time is advanced by the dead time relative to the first carrier;

第4载波,所述第4载波是相对于第2载波将时间提前了死区时间的锯齿波;the fourth carrier, the fourth carrier is a sawtooth wave whose time is advanced by the dead time relative to the second carrier;

第5载波,所述第5载波是相对于第1载波将时间延迟了死区时间的锯齿波;a fifth carrier, the fifth carrier is a sawtooth wave whose time is delayed by the dead time relative to the first carrier;

第6载波,所述第6载波是相对于第2载波将时间延迟了死区时间的锯齿波;a sixth carrier, the sixth carrier is a sawtooth wave whose time is delayed by the dead time relative to the second carrier;

具体如图6所示,通过所述载波选择模块31选择第6载波、第2载波与U相电压指令结合生成第一开关4a、第二开关5a的驱动脉冲,选择第3载波、第1载波与V相电压指令结合生成第三开关6a、第四开关7a的驱动脉冲,从图6中可以看出,U相中,在t0~t1期间,第二开关5a接通,在延迟了死区时间之后,第一开关4a在t2~t4期间接通,之后又延迟死区时间,在t10时刻,第二开关5a接通;V相中同样存在多个死区时间,在t10时刻,第四开关7a关闭,在同一时刻、同一桥臂中两相之间的开关元件做相反的动作,相互抵消了开关动作时产生的传导干扰和漏电流,具体检测结果见图8,对比图7可以看出,U相和V相在同一时刻的相反的开关动作,将整体的传导干扰和漏电流降低了一半左右,起到了显著的效果,需要说明的时,达成该效果与电流方向无关,应当理解的是,本发明中使用的载波波形并不仅限于上述6种载波,也可以使用其他的载波波形,以能够实现一相的相电压变化与另一相的相电压变化同时相反发生即可。Specifically, as shown in FIG. 6 , the carrier selection module 31 selects the sixth carrier and the second carrier in combination with the U-phase voltage command to generate the driving pulses of the first switch 4a and the second switch 5a, and selects the third carrier and the first carrier. Combined with the V-phase voltage command, the driving pulses of the third switch 6a and the fourth switch 7a are generated. It can be seen from FIG. 6 that in the U-phase, during the period from t0 to t1, the second switch 5a is turned on, and after the dead zone is delayed After time, the first switch 4a is turned on during the period t2 to t4, and then the dead time is delayed. At time t10, the second switch 5a is turned on; there are also multiple dead times in the V phase. At time t10, the fourth switch 5a is turned on. When the switch 7a is closed, at the same time, the switching elements between the two phases in the same bridge arm do opposite actions, which cancel out the conduction interference and leakage current generated during the switching action. The opposite switching action of U-phase and V-phase at the same time reduces the overall conduction interference and leakage current by about half, which has a significant effect. It should be understood that this effect is achieved regardless of the direction of the current. It should be noted that the carrier waveforms used in the present invention are not limited to the above-mentioned 6 types of carriers, and other carrier waveforms can also be used, so that the phase voltage change of one phase and the phase voltage change of another phase can be reversed at the same time.

在另一个实施例中,当U相电流方向为正时,选择第2载波、第4载波与U相电压指令结合生成第一开关4a、第二开关5a的驱动脉冲,当U相电流方向为负时,选择第6载波、第2载波与U相电压指令结合生成第一开关4a、第二开关5a的驱动脉冲;当V相电流方向为正时,选择第1载波、第5载波与V相电压指令结合生成第三开关6a、第四开关7a的驱动脉冲,当V相电流方向为负时,选择第3载波、第1载波与V相电压指令结合生成第三开关6a、第四开关7a的驱动脉冲,在此情况下,对应输出电压情况如图9、图10所示,可以看出,在当U相、V相电流方向均为负时,在死区时间的输出电压为高电压侧的电压,当U相、V相电流方向均为正时,在死区时间的输出电压为低电压侧的电压,各相的输出的平均电压并不会根据电流方向的变化而有所变化,即该设置对于因死区时间而产生的电压偏移进行补偿,消除了现有技术中死区时间导致的电流失真,可以看出,无论电机10中流动的电流的方向如何,都能够输出不受各相的上下桥臂的开关产生的死区时间影响的输出电压,同时,在t10时刻同样发生了上桥臂开关元件或者下桥臂开关元件执行反向开关操作的情况,有效地降低了开关动作产生的传输干扰和漏电流。In another embodiment, when the U-phase current direction is positive, the second carrier, the fourth carrier and the U-phase voltage command are selected to generate driving pulses for the first switch 4a and the second switch 5a. When the U-phase current direction is When it is negative, select the 6th carrier, the 2nd carrier and the U-phase voltage command to generate the driving pulse of the first switch 4a and the second switch 5a; when the V-phase current direction is positive, select the 1st carrier, the 5th carrier and the V The phase voltage command is combined to generate the drive pulses of the third switch 6a and the fourth switch 7a. When the V-phase current direction is negative, the third carrier and the first carrier are selected in combination with the V-phase voltage command to generate the third switch 6a and the fourth switch. 7a driving pulse, in this case, the corresponding output voltage is shown in Figure 9 and Figure 10. It can be seen that when the U-phase and V-phase current directions are both negative, the output voltage at the dead time is high. The voltage on the voltage side, when the U-phase and V-phase current directions are both positive, the output voltage at the dead time is the voltage on the low voltage side, and the average output voltage of each phase does not vary according to the current direction. That is, the setting compensates for the voltage offset caused by the dead time, and eliminates the current distortion caused by the dead time in the prior art. It can be seen that regardless of the direction of the current flowing in the motor 10, it can be The output voltage is not affected by the dead time generated by the switching of the upper and lower bridge arms of each phase. At the same time, at the time t10, the reverse switching operation of the upper bridge arm switching element or the lower bridge arm switching element also occurs, effectively The transmission interference and leakage current caused by the switching action are reduced.

通过上述结构,本发明的电机驱动装置能够以简单的结构降低传导干扰及漏电流,并且,能够补偿死区时间引起的电压偏移,在电机10驱动时不会发生电流偏移。With the above structure, the motor driving device of the present invention can reduce conduction disturbance and leakage current with a simple structure, and can compensate for voltage offset caused by dead time, so that no current offset occurs when the motor 10 is driven.

实施例2Example 2

本实施例公开了一种电机驱动方法,所述电机驱动方法采用如实施例1中所述的电机驱动装置。This embodiment discloses a motor driving method, and the motor driving method adopts the motor driving device described in Embodiment 1.

所述电机驱动方法用于驱动电机10,所述电机10为三相电机,所述驱动方法包括:控制电机10各相的上桥臂开关元件和下桥臂开关元件的开关定时,在一个载波周期Tc内,至少有一个时刻,电机10中不同的两相之间的上桥臂开关元件或下桥臂开关元件同时进行相反的开关动作,相反的开关动作是指,上桥臂或者下桥臂中,一相的开关元件打开,另一相的开关元件关闭,用电机10一相相电压的变化抵消另一相的相电压变化导致的传导干扰和漏电流,具体如图6所示,在t10时刻,U相下桥臂的第二开关5a打开,V相下桥臂的第四开关7a关闭,通过两相之间同步的打开、关闭的操作,降低了开关元件在开关时产生的共模干扰以及电机10的漏电流,其检测结果见图8,相对于图7,本实施例提供的技术方案可以显著地降低开关元件在开关过程中产生的传导干扰和电机10的漏电流,该技术方案与电流的方向无关,仅与所述上桥臂开关元件和下桥臂开关元件的开关定时有关。The motor driving method is used to drive the motor 10, and the motor 10 is a three-phase motor, and the driving method includes: controlling the switching timing of the upper arm switching element and the lower arm switching element of each phase of the motor 10, in a carrier wave. During the period Tc, there is at least one moment in which the switching elements of the upper arm or the switching elements of the lower arm between different two phases in the motor 10 perform opposite switching actions at the same time. The opposite switching actions refer to the upper arm or the lower arm In the arm, the switching element of one phase is turned on, and the switching element of the other phase is turned off, and the change of the phase-to-phase voltage of the motor 10 is used to offset the conduction interference and leakage current caused by the change of the phase-to-phase voltage of the other phase, as shown in Figure 6, At time t10, the second switch 5a of the U-phase lower arm is turned on, and the fourth switch 7a of the V-phase lower arm is turned off. Through the synchronous opening and closing operations between the two phases, the switching elements generated during switching are reduced. Common mode interference and the leakage current of the motor 10, the detection results are shown in Figure 8. Compared with Figure 7, the technical solution provided by this embodiment can significantly reduce the conduction interference generated by the switching element during the switching process and the leakage current of the motor 10. The technical solution has nothing to do with the direction of the current, and is only related to the switching timings of the upper-arm switching element and the lower-arm switching element.

作为一个较佳的实施例,所述驱动方法还包括:检测电机10各相电流方向,根据电流方向控制各相的上桥臂开关元件和下桥臂开关元件的脉冲宽度及时间,补偿因各相的上桥臂开关元件和/或下桥臂开关元件的死区时间而产生的电压偏移。具体如图9、图10所示,通过调整所述各相的上桥臂开关元件和下桥臂开关元件的脉冲宽度及时间,改变各相电流流向不同时的电压输出情况,当U相、V相电流方向均为负时,在死区时间的输出电压为高电压侧的电压,当U相、V相电流方向均为正时,在死区时间的输出电压为低电压侧的电压,各相的输出的平均电压并不会根据电流方向的变化而有所变化,即该设置对于因死区时间而产生的电压偏移进行补偿,消除了现有技术中死区时间导致的电流失真。As a preferred embodiment, the driving method further includes: detecting the current direction of each phase of the motor 10, controlling the pulse width and time of the upper arm switching element and the lower arm switching element of each phase according to the current direction, and compensating for each The voltage offset due to the dead time of the high-side switching element and/or the low-side switching element of the phase. Specifically, as shown in Figure 9 and Figure 10, by adjusting the pulse width and time of the upper arm switching element and the lower arm switching element of each phase, the voltage output when the current of each phase flows in different directions is changed. When the V-phase current directions are both negative, the output voltage at the dead time is the voltage on the high-voltage side. When the U-phase and V-phase current directions are both positive, the output voltage at the dead time is the low-voltage side voltage. The average voltage of the output of each phase does not change according to the change of the current direction, that is, this setting compensates for the voltage offset caused by the dead time, eliminating the current distortion caused by the dead time in the prior art .

具体的,在本实施例中,根据载波的变化控制各相的上桥臂开关元件和下桥臂开关元件的开关定时,或,根据电流方向选择各相的上桥臂开关元件和下桥臂开关元件驱动脉冲所需的载波,并根据载波控制各相的上桥臂开关元件和下桥臂开关元件脉冲宽度及时间。根据载波控制开关定时和/或脉冲宽度简单有效,对成本的影响有限。Specifically, in this embodiment, the switching timings of the upper arm switching element and the lower arm switching element of each phase are controlled according to the change of the carrier wave, or the upper arm switching element and the lower arm switching element of each phase are selected according to the current direction The switching element drives the carrier required by the pulse, and controls the pulse width and time of the upper and lower switching elements of each phase according to the carrier. Controlling switch timing and/or pulse width based on the carrier is simple and effective, with limited impact on cost.

作为本发明的一个实施例,所述载波为锯形载波,包括:As an embodiment of the present invention, the carrier wave is a saw-shaped carrier wave, including:

第1载波,所述第1载波为在一个载波周期Tc相对于时间具有正倾斜的锯齿波;the first carrier wave, the first carrier wave is a sawtooth wave with a positive slope with respect to time in one carrier cycle Tc;

第2载波,所述第2载波为在一个载波周期Tc相对于时间具有负倾斜的锯齿波;a second carrier wave, the second carrier wave is a sawtooth wave having a negative slope with respect to time in one carrier cycle Tc;

第3载波,所述第3载波是相对于第1载波将时间提前了死区时间的锯齿波;a third carrier, the third carrier is a sawtooth wave whose time is advanced by the dead time relative to the first carrier;

第4载波,所述第4载波是相对于第2载波将时间提前了死区时间的锯齿波;the fourth carrier, the fourth carrier is a sawtooth wave whose time is advanced by the dead time relative to the second carrier;

第5载波,所述第5载波是相对于第1载波将时间延迟了死区时间的锯齿波;a fifth carrier, the fifth carrier is a sawtooth wave whose time is delayed by the dead time relative to the first carrier;

第6载波,所述第6载波是相对于第2载波将时间延迟了死区时间的锯齿波。The sixth carrier is a sawtooth wave whose time is delayed by the dead time with respect to the second carrier.

在本实施例中,作为控制开关的PWM驱动脉冲的载波,使用周期为Tc、振幅为Vc的锯齿形波,通过与输出的三相电压的比较,决定第一开关4a~第六开关9a的开关时间,通过多个载波的变化,可以控制电机10各相的脉冲宽度和/或开关定时,可以有效地降低开关元件进行开关动作时的传导干扰和漏电流,也可以降低死区时间产生的输出电压偏差,消除电流失真。In the present embodiment, a sawtooth wave having a period of Tc and an amplitude of Vc is used as the carrier of the PWM drive pulse for controlling the switches, and the voltages of the first to sixth switches 4a to 9a are determined by comparison with the output three-phase voltages. Switching time, through the change of multiple carrier waves, can control the pulse width and/or switching timing of each phase of the motor 10, which can effectively reduce the conduction interference and leakage current when the switching element performs the switching action, and can also reduce the dead time. Output voltage deviation, eliminating current distortion.

在一个具体的实施例中,所述电机10包括U相、V相、W相,U相、V相、W相上桥臂依次设置第一开关4a、第三开关6a、第五开关8a,下桥臂依次设置第二开关5a、第四开关7a、第六开关9a,选择第6载波作为第一开关4a的驱动脉冲载波、第2载波作为第二开关5a的驱动脉冲载波;选择第3载波作为第三开关6a的驱动脉冲载波、第1载波作为第四开关7a的驱动脉冲载波;从图6中可以看出,U相中,在t0~t1期间,第二开关5a接通,在延迟了死区时间之后,第一开关4a在t2~t4期间接通,之后又延迟死区时间,在t10时刻,第二开关5a接通;V相中同样存在多个死区时间,在t10时刻,第四开关7a关闭,在同一时刻、同一桥臂中两相之间的开关元件做相反的动作,相互抵消了开关动作时产生的传导干扰和漏电流,由于W相在此过程中输出电压始终为0,在此不做具体限定。具体检测结果见图8,对比图7可以看出,U相和V相在同一时刻的相反的开关动作,将整体的传导干扰和漏电流降低了一半左右,起到了显著的效果,需要说明的时,达成该效果与电流方向无关。In a specific embodiment, the motor 10 includes U-phase, V-phase, and W-phase, and the upper bridge arms of U-phase, V-phase, and W-phase are sequentially provided with a first switch 4a, a third switch 6a, and a fifth switch 8a. The lower bridge arm is set with the second switch 5a, the fourth switch 7a and the sixth switch 9a in sequence, the sixth carrier is selected as the driving pulse carrier of the first switch 4a, and the second carrier is used as the driving pulse carrier of the second switch 5a; the third carrier is selected as the driving pulse carrier of the first switch 4a. The carrier is used as the driving pulse carrier of the third switch 6a, and the first carrier is used as the driving pulse carrier of the fourth switch 7a; it can be seen from Figure 6 that in the U phase, during the period from t0 to t1, the second switch 5a is turned on, After delaying the dead time, the first switch 4a is turned on during the period from t2 to t4, and then the dead time is delayed again. At t10, the second switch 5a is turned on; there are also multiple dead times in the V phase, and at t10 At the moment, the fourth switch 7a is closed, and at the same moment, the switching elements between the two phases in the same bridge arm do opposite actions, which cancel out the conduction interference and leakage current generated during the switching action. The voltage is always 0, which is not specifically limited here. The specific test results are shown in Figure 8. Compared with Figure 7, it can be seen that the opposite switching actions of the U-phase and the V-phase at the same time reduce the overall conduction interference and leakage current by about half, which has a significant effect. It needs to be explained , the effect is achieved regardless of the direction of the current.

在另一个实施例中,所述电机10包括U相、V相、W相,U相、V相、W相上桥臂依次设置第一开关4a、第三开关6a、第五开关8a,下桥臂依次设置第二开关5a、第四开关7a、第六开关9a,当U相、V相电流方向均为正时,选择第2载波作为第一开关4a的驱动脉冲载波、第4载波作为第二开关5a的驱动脉冲载波,选择第1载波作为第三开关6a的驱动脉冲载波、第5载波作为第四开关7a的驱动脉冲载波;当U相、V相电流方向均为负时,选择第6载波作为第一开关4a的驱动脉冲载波、第2载波作为第二开关5a的驱动脉冲载波,选择第3载波作为第三开关6a的驱动脉冲载波、第1载波作为第四开关7a的驱动脉冲载波;在此情况下,对应输出电压情况如图9、图10所示,可以看出,在当U相、V相电流方向均为负时,在死区时间的输出电压为高电压侧的电压,当U相、V相电流方向均为正时,在死区时间的输出电压为低电压侧的电压,各相的输出的平均电压并不会根据电流方向的变化而有所变化,即该设置对于因死区时间而产生的电压偏移进行补偿,消除了现有技术中死区时间导致的电流失真,由于W相在此过程中输出电压始终为0,在此不做具体限定。可以看出,无论电机10中流动的电流的方向如何,都能够输出不受各相的上下桥臂的开关产生的死区时间影响的输出电压,同时,在t10时刻同样发生了上桥臂开关元件或者下桥臂开关元件执行反向开关操作的情况,有效地降低了开关动作产生的传输干扰和漏电流。In another embodiment, the motor 10 includes a U-phase, a V-phase, and a W-phase. The upper bridge arms of the U-phase, V-phase, and W-phase are sequentially provided with a first switch 4a, a third switch 6a, and a fifth switch 8a. The bridge arm is set with the second switch 5a, the fourth switch 7a, and the sixth switch 9a in turn. When the U-phase and V-phase current directions are both positive, the second carrier is selected as the driving pulse carrier of the first switch 4a, and the fourth carrier is selected as the driving pulse carrier of the first switch 4a. For the driving pulse carrier of the second switch 5a, select the first carrier as the driving pulse carrier of the third switch 6a, and the fifth carrier as the driving pulse carrier of the fourth switch 7a; when the U-phase and V-phase current directions are both negative, select The sixth carrier is used as the driving pulse carrier for the first switch 4a, the second carrier is used as the driving pulse carrier for the second switch 5a, the third carrier is selected as the driving pulse carrier for the third switch 6a, and the first carrier is selected as the driving pulse for the fourth switch 7a. Pulse carrier; in this case, the corresponding output voltage is shown in Figure 9 and Figure 10. It can be seen that when the U-phase and V-phase current directions are both negative, the output voltage at the dead time is the high voltage side When the U-phase and V-phase current directions are both positive, the output voltage at the dead time is the voltage on the low voltage side, and the average output voltage of each phase does not change according to the current direction. That is, this setting compensates for the voltage offset caused by the dead time and eliminates the current distortion caused by the dead time in the prior art. Since the output voltage of the W phase is always 0 during this process, no specific limitation is made here. . It can be seen that regardless of the direction of the current flowing in the motor 10, the output voltage can be output that is not affected by the dead time caused by the switching of the upper and lower arms of each phase. At the same time, the upper arm switch also occurs at t10. The reverse switching operation of the element or the lower arm switching element effectively reduces the transmission interference and leakage current caused by the switching action.

在本实施例中,其中一种可选的载波的选择方案如表1、表2所示,In this embodiment, the selection scheme of one of the optional carriers is shown in Table 1 and Table 2,

表1 U相开关元件驱动脉冲载波选择表Table 1 U-phase switching element drive pulse carrier selection table

U相电流方向U-phase current direction 第一开关4afirst switch 4a 第二开关5asecond switch 5a just 第2载波2nd carrier 第4载波4th carrier burden 第6载波6th carrier 第2载波2nd carrier

表2 V相开关元件驱动脉冲载波选择表Table 2 V-phase switching element drive pulse carrier selection table

V相电流方向V-phase current direction 第三开关6athird switch 6a 第四开关7aFourth switch 7a just 第1载波1st carrier 第5载波5th carrier burden 第3载波3rd carrier 第1载波1st carrier

从图10中可以看出,当U相、V相电流方向为正时,在上桥臂和下桥臂开关元件切换的死区时间,输出电压为低电压侧的电压,当U相、V相电流方向为负时,在上桥臂和下桥臂开关元件切换的死区时间,输出电压为高电压侧的电压,同时,在图9、图10的t0、t10时刻,U相和V相的开关执行互相相反的开关动作,有效地降低了开关过程中产生的传导干扰和漏电流。It can be seen from Figure 10 that when the U-phase and V-phase current directions are positive, the output voltage is the voltage on the low-voltage side during the dead time of switching between the upper and lower arms of the switching elements. When the direction of the phase current is negative, the output voltage is the voltage of the high voltage side during the dead time of switching between the upper and lower arms of the switching element. The switches of the phases perform opposite switching actions, which effectively reduces the conduction interference and leakage current generated during the switching process.

实施例3Example 3

本实施例公开了一种空调,所述空调包括实施例2所述的电机驱动装置。This embodiment discloses an air conditioner, and the air conditioner includes the motor driving device described in Embodiment 2.

对于本实施例公开的空调而言,包括存储有计算机程序的计算机可读存储介质和处理器,所述计算机程序被所述处理器读取并运行时,实现如实施例2所述的电机驱动方法。The air conditioner disclosed in this embodiment includes a computer-readable storage medium storing a computer program and a processor, and when the computer program is read and executed by the processor, the motor drive as described in Embodiment 2 is implemented method.

所述空调与实施例1所述的电机驱动方法相对于现有技术所具有的优势相同,在此不再赘述。The air conditioner and the motor driving method described in Embodiment 1 have the same advantages over the prior art, which will not be repeated here.

实施例4Example 4

本实施例公开了一种计算机可读存储介质所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器读取并运行时,实现如实施例2所述的电机驱动方法。This embodiment discloses a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is read and executed by a processor, the motor driving method described in Embodiment 2 is implemented.

虽然本发明披露如上,但本发明并非限定于此。在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。任何本领域技术人员,在不脱离本发明的精神和范围内,均可作各种更动与修改,因此本发明的保护范围应当以权利要求所限定的范围为准。Although the present invention is disclosed above, the present invention is not limited thereto. In the description of this specification, reference to the terms "one embodiment," "some embodiments," "exemplary embodiment," "example," "specific example," or "some examples", etc., is meant to incorporate the embodiments A particular feature, structure, material, or characteristic described by an example or example 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. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be based on the scope defined by the claims.

Claims (12)

1. A motor driving device is used for driving a motor (10), the motor (10) is a three-phase motor, and is characterized by comprising a preceding stage processing circuit and a three-phase inverter circuit, the preceding stage processing circuit is used for inputting alternating current output by a power supply into the three-phase inverter circuit after being directly fluidized, the three-phase inverter circuit comprises an upper bridge arm power line, a lower bridge arm power line, an upper bridge arm switching element and a lower bridge arm switching element which are connected in series according to each phase between the upper bridge arm power line and the lower bridge arm power line, the connection point of the upper bridge arm switching element and the lower bridge arm switching element of each phase is connected with the motor (10), the motor driving device also comprises a control device (11), the control device (11) is used for controlling the switching timing of the upper bridge arm switching element and the lower bridge arm switching element of each phase, and the change of the voltage of one phase of the motor (10) is used for counteracting conduction interference and leakage current caused by the change of the phase voltage of the other phase, the method for counteracting the conduction interference and the leakage current caused by the phase voltage change of one phase of the motor (10) by using the change of the phase voltage of the other phase means that at least one moment in one carrier cycle Tc, the upper bridge arm switching elements or the lower bridge arm switching elements between different two phases simultaneously perform opposite switching actions, and the opposite switching actions are that the switching elements of one phase are opened and the switching elements of the other phase are closed in the upper bridge arm or the lower bridge arm.
2. The motor drive device according to claim 1, wherein a current detection device (12) is provided between the lower arm power supply line and the preceding stage processing circuit, the current detection device (12) is configured to detect a current output from each phase, and the control device (11) controls a pulse width and a pulse time of the upper arm switching element and the lower arm switching element of each phase according to a current direction detected by the current detection device (12) to compensate for a voltage deviation caused by a dead time of the upper arm switching element and/or the lower arm switching element of each phase.
3. A motor drive as claimed in claim 2, characterized in that said control means (11) comprise:
the three-phase output voltage instruction generating module (33) is used for generating three-phase voltage instructions; the three-phase voltage command comprises a U-phase voltage command, a V-phase voltage command and a W-phase voltage command;
a current direction detection module (32) for judging the current flow direction according to the current detected by the current detection device (12) and inputting the current flow direction judgment result into the carrier selection module (31);
the saw wave generating module (30) is used for generating a plurality of groups of saw-shaped carrier waves, and the saw waves are carrier waves output by pulses;
the carrier selection module (31) is used for selecting and inputting carriers of each phase from a plurality of groups of saw waves output by the saw wave generation module (30) according to the judgment result of the current direction detection module (32);
the comparator module is used for comparing the three-phase voltage command with the carrier wave and outputting a driving pulse of the switching element according to a comparison result;
and the switching element driving module is used for driving and controlling the switching element to be switched on or switched off according to the driving pulse output by the comparator module.
4. A motor driving method for driving a motor driving device according to claim 1, characterized by comprising: the switching timing of the upper arm switching elements and the lower arm switching elements of each phase of the motor (10) is controlled, and at least one moment in a carrier cycle Tc, the upper arm switching elements or the lower arm switching elements between different two phases in the motor (10) simultaneously perform opposite switching actions.
5. The motor driving method according to claim 4, wherein the current direction of each phase of the motor (10) is detected, and the pulse widths and the times of the upper arm switching elements and the lower arm switching elements of each phase are controlled according to the current direction to compensate for a voltage deviation due to a dead time of the upper arm switching elements and/or the lower arm switching elements of each phase.
6. The motor driving method according to claim 4 or 5, wherein switching timings of the upper arm switching elements and the lower arm switching elements of the respective phases are controlled in accordance with a change in the carrier wave.
7. The motor driving method according to claim 4 or 5, wherein a carrier wave required for driving the pulses of the upper arm switching element and the lower arm switching element of each phase is selected according to a current direction, and pulse widths and times of the upper arm switching element and the lower arm switching element of each phase are controlled according to the carrier wave.
8. The motor driving method of claim 6, wherein the carrier is a saw-shaped carrier comprising:
a 1 st carrier wave, the 1 st carrier wave being a sawtooth wave having a positive slope with respect to time in one carrier period Tc;
a 2 nd carrier wave, the 2 nd carrier wave being a sawtooth wave having a negative slope with respect to time in one carrier period Tc;
a 3 rd carrier wave, the 3 rd carrier wave being a sawtooth wave that advances time by a dead time relative to a 1 st carrier wave;
a 4 th carrier wave, the 4 th carrier wave being a sawtooth wave that advances time by a dead time relative to a 2 nd carrier wave;
a 5 th carrier wave, the 5 th carrier wave being a sawtooth wave delayed in time by a dead time with respect to the 1 st carrier wave;
a 6 th carrier wave, the 6 th carrier wave being a sawtooth wave delayed in time by a dead time with respect to the 2 nd carrier wave.
9. The motor driving method according to claim 8, wherein the motor (10) includes a U-phase, a V-phase, and a W-phase, and the U-phase, the V-phase, and the W-phase upper arm are sequentially provided with a first switch (4 a), a third switch (6 a), and a fifth switch (8 a), and the lower arm is sequentially provided with a second switch (5 a), a fourth switch (7 a), and a sixth switch (9 a), and the 6 th carrier is selected as a driving pulse carrier of the first switch (4 a), and the 2 nd carrier is selected as a driving pulse carrier of the second switch (5 a); the 3 rd carrier wave is selected as the driving pulse carrier wave of the third switch (6 a), and the 1 st carrier wave is selected as the driving pulse carrier wave of the fourth switch (7 a).
10. The motor driving method according to claim 8, wherein the motor (10) includes a U-phase, a V-phase, and a W-phase, the upper arm of the U-phase, the V-phase, and the W-phase is provided with a first switch (4 a), a third switch (6 a), and a fifth switch (8 a) in sequence, the lower arm is provided with a second switch (5 a), a fourth switch (7 a), and a sixth switch (9 a) in sequence, when the U-phase and the V-phase current directions are both positive, the 2 nd carrier wave is selected as the driving pulse carrier wave of the first switch (4 a), the 4 th carrier wave is selected as the driving pulse carrier wave of the second switch (5 a), the 1 st carrier wave is selected as the driving pulse carrier wave of the third switch (6 a), and the 5 th carrier wave is selected as the driving pulse carrier wave of the fourth switch (7 a); when the current directions of the U-phase and the V-phase are both negative, the 6 th carrier wave is selected as the driving pulse carrier wave of the first switch (4 a), the 2 nd carrier wave is selected as the driving pulse carrier wave of the second switch (5 a), the 3 rd carrier wave is selected as the driving pulse carrier wave of the third switch (6 a), and the 1 st carrier wave is selected as the driving pulse carrier wave of the fourth switch (7 a).
11. An air conditioner comprising a computer-readable storage medium storing a computer program and a processor, the computer program being read and executed by the processor to implement the motor driving method according to claims 4 to 10.
12. A computer-readable storage medium, characterized in that it stores a computer program which, when read and executed by a processor, implements the motor driving method according to claims 4-10.
CN202110767225.XA 2021-07-07 2021-07-07 Motor drive device, method, air conditioner, and computer-readable storage medium Active CN113541569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110767225.XA CN113541569B (en) 2021-07-07 2021-07-07 Motor drive device, method, air conditioner, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110767225.XA CN113541569B (en) 2021-07-07 2021-07-07 Motor drive device, method, air conditioner, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN113541569A CN113541569A (en) 2021-10-22
CN113541569B true CN113541569B (en) 2022-05-06

Family

ID=78126993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110767225.XA Active CN113541569B (en) 2021-07-07 2021-07-07 Motor drive device, method, air conditioner, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN113541569B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114992768B (en) * 2022-05-20 2023-08-04 宁波奥克斯电气股份有限公司 A PWM modulation method and its device, air conditioner, and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5093452B2 (en) * 2007-03-07 2012-12-12 学校法人同志社 Common mode leakage current suppression circuit applied to power conversion equipment
CN105897098A (en) * 2016-06-14 2016-08-24 苏州微控智芯半导体科技有限公司 Elimination method for dead zone effect in motor FOC (field-oriented control) control operational method
CN212622774U (en) * 2020-07-03 2021-02-26 国网四川省电力公司电力科学研究院 Three-phase two-element combined transformer for preventing leakage current and phase-to-phase electromagnetic interference

Also Published As

Publication number Publication date
CN113541569A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
US8107267B2 (en) Systems and methods for common-mode voltage reduction in fully regenerative AC drives
CN108880311B (en) Clamping modulation method and device of multi-level inverter and inverter
US8929111B2 (en) System and method for common-mode elimination in a multi-level converter
US11205952B2 (en) Methods and systems for controlling current source rectifiers
JP4626722B1 (en) Power converter and control method thereof
WO2013035781A1 (en) Power conversion device
JP6107860B2 (en) Inverter control device
WO2013035782A1 (en) Power conversion device
WO2013035783A1 (en) Power conversion device
CN113541569B (en) Motor drive device, method, air conditioner, and computer-readable storage medium
JP4556108B2 (en) Control device for power converter
KR101915991B1 (en) Power transforming apparatus and air conditioner including the same
JP7192889B2 (en) Power conversion device and its control method
US20240178739A1 (en) Control apparatus for an arcp inverter
JP2012182874A (en) Motor control device
JP2018148757A (en) Active filter
JP7361222B2 (en) open winding motor drive
JP7051600B2 (en) Multi-stage transducer control device
EP4482005A1 (en) Arrangement for current sharing of parallel-connected converters
JP3246584B2 (en) AC / DC converter
CN115868109B (en) Open winding motor drive
JPH07308069A (en) Boosting type three-phase full-wave rectifier and control method thereof
JPH09322543A (en) Control method and control circuit of step-up three-phase full-wave rectifier
JP2019193411A (en) Three-phase power factor improving circuit, control method, and control circuit
JP2018023175A (en) Control device for current source power converter

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 315191 No. 1166 Mingguang North Road, Jiangshan Town, Ningbo, Zhejiang, Yinzhou District

Patentee after: NINGBO AUX ELECTRIC Co.,Ltd.

Country or region after: China

Patentee after: AUX AIR CONDITIONING LIMITED BY SHARE Ltd.

Address before: No. 1166 Mingguang North Road, Jiangshan Town, Ningbo, Zhejiang, Yinzhou District

Patentee before: NINGBO AUX ELECTRIC Co.,Ltd.

Country or region before: China

Patentee before: AUX AIR CONDITIONING LIMITED BY SHARE Ltd.