Voltage compensation method, device and equipment

文档序号:54900 发布日期:2021-09-28 浏览:24次 中文

阅读说明:本技术 电压补偿方法、装置及设备 (Voltage compensation method, device and equipment ) 是由 邓家勇 刘鹏飞 刘晓红 吴壬华 于 2020-09-14 设计创作,主要内容包括:一种电压补偿方法、装置及设备,该方法包括:获取当前时刻的第一交流电压经过电压滤波器后输出的第一待补偿电压(S100);根据所述电压滤波器的滞后时长和所述第一待补偿电压的角频率,确定所述第一待补偿电压的补偿相位角(S101),其中所述电压滤波器的滞后时长由所述电压滤波器的电容值和电阻值确定;根据所述第一待补偿电压、所述第一待补偿电压的角频率以及所述补偿相位角,确定所述第一待补偿电压进行电压相位补偿后的输出电压(S102)。上述方法对经过电压滤波器之后的待补偿电压进行电压相位补偿,可以大大提高功率因数。(A voltage compensation method, a device and equipment are provided, and the method comprises the following steps: acquiring a first voltage to be compensated, which is output after a first alternating voltage at the current moment passes through a voltage filter (S100); determining a compensation phase angle of the first voltage to be compensated according to a lag time of the voltage filter and an angular frequency of the first voltage to be compensated (S101), wherein the lag time of the voltage filter is determined by a capacitance value and a resistance value of the voltage filter; and determining an output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated and the compensation phase angle (S102). The method carries out voltage phase compensation on the voltage to be compensated after passing through the voltage filter, and can greatly improve the power factor.)

1. A method of voltage compensation, the method comprising:

acquiring a first voltage to be compensated output by a first alternating voltage at the current moment after the first alternating voltage passes through a voltage filter;

determining a compensation phase angle of the first voltage to be compensated according to a lag time length of the voltage filter and an angular frequency of the first voltage to be compensated, wherein the lag time length of the voltage filter is determined by a capacitance value and a resistance value of the voltage filter;

and determining the output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated and the compensation phase angle.

2. The method of claim 1, further comprising:

acquiring a second voltage to be compensated, which is output after the first alternating voltage at a first moment passes through the voltage filter, wherein the first moment is before the current moment, and a time interval between the first moment and the current moment is a first preset time interval;

the determining, according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated, and the compensation phase angle, the output voltage of the first voltage to be compensated after voltage phase compensation includes:

and determining the output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the second voltage to be compensated, the first preset time interval, the angular frequency of the first voltage to be compensated and the compensation phase angle.

3. The method of claim 1, wherein determining the compensated phase angle of the first voltage to be compensated before determining the compensated phase angle of the first voltage to be compensated based on the lag time of the voltage filter and the angular frequency of the first voltage to be compensated comprises:

collecting the first voltage to be compensated at a second preset time interval and recording the voltage collection times;

if the third to-be-compensated voltage acquired at the second moment is smaller than the initial bias voltage and the fourth to-be-compensated voltage acquired at the third moment is larger than the initial bias voltage, taking the voltage acquisition times correspondingly recorded at the third moment as target voltage acquisition times, and determining the angular frequency of the first to-be-compensated voltage according to the target voltage acquisition times and a second preset time interval, wherein the time interval between the second moment and the third moment is the second preset time interval, and the second moment is before the third moment.

4. The method according to claim 3, wherein the second preset time interval is a voltage acquisition interval of each acquisition cycle;

if the third to-be-compensated voltage acquired at the second moment is smaller than the initial bias voltage and the fourth to-be-compensated voltage acquired at the third moment is larger than the initial bias voltage, taking the voltage acquisition times correspondingly recorded at the third moment as the target voltage acquisition times comprises the following steps:

if the third to-be-compensated voltage acquired at the second moment is smaller than the initial bias voltage and the fourth to-be-compensated voltage acquired at the third moment is larger than the initial bias voltage, taking the voltage acquisition times correspondingly recorded at the third moment as the voltage acquisition times of the current acquisition cycle, and resetting the voltage acquisition times to record the voltage acquisition times of the next acquisition cycle;

