Method and controller for controlling grid-connected power factor of dual current controlled flyback inverter

Through the dual current control method, the phase and frequency of the power grid operating electrical signal are used to generate a corrected modulated wave signal to adjust the power factor of the flyback inverter, solving the problem that the power factor cannot be adjusted in the prior art, and realizing the power grid and photovoltaic energy transmission on the side is reduced in two directions and harmonics.

CN118694199BActive Publication Date: 2024-12-06SHENZHEN TOP TEK ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411164191.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-06
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

The existing flyback inverters cannot effectively adjust the power factor when connected to the grid, especially the transmission of energy from the power grid to the photovoltaic side, and lack detailed micro-power factor adjustment control methods.

Method used

By using the dual current control method, by obtaining the working electrical signal of the target power grid, phase locking and generating voltage and current modulated wave signals consistent with its phase and frequency, phase angle adjustment is performed according to the preset power factor, and the two waveforms are fused to generate corrections. Modulate the wave signal and control the flyback inverter to output the corresponding alternating current.

Benefits of technology

The power factor adjustment of the flyback inverter when connected to the grid is realized, reducing the harmonic distortion rate, and allowing energy to be transmitted in both directions on the power grid and photovoltaic sides.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694199B_ABST
    Figure CN118694199B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for adjusting the power factor of a dual current controlled flyback inverter connected to the grid. The power factor adjustment method for the grid connection includes the following steps: obtaining a working electrical signal of a target power grid; obtaining a first current modulation wave signal; obtaining a second current modulation wave signal; obtaining a waveform of a modified modulation wave signal; and controlling the flyback inverter to output a target alternating current corresponding to the waveform of the modified modulation wave signal to the target power grid or power-consuming equipment. The modified modulation wave signal generated by the second half waveform of the first current modulation wave signal and the first half waveform of the second current modulation wave signal has a signal that is consistent with the phase and frequency of the working electrical signal of the power grid, and also has a signal that has a phase angle difference with the working electrical signal of the power grid. By controlling the flyback inverter through the modified modulation wave signal in the present invention, the flyback inverter can accurately adjust the power factor when connected to the grid, and reduce the harmonic distortion rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of flyback inverter grid connection, and in particular to a method and a controller for controlling the power factor of a flyback inverter grid connection by dual current. Background Art

[0002] In recent years, as energy crisis and environmental problems have become increasingly serious, solar energy has developed rapidly as a clean and renewable energy source. Photovoltaic power generation based on renewable solar energy can produce more electric energy, thereby solving the growing demand for electricity. Photovoltaic power generation often requires the use of inverters to convert direct current into alternating current, and then connect the alternating current to the corresponding power grid.

[0003] An inverter is a device that converts direct current (DC) into alternating current (AC). General inverters use a technique called PWM (pulse width modulation) or SPWM (sinusoidal pulse width modulation) to generate AC. In the process of using SPWM technology, the inverter simulates a sine waveform by quickly switching switching devices (such as IGBT). Since the switching instantaneous change speed of the switching device is very fast, the inverter will generate high-frequency harmonics when switching the switching device to simulate the sine wave. In addition, photovoltaic power generation circuits generally have inductive or capacitive loads, which generate active power and reactive power. The active power and reactive power will be asynchronous or have a phase angle, resulting in a change in the power factor.

[0004] In the prior art, a diode is usually used for the output of a flyback circuit. This circuit can achieve a grid-connected current with a power factor of 1. However, due to the unidirectional conduction characteristics of the diode, it is impossible to transmit energy from the grid to the photovoltaic side, and it is also impossible to adjust the power factor of the inverter grid-connected. Currently, there is no detailed publicly disclosed inverter grid-connected control method specifically for flyback micro power factor adjustment in the prior art. Summary of the invention

[0005] The main purpose of the present invention is to propose a method for adjusting the power factor of a grid-connected flyback inverter with dual current control, aiming to solve the problem of how to accurately adjust the power factor.

[0006] To achieve the above object, the present invention proposes a method for controlling the grid-connected power factor of a dual current controlled flyback inverter, comprising the following steps:

[0007] Obtaining the working electrical signal of the target power grid;

[0008] Phase-locking the working electrical signal to obtain a voltage modulation wave signal and a first current modulation wave signal that are consistent with the phase and frequency of the working electrical signal;

[0009] Shifting the phase of the first current modulation wave signal according to the phase angle corresponding to the preset power factor to obtain a second current modulation wave signal having the same frequency as the first current modulation wave signal and having a phase angle difference with respect to the first current modulation wave signal;

