CN110716082A - Terminal voltage acquisition and compensation method for improving precision of power-stage motor simulator - Google Patents
Terminal voltage acquisition and compensation method for improving precision of power-stage motor simulator Download PDFInfo
- Publication number
- CN110716082A CN110716082A CN201910914335.7A CN201910914335A CN110716082A CN 110716082 A CN110716082 A CN 110716082A CN 201910914335 A CN201910914335 A CN 201910914335A CN 110716082 A CN110716082 A CN 110716082A
- Authority
- CN
- China
- Prior art keywords
- voltage
- terminal voltage
- terminal
- operational amplifier
- compensation
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/25—Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
- G01R19/2503—Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques for measuring voltage only, e.g. digital volt meters (DVM's)
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/32—Compensating for temperature change
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Inverter Devices (AREA)
- Control Of Ac Motors In General (AREA)
Abstract
一种提高功率级电机模拟器精度的端电压采集和补偿方法,涉及功率级电机模拟器逆变器输出端电压的采集和补偿方法,步骤如下:分别搭建电机驱动器和电机模拟器的端电压采集电路;端电压采集电路包括电阻分压器、第一运放、第二运放、第三运放和DSP;捕捉第一运放的输出信号,得端电压等效占空比,对第三运放的输出信号采样,得端电压的幅值;计算逆变器输出的实际等效端电压;计算逆变器输出的相电压;电机模拟器每一个控制周期重复步骤(3)‑(4),得实际输出的相电压;将指令端电压减去实际等效端电压得补偿电压;将补偿电压变换成两相坐标系;将补偿电压前馈、完成电压补偿;本发明简单可靠、精度高,能够提高电机模拟器模拟精度。
A terminal voltage acquisition and compensation method for improving the accuracy of a power stage motor simulator relates to a collection and compensation method for the output terminal voltage of an inverter of a power stage motor simulator. circuit; the terminal voltage acquisition circuit includes a resistor divider, a first operational amplifier, a second operational amplifier, a third operational amplifier and a DSP; the output signal of the first operational amplifier is captured, and the equivalent duty cycle of the terminal voltage is obtained. Sampling the output signal of the operational amplifier to obtain the amplitude of the terminal voltage; calculate the actual equivalent terminal voltage output by the inverter; calculate the phase voltage output by the inverter; repeat steps (3)‑(4 for each control cycle of the motor simulator ) to obtain the actual output phase voltage; the command terminal voltage is subtracted from the actual equivalent terminal voltage to obtain the compensation voltage; the compensation voltage is transformed into a two-phase coordinate system; the compensation voltage is fed forward to complete the voltage compensation; the invention is simple, reliable and accurate High, which can improve the simulation accuracy of the motor simulator.
Description
技术领域technical field
本发明涉及用于电机驱动器测试的功率级电机模拟器逆变器输出端电压的采集和补偿方法,详细讲是一种简单可靠、精度高,能够提高电机模拟器模拟精度的提高功率级电机模拟器精度的端电压采集和补偿方法。The invention relates to a method for collecting and compensating the output terminal voltage of a power stage motor simulator inverter used for motor driver testing. The terminal voltage acquisition and compensation method of the accuracy of the device.
背景技术Background technique
我们知道,功率级电机模拟器具有测试方便、能量可以回馈电网、能够模拟电机的极端或错误工况等优点,因而被广泛应用于电动汽车、航空航天、风力发电等领域中的电机驱动器的测试中。使用基于DSP的功率级电机模拟器来代替传统的电机台架对电机驱动器进行测试是一种低成本、简单有效的方式。但是,由于DSP的运算速度较慢,因此在采集电机驱动器中逆变器输出的端电压时存在误差,导致电机模拟器的模拟精度下降。并且电机驱动器和电机模拟器中的逆变器均存在死区和压降等非理想特性,致使逆变器输出的电压和电流畸变,这也会导致电机模拟器的模拟精度下降。We know that the power stage motor simulator has the advantages of convenient testing, energy can be fed back to the grid, and it can simulate extreme or faulty working conditions of the motor, so it is widely used in the testing of motor drives in electric vehicles, aerospace, wind power and other fields. middle. It is a low-cost, simple and effective way to test motor drives using a DSP-based power stage motor simulator instead of a traditional motor bench. However, due to the slow operation speed of DSP, there is an error in collecting the terminal voltage output by the inverter in the motor driver, which leads to a decrease in the simulation accuracy of the motor simulator. In addition, both the motor driver and the inverter in the motor simulator have non-ideal characteristics such as dead zone and voltage drop, which cause the voltage and current output by the inverter to be distorted, which will also lead to a decrease in the simulation accuracy of the motor simulator.
为了提高逆变器端电压的采样精度,现有研究提出使用积分器来采集端电压在一个 PWM周期内的等效值作为当前时刻的电压,这种方法的缺陷是积分器复位时会产生电压采集误差,而且整个采样过程由于电容的存在也会产生误差。还有研究通过使用高速的ADC芯片实现对端电压的精确采样,但是这种方法一般用于基于FPGA的电机模拟器中,整套系统的成本比较高。针对逆变器非理想特性对电机模拟器模拟精度造成的影响,通常采用电压补偿的方法进行消除。现有的电压补偿策略均需要经过复杂的算法来判断电流极性和计算补偿电压,而且计算的补偿电压通常将IGBT和二极管的压降当做定值,补偿并不准确。In order to improve the sampling accuracy of the inverter terminal voltage, the existing research proposes to use the integrator to collect the equivalent value of the terminal voltage in one PWM cycle as the current voltage. The disadvantage of this method is that the integrator will generate a voltage when reset Acquisition error, and the entire sampling process will also generate errors due to the existence of capacitance. There is also research to achieve accurate sampling of the terminal voltage by using a high-speed ADC chip, but this method is generally used in FPGA-based motor simulators, and the cost of the entire system is relatively high. In view of the influence of the non-ideal characteristics of the inverter on the simulation accuracy of the motor simulator, the method of voltage compensation is usually used to eliminate it. Existing voltage compensation strategies require complex algorithms to determine the current polarity and calculate the compensation voltage, and the calculated compensation voltage usually takes the voltage drop of the IGBT and the diode as a fixed value, and the compensation is not accurate.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种简单可靠、精度高,能够提高功率级电机模拟器精度的端电压采集和补偿方法。The purpose of the present invention is to provide a terminal voltage acquisition and compensation method that is simple, reliable, high in precision, and capable of improving the precision of a power stage motor simulator.
本发明所采用的技术方案是:The technical scheme adopted in the present invention is:
一种提高功率级电机模拟器精度的端电压采集和补偿方法,其特征在于包括如下步骤:A terminal voltage acquisition and compensation method for improving the accuracy of a power stage motor simulator is characterized by comprising the following steps:
(1)在电机驱动器和电机模拟器两侧分别搭建端电压采集电路;端电压采集电路包括电阻分压器、第一运放、第二运放、第三运放和DSP,电阻分压器的输出端与第一运放和第二运放的同向输入端相连;第一运放的反向输入端与参考电压1相连、输出端与DSP的捕捉模块相连;第二运放的反向输入端经过电阻R1与输出端相连、输出端经过电阻R2与第三运放相连;第三运放同相端与参考电压3相连、反相端经过电阻R3与输出端相连、输出端与DSP的ADC模块相连;(1) Build a terminal voltage acquisition circuit on both sides of the motor driver and the motor simulator; the terminal voltage acquisition circuit includes a resistor divider, a first op amp, a second op amp, a third op amp and a DSP, and a resistor divider The output terminal of the first operational amplifier is connected to the same-direction input terminal of the first operational amplifier and the second operational amplifier; the reverse input terminal of the first operational amplifier is connected to the
(2)通过DSP的捕捉模块对第一运放的输出信号进行捕捉,得到端电压一个周期的等效占空比,通过DSP的ADC模块对第三运放的输出信号进行采样,得到端电压高电平和低电平的幅值;(2) The output signal of the first operational amplifier is captured by the capture module of the DSP to obtain the equivalent duty cycle of the terminal voltage for one cycle, and the output signal of the third operational amplifier is sampled by the ADC module of the DSP to obtain the terminal voltage Amplitude of high level and low level;
(3)利用步骤(2)中得到的占空比和幅值按照表达式(1)计算逆变器一个周期输出的实际等效端电压;(3) Calculate the actual equivalent terminal voltage output by the inverter in one cycle according to the expression (1) using the duty cycle and amplitude obtained in step (2);
(4)利用步骤(3)中得到的等效端电压按照表达式(2)计算逆变器输出的相电压;(4) using the equivalent terminal voltage obtained in step (3) to calculate the phase voltage output by the inverter according to expression (2);
(5)电机模拟器每一个控制周期重复步骤(3)-(4),实时得到电机驱动器的逆变器实际输出的相电压;(5) Steps (3)-(4) are repeated in each control cycle of the motor simulator, and the phase voltage actually output by the inverter of the motor driver is obtained in real time;
(6)将逆变器的指令端电压减去步骤(3)中得到的实际等效端电压得到一个周期内的补偿电压;(6) subtract the actual equivalent terminal voltage obtained in step (3) from the command terminal voltage of the inverter to obtain the compensation voltage in one cycle;
(7)将步骤(6)得到的补偿电压进行CLARK变换,得到两相坐标系下的补偿电压;(7) CLARK transform the compensation voltage obtained in step (6) to obtain the compensation voltage under the two-phase coordinate system;
(8)将步骤(7)中得到的两相补偿电压前馈到逆变器的指令相电压中完成电压补偿;(8) Feed forward the two-phase compensation voltage obtained in step (7) into the command phase voltage of the inverter to complete the voltage compensation;
(9)电机驱动器每一个控制周期重复步骤(6)-(8)完成对电机驱动器中逆变器的电压补偿;(9) Steps (6)-(8) are repeated in each control cycle of the motor driver to complete the voltage compensation of the inverter in the motor driver;
(10)电机模拟器每一个控制周期重复步骤(6)-(8)完成对电机模拟器中逆变器的电压补偿。(10) Steps (6)-(8) are repeated in each control cycle of the motor simulator to complete the voltage compensation of the inverter in the motor simulator.
第(3)步所述的表达式(1)如下:Expression (1) described in step (3) is as follows:
Uterm=UH·Duty+UL·(1-Duty) (1)U term =U H ·Duty+ UL ·(1-Duty) (1)
式中:Uterm为等效端电压;UH为端电压高电平的幅值;UL为端电压低电平的幅值;Duty为端电压的等效占空比;In the formula: U term is the equivalent terminal voltage; U H is the amplitude of the high level of the terminal voltage; U L is the amplitude of the low level of the terminal voltage; Duty is the equivalent duty cycle of the terminal voltage;
第(4)步所述的表达式(2)如下:Expression (2) described in step (4) is as follows:
式中:UA是逆变器输出的A相电压,UAterm、UBterm、UCterm分别是逆变器A相等效端电压、 B相等效端电压、C相等效端电压;同理可得B、C相电压。In the formula: U A is the A-phase voltage output by the inverter, U Aterm , U Bterm , and U Cterm are the A-phase equivalent terminal voltage, B-phase equivalent terminal voltage, and C-phase equivalent terminal voltage of the inverter respectively; B, C phase voltage.
本发明中根据DSP中ADC模块的电压采样范围(0-3V)以及分压电阻的精度(5‰),选用贴片电阻作为端电压采集电路中的电阻分压器。In the present invention, according to the voltage sampling range (0-3V) of the ADC module in the DSP and the precision of the voltage dividing resistor (5‰), the chip resistor is selected as the resistor divider in the terminal voltage collecting circuit.
本发明中第一运放作为电压比较器选用响应时间低于20ns的高速运放,参考电压1设置为分压之后的端电压的1/2。In the present invention, the first operational amplifier is used as a voltage comparator to select a high-speed operational amplifier with a response time lower than 20ns, and the
本发明中第二运放作为电压跟随器和第三运放作为电压放大器,均应选用带宽不小于 50MHz、总谐波失真不大于-50dBc的高速低噪声的运放,而且需要纹波不高于10mV的正负双电源供电。电阻R1、R2、R3根据运放手册推荐值选取,参考电压3的值根据DSP中 ADC模块的电压采样范围(0-3V)设置。In the present invention, the second operational amplifier is used as a voltage follower and the third operational amplifier is used as a voltage amplifier, both of which should be high-speed and low-noise operational amplifiers with a bandwidth of not less than 50MHz and a total harmonic distortion of not more than -50dBc, and the required ripple is not high. Powered by a 10mV positive and negative dual power supply. The resistors R1, R2, and R3 are selected according to the recommended values of the operational amplifier manual, and the value of the
本发明提出一种采样方法精确的获得了逆变器端电压的占空比和幅值,而电机模拟器的电压和电流畸变正是由这两方面发生变化引起;电压补偿策略基于硬件实时测量端电压,无需通过复杂的算法判断电流极性和计算补偿电压大小,补偿过程更为简单可靠。同时将电流和温度的对IGBT和二极管导通压降考虑在内,因此,本发明的方法更加简单,补充数据精准。The invention proposes a sampling method to accurately obtain the duty cycle and amplitude of the inverter terminal voltage, and the voltage and current distortion of the motor simulator are caused by changes in these two aspects; the voltage compensation strategy is based on hardware real-time measurement The terminal voltage does not need to judge the current polarity and calculate the compensation voltage through a complex algorithm, and the compensation process is simpler and more reliable. At the same time, the conduction voltage drop of the IGBT and the diode due to the current and the temperature is taken into consideration. Therefore, the method of the present invention is simpler and the supplementary data is accurate.
附图说明Description of drawings
图1是设计的端电压采集电路,其中序号1是电阻分压器,序号2是第一运放,序号3是DSP的捕捉模块,序号4是DSP(用于等效端电压的计算),序号5是DSP的ADC采集模块,序号6是第三运放,序号7是第二运放。Figure 1 is the designed terminal voltage acquisition circuit, in which the
图2是端电压等效占空比获取原理。Figure 2 shows the principle of obtaining the equivalent duty cycle of the terminal voltage.
图3是逆变器端电压和电流实测波形。Figure 3 is the measured waveform of the inverter terminal voltage and current.
图4是端电压幅值采样原理。Fig. 4 is the sampling principle of terminal voltage amplitude.
图5是端电压波形以及第一运放和第三运放的输出信号。FIG. 5 is the terminal voltage waveform and the output signals of the first operational amplifier and the third operational amplifier.
图6是端电压指令占空比和实际采集到的占空比以及占空比误差。Fig. 6 is the duty cycle of the terminal voltage command and the actual collected duty cycle and duty cycle error.
图7(a)是端电压为高电平时端电压和电流波形;图7(b)是端电压为低电平时端电压和电流波形。Figure 7(a) shows the terminal voltage and current waveforms when the terminal voltage is at a high level; Figure 7(b) shows the terminal voltage and current waveforms when the terminal voltage is at a low level.
图8是逆变器指令相电压和采集到的实际输出相电压对比以及电压误差。Figure 8 shows the comparison between the inverter commanded phase voltage and the collected actual output phase voltage and the voltage error.
图9是电压补偿前电机驱动器的输出电压和电机模拟器模拟的电流。Figure 9 is the output voltage of the motor driver and the current simulated by the motor simulator before voltage compensation.
图10是电压补偿前电机模拟器与真实电机在相同V/f控制下的电流波形对比。Figure 10 is a comparison of the current waveforms of the motor simulator before voltage compensation and the real motor under the same V/f control.
图11是电压补偿前电机模拟器中逆变器指令相电压与实际输出相电压的对比以及电压误差。Figure 11 shows the comparison between the inverter commanded phase voltage and the actual output phase voltage and the voltage error in the motor simulator before voltage compensation.
图12是电压补偿后电机驱动器中逆变器指令相电压与实际输出相电压的对比。Figure 12 is the comparison between the inverter commanded phase voltage and the actual output phase voltage in the motor driver after voltage compensation.
图13是电压补偿后电机模拟器中逆变器指令相电压与实际输出相电压的对比以及电压误差。Figure 13 shows the comparison between the inverter commanded phase voltage and the actual output phase voltage and the voltage error in the motor simulator after voltage compensation.
图14是电压补偿对电机模拟器模拟的电流波形的影响及FFT分析:图14中的图(a)为电机模拟器和电机驱动器的逆变器输出电压均未进行电压补偿,图(b)为只对电机驱动器的逆变器输出电压进行电压补偿,图(c)为电机模拟器和电机驱动器的逆变器输出电压均进行电压补偿。Figure 14 shows the influence of voltage compensation on the current waveform simulated by the motor simulator and FFT analysis: Figure (a) in Figure 14 shows that neither the motor simulator nor the inverter output voltage of the motor driver is voltage compensated, and Figure (b) In order to perform voltage compensation only on the inverter output voltage of the motor driver, Figure (c) shows that both the motor simulator and the inverter output voltage of the motor driver perform voltage compensation.
图15是电机模拟器和同样进行电压补偿后的真实电机的电流波形对比。Figure 15 is a comparison of the current waveforms of the motor simulator and the real motor after voltage compensation is also performed.
具体实施方式Detailed ways
表1是实验中基于DSP的功率级电机模拟器的系统参数。Table 1 is the system parameters of the DSP-based power stage motor simulator in the experiment.
表2是电机模拟器所要模拟的电机的基本参数。Table 2 is the basic parameters of the motor to be simulated by the motor simulator.
一种提高功率级电机模拟器精度的端电压采集和补偿方法,其特征在于包括如下步骤:A terminal voltage acquisition and compensation method for improving the accuracy of a power stage motor simulator is characterized by comprising the following steps:
(1)在电机驱动器和电机模拟器两侧分别搭建端电压采集电路,端电压采集电路分别与电机驱动器的输出端和电机模拟器的输入输出端相连,用于采集电机驱动器输出端和电机模拟器输出端(或输入端)的端电压。端电压采集电路包括电阻分压器1、第一运放2、第二运放7、第三运放3和DSP4电阻分压器1的输出端与第一运放2和第二运放7的同向输入端相连;第一运放2的反向输入端与参考电压1相连,输出端与DSP4的捕捉模块3相连。第二运放7的反向输入端经过电阻R1与输出端相连,输出端经过电阻R2与第三运放6相连。第三运放6同相端与参考电压3相连,反相端经过电阻R3与输出端相连,输出端与DSP的 ADC模块5相连。(1) Build a terminal voltage acquisition circuit on both sides of the motor driver and the motor simulator. The terminal voltage acquisition circuit is respectively connected with the output terminal of the motor driver and the input and output terminals of the motor simulator, and is used to collect the output terminal of the motor driver and the motor simulation terminal. terminal voltage at the output (or input) of the device. The terminal voltage acquisition circuit includes a
(2)根据DSP中ADC模块5的电压采样范围(0-3V)以及分压电阻的精度(5‰),选用贴片电阻作为端电压采集电路中的电阻分压器1。(2) According to the voltage sampling range (0-3V) of the
(3)第一运放作为电压比较器选用响应时间低于20ns的高速运放,参考电压1设置为分压之后的端电压的1/2。(3) The first operational amplifier is used as a voltage comparator to select a high-speed operational amplifier with a response time lower than 20ns, and the
(4)第二运放作为电压跟随器和第三运放作为电压放大器,均应选用带宽不小于50MHz、总谐波失真不大于-50dBc的高速低噪声的运放,而且需要纹波不高于10mV的正负双电源供电。电阻R1、R2、R3根据运放手册推荐值选取,参考电压3的值根据DSP中ADC模块的电压采样范围(0-3V)设置。(4) The second operational amplifier is used as a voltage follower and the third operational amplifier is used as a voltage amplifier. Both of them should use high-speed and low-noise operational amplifiers with a bandwidth of not less than 50MHz and a total harmonic distortion of not more than -50dBc, and the need for low ripple Powered by a 10mV positive and negative dual power supply. The resistors R1, R2, and R3 are selected according to the recommended values of the operational amplifier manual, and the value of the
(5)通过DSP的捕捉模块对第一运放2的输出信号进行捕捉,得到端电压一个周期的等效占空比,通过DSP的ADC模块对第三运放6的输出信号进行采样,得到端电压高电平和低电平的幅值。(5) The output signal of the first
(6)利用步骤(5)中得到的占空比和幅值按照表达式(1)计算逆变器一个周期输出的实际等效端电压。(6) Calculate the actual equivalent terminal voltage output by the inverter in one cycle according to the expression (1) using the duty cycle and amplitude obtained in step (5).
(7)利用步骤(6)中得到的等效端电压按照表达式(2)计算逆变器输出的相电压。(7) Calculate the phase voltage output by the inverter according to the expression (2) using the equivalent terminal voltage obtained in step (6).
(8)电机模拟器每一个控制周期重复步骤(6)-(7)实时得到电机驱动器的逆变器实际输出的相电压。(8) Steps (6)-(7) are repeated in each control cycle of the motor simulator to obtain the phase voltage actually output by the inverter of the motor driver in real time.
(9)将逆变器的指令端电压减去步骤(6)中得到的实际等效端电压得到一个周期内的补偿电压。(9) Subtract the actual equivalent terminal voltage obtained in step (6) from the command terminal voltage of the inverter to obtain the compensation voltage in one cycle.
(10)将步骤(9)中计算的补偿电压进行CLARK变换,得到两相坐标系下的补偿电压。(10) CLARK transform the compensation voltage calculated in step (9) to obtain the compensation voltage in the two-phase coordinate system.
(11)将步骤(10)中得到的两相补偿电压前馈到逆变器的指令相电压中完成电压补偿。(11) Feed forward the two-phase compensation voltage obtained in step (10) into the commanded phase voltage of the inverter to complete voltage compensation.
(12)电机驱动器每一个控制周期重复步骤(9)-(11)完成对电机驱动器中逆变器的电压补偿。(12) Steps (9)-(11) are repeated in each control cycle of the motor driver to complete the voltage compensation of the inverter in the motor driver.
(13)电机模拟器每一个控制周期重复步骤(9)-(11)完成对电机模拟器中逆变器的电压补偿。(13) Steps (9)-(11) are repeated in each control cycle of the motor simulator to complete the voltage compensation of the inverter in the motor simulator.
第6步所述的表达式如下:The expression described in
Uterm=UH·Duty+UL·(1-Duty) (1)U term =U H ·Duty+ UL ·(1-Duty) (1)
式中:Uterm为等效端电压,UH为端电压高电平的幅值,UL为端电压低电平的幅值,Duty为端电压的等效占空比。In the formula: U term is the equivalent terminal voltage, U H is the amplitude of the high level of the terminal voltage, U L is the amplitude of the low level of the terminal voltage, and Duty is the equivalent duty cycle of the terminal voltage.
第7步所述的表达式如下:The expression described in step 7 is as follows:
式中:UA是逆变器输出的A相电压,同理可得B、C相电压。UAterm、UBterm、UCterm分别是逆变器A相等效端电压、B相等效端电压、C相等效端电压。In the formula: U A is the A-phase voltage output by the inverter, and the B and C-phase voltages can be obtained in the same way. U Aterm , U Bterm , and U Cterm are the equivalent terminal voltage of phase A, the equivalent terminal voltage of phase B, and the equivalent terminal voltage of phase C of the inverter, respectively.
本发明的理论依据如下:The theoretical basis of the present invention is as follows:
(1)逆变器端电压的占空比和幅值采集原理:(1) The duty cycle and amplitude acquisition principle of the inverter terminal voltage:
占空比获取原理:The principle of duty cycle acquisition:
端电压经过分压后与参考电压1作为第一运放的输入,第一运放比较之后输出与端电压相同占空比的方波信号,该信号被DSP捕捉模块采集之后就可以得到端电压的占空比。需要注意的是,在电流比较小的时候,受IGBT寄生电容的影响,逆变器输出端电压的边沿并不是阶跃上升或阶跃下降,而是一个缓慢上升或下降的过程。根据伏秒平衡原理,可以设置参考电压1为分压之后的端电压的1/2来获得端电压的等效占空比,其原理如图2所示。After the terminal voltage is divided, the
幅值采样原理:Amplitude sampling principle:
图3是逆变器端电压和电流的实测波形,可以发现,端电压为低电平时幅值并不固定。在电流不小于0时,端电压为负值,电流小于0时,端电压为正值,并且幅值随电流大小发生变化。这种现象是由于逆变器中IGBT和二极管的导通压降产生,导通压降会随电流大小和温度发生变化。正是由于端电压存在负值,因而不能直接使用ADC对分压之后的端电压进行采样。第二运放作为电压跟随器作用是实现阻抗匹配,能够实现ADC采样时对原始信号干扰最小,采样信号质量较高。第三运放的作用是平移分压之后的端电压并进行缩放,使其在ADC模块的采样范围内,R3/R2是电压缩放倍数,由于端电压已经经过分压,因此本发明中R3/R2=1。需要说明的是,ADC在端电压一个周期内的最佳采集时刻分别是高电平和低电平的中点,在此处采样可以避免其他相IGBT导通关断的影响。ADC通道可以由调制本相电压的PWM在周期值和0值触发,以实现中点采样。端电压幅值的采样原理如图4 所示。Figure 3 shows the measured waveforms of the inverter terminal voltage and current. It can be found that the amplitude is not fixed when the terminal voltage is at a low level. When the current is not less than 0, the terminal voltage is negative, when the current is less than 0, the terminal voltage is positive, and the amplitude changes with the current. This phenomenon is caused by the on-voltage drop of the IGBT and diode in the inverter, and the on-voltage drop varies with the current and temperature. It is precisely because the terminal voltage has a negative value that the ADC cannot be directly used to sample the terminal voltage after voltage division. The role of the second operational amplifier as a voltage follower is to achieve impedance matching, which can achieve minimal interference to the original signal during ADC sampling and high quality of the sampled signal. The function of the third operational amplifier is to translate and scale the terminal voltage after the voltage division so that it is within the sampling range of the ADC module. R3/R2 is the voltage scaling factor. Since the terminal voltage has been divided by voltage, in the present invention, R3/ R2=1. It should be noted that the best acquisition time of the ADC in one cycle of the terminal voltage is the midpoint of the high level and the low level, respectively. Sampling here can avoid the influence of the turn-on and turn-off of the IGBTs of other phases. The ADC channel can be triggered at the period value and 0 value by PWM modulating the voltage of this phase to achieve midpoint sampling. The sampling principle of the terminal voltage amplitude is shown in Figure 4.
图5是从示波器截取的端电压波形、第一运放的输出信号和第三运放的输出信号。图中虚线矩形框中的毛刺是由逆变器另外两相的IGBT导通关断对本相端电压造成的干扰,属于正常现象。这种干扰分布在ADC采样点的两侧,并且经过电阻分压,因此对端电压的采集没有影响。通过DSP的捕捉模块和ADC模块可以获得精确的端电压等效占空比和幅值。Fig. 5 is the terminal voltage waveform intercepted from the oscilloscope, the output signal of the first operational amplifier and the output signal of the third operational amplifier. The burrs in the dotted rectangular box in the figure are the interference caused by the turn-on and turn-off of the IGBTs of the other two phases of the inverter to the terminal voltage of this phase, which is a normal phenomenon. This interference is distributed on both sides of the ADC sampling point and is divided by resistors, so it has no effect on the acquisition of the terminal voltage. Accurate equivalent duty cycle and amplitude of terminal voltage can be obtained through the capture module and ADC module of DSP.
(2)逆变器电压补偿原理:(2) Principle of inverter voltage compensation:
逆变器的非理想特性如死区时间和IGBT以及二极管的导通压降,使逆变器输出的端电压相较于指令电压的占空比和幅值发生变化,造成电机模拟器的电压和电流发生畸变,使其模拟精度下降。The non-ideal characteristics of the inverter, such as dead time and the conduction voltage drop of the IGBT and the diode, make the duty cycle and amplitude of the terminal voltage output by the inverter change compared with the command voltage, resulting in the voltage of the motor simulator. And the current is distorted, which reduces the simulation accuracy.
本发明提出一种采样方法精确的获得了逆变器端电压的占空比和幅值,而电机模拟器的电压和电流畸变正是由这两方面发生变化引起。因此,本发明利用获得的端电压的占空比和幅值提出一种更加简单、精确的电压补偿策略。The invention proposes a sampling method to accurately obtain the duty cycle and amplitude of the inverter terminal voltage, and the voltage and current distortion of the motor simulator are caused by changes in these two aspects. Therefore, the present invention proposes a simpler and more accurate voltage compensation strategy by using the obtained duty cycle and amplitude of the terminal voltage.
指令端电压与实测端电压等效值的差值可写为:The difference between the command terminal voltage and the equivalent value of the measured terminal voltage can be written as:
ΔU=Duty*·Udc-Uterm (3)ΔU=Duty * ·U dc -U term (3)
式中,ΔU是输出电压误差,Duty*是指令占空比,Udc是逆变器母线电压。where ΔU is the output voltage error, Duty* is the command duty cycle, and U dc is the inverter bus voltage.
通过CLARK变换将三相电压误差转换到两相坐标系下,并前馈到指令两相电压完成电压补偿,转换公式为:Convert the three-phase voltage error to the two-phase coordinate system through CLARK transformation, and feed forward to the command two-phase voltage to complete the voltage compensation. The conversion formula is:
本发明提出的电压补偿策略基于硬件实时测量端电压,无需通过复杂的算法判断电流极性和计算补偿电压大小,补偿过程更为简单可靠。同时将电流和温度的对IGBT和二极管导通压降考虑在内,补偿更为精确。The voltage compensation strategy proposed by the present invention is based on the real-time measurement of terminal voltage by hardware, and there is no need to judge the current polarity and calculate the compensation voltage through a complex algorithm, and the compensation process is simpler and more reliable. At the same time, the current and temperature of the IGBT and diode conduction voltage drop are taken into account, and the compensation is more accurate.
能够证明本发明方法效果的实验如下,实验平台参数如表1和表2所示。The experiments that can prove the effect of the method of the present invention are as follows, and the parameters of the experimental platform are shown in Table 1 and Table 2.
1.逆变器端电压采集结果分析1. Analysis of inverter terminal voltage acquisition results
按照本发明提出的端电压采集电路通过DSP获取端电压的占空比和幅值,并进行相电压的计算。According to the terminal voltage acquisition circuit proposed by the present invention, the duty cycle and amplitude of the terminal voltage are acquired through DSP, and the phase voltage is calculated.
图6是从DSP中读取的A相端电压指令占空比和实际采集到的等效占空比波形,以及这两者之差。可以看到,占空比误差最主要的来源是插入的死区时间,IGBT的导通关断延时、PWM指令信号的传输延时以及小电流时寄生电容对等效占空比的影响也会造成占空比误差的波动。Figure 6 shows the command duty cycle of the A-phase terminal voltage read from the DSP and the equivalent duty cycle waveform actually collected, as well as the difference between the two. It can be seen that the main source of the duty cycle error is the inserted dead time, the on-off delay of the IGBT, the transmission delay of the PWM command signal, and the influence of the parasitic capacitance on the equivalent duty cycle when the current is small. It will cause fluctuations in the duty cycle error.
图7是ADC模块采集到的A相端电压和电流波形,UAHD、UAHF、UALD、UALF分别是逆变器上下桥臂的IGBT和二极管导通压降。图7(b)与图3实测波形吻合证明端电压采集原理的正确性。可以看到,IGBT和二极管导通压降并不是定值。Figure 7 is the A-phase terminal voltage and current waveforms collected by the ADC module. U AHD , U AHF , U ALD , and U ALF are the conduction voltage drops of the IGBTs and diodes of the upper and lower bridge arms of the inverter, respectively. Figure 7(b) is consistent with the measured waveform in Figure 3, which proves the correctness of the terminal voltage acquisition principle. It can be seen that the conduction voltage drop of IGBT and diode is not a fixed value.
图8是A相指令电压和根据式(1)、(2)计算的实际相电压,以及两者之差。图8表明逆变器的非理想特性会造成实际输出电压与指令电压产生误差,进而造成电流畸变。FIG. 8 shows the A-phase command voltage, the actual phase voltage calculated according to equations (1) and (2), and the difference between the two. Figure 8 shows that the non-ideal characteristics of the inverter can cause errors between the actual output voltage and the commanded voltage, which in turn cause current distortion.
2.电压补偿之前电机模拟器实验结果分析2. Analysis of the experimental results of the motor simulator before voltage compensation
电机模拟器实验中,电机模型空载运行,电机驱动器采用V/f开环控制策略,输出恒为 8V/10Hz的正弦波指令电压。In the motor simulator experiment, the motor model runs without load, the motor driver adopts the V/f open-loop control strategy, and the output is a constant 8V/10Hz sine wave command voltage.
图9中,上图是从DSP中获取的A相电压波形,下图是电机模型解算的参考电流和电机模拟器实际输出电流波形对比。图9说明电机模拟器可以稳定运行,实际电流能够准确跟踪指令电流,但是并不能证明电机模拟器可以准确模拟实际电机的特性。图10是电机模拟器的电流与相同V/f控制下的真实电机的电流波形对比,从中可以发现两者相位非常吻合,但是形状却有差别,具体表现为电机模拟器电流过零畸变时间变长和幅值发生变化。In Figure 9, the upper picture is the A-phase voltage waveform obtained from the DSP, and the lower picture is the comparison between the reference current calculated by the motor model and the actual output current waveform of the motor simulator. Figure 9 shows that the motor simulator can run stably and the actual current can accurately track the command current, but it does not prove that the motor simulator can accurately simulate the characteristics of the actual motor. Figure 10 is a comparison of the current waveform of the motor simulator and the real motor under the same V/f control. It can be found that the phases of the two are very consistent, but the shapes are different. Length and amplitude change.
通过分析,电流畸变是造成电机模拟器电流产生误差的根本原因,而电流畸变则是由于电机驱动器和电机模拟器中逆变器非理想特性造成的电压畸变引起的。图11是电机模拟器中逆变器的指令相电压和实际输出相电压以及两者之差,可以看到输出电压存在明显的畸变。同样的畸变也在图9中电机驱动器的逆变器输出电压中出现。解决这一问题的办法是对逆变器输出电压进行补偿。Through analysis, the current distortion is the root cause of the current error of the motor simulator, and the current distortion is caused by the voltage distortion caused by the non-ideal characteristics of the inverter in the motor driver and the motor simulator. Figure 11 shows the commanded phase voltage and actual output phase voltage of the inverter in the motor simulator and the difference between the two. It can be seen that the output voltage has obvious distortion. The same distortion also occurs in the inverter output voltage of the motor drive in Figure 9. The solution to this problem is to compensate the inverter output voltage.
3.电压补偿之后电机模拟器实验结果分析3. Analysis of the experimental results of the motor simulator after voltage compensation
图12是对电机驱动器的逆变器进行补偿之后指令电压和实际电压的波形对比,逆变器输出电压畸变几乎消失。图13是对电机模拟器的逆变器进行电压补偿后的电压对比,电压误差已经非常小。由于电机驱动器输出电压畸变消失,因此电机模拟器的逆变器指令电压相较于图11具有较好的正弦度,补偿之后的输出电压存在波动是由系统闭环调节造成的。Figure 12 shows the waveform comparison between the command voltage and the actual voltage after the inverter of the motor driver is compensated, and the output voltage distortion of the inverter almost disappears. Figure 13 shows the voltage comparison after voltage compensation is performed on the inverter of the motor simulator, and the voltage error is already very small. Since the distortion of the output voltage of the motor driver disappears, the inverter command voltage of the motor simulator has a better sine than that shown in Figure 11, and the fluctuation of the output voltage after compensation is caused by the closed-loop regulation of the system.
未进行电压补偿的电机模拟器电流波形和FFT分析如图14(a)所示,电流畸变严重,THD 值很大。只补偿电机驱动器的逆变器输出电压后如图14(b)所示,电流波形畸变减小,THD 值下降明显。电机驱动器和电机模拟器的逆变器输出电压均进行补偿后的电流波形如图14(c) 所示,电流畸变几乎消失,THD值也只有2.27%。可见本发明提出的补偿策略可以实现精确的电压补偿。The current waveform and FFT analysis of the motor simulator without voltage compensation are shown in Figure 14(a). The current distortion is severe and the THD value is large. After only compensating the inverter output voltage of the motor driver, as shown in Figure 14(b), the distortion of the current waveform is reduced, and the THD value drops significantly. Figure 14(c) shows the current waveforms after the inverter output voltages of both the motor driver and the motor simulator are compensated. The current distortion almost disappears, and the THD value is only 2.27%. It can be seen that the compensation strategy proposed by the present invention can realize precise voltage compensation.
图15是电机模拟器和同样进行电压补偿后的真实电机的电流波形对比,二者相位和形状几乎一致,证明了本发明提出的端电压采集方法和基于此的电压补偿策略可以提高功率级电机模拟器的模拟精度。Figure 15 is a comparison of the current waveforms of the motor simulator and the real motor after voltage compensation. The phases and shapes of the two are almost the same, which proves that the terminal voltage acquisition method proposed in the present invention and the voltage compensation strategy based on this can improve the power level motor. The simulation accuracy of the simulator.
表1电机模拟器系统参数Table 1 Motor Simulator System Parameters
表2模拟的电机参数Table 2 Simulated motor parameters
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910914335.7A CN110716082B (en) | 2019-09-24 | 2019-09-24 | Terminal voltage acquisition and compensation method for improving precision of power-stage motor simulator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910914335.7A CN110716082B (en) | 2019-09-24 | 2019-09-24 | Terminal voltage acquisition and compensation method for improving precision of power-stage motor simulator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110716082A true CN110716082A (en) | 2020-01-21 |
| CN110716082B CN110716082B (en) | 2021-11-02 |
Family
ID=69210930
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910914335.7A Active CN110716082B (en) | 2019-09-24 | 2019-09-24 | Terminal voltage acquisition and compensation method for improving precision of power-stage motor simulator |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110716082B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112398107A (en) * | 2020-11-13 | 2021-02-23 | 陕西航空电气有限责任公司 | Voltage sampling circuit in overvoltage suppression device of three-phase variable-frequency alternating-current power generation system |
| CN113193801A (en) * | 2021-04-20 | 2021-07-30 | 华中科技大学 | High-speed motor simulator control system and high-speed motor simulator |
| CN118897110A (en) * | 2024-07-03 | 2024-11-05 | 哈尔滨工业大学(威海) | A method for calculating high-frequency circulating current in branch circuits of motor simulator considering nonlinear factors |
Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001078494A (en) * | 1999-09-06 | 2001-03-23 | Yaskawa Electric Corp | DC offset correction method for AC motor drive device |
| CN103888005A (en) * | 2012-12-21 | 2014-06-25 | 上海大郡动力控制技术有限公司 | Compensation voltage algorithm of inverter dead zone in motor control system and interpolation method |
| CN104091485A (en) * | 2014-04-11 | 2014-10-08 | 中北大学 | Load simulator driven by two motors |
| CN204347120U (en) * | 2014-12-24 | 2015-05-20 | 徐工集团工程机械股份有限公司 | Voltage measuring apparatus |
| CN107017796A (en) * | 2017-06-12 | 2017-08-04 | 湖南大学 | A kind of orthogonal inverter control method of two-phase with compensation of delay function |
| CN206557603U (en) * | 2017-03-20 | 2017-10-13 | 北京润科通用技术有限公司 | A kind of motor simulation device and power of motor level emulation test system |
| CN107565873A (en) * | 2017-09-30 | 2018-01-09 | 广东威灵电机制造有限公司 | The terminal voltage measurement apparatus and measuring method of motor |
| CN107896054A (en) * | 2017-11-28 | 2018-04-10 | 株洲易力达机电有限公司 | A kind of EPS brushless electric machines PWM ripple dead area compensation devices |
| CN108092532A (en) * | 2017-12-31 | 2018-05-29 | 王大方 | A kind of Inverter Dead-time compensation method based on PWM triggering end voltage samples |
| CN108982959A (en) * | 2018-08-01 | 2018-12-11 | 上海金脉电子科技有限公司 | Motor control three-phase voltage sample circuit |
| CN109687701A (en) * | 2017-10-19 | 2019-04-26 | 华晨汽车集团控股有限公司 | A kind of identification of electric machine controller dead zone and compensation method |
| KR20190075621A (en) * | 2017-12-21 | 2019-07-01 | 엘지전자 주식회사 | Power converting apparatus and air conditioner including the same |
| CN110034700A (en) * | 2018-01-12 | 2019-07-19 | 欧姆龙(上海)有限公司 | The waveform controlling method of inverter output current, device and system |
| CN110048606A (en) * | 2019-05-23 | 2019-07-23 | 哈尔滨工业大学 | DC-DC boost converter Dynamic sliding mode voltage control method based on two type Adaptive Fuzzy Neural-network of section |
-
2019
- 2019-09-24 CN CN201910914335.7A patent/CN110716082B/en active Active
Patent Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001078494A (en) * | 1999-09-06 | 2001-03-23 | Yaskawa Electric Corp | DC offset correction method for AC motor drive device |
| CN103888005A (en) * | 2012-12-21 | 2014-06-25 | 上海大郡动力控制技术有限公司 | Compensation voltage algorithm of inverter dead zone in motor control system and interpolation method |
| CN104091485A (en) * | 2014-04-11 | 2014-10-08 | 中北大学 | Load simulator driven by two motors |
| CN204347120U (en) * | 2014-12-24 | 2015-05-20 | 徐工集团工程机械股份有限公司 | Voltage measuring apparatus |
| CN206557603U (en) * | 2017-03-20 | 2017-10-13 | 北京润科通用技术有限公司 | A kind of motor simulation device and power of motor level emulation test system |
| CN107017796A (en) * | 2017-06-12 | 2017-08-04 | 湖南大学 | A kind of orthogonal inverter control method of two-phase with compensation of delay function |
| CN107565873A (en) * | 2017-09-30 | 2018-01-09 | 广东威灵电机制造有限公司 | The terminal voltage measurement apparatus and measuring method of motor |
| CN109687701A (en) * | 2017-10-19 | 2019-04-26 | 华晨汽车集团控股有限公司 | A kind of identification of electric machine controller dead zone and compensation method |
| CN107896054A (en) * | 2017-11-28 | 2018-04-10 | 株洲易力达机电有限公司 | A kind of EPS brushless electric machines PWM ripple dead area compensation devices |
| KR20190075621A (en) * | 2017-12-21 | 2019-07-01 | 엘지전자 주식회사 | Power converting apparatus and air conditioner including the same |
| CN108092532A (en) * | 2017-12-31 | 2018-05-29 | 王大方 | A kind of Inverter Dead-time compensation method based on PWM triggering end voltage samples |
| CN110034700A (en) * | 2018-01-12 | 2019-07-19 | 欧姆龙(上海)有限公司 | The waveform controlling method of inverter output current, device and system |
| CN108982959A (en) * | 2018-08-01 | 2018-12-11 | 上海金脉电子科技有限公司 | Motor control three-phase voltage sample circuit |
| CN110048606A (en) * | 2019-05-23 | 2019-07-23 | 哈尔滨工业大学 | DC-DC boost converter Dynamic sliding mode voltage control method based on two type Adaptive Fuzzy Neural-network of section |
Non-Patent Citations (6)
| Title |
|---|
| DAFANG WANG ETC.: "Influences on Output Distortion in Voltage Source Inverter Caused by Power Devices’ Parasitic Capacitance", 《IEEE TRANSACTIONS ON POWER ELECTRONICS》 * |
| LIU GANG ETC.: "Neutral-Point Voltage Balancing in Three-Level Inverters Using an Optimized Virtual Space Vector PWM With Reduced Commutations", 《IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS》 * |
| MINGYU WANG ETC.: "A Novel Method for Compensating Phase Voltage Based on Online Calculating Compensation Time", 《JOURNAL OF POWER ELECTRONICS》 * |
| 汪苗等: "基于积分复位的电机模拟器端口电压采样方法研究", 《电测与仪表》 * |
| 董光林: "基于等效端电压的车用电机模拟器电压补偿研究", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
| 高玲玲: "伺服电机模拟器的设计与实现", 《电脑知识与技术》 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112398107A (en) * | 2020-11-13 | 2021-02-23 | 陕西航空电气有限责任公司 | Voltage sampling circuit in overvoltage suppression device of three-phase variable-frequency alternating-current power generation system |
| CN112398107B (en) * | 2020-11-13 | 2023-06-09 | 陕西航空电气有限责任公司 | Voltage sampling circuit in overvoltage suppression device of three-phase variable-frequency alternating-current power generation system |
| CN113193801A (en) * | 2021-04-20 | 2021-07-30 | 华中科技大学 | High-speed motor simulator control system and high-speed motor simulator |
| CN118897110A (en) * | 2024-07-03 | 2024-11-05 | 哈尔滨工业大学(威海) | A method for calculating high-frequency circulating current in branch circuits of motor simulator considering nonlinear factors |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110716082B (en) | 2021-11-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Barth et al. | Dithering digital ripple correlation control for photovoltaic maximum power point tracking | |
| CN110716082A (en) | Terminal voltage acquisition and compensation method for improving precision of power-stage motor simulator | |
| CN207021912U (en) | Multiple-channel output random waveform voltage source system | |
| CN101149425A (en) | An automatic system for debugging and calibrating electronic energy meters | |
| CN115128422A (en) | All-in-one test system and test method for electrical and thermal parameters of power semiconductor devices | |
| CN109581010B (en) | AC voltage standard source | |
| CN107167676A (en) | A kind of converters DC master row stray parameter extracting method | |
| CN103124141B (en) | A kind of electric power overhaul testing equipment metering verifies special high stability variable-frequency power sources | |
| CN118330414A (en) | Method and device capable of measuring bonding wire aging state of MOSFET power module on line | |
| CN111769595B (en) | Method for obtaining equivalent capacitance of grid-side converter of wind turbine based on parameter identification | |
| CN201188128Y (en) | Automatization system for debugging and checking electronic type electric energy meter | |
| CN106405365A (en) | Method of measuring loss of IGBT module of inverter on site | |
| CN109474218B (en) | Electric tool control device based on FOC | |
| CN107817379B (en) | Boost inductor current detection system of rectifier | |
| CN109756100B (en) | Dead time measuring method of motor controller | |
| Zhu | An adaptive IV curve detecting method for photovoltaic modules | |
| CN107359615B (en) | A kind of Active Power Filter-APF curren tracing control method and system | |
| Penczek et al. | Hardware-in-the-Loop FPGA-based simulations of switch-mode converters for research and educational purposes | |
| CN103439615B (en) | The equivalent conversion method of output voltage waveform distortion degree of photovoltaic inverter | |
| Mroczka et al. | A low cost maximum power point tracker with the hybrid algorithm that uses temperature measurement | |
| CN115754484A (en) | Online monitoring method and device for inductance of optical storage system | |
| CN209844854U (en) | Inversion test correction device applied to rectifier | |
| CN108418450B (en) | An adjustable voltage PWM rectifier and its APFC control method | |
| CN209881674U (en) | Multi-output arbitrary waveform power signal source | |
| CN207037046U (en) | A kind of Buck conversion circuit Installation for Efficiency Measurement of Hydro |
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 |