and determining the target voltage acquisition times according to the voltage acquisition times of n acquisition periods, wherein n is a positive integer greater than 1.

5. The method according to any one of claims 3-4, wherein the first AC voltage is output from an AC voltage source through a voltage bias circuit, the voltage bias circuit being configured to provide the initial bias voltage such that the first AC voltage output from the AC voltage source has a voltage value no less than zero.

6. The method according to claim 1, wherein the determining the output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated and the compensation phase angle is:

uac1=uac.sin(wt+θ)

wherein t is the current time uacThe amplitude of the first voltage to be compensated, w is the angular frequency of the first voltage to be compensated, and θ is the compensation phase angle.

7. The method according to claim 2, wherein the determining the output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the second voltage to be compensated, the first preset time interval, the angular frequency of the first voltage to be compensated, and the compensation phase angle is as follows:

wherein t is the current time uacSin (wt) is the first voltage to be compensated, uaclastFor the second to-be-compensated voltage, TsAnd in the first preset time interval, w is the angular frequency of the first voltage to be compensated, and theta is the compensation phase angle.

8. A voltage compensation device, comprising:

the acquisition module is used for acquiring a first voltage to be compensated, which is output after a first alternating current voltage at the current moment passes through the voltage filter;

a determining module, configured to determine a compensation phase angle of the first voltage to be compensated according to a lag time of the voltage filter and an angular frequency of the first voltage to be compensated, where the lag time of the voltage filter is determined by a capacitance value and a resistance value of the voltage filter;

the determining module is further configured to determine an output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated, and the compensation phase angle.

9. A voltage compensation device, characterized in that the device comprises a transceiver, a processor and a memory, wherein the processor is adapted to execute a computer program stored in the memory to implement the steps of the method according to any of claims 1 to 7.

10. A computer-readable storage medium having stored therein instructions which, when run on a computer, cause the computer to perform the steps of the method according to any one of claims 1 to 7.

Technical Field

The present application relates to the field of power electronics technologies, and in particular, to a voltage compensation method, device and apparatus.

Background

In the power electronic technology, when the alternating voltage is filtered by a voltage filter to filter the high-frequency noise interference of the alternating voltage, the voltage filter comprises a capacitor, a resistor and other nonlinear devices, and the voltage at two ends of the capacitor cannot change suddenly, so that the phases of the alternating voltage and the current obtained after filtering are different. According to the definition of Power Factor (PF), PF is equal to P/S, where P represents active Power, s stands for apparent power, and without considering current harmonics, S ═ UIN×IINCan obtainIs the phase difference between the voltage and the current. Therefore, the PF is a parameter for measuring the utilization efficiency of electric energy, the higher the PF value is, the higher the active power is, the lower the reactive power is, and the higher the energy utilization rate is, and the PF value is related to the phase difference between the voltage and the current.

In the prior art, in order to improve the PF value, a Power Factor Correction (PFC) technology is used, in which an inductor, a semiconductor device, a capacitor, and the like form a PFC circuit, and a conduction angle of an input current is increased to improve a circuit Power Factor.

Disclosure of Invention

Based on the above problems, the present application provides a voltage compensation method, which performs voltage phase compensation on a voltage to be compensated after passing through a voltage filter, and can greatly improve a power factor.

In a first aspect, an embodiment of the present application provides a voltage compensation method, where the method includes:

acquiring a first voltage to be compensated output by a first alternating voltage at the current moment after the first alternating voltage passes through a voltage filter;

determining a compensation phase angle of the first voltage to be compensated according to a lag time length of the voltage filter and an angular frequency of the first voltage to be compensated, wherein the lag time length of the voltage filter is determined by a capacitance value and a resistance value of the voltage filter;

and determining the output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated and the compensation phase angle.

In a possible embodiment, the method further comprises:

acquiring a second voltage to be compensated, which is output after the first alternating voltage at a first moment passes through the voltage filter, wherein the first moment is before the current moment, and a time interval between the first moment and the current moment is a first preset time interval;

the determining, according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated, and the compensation phase angle, the output voltage of the first voltage to be compensated after voltage phase compensation includes:

and determining the output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the second voltage to be compensated, the first preset time interval, the angular frequency of the first voltage to be compensated and the compensation phase angle.

In one possible implementation, the determining the compensated phase angle of the first voltage to be compensated according to the lag time of the voltage filter and the angular frequency of the first voltage to be compensated before includes:

collecting the first voltage to be compensated at a second preset time interval and recording the voltage collection times;

if the third to-be-compensated voltage acquired at the second moment is smaller than the initial bias voltage and the fourth to-be-compensated voltage acquired at the third moment is larger than the initial bias voltage, taking the voltage acquisition times correspondingly recorded at the third moment as target voltage acquisition times, and determining the angular frequency of the first to-be-compensated voltage according to the target voltage acquisition times and a second preset time interval, wherein the time interval between the second moment and the third moment is the second preset time interval, and the second moment is before the third moment.

Further, the second preset time interval is a voltage acquisition interval of each acquisition cycle;

if the third to-be-compensated voltage acquired at the second moment is smaller than the initial bias voltage and the fourth to-be-compensated voltage acquired at the third moment is larger than the initial bias voltage, taking the voltage acquisition times correspondingly recorded at the third moment as the target voltage acquisition times comprises the following steps:

if the third to-be-compensated voltage acquired at the second moment is smaller than the initial bias voltage and the fourth to-be-compensated voltage acquired at the third moment is larger than the initial bias voltage, taking the voltage acquisition times correspondingly recorded at the third moment as the voltage acquisition times of the current acquisition cycle, and resetting the voltage acquisition times to record the voltage acquisition times of the next acquisition cycle;

and determining the target voltage acquisition times according to the voltage acquisition times of n acquisition periods, wherein n is a positive integer greater than 1.

Optionally, the first ac voltage is output by an ac voltage source through a voltage bias circuit, and the voltage bias circuit is configured to provide the initial bias voltage, so that a voltage value of the first ac voltage output by the ac voltage source is not less than zero.

In a possible implementation manner, the determining, according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated, and the compensation phase angle, an output voltage of the first voltage to be compensated after voltage phase compensation is as follows:

uac1=uac.sin(wt+θ)

wherein t is the current time uacIs the amplitude of the first voltage to be compensated, w is the angular frequency of the first voltage to be compensated, and theta isAnd compensating the phase angle.

In another possible implementation manner, the determining, according to the first voltage to be compensated, the second voltage to be compensated, the first preset time interval, the angular frequency of the first voltage to be compensated, and the compensation phase angle, an output voltage of the first voltage to be compensated after voltage phase compensation is that:

wherein t is the current time uacSin (wt) is the first voltage to be compensated, uaclastFor the second to-be-compensated voltage, TsAnd in the first preset time interval, w is the angular frequency of the first voltage to be compensated, and theta is the compensation phase angle.

In a second aspect, an embodiment of the present application further provides a voltage compensation apparatus, including:

the acquisition module is used for acquiring a first voltage to be compensated, which is output after a first alternating current voltage at the current moment passes through the voltage filter;

a determining module, configured to determine a compensation phase angle of the first voltage to be compensated according to a lag time of the voltage filter and an angular frequency of the first voltage to be compensated, where the lag time of the voltage filter is determined by a capacitance value and a resistance value of the voltage filter;

the determining module is further configured to determine an output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated, and the compensation phase angle.

In a third aspect, an embodiment of the present application further provides a voltage compensation device, where the device includes a transceiver, a processor, and a memory, where the processor is configured to execute a computer program stored in the memory, so as to implement any one of the above possible embodiments.

In a fourth aspect, the present application also provides a computer-readable storage medium having stored therein instructions, which, when executed on a computer, cause the computer to perform the method of the above aspects.

In the application, a voltage compensation device acquires a first voltage to be compensated, which is output after a first alternating current voltage at the current moment passes through a voltage filter; determining a compensation phase angle of the first voltage to be compensated according to a lag time length of the voltage filter and an angular frequency of the first voltage to be compensated, wherein the lag time length of the voltage filter is determined by a capacitance value and a resistance value of the voltage filter; and determining the output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated and the compensation phase angle. By implementing the embodiment of the application, the voltage phase compensation is carried out on the voltage to be compensated after passing through the voltage filter, so that the power factor can be greatly improved.