[0010] Acquire the waveforms of the first current modulation wave signal and the second current modulation wave signal, select partial waveforms of the first current modulation wave signal and the second current modulation wave respectively, and merge the two waveforms to obtain the waveform of the modified modulation wave signal;

[0011] The flyback inverter is controlled to output target alternating current corresponding to the waveform of the modified modulation wave signal to the target power grid or power-consuming equipment.

[0012] Furthermore, the step of fusing the modified waveform with a portion of the waveform of the current modulation wave signal to obtain a modified modulation wave signal waveform includes:

[0013] Obtaining an intersection point between the waveform of the first current modulation wave signal and the waveform of the second current modulation wave signal in each half cycle;

[0014] The waveform of the first current modulation wave signal located on one side of the intersection is used as the first half waveform, and the waveform of the second current modulation wave signal located on the other side of the intersection is used as the second half waveform;

[0015] The first half waveform and the second half waveform are spliced ​​together to obtain the waveform of the modified modulated wave signal.

[0016] Furthermore, the step of fusing the modified waveform with a portion of the waveform of the current modulation wave signal to obtain a modified modulation wave signal waveform includes:

[0017] When the first current modulation wave signal leads the second current modulation wave signal, the waveform of the second current modulation wave signal from the zero point to the intersection of the second current modulation wave signal is selected as the first half waveform, and the waveform of the first current modulation wave signal from the intersection to the end point of the half cycle in each half cycle is selected as the second half waveform;

[0018] When the first current modulation wave signal lags behind the second current modulation wave, the waveform corresponding to the second current modulation wave signal from the intersection point to the zero point of the second current modulation wave signal in each half cycle is selected as the first half waveform, and the waveform corresponding to the first current modulation wave signal from the starting point of the half cycle to the intersection point in each half cycle is selected as the second half waveform.

[0019] Furthermore, the first current modulation wave signal is phase-shifted according to the phase angle corresponding to the preset power factor to obtain a second current modulation wave signal having the same frequency as the first current modulation wave signal and having a phase angle difference with respect to the first current modulation wave signal, including:

[0020] When the load connected to the flyback inverter is an inductive load, the first current modulation wave signal is phase-shifted in a lag direction according to a power factor angle corresponding to a preset power factor; or,

[0021] When the load connected to the flyback inverter is a capacitive load, the first current modulation wave signal is phase-shifted in a leading direction according to a power factor angle corresponding to a preset power factor.

[0022] Furthermore, the first current modulation wave signal is phase-shifted according to the phase angle corresponding to the preset power factor to obtain a second current modulation wave signal having the same frequency as the first current modulation wave signal and having a phase angle difference with respect to the first current modulation wave signal, including:

[0023] Calculating a phase difference angle of the second current modulation wave signal relative to the first current modulation wave according to a power factor angle corresponding to a preset power factor;

[0024] Calculating the phase of the first current modulation wave and the phase difference angle to obtain the phase of the second current modulation wave signal;

[0025] The frequency of the first current modulated wave signal is used as the frequency of the current modulated wave signal, and the second current modulated wave signal is obtained according to the phase of the second current modulated wave signal.

[0026] Furthermore, the two waveforms are merged to obtain a waveform of a modified modulated wave signal, including:

[0027] The two waveforms are merged to obtain the waveform of the sinusoidal modulated wave signal;

[0028] Acquire a carrier signal, where the carrier signal is a triangular wave signal or a sawtooth wave signal;

[0029] The sinusoidal modulation wave signal and the carrier signal are superimposed to obtain the modified modulation wave signal.

[0030] Furthermore, the two waveforms are merged to obtain a waveform of a modified modulated wave signal, including:

[0031] The waveform of the modified modulation wave signal in the positive half cycle and the waveform of the modified modulation wave signal in the negative half cycle are obtained to obtain the waveform of the modified modulation wave signal in one cycle.

[0032] Furthermore, the waveforms of the first current modulation wave signal and the second current modulation wave signal are obtained, and partial waveforms of the first current modulation wave signal and the second current modulation wave are respectively selected, and the two waveforms are merged to obtain the waveform of the modified modulation wave signal, including:

[0033] When the first current modulation wave signal leads the second current modulation wave signal, a time period from the start point of the positive half cycle to the intersection and a time period from the start point of the negative half cycle to the intersection of the first current modulation wave signal are selected and a logic low level is used to perform a logic "AND" operation to obtain a first half waveform; a time period from the intersection to the end point of the positive half cycle and a time period from the intersection to the end point of the negative half cycle of the second current modulation wave signal are selected and a logic "AND" operation is performed to obtain a second half waveform; or,