Drawings

Fig. 1 is a schematic flowchart of a voltage compensation method according to an embodiment of the present disclosure;

FIG. 2 is a schematic voltage waveform provided by an embodiment of the present application;

fig. 3 is a schematic diagram of voltage acquisition according to an embodiment of the present disclosure;

FIG. 4 is a schematic diagram of a system for voltage compensation according to an embodiment of the present application;

fig. 5 is a block diagram of a voltage compensation apparatus according to an embodiment of the present disclosure;

fig. 6 is a block diagram of a voltage compensation device according to an embodiment of the present disclosure.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The implementation of the technical solution of the present application is further described in detail below with reference to the accompanying drawings, see fig. 1 to 3.

Referring to fig. 1, fig. 1 is a schematic flow chart of a voltage compensation method according to an embodiment of the present disclosure. As shown in fig. 1, the specific implementation steps of the embodiment of the present application are as follows:

s100, the voltage compensation device obtains a first voltage to be compensated, which is output after a first alternating current voltage at the current moment passes through a voltage filter. Specifically, the voltage compensation device has an analog-to-digital conversion function, can collect the first voltage to be compensated, and converts the first voltage to be compensated into a digital signal, and the voltage filter comprises at least one capacitor and at least one resistor, can form a high-pass filter, a low-pass filter, a band-pass filter or a band-stop filter, and the like, and is used for filtering high-frequency noise interference of the first alternating voltage. Because the capacitor is a nonlinear component, the phase of the first voltage to be compensated, which is obtained by passing the first ac voltage through the voltage filter, lags behind the phase of the first ac voltage, and the phase relationship between the first ac voltage and the first voltage to be compensated can refer to fig. 2, where fig. 2 is a voltage waveform diagram provided in the embodiment of the present application. As shown in fig. 2, the phase of the first voltage to be compensated lags the phase of the first ac voltage by a time T.

S101, the voltage compensation device determines a compensation phase angle of the first voltage to be compensated according to a lag time of the voltage filter and an angular frequency of the first voltage to be compensated, wherein the lag time of the voltage filter is determined by a capacitance value and a resistance value of the voltage filter. Specifically, in the voltage filter, a hysteresis duration of the voltage filter is a product of a resistance and a capacitance, that is, the hysteresis duration T is RC, where R is a resistance value of the voltage filter and C is a capacitance value of the voltage filter. It is understood that the voltage filter is a hardware filter, that is, the resistance and the capacitance of the voltage filter are actually used components, and the hysteresis time length of the voltage filter is determined according to the resistance value and the capacitance value of the voltage filter, and is a preset fixed value. The voltage compensation device determines a compensation phase angle theta of the first voltage to be compensated, which is wT, according to the hysteresis time length T of the voltage filter and the angular frequency w of the first voltage to be compensated.

The hysteresis time period T of the voltage filter is preset, and the acquisition of the angular frequency is described in detail below. In a possible implementation manner, before performing step S101, the voltage compensation apparatus includes: and the voltage compensation device collects the first voltage to be compensated at a second preset time interval and records the voltage collection times. Optionally, the first preset time interval and the second preset time interval may be the same. Specifically, referring to fig. 3, fig. 3 is a schematic voltage acquisition diagram provided in the embodiment of the present application. As shown in fig. 3, the second preset time interval is TsFor example, the second preset time interval may be adjusted by changing an operating frequency of the voltage compensation device. If the third voltage to be compensated acquired at the second time is smaller than the initial bias voltage, it can be understood that the first ac voltage includes a negative voltage, and in order to change the negative voltage portion in the first ac voltage to a voltage not smaller than zero, for example, the first ac voltage may be output by an ac voltage source through a voltage bias circuit, the voltage bias circuit is configured to provide the initial bias voltage, so that the voltage value of the first ac voltage output by the ac voltage source is not smaller than zero, and then the voltage value of the first voltage to be compensated obtained by the first ac voltage passing through the voltage filter is not smaller than zero; for another example, the first voltage to be compensated may be output to the voltage compensation device through the voltage bias circuit, so that the voltage value of the first voltage to be compensated is not less than zero. By implementing the embodiment, the voltage acquisition of the voltage compensation device is facilitated, so that the voltages acquired by the voltage acquisition device are all positive voltages.