[0034] When the first current modulation wave signal lags behind the second current modulation wave signal, the time period from the starting point of the positive half cycle to the intersection and the time period from the starting point of the negative half cycle to the intersection of the second current modulation wave signal and the logic low level are selected to perform a logic "AND" operation to obtain the first half waveform; the time period from the intersection to the end point of the positive half cycle and the time period from the intersection to the end point of the negative half cycle of the first current modulation wave signal are selected to perform a logic "AND" operation to obtain the second half waveform.

[0035] Furthermore, generating a modified modulation wave signal according to the first current modulation wave signal and the second current modulation wave signal further includes:

[0036] Perform a logic "OR" operation on the first half waveform and the second half waveform to obtain the modified modulation wave signal.

[0037] Furthermore, the present invention also provides an inverter controller, which stores a computer program, and the computer program is executed by a processor to implement the method for grid-connected power factor of a dual current controlled flyback inverter as described in any one of the above technical solutions.

[0038] The beneficial effect of the technical solution of the present invention is that the modified modulation wave signal generated by the first half waveform of the second current modulation wave signal and the second half waveform of the first current modulation wave signal has a signal with the same phase and frequency as the working electrical signal of the power grid, and also has a signal with a phase angle difference with the working electrical signal of the power grid. The flyback inverter is controlled by the modified modulation wave signal in the present invention, so that the flyback inverter can accurately adjust the power factor when connected to the grid, and reduce the harmonic distortion rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic diagram of the steps of a method for improving the grid-connected power factor of a dual current controlled flyback inverter provided by an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of waveforms of u1, i1 and i2 when i2 lags behind u1 provided in an embodiment of the present invention;

[0041] Figure 3 A timing diagram of the waveform diagram of u1 and the modified modulation wave signal and the SPWM waveform diagram of the modified modulation wave signal when i2 lags behind u1 provided in an embodiment of the present invention;

[0042] Figure 4 A schematic diagram of waveforms of u1, i1 and i2 when i2 leads u1 provided in an embodiment of the present invention;

[0043] Figure 5 A timing diagram of the waveform diagram of u1 and the modified modulation wave signal when i2 leads u1 and the SPWM waveform diagram of the modified modulation wave signal provided by the embodiment of the present invention;

[0044] Figure 6 A schematic diagram of a process flow provided by an embodiment of the present invention;

[0045] Figure 7 A circuit diagram provided for an embodiment of the present invention.

[0046] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0047] The scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the following steps. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0049] like Figure 1As shown, the embodiment of the present invention provides a method for controlling the grid-connected power factor of a dual current controlled flyback inverter, comprising the following steps (S1, S2, S3, S4 and S5):

[0050] Step S1: Obtain the working electrical signal of the target power grid. The power grid in this application refers to a system composed of power plants, power transmission lines, substations, distribution facilities and other power devices. The power grid uses AC to transmit power. The current and voltage in the grid are sinusoidal AC, and the frequency is 50Hz or 60Hz. Therefore, the working electrical signal of the target power grid obtained in this application is a sinusoidal AC signal of 50Hz or 60Hz.

[0051] Step S2: Phase-lock the working electrical signal to obtain a voltage modulated wave signal u1 and a first current modulated wave signal i1 that are consistent with the phase and frequency of the working electrical signal. Specifically, phase-locking the working electrical signal means obtaining a voltage modulated wave signal u1 and a first current modulated wave signal i1 that are consistent with the phase and frequency of the working electrical signal through phase-locking technology. It should be noted that the working electrical signal is a voltage signal. Phase-locking technology is a technology that controls the phase of a controlled oscillator by a standard signal or an external signal, and is used to achieve phase synchronization with an external signal, or track the frequency or phase of an external signal.

[0052] Step S3: According to the preset power factor and the first current modulation wave signal i1, a second current modulation wave signal i2 is obtained, which has the same frequency as the first current modulation wave signal i1 and has a phase angle difference relative to the first current modulation wave signal i1. Among them, the modified modulation wave signal includes a first half waveform and a second half waveform, the first half waveform is a waveform signal of the second current modulation wave signal i2 in the first preset time period or the second preset time period, and the second half waveform is a waveform signal of the first current modulation wave signal i1 in the third preset time period or the fourth preset time period. It should be noted that the phase angle difference is the difference between the initial phase of the second current modulation wave signal i2 and the initial phase of the first current modulation wave signal i1. As an implementation method, after obtaining the preset power factor, the power factor angle is obtained by the power factor, and the power factor angle is the phase angle difference. The first current modulation wave signal i1 leads or lags the second current modulation wave signal i2. As an implementation method, the second current modulation wave signal i2 lags Ψ relative to the first current. Specifically, the preset power factor angle is the power factor angle required by the power grid. As an implementation mode, the working electrical signal is a 50 Hz sinusoidal AC voltage signal, the preset power factor angle is Ψ, and the preset power factor is cosΨ.