And when the fourth to-be-compensated voltage acquired at the third moment of the voltage compensation device is greater than the initial bias voltage, corresponding the third momentAnd taking the recorded voltage acquisition times as target voltage acquisition times, and determining the angular frequency of the first voltage to be compensated according to the target voltage acquisition times and a second preset time interval, wherein the time interval between the second moment and the third moment is the second preset time interval, and the second moment is before the third moment. Exemplarily, the second preset time interval T is setsMultiplying the target voltage acquisition times N to obtain the first voltage to be compensated with a period of NxTsFor example, the number of voltage acquisitions recorded at the second time is 18, the number of voltage acquisitions recorded at the third time is 19, and the second preset time interval T issThe sampling period of the first voltage to be compensated is 19ms when the sampling period is 1ms, and the angular frequency w of the first voltage to be compensated is 2 pi/(n × T) according to the definition formula of the angular frequencys). Optionally, the number of voltage acquisitions recorded correspondingly at the second time may also be used as the number of target voltage acquisitions, that is, the acquisition period of the first voltage to be compensated is 18 ms. Further, in order to reduce the error of the acquisition period of the first voltage to be compensated, the operating frequency of the voltage compensation device may be set as high as possible, i.e. the second predetermined time interval is as small as possible.

Further, in order to improve the accuracy of the angular frequency of the first voltage to be compensated, data processing may be performed on the voltage acquisition times in n acquisition cycles to obtain the target voltage acquisition times, where n is a positive integer greater than 1. Illustratively, the second preset time interval is a voltage acquisition interval of each acquisition cycle; if the third to-be-compensated voltage acquired at the second moment is smaller than the initial bias voltage and the fourth to-be-compensated voltage acquired at the third moment is larger than the initial bias voltage, the voltage compensation device takes the voltage acquisition times correspondingly recorded at the third moment as the voltage acquisition times of the current acquisition period and clears the voltage acquisition times to record the voltage acquisition times of the next acquisition period; and the voltage compensation device determines the target voltage acquisition times according to the voltage acquisition times of n acquisition periods, wherein n is a positive integer greater than 1. Taking n as 5 as an example, the voltage compensation device continuously acquires the voltage acquisition times of 5 acquisition periods, and the voltage acquisition times of the 5 acquisition periods are 19, 18, 17 and 18 respectively. In a possible implementation manner, the voltage compensation device may use a mode of voltage acquisition times in n acquisition periods, that is, 5 acquisition periods, as the target voltage acquisition times, that is, the target voltage acquisition times is 18; in another possible implementation manner, the voltage compensation device may use an average value of the voltage acquisition times in the n acquisition periods, that is, 5 acquisition periods, as the target voltage acquisition time, that is, the target voltage acquisition time is 18. It should be noted that, the present application does not limit how to process the data of the voltage collection times to obtain the target voltage collection times.

S102, the voltage compensation device determines an output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated and the compensation phase angle. Specifically, the voltage compensation device obtains the first voltage to be compensated u from step S100acSin (wt), determining the compensation phase angle θ of the first voltage to be compensated by step S101. In a possible implementation manner, the voltage compensation apparatus determines, according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated, and the compensation phase angle, that an output voltage of the first voltage to be compensated after voltage phase compensation is:

uac1=uacsin (wt + θ) equation 1

Wherein t is the current time uacThe amplitude of the first voltage to be compensated, w is the angular frequency of the first voltage to be compensated, and θ is the compensation phase angle.

In order to reduce the operation amount of the voltage compensation device, in another possible implementation manner, the voltage compensation device obtains a second voltage to be compensated, which is output after the first alternating-current voltage at a first time passes through the voltage filter, where the first time is before the current time, and a time interval between the first time and the current time is a first preset time interval; and the voltage compensation device determines the output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the second voltage to be compensated, the first preset time interval, the angular frequency of the first voltage to be compensated and the compensation phase angle.

Specifically, from equation 1, equation 2 can be obtained as follows:

uac1=uac.sin(wt)cos(θ)+uaccos (wt) sin (θ) equation 2

Wherein u isacSin (wt) is the first voltage to be compensated, which is obtained by the voltage compensation device through step S100, and uacCos (wt) can be expressed as:

wherein u isacSin (wt) is the first voltage to be compensated, uaclastFor said second voltage to be compensated, i.e. uaclast=uac.sin[w(t-Ts)]W is the angular frequency of the first voltage to be compensated, TsIs the first preset time interval.

Therefore, the output voltage after the voltage phase compensation of the first voltage to be compensated can be obtained from the formula 2 and the formula 3 as follows:

wherein t is the current time uacSin (wt) is the first voltage to be compensated, uaclastFor said second voltage to be compensated, i.e. uaclast=uac.sin[w(t-Ts)],TsAnd in the first preset time interval, w is the angular frequency of the first voltage to be compensated, and theta is the compensation phase angle.

By the formula 4 and the formula1, comparing, that formula 1 needs to obtain a phase angle wt of the first voltage to be compensated in real time, where the phase angle wt is obtained after the first voltage to be compensated is locked, and may be implemented by a code for implementing a phase-locked loop, for example, it can be seen that formula 1 needs to be implemented by adding a software code; formula 4 converts the sine operation into an addition, subtraction, multiplication and division four-rule operation, and u can be obtained by querying the first voltage to be compensated acquired in real time in step S100acSin (wt) and uaclastAs shown in step S101, if θ ═ wT, the angular frequency w of the first voltage to be compensated is constant, and T is a preset value, the sine cosine value of the compensated phase angle is calculated by the voltage compensation device once or K times, and K is a preset positive integer, without adding extra code to obtain the phase angle in real time for sine calculation as in equation 1, the software resources of the voltage compensation device can be released, and the calculation time of the voltage compensation device can be reduced.

In the application, a voltage compensation device acquires a first voltage to be compensated, which is output after a first alternating current voltage at the current moment passes through a voltage filter; determining a compensation phase angle of the first voltage to be compensated according to a lag time length of the voltage filter and an angular frequency of the first voltage to be compensated, wherein the lag time length of the voltage filter is determined by a capacitance value and a resistance value of the voltage filter; and determining the output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated and the compensation phase angle. According to the embodiment of the application, the voltage phase compensation is carried out on the voltage to be compensated after passing through the voltage filter, so that the power factor can be greatly improved.

The system of voltage compensation is described in the following with reference to the accompanying drawings. Referring to fig. 4, fig. 4 is a schematic diagram of a system structure for voltage compensation according to an embodiment of the present application. As shown in fig. 4, the voltage compensation system includes a voltage compensation device 40, a voltage filter 41, a voltage bias circuit 42, an ac voltage source 43, and a totem-pole Boost topology circuit 44. It should be noted that the voltage compensation device 40 may implement any one of the possible embodiments described in fig. 1 to fig. 3, for example, the voltage compensation device 40 may perform power factor correction on a circuit controlled by the totem-pole Boost topology circuit 44, and may also combine any one of circuit topologies that implement current and voltage in the same phase by controlling conduction and closing of switching tubes through Pulse Width Modulation (PWM), such as an interleaved parallel Boost PFC topology or a zero ripple PFC topology, which is exemplified by the totem-pole Boost topology circuit in this embodiment.

The voltage compensation device 40 may include a voltage obtaining unit 400, a voltage phase compensation unit 401, a calculating unit 402, a voltage loop controller 403, a current obtaining unit 404, a current loop controller 405, and a PWM generator 406, and optionally, the voltage compensation device 40 may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and the like. Specifically, the voltage obtaining unit 400 is configured to collect the first voltage to be compensated; the voltage phase compensation unit 401 performs phase compensation on the first voltage to be compensated to obtain an output voltage after performing voltage phase compensation on the first voltage to be compensated; the voltage loop controller 403 is configured to stabilize an output voltage of the totem-pole Boost topology circuit 44; the current loop controller 405 is used to control the duty cycle of the PWM waveform generated by the PWM generator 406.