[0053] Further, step S3 includes: phase-shifting the first current modulation wave signal according to the phase angle corresponding to the preset power factor to obtain a second current modulation wave signal i2 having the same frequency as the first current modulation wave signal i1 and having a phase angle difference with respect to the first current modulation wave signal i1. Specifically, when the load connected to the flyback inverter is an inductive load, the first current modulation wave signal i1 is phase-shifted in a lagging direction according to the phase angle corresponding to the preset power factor to obtain a second current modulation wave signal i2 having the same frequency as the first current modulation wave signal i1 and having a phase angle difference with respect to the first current modulation wave signal i1; when the load connected to the flyback inverter is a capacitive load, the first current modulation wave signal i1 is phase-shifted in an advancing direction according to the phase angle corresponding to the preset power factor to obtain a second current modulation wave signal i2 having the same frequency as the first current modulation wave signal i1 and having a phase angle difference with respect to the first current modulation wave signal i1.

[0054] Step S4: Obtain the waveforms of the first current modulation wave signal i1 and the second current modulation wave signal i2, select partial waveforms of the first current modulation wave signal i1 and the second current modulation wave i2 respectively, and merge the two waveforms to obtain the waveform of the modified modulation wave signal. The modified modulation wave signal includes a first half waveform and a second half waveform connected to each other, the first half waveform is the waveform signal of the second current modulation wave signal i2 in the first preset time period, and the second half waveform is the waveform signal of the first current modulation wave signal i1 in the second preset time period. Since the modified modulation wave is generated according to the first current modulation wave signal i1 and the second current modulation wave signal i2, controlling the flyback inverter by the modified modulation wave signal is called dual current control.

[0055] As an implementation method, the first current modulation wave signal i1 and the second current modulation wave signal i2 are both sinusoidal pulse width modulation (SPWM) wave signals, and the SPWM wave signal is an output signal that approximates a sine wave. SPWM adjusts the width of the square wave pulse so that its average value changes to a sine waveform within one cycle, thereby achieving control of the AC voltage and current. The SPWM wave signal has the characteristics of low harmonic content, flexible control and high efficiency. Furthermore, the modified modulation wave signal is a sinusoidal pulse width modulation wave signal. Specifically, Figure 3 and Figure 5 As shown, Figure 3 The SPWM waveform diagram of the sinusoidal modified modulation wave when the second sinusoidal modulation wave signal lags behind the working electrical signal, Figure 5 An SPWM waveform diagram of a sinusoidal modified modulation wave when the second sinusoidal modulation wave signal leads the working electrical signal.

[0056] As an implementation manner, any one of the first current modulation wave signal i1 and the second current modulation wave signal i2 is an SPWM wave signal.

[0057] Step S5: Control the flyback inverter to output the target AC power corresponding to the waveform of the modified modulation wave signal to the target power grid or power-consuming equipment. It should be noted that the flyback inverter in the present application refers to an inverter using flyback switching power supply technology. The flyback switching power supply refers to a switching power supply that uses a flyback high-frequency transformer to isolate the input and output circuits. "Flyback" (FLY BACK) specifically refers to when the switch tube is turned on, the output transformer acts as an inductor, and the electrical energy is converted into magnetic energy. At this time, there is no current in the output circuit; on the contrary, when the switch tube is turned off, the output transformer releases energy, and the magnetic energy is converted into electrical energy, and there is current in the output circuit. Preferably, the inverter in the embodiment is a micro inverter, which can achieve maximum power point tracking (MPPT) at the component level and has advantages over centralized inverters. In this way, the output power of each module can be optimized to maximize the overall output power.