The principle of the system for voltage compensation is as follows: the ac voltage source 43 outputs an ac voltage, and the first ac voltage is obtained through the voltage bias circuit 42, and optionally, the voltage bias circuit 42 may also be disposed after the voltage filter 41. The phase of the first voltage to be compensated after passing through the voltage filter 41 lags behind the voltage output by the ac voltage source 43, and a specific schematic diagram of the phase lag can be referred to in fig. 2. The voltage obtaining unit 400 in the voltage compensation device 40 obtains the first voltage to be compensated, transmits the first voltage to be compensated to the voltage phase compensation unit 401, obtains an output voltage obtained by performing voltage phase compensation on the first voltage to be compensated, and uses the output voltage obtained by performing phase compensation as an input of the multiplier, it can be understood that the multiplier and calculating the difference between the two are both functions implemented by the calculating unit 402. The other input of the multiplier is from the output of the voltage loop controller 403, and the input of the voltage loop controller 403 is the difference between the reference voltage and the output voltage of the totem-pole Boost topology circuit 44, where the reference voltage is preset and is the voltage that the totem-pole Boost topology circuit expects to output. The multiplier obtains the reference current of the current loop controller according to the output of the voltage phase compensation module 401 and the output of the voltage loop controller 403, and the phase compensation is performed on the first voltage to be compensated obtained by the voltage obtaining unit 400 in the present application, that is, it can be understood that the phase of the reference current is the same as the phase of the first ac voltage. The current obtaining unit 404 collects a current of an inductor at an input end of the totem-pole Boost topology circuit 44, a difference value between the current of the inductor and a reference current of the current loop controller is used as an input of the current loop controller 405, the current loop controller 405 controls the PWM generator 406 to generate a duty ratio of a PWM waveform, and the PWM generator 406 outputs the generated PWM waveform to four switching tubes in the totem-pole Boost topology circuit 44, so as to control on and off states of the switching tubes, so that a phase of the first alternating voltage passing through the voltage filter 41 and then passing through the totem-pole Boost topology circuit 44 to generate a current is the same as a phase of the first alternating voltage. It should be noted that if the voltage phase compensation of the present application is not adopted, the duty ratio of the PWM waveform generated by the PWM generator 406 is not accurate enough, so that the phase of the first ac voltage after passing through the voltage filter 41 is different from the current phase in the circuit where the totem-pole Boost topology circuit 44 is located, in this embodiment, the control parameter of the PWM waveform duty ratio for controlling the on and off states of the switching tube is adjusted, that is, the reference current is adjusted, the phase of the reference current is the same as the phase of the first ac voltage by performing the phase compensation on the first voltage to be compensated, so as to control the PWM duty ratio output by the PWM generator, so that the phase of the first ac voltage after passing through the overvoltage filter is the same as the current phase in the circuit where the totem-pole Boost topology circuit is located, further improving the power factor.

An embodiment of the present application further provides a voltage compensation apparatus, referring to fig. 5, and fig. 5 is a block diagram of a structure of the voltage compensation apparatus provided in the embodiment of the present application. As shown in fig. 5, the voltage compensation device 50 includes:

the obtaining module 500 is configured to obtain a first voltage to be compensated, which is output after a first alternating-current voltage at a current moment passes through a voltage filter;

a determining module 501, configured to determine a compensation phase angle of the first voltage to be compensated according to a lag time of the voltage filter and an angular frequency of the first voltage to be compensated, where the lag time of the voltage filter is determined by a capacitance value and a resistance value of the voltage filter;

the determining module 501 is further configured to determine an output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the angular frequency of the first voltage to be compensated, and the compensation phase angle.

In a possible embodiment, the obtaining module 500 is further configured to obtain a second voltage to be compensated, which is output after the first ac voltage at a first time passes through the voltage filter, where the first time is before the current time, and a time interval between the first time and the current time is a first preset time interval;

the determining module 501 is further configured to determine an output voltage of the first voltage to be compensated after voltage phase compensation according to the first voltage to be compensated, the second voltage to be compensated, the first preset time interval, the angular frequency of the first voltage to be compensated, and the compensation phase angle.

In a possible implementation manner, the obtaining module 500 is further configured to collect the first voltage to be compensated at a second preset time interval;

the voltage compensation device 50 further includes a recording module 502;

the recording module 502 is used for recording the voltage acquisition times;

the recording module 502 is further configured to, when a third to-be-compensated voltage acquired at a second time is smaller than an initial bias voltage and a fourth to-be-compensated voltage acquired at the third time is greater than the initial bias voltage, take the number of voltage acquisitions recorded corresponding to the third time as a target voltage acquisition number, and the determining module 501 is further configured to determine the angular frequency of the first to-be-compensated voltage according to the target voltage acquisition number and a second preset time interval, where a time interval between the second time and the third time is the second preset time interval, and the second time is before the third time.

Further, the second preset time interval is a voltage acquisition interval of each acquisition cycle;

the determining module 501 is further configured to, when the third to-be-compensated voltage acquired at the second time is smaller than the initial bias voltage and the fourth to-be-compensated voltage acquired at the third time is larger than the initial bias voltage, use the voltage acquisition frequency, which is recorded by the recording module 502 and is corresponding to the third time, as the voltage acquisition frequency of the current acquisition cycle, and clear the voltage acquisition frequency to record the voltage acquisition frequency of the next acquisition cycle;

the determining module 501 is further configured to determine the number of times of acquiring the target voltage according to the number of times of acquiring the voltage in n acquisition cycles, where n is a positive integer greater than 1.

Optionally, the first ac voltage is output by an ac voltage source through a voltage bias circuit, and the voltage bias circuit is configured to provide the initial bias voltage, so that a voltage value of the first ac voltage output by the ac voltage source is not less than zero.

In a possible implementation manner, the output voltage of the first voltage to be compensated, which is determined by the determining module 501 and subjected to voltage phase compensation, is:

uac1=uacsin (wt + θ) equation 5

Wherein t is the current time uacThe amplitude of the first voltage to be compensated, w is the angular frequency of the first voltage to be compensated, and θ is the compensation phase angle.

In another possible implementation manner, the output voltage of the first voltage to be compensated, which is determined by the determining module 501 and subjected to voltage phase compensation, is:

wherein t is the current time uacSin (wt) is the first voltage to be compensated, uaclastFor the second to-be-compensated voltage, TsAnd in the first preset time interval, w is the angular frequency of the first voltage to be compensated, and theta is the compensation phase angle.

Referring to fig. 6, fig. 6 is a block diagram of a voltage compensation device according to an embodiment of the present disclosure. As shown in fig. 6, the voltage compensation device 60 includes a transceiver 600, a processor 601, and a memory 602, wherein:

the transceiver 600 is configured to obtain the first voltage to be compensated, and the processor 600 may be a Central Processing Unit (CPU), and the processor may also be another general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

The memory 602 stores instructions, and it is understood that the memory 602 stores therein the first preset time interval, the compensated phase angle, a sine value and/or a cosine value of the compensated phase angle, and so on. Illustratively, the memory 602 may include both read-only memory and random access memory, and provides instructions and data to the processor 601 and the transceiver 600. A portion of the memory 602 may also include non-volatile random access memory. For example, memory 602 may also store device type information

The processor 601 is configured to execute the computer program stored in the memory to implement any one of the possible embodiments described above.

In a specific implementation, the voltage compensation device may execute the implementation manners provided in the steps in fig. 1 to 4 through the built-in functional modules, which may specifically refer to the implementation manners provided in the steps in fig. 1 to 4, and thus, details are not described herein again

The present application provides a computer-readable storage medium having stored therein instructions, which when executed on a computer, cause the computer to perform any one of the possible embodiments described above.

It should be noted that the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.

In the embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and system may be implemented in other ways. The above-described embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.

The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:有源钳位电路及相关设备

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!