[0058] Furthermore, the first current modulation wave signal i1 and the second current modulation wave signal i2 have an intersection in each half cycle. Figure 2 As shown, the second current modulation wave signal i2 lags Ψ relative to the first current modulation wave signal i1. The time point corresponding to the intersection of the first current modulation wave signal i1 and the second current modulation wave signal i2 in the positive half cycle is point A, and the time point corresponding to the intersection of the first current modulation wave signal i1 and the second current modulation wave signal i2 in the negative half cycle is point B. The first preset time period is the time when the second current modulation wave signal i2 changes from the zero point of the value of the second current modulation wave signal i2 in each half cycle (for example Figure 2 and Figure 3 The time period from the Ψ point and π+Ψ point in the figure to the intersection point, that is Figure 2 and Figure 3 The time period from point Ψ to point A and the time period from point π+Ψ to point B in the figure are both the first preset time period. The third preset time period is the time period from the intersection point to the end point of the half cycle (for example, Figure 2 and Figure 3 The time period corresponding to the π point and 2π point in Figure 2 The time period from point A to the end point of the positive half cycle (π) and the time period from point B to the end point of the negative half cycle (2π) are both preset time periods.

[0059] Furthermore, if Figure 2 and Figure 3 As shown, the first half waveform is formed by the first current modulation wave signal i1 at the start point of the positive half cycle (for example Figure 2The time period from the negative half cycle start point (π) to point A and the time period from the negative half cycle start point (π) to point B are obtained by performing a logic “AND” operation with the logic low level. Preferably, the logic low level that performs a logic “AND” operation with the first current modulation wave signal i1 is the logic low level in the half cycle of the first current modulation wave signal i1.

[0060] Furthermore, if Figure 2 and Figure 3 As shown, the second half waveform is obtained by performing a logic "AND" operation on the second current modulation wave signal i2 from point A to the end point of the positive half cycle (π+Ψ) and from point B to the end point of the negative half cycle (2π+Ψ) and the logic low level. Then the first half waveform and the second half waveform are logically "OR" operated to obtain a modified modulation wave signal. Preferably, the logic low level of the logic "AND" operation with the second current modulation wave signal i2 is the logic low level in the half cycle of the second current modulation wave signal i2.

[0061] As an implementation method, Figure 4 and Figure 5 As shown, the second current modulation wave signal i2 leads the first current modulation wave signal i1 by Ψ. The fourth preset time period is the time period during which the first current modulation wave signal i1 starts from the start point of the half cycle (for example Figure 4 and Figure 5 The time period from the 0 point and the π point in the figure to the intersection point, that is Figure 4 and Figure 5 The time period from point 0 to point A and the time period from point π to point B in the figure are both fourth preset time periods. The second preset time period is the time period from the intersection point to the zero point of the value of the second current modulation wave signal i2 in each half cycle (for example Figure 4 and Figure 5 The time period corresponding to the π-Ψ point and 2π-Ψ point in Figure 4 and Figure 5 The time period from point A to the end point of the positive half cycle (π-Ψ) and the time period from point B to the end point of the negative half cycle (2π-Ψ) are both second preset time periods.

[0062] Furthermore, if Figure 4 and Figure 5 As shown, when the second current modulation wave signal i2 leads the first current modulation wave signal i1 by Ψ, the first half waveform is formed by the second current modulation wave signal i2 at the start point of the positive half cycle (for example Figure 4 and Figure 5 The time period from point -Ψ in the figure to point A and the starting point of the negative half cycle (e.g. Figure 4 and Figure 5Preferably, the logic low level obtained by performing a logic “AND” operation with the second current modulation wave signal i2 is the logic low level in the half cycle of the second current modulation wave signal i2.

[0063] Furthermore, if Figure 4 and Figure 5 As shown, the second half waveform is formed by the first current modulation wave signal i1 at point A to the end point of the positive half cycle (for example Figure 4 and Figure 5 The time period from point B to the end of the negative half cycle (e.g. Figure 4 and Figure 5 The first half waveform and the second half waveform are then logically “OR” operated to obtain the modified modulation wave signal. Preferably, the logic low level of the logic “AND” operation with the first current modulation wave signal i1 is the logic low level in the half cycle of the first current modulation wave signal i1.

[0064] Furthermore, by correcting the modulation wave signal, controlling the flyback inverter to output the target AC power corresponding to the corrected modulation wave signal to the target power grid or power-consuming equipment includes the following steps:

[0065] The switch tube in the flyback inverter is controlled by modifying the modulation wave signal so that the power supply outputs the target AC power corresponding to the modified modulation wave signal to the target power grid or power-consuming equipment through the flyback inverter.

[0066] Furthermore, the first current modulation wave signal i1 and the second current modulation wave signal i2 have the same frequency. The first current modulation wave signal i1 and / or the second current modulation wave signal i2 are generated by a high-frequency carrier, and preferably, the high-frequency carrier is a sawtooth wave or a triangle wave.

[0067] As an implementation method, Figure 6As shown, the working electrical signal of the target power grid is obtained through the controller. Specifically, the controller is an inverter controller for controlling the flyback inverter, and the controller includes a microprocessor, which is one of the core components of the controller and is responsible for the overall control and coordination functions. The microprocessor can implement the control algorithm and logic of the flyback inverter, including power regulation, frequency control, voltage regulation, etc., to ensure that the output power of the flyback inverter meets the requirements of the power grid. The microprocessor also provides a communication interface with an external system, such as a monitoring system, and a communication interface such as a power grid interface. Through the communication interface, the microprocessor can exchange data and receive instructions with external devices, and report the operating status of the flyback inverter through the monitoring system. In addition, the microprocessor can process data from various sensors (such as current sensors, voltage sensors) and input devices (such as buttons, switches), and make corresponding decisions based on the monitored situation, such as switching the operating mode or adjusting the output parameters.

[0068] Furthermore, after the controller obtains the working electrical signal of the target power grid, the working electrical signal is phase-locked by the phase-locking technology to obtain a first current modulation wave signal i1 that is consistent with the initial phase and frequency of the working electrical signal. At the same time, the controller can obtain the preset power factor of the power supply to be connected to the grid. It should be noted that, assuming that the power factor of the power grid is 1, the preset power factor can be set to 0.8 or 0.9 according to the nature of the load in the power supply to be connected to the grid (such as an inductive load or a capacitive load). After obtaining the preset power factor, the controller obtains a second current modulation wave signal i2 that is consistent with the frequency of the first current modulation wave signal i1 and has a phase angle difference relative to the first current modulation wave signal i1 based on the preset power factor and the first current modulation wave signal i1. Specifically, the second current modulation wave signal i2 is obtained by phase shifting the first current modulation wave signal i1, and the phase shift angle is the angle corresponding to the preset power factor, that is, the phase angle difference. When the load is an inductive load, the second current modulation wave signal i2 is obtained by shifting the first current modulation wave signal i1 in the lagging direction; when the load is a capacitive load, the second current modulation wave signal i2 is obtained by shifting the first current modulation wave signal i1 in the leading direction. The controller obtains the time difference corresponding to the phase angle difference based on the phase angle difference. Then the controller generates a corrected modulation wave signal based on the time difference and the first current modulation wave signal i1, wherein the half-cycle duration of the corrected modulation wave signal is equal to the difference between the half-cycle duration of the first current modulation wave signal i1 and the time difference, from which the period and frequency of the corrected modulation wave signal can be known, thereby generating a corrected modulation wave signal. Finally, based on the corrected modulation wave signal, the controller controls the flyback inverter to output the target AC power corresponding to the corrected modulation wave signal to the target power grid or electrical equipment.

[0069] As an implementation mode, the first current modulation wave signal is phase-shifted according to the phase angle corresponding to the preset power factor to obtain a second current modulation wave signal having the same frequency as the first current modulation wave signal and having a phase angle difference relative to the first current modulation wave signal, including:

[0070] Calculating a phase difference angle of the second current modulation wave signal relative to the first current modulation wave according to a power factor angle corresponding to a preset power factor;

[0071] Calculating the phase of the first current modulation wave and the phase difference angle to obtain the phase of the second current modulation wave signal;

[0072] The frequency of the first current modulated wave signal is used as the frequency of the current modulated wave signal, and the second current modulated wave signal is obtained according to the phase of the second current modulated wave signal.

[0073] Furthermore, the controller generates a modified modulation wave signal according to the first current modulation wave signal i1 and the second current modulation wave signal i2, wherein the modified modulation wave signal includes a first half waveform and a second half waveform, the first half waveform is a waveform signal of the second current modulation wave signal i2 in a first preset time period, and the second half waveform is a waveform signal of the first current modulation wave signal i1 in a second preset time period. Finally, based on the modified modulation wave signal, the controller controls the flyback inverter to output the target AC power corresponding to the modified modulation wave signal to the target power grid or power-consuming device.

[0074] As an implementation method, Figure 7 As shown, the flyback inverter specifically includes a transformer T, switch tubes S0-S2, filter capacitors C1-C3, thyristors SCR1-SCR2, a diode D1 and an inductor L1, wherein Figure 7 In the circuit structure, MOS tubes or IGBT tubes are respectively arranged on the primary side and the secondary side of the transformer as flyback switch tubes. When the power grid absorbs power, the MOS tube S0 on the primary side of the transformer is used as the main switch to store electric energy in the transformer, and the diode D1 on the secondary side of the transformer is used as the auxiliary switch to perform rectification; when the power grid emits power, the MOS tube S0 on the primary side of the transformer is used as the auxiliary switch to perform rectification, and the diode D1 on the secondary side of the transformer is used as the main switch to store electric energy in the transformer. Figure 7 The circuit structure also includes a photovoltaic panel, which provides an input voltage for an inverter. The high-frequency flyback switch S0 is composed of a MOS tube or an IGBT tube. S1 and S2 are output power frequency switch tubes, respectively. SCR1 and SCR2 are thyristors, respectively. The power frequency switch tubes S1 and SCR1 are connected in series, S2 and SCR2 are connected in series, and S1 and SCR1 are connected in series in parallel with S2 and SCR2 in series, forming a series circuit as shown in the figure. Figure 7In the power frequency switch structure shown, the output power frequency switch tubes are composed of MOS tubes or IGBT tubes, and the controller is connected to the power grid and the input end of the flyback inverter respectively. It should be noted that the circuit diagram described in the present invention is for illustration only, and the present invention does not limit the specific structure of the circuit diagram.

[0075] Furthermore, the present invention also proposes an inverter controller, which stores a computer program, and the computer program is executed by a processor to implement the method for grid-connected power factor of a dual current controlled flyback inverter as described in any one of the above technical solutions.

[0076] The beneficial effect of the technical solution of the present invention is that the modified modulation wave signal generated by the first half waveform of the second current modulation wave signal and the second half waveform of the first current modulation wave signal has a signal with the same phase and frequency as the working electrical signal of the power grid, and also has a signal with a phase angle difference with the working electrical signal of the power grid. The flyback inverter is controlled by the modified modulation wave signal in the present invention, so that the flyback inverter can accurately adjust the power factor when connected to the grid, and reduce the harmonic distortion rate.

[0077] The above are only partial or preferred embodiments of the present invention. Neither the text nor the drawings can limit the scope of protection of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the overall concept of the present invention, or directly / indirectly applied in other related technical fields, including the following steps, are within the scope of protection of the present invention.

Claims

1. A method for controlling the grid-connected power factor of a dual current controlled flyback inverter, characterized in that: The following steps are involved: Obtaining the working electrical signal of the target power grid; Phase-locking the working electrical signal to obtain a voltage modulation wave signal and a first current modulation wave signal that are consistent with the phase and frequency of the working electrical signal; Shifting the phase of the first current modulation wave signal according to the phase angle corresponding to the preset power factor to obtain a second current modulation wave signal having the same frequency as the first current modulation wave signal and having a phase angle difference with respect to the first current modulation wave signal; Acquire the waveforms of the first current modulation wave signal and the second current modulation wave signal, select partial waveforms of the first current modulation wave signal and the second current modulation wave signal respectively, and merge the two waveforms to obtain the waveform of the modified modulation wave signal; The flyback inverter is controlled to output target alternating current corresponding to the waveform of the modified modulation wave signal to the target power grid or power-consuming equipment.

2. The method for improving the grid-connected power factor of a dual current controlled flyback inverter according to claim 1, characterized in that: The step of acquiring the waveforms of the first current modulation wave signal and the second current modulation wave signal, respectively selecting partial waveforms of the first current modulation wave signal and the second current modulation wave signal, and fusing the two waveforms to obtain the waveform of the modified modulation wave signal comprises: Obtaining an intersection point between the waveform of the first current modulation wave signal and the waveform of the second current modulation wave signal in each half cycle; The waveform of the first current modulation wave signal located on one side of the intersection is used as the first half waveform, and the waveform of the second current modulation wave signal located on the other side of the intersection is used as the second half waveform; The first half waveform and the second half waveform are spliced ​​together to obtain the waveform of the modified modulated wave signal.

3. The method for improving the grid-connected power factor of a dual current controlled flyback inverter according to claim 2, characterized in that: The step of acquiring the waveforms of the first current modulation wave signal and the second current modulation wave signal, respectively selecting partial waveforms of the first current modulation wave signal and the second current modulation wave signal, and fusing the two waveforms to obtain the waveform of the modified modulation wave signal comprises: When the first current modulation wave signal leads the second current modulation wave signal, the waveform of the second current modulation wave signal from the zero point to the intersection of the second current modulation wave signal is selected as the second half waveform, and the waveform of the first current modulation wave signal from the intersection to the end point of the half cycle in each half cycle is selected as the first half waveform; When the first current modulation wave signal lags behind the second current modulation wave signal, the waveform corresponding to the second current modulation wave signal from the intersection point to the zero point of the second current modulation wave signal in each half cycle is selected as the second half waveform, and the waveform corresponding to the first current modulation wave signal from the starting point of the half cycle to the intersection point in each half cycle is selected as the first half waveform.

4. The method for improving the grid-connected power factor of a dual current controlled flyback inverter according to claim 1, characterized in that: The first current modulation wave signal is phase-shifted according to the phase angle corresponding to the preset power factor to obtain a second current modulation wave signal which has the same frequency as the first current modulation wave signal and has a phase angle difference with respect to the first current modulation wave signal, including: When the load connected to the flyback inverter is an inductive load, the first current modulation wave signal is phase-shifted in a lagging direction according to a phase angle corresponding to a preset power factor; or, When the load connected to the flyback inverter is a capacitive load, the first current modulation wave signal is phase-shifted in a leading direction according to a phase angle corresponding to a preset power factor.

5. The method for improving the grid-connected power factor of a dual current controlled flyback inverter according to claim 1, characterized in that: The first current modulation wave signal is phase-shifted according to the phase angle corresponding to the preset power factor to obtain a second current modulation wave signal which has the same frequency as the first current modulation wave signal and has a phase angle difference with respect to the first current modulation wave signal, including: Calculating a phase angle difference of the second current modulation wave signal relative to the first current modulation wave signal according to a phase angle corresponding to a preset power factor; Calculating the phase of the first current modulated wave signal and the phase angle difference to obtain the phase of the second current modulated wave signal; The frequency of the first current modulated wave signal is used as the frequency of the second current modulated wave signal, and the second current modulated wave signal is obtained according to the phase of the second current modulated wave signal.

6. The method for improving the grid-connected power factor of a dual current controlled flyback inverter according to claim 1, characterized in that: The step of fusing the two waveforms to obtain a waveform of a modified modulated wave signal includes: The two waveforms are merged to obtain the waveform of the sinusoidal modulated wave signal; Acquire a carrier signal, where the carrier signal is a triangular wave signal or a sawtooth wave signal; The sinusoidal modulation wave signal and the carrier signal are superimposed to obtain the modified modulation wave signal.

7. The method for improving the grid-connected power factor of a dual current controlled flyback inverter according to claim 2, characterized in that: The step of fusing the two waveforms to obtain a waveform of a modified modulated wave signal includes: The waveform of the modified modulation wave signal in the positive half cycle and the waveform of the modified modulation wave signal in the negative half cycle are obtained to obtain the waveform of the modified modulation wave signal in one cycle.

8. The method for improving the grid-connected power factor of a dual current controlled flyback inverter according to claim 7, characterized in that: The step of acquiring the waveforms of the first current modulation wave signal and the second current modulation wave signal, respectively selecting partial waveforms of the first current modulation wave signal and the second current modulation wave signal, and fusing the two waveforms to obtain the waveform of the modified modulation wave signal comprises: When the first current modulation wave signal leads the second current modulation wave signal, a time period from the start point of the positive half cycle to the intersection and a time period from the start point of the negative half cycle to the intersection of the first current modulation wave signal are selected and a logic low level is used to perform a logic "AND" operation to obtain a first half waveform; a time period from the intersection to the end point of the positive half cycle and a time period from the intersection to the end point of the negative half cycle of the second current modulation wave signal are selected and a logic "AND" operation is performed to obtain a second half waveform; or, When the first current modulation wave signal lags behind the second current modulation wave signal, a time period from the starting point of the positive half cycle to the intersection and a time period from the starting point of the negative half cycle to the intersection of the second current modulation wave signal and a logic low level are selected to perform a logic "AND" operation to obtain a second half waveform; a time period from the intersection to the end point of the positive half cycle and a time period from the intersection to the end point of the negative half cycle of the first current modulation wave signal and a logic low level are selected to perform a logic "AND" operation to obtain a first half waveform.

9. The method for improving the grid-connected power factor of a dual current controlled flyback inverter according to claim 8, characterized in that: The step of acquiring the waveforms of the first current modulation wave signal and the second current modulation wave signal, respectively selecting a portion of the waveforms of the first current modulation wave signal and the second current modulation wave signal, and fusing the two waveforms to obtain the waveform of the modified modulation wave signal further includes: Perform a logic "OR" operation on the first half waveform and the second half waveform to obtain the modified modulated wave signal.

10. An inverter controller, characterized in that: The inverter controller stores a computer program, and the computer program is executed by a processor to implement the method for controlling the grid-connected power factor of a dual current controlled flyback inverter according to any one of claims 1 to 9.