Control method, electronic equipment and computer readable storage medium
By filtering out the DC component of the inverter voltage in the off-grid inverter and performing coordinate system conversion compensation, the problem of reduced stability of the inverter voltage is solved, and the accuracy of the control signal and the stability of the load output are improved.
Patent Information
- Application Number
- CN202310330977.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
In the control of off-grid inverters, when the inverter voltage contains a DC component, it will cause the β axis to also contain a DC component, which will cause a phase shift when converted into a rotating coordinate system, reducing the ability to control the DC component and thus reducing the load output. Output inverter voltage stability.
By filtering out the DC component in the inverter voltage before performing generalized second-order integration, the impact of the DC component on subsequent processing is avoided, and compensation is performed before coordinate system conversion to improve the accuracy and stability of the control signal.
It effectively improves the stability of the inverter voltage output at the load output end, improves the accuracy of the control signal, and reduces the negative impact of the DC component on the control capability.
Smart Images

Figure CN118739874A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of off-grid inverters, and in particular to a control method, an electronic device, and a computer-readable storage medium. Background Art
[0002] An off-grid inverter is a device that converts direct current into alternating current. The control of related off-grid inverters is usually based on the control method of the DQ rotating coordinate system, and the α-axis and β-axis of the stationary coordinate system are constructed using the generalized second-order integral method.
[0003] The inventors of the present application have discovered through long-term research that when the inverter voltage contains a DC component, the β-axis will also contain a DC component. When converted to a rotating coordinate system, the DC component will be converted into industrial frequency AC and produce a certain phase shift, which will ultimately lead to a significant weakening of the control ability over the DC component and reduce the stability of the inverter voltage output at the load output end. Summary of the invention
[0004] The present application provides a control method, an electronic device, and a computer-readable storage medium to avoid the influence of a DC component in subsequent processing, improve the accuracy of a control signal, and thereby improve the stability of an inverter voltage output at a load output terminal.
[0005] In order to solve the above technical problems, a technical solution adopted by the present application is: to provide a control method, which is applied to an off-grid inverter, and the off-grid inverter includes a power input terminal, a load output terminal, an inductor, a switch module and a control circuit; wherein the power input terminal is respectively coupled to the switch module and the control circuit, the switch module is also respectively coupled to the inductor, the control circuit and the load output terminal, the inductor is also respectively coupled to the control circuit and the load output terminal, and the load output terminal is also coupled to the control circuit; the method includes: collecting the bus voltage of the power input terminal, the first inverter voltage of the load output terminal and the inductor current of the inductor; filtering the DC component in the first inverter voltage to obtain the second inverter voltage; using The second inverter voltage is subjected to a generalized second-order integration to obtain a first voltage and a second voltage corresponding to a stationary coordinate system, wherein the first voltage corresponds to the α-axis in the stationary coordinate system, and the second voltage corresponds to the β-axis in the stationary coordinate system; the first voltage and the second voltage are subjected to a coordinate system transformation to obtain a third voltage and a fourth voltage corresponding to a rotating coordinate system, wherein the third voltage corresponds to the d-axis in the rotating coordinate system, and the fourth voltage corresponds to the q-axis in the rotating coordinate system; the third voltage, the fourth voltage and the inductor current are used to obtain a current loop output; a control signal is obtained using the current loop output, the second inverter voltage and the bus voltage; and the switch module is controlled using the control signal to enable the off-grid inverter to operate.
[0006] The step of filtering out the DC component in the first inverter voltage to obtain the second inverter voltage includes: calculating the average value of the first inverter voltage to obtain the DC component; and filtering out the DC component in the first inverter voltage to obtain the second inverter voltage.
[0007] Among them, before the step of performing coordinate system conversion on the first voltage and the second voltage to obtain the third voltage and the fourth voltage corresponding to the rotating coordinate system, the method also includes: compensating the second voltage; performing coordinate system conversion on the first voltage and the second voltage to obtain the third voltage and the fourth voltage corresponding to the rotating coordinate system, including: performing coordinate system conversion on the first voltage and the compensated second voltage to obtain the third voltage and the fourth voltage corresponding to the rotating coordinate system.
[0008] The compensating the second voltage includes: obtaining a phase shift corresponding to a voltage regulator in a preset algorithm; and compensating the second voltage according to the phase shift.
[0009] Among them, using the third voltage and the fourth voltage to obtain a given alternating current includes: obtaining a d-axis given voltage and a q-axis given voltage; using the third voltage, the fourth voltage, the d-axis given voltage and the q-axis given voltage, and adjusting them through a voltage regulator in a preset algorithm to obtain a given current peak voltage; and obtaining a given alternating current according to a preset phase angle and a given current peak voltage.
[0010] The current loop output is obtained by using the third voltage, the fourth voltage and the inductor current, including: obtaining a given alternating current by using the third voltage and the fourth voltage; and obtaining the current loop output by using the given alternating current and the inductor current.
[0011] The control signal is obtained by using the current loop output, the second inverter voltage and the bus voltage, including: obtaining the third inverter voltage by using the current loop output and the second inverter voltage; and obtaining the control signal according to the third inverter voltage and the bus voltage.
[0012] Wherein, the switch module includes: a first switch tube, a first end of the first switch tube is coupled to the first end of the power input terminal, and a second end of the first switch tube is coupled to the second end of the load output terminal; a second switch tube, a first end of the second switch tube is coupled to the first end of the power input terminal, and a second end of the second switch tube is coupled to the first end of the inductor; a third switch tube, a first end of the third switch tube is coupled to the second end of the first switch tube, and a second end of the third switch tube is coupled to the second end of the power input terminal; a fourth switch tube, a first end of the fourth switch tube is coupled to the second end of the second switch tube, and a second end of the fourth switch tube is coupled to the second end of the power input terminal.
[0013] The load output terminal includes: a first capacitor, a first end of the first capacitor is coupled to the second end of the inductor, and a second end of the first capacitor is coupled to the second end of the first switch tube.
[0014] Among them, the power input end includes: a power input interface, a first resistor, a second resistor and a second capacitor; the first end of the first resistor is coupled to the first end of the power input interface, and the second end of the first resistor is coupled to the first end of the first switch tube and the first end of the second switch tube; the first end of the second resistor is coupled to the second end of the first resistor, the second end of the second resistor is coupled to the first end of the second capacitor, and the first end of the second capacitor is coupled to the second end of the power input interface.
[0015] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, which includes a processor and a memory coupled to the processor; wherein the memory is used to store computer programs, and the processor is used to execute the computer programs to implement the method provided by the above technical solution.
[0016] To solve the above technical problem, another technical solution adopted by the present application is: providing a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the method provided by the above technical solution.
[0017] Different from the prior art, the control method, electronic device and computer-readable storage medium of the present application filter out the DC component in the inverter voltage before performing a generalized second-order integration on the inverter voltage to avoid the influence of the DC component in subsequent processing, thereby improving the accuracy of the control signal and further improving the stability of the inverter voltage output at the load output end. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0019] Figure 1 It is a structural schematic diagram of an embodiment of an off-grid inverter provided by the present application;
[0020] Figure 2 is a structural schematic diagram of another embodiment of the off-grid inverter provided by the present application;
[0021] Figure 3 It is a flow chart of an embodiment of a control method provided by the present application;
[0022] Figure 4 is a flow chart of another embodiment of the control method provided by the present application;
[0023] Figure 5 is a flow chart of another embodiment of the control method provided by the present application;
[0024] Figure 6 is the Bode diagram corresponding to the off-grid inverter provided in this application;
[0025] Figure 7 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application;
[0026] Figure 8 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present application. DETAILED DESCRIPTION
[0027] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0028] Reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that any embodiment described herein may be combined with associated technical features in other embodiments.
[0029] The inventor of the present application has found through long-term research that since the off-grid inverter uses the generalized second-order integral method to construct the α-axis and β-axis of the stationary coordinate system based on the control of the DQ rotating coordinate system, when the inverter voltage contains a DC component, the β-axis will also contain a DC component, and it is When converted into a rotating coordinate system, the DC component will be converted into industrial frequency AC and produce a certain phase shift. After adjustment and inverse transformation by the regulator, the DC component gain will decrease or even reverse, resulting in a greatly weakened control ability of the DC component and a greater impact of the DC component on subsequent processing.
[0030] Based on this, any of the following technical solutions is proposed to solve any of the above technical problems.
[0031] See also Figure 1 , Figure 1 1 is a schematic diagram of the structure of an off-grid inverter according to an embodiment of the present application. The off-grid inverter 100 comprises a power input terminal 10 , a load output terminal 20 , an inductor L1 , a switch module 30 and a control circuit 40 .
[0032] The power input terminal 10 is respectively coupled to the switch module 30 and the control circuit 40, the switch module 30 is also respectively coupled to the inductor L1, the control circuit 40 and the load output terminal 20, the inductor L1 is also respectively coupled to the control circuit 40 and the load output terminal 20, and the load output terminal 20 is also coupled to the control circuit 40. Figure 1 Medium V bus Indicates the bus voltage at the power input terminal 10, V grid represents the first inverter voltage of the load output terminal 20, PWM represents the control signal of the control circuit 40, and I L1 Represents the inductor current of inductor L1.
[0033] For further information, see Figure 2 The switch module 30 includes: a first switch tube G1, a second switch tube G2, a third switch tube G3 and a fourth switch tube G4.
[0034] The first end of the first switch tube G1 is coupled to the first end of the power input terminal 10 , and the second end of the first switch tube G1 is coupled to the second end of the load output terminal 20 .
[0035] A first terminal of the second switch tube G2 is coupled to a first terminal of the power input terminal 10 , and a second terminal of the second switch tube G2 is coupled to a first terminal of the inductor L1 .
[0036] A first end of the third switch tube G3 is coupled to the second end of the first switch tube G1 , and a second end of the third switch tube G3 is coupled to the second end of the power input terminal 10 .
[0037] A first end of the fourth switch tube G4 is coupled to the second end of the second switch tube G2 , and a second end of the fourth switch tube G4 is coupled to the second end of the power input terminal 10 .
[0038] The load output terminal 20 includes: a first capacitor C1, a first end of the first capacitor C1 is coupled to the second end of the inductor L1, and a second end of the first capacitor C1 is coupled to the second end of the first switch tube G1. Further, the load output terminal 20 also includes a third resistor R3, and the third resistor R3 is connected in parallel with the first capacitor C1.
[0039] Wherein, the power input end 10 includes: a power input interface DC, a first resistor R1, a second resistor R2 and a second capacitor C2; the first end of the first resistor R1 is coupled to the first end of the power input interface DC, and the second end of the first resistor R1 is coupled to the first end of the first switch tube G1 and the first end of the second switch tube G2; the first end of the second resistor R2 is coupled to the second end of the first resistor R1, the second end of the second resistor R2 is coupled to the first end of the second capacitor C2, and the first end of the second capacitor C2 is coupled to the second end of the power input interface DC.
[0040] The control circuit 40 is respectively coupled to the control terminals of the first switch tube G1, the second switch tube G2, the third switch tube G3 and the fourth switch tube G4, and uses the control signal to turn on or off the first switch tube G1, the second switch tube G2, the third switch tube G3 and the fourth switch tube G4 to operate the off-grid inverter.
[0041] When the second switch tube G2 and the third switch tube G3 are turned on, the second switch tube G2 and the third switch tube G3 form a corresponding loop with the power input terminal 10 , the inductor L1 and the load output terminal 20 .
[0042] When the first switch tube G1 and the fourth switch tube G4 are turned on, the first switch tube G1 and the fourth switch tube G4 form a corresponding loop with the power input terminal 10 , the inductor L1 and the load output terminal 20 .
[0043] The above-mentioned off-grid inverter 100 may be a single-phase off-grid inverter.
[0044] See also Figure 3 , Figure 3 1 is a flow chart of an embodiment of a control method provided by the present application. The method is applied to the above-mentioned off-grid inverter 100, and the control method includes:
[0045] Step 31: collecting the bus voltage at the power input end, the first inverter voltage at the load output end, and the inductor current of the inductor.
[0046] The bus voltage may be the voltage across the second capacitor C2. The first inverter voltage may be the voltage across the first capacitor C1.
[0047] Step 32: Perform a generalized second-order integration using the first inverter voltage to obtain a first voltage and a second voltage corresponding to a stationary coordinate system.
[0048] The first voltage corresponds to the α-axis in the stationary coordinate system, and the second voltage corresponds to the β-axis in the stationary coordinate system.
[0049] Second-Order General Integrator (SOGI): A generalized second-order integrator is a commonly used second-order structure whose transfer function has infinite gain within a specific frequency. SOGI can simultaneously generate two mutually orthogonal signals, namely the first voltage corresponding to the α-axis and the second voltage corresponding to the β-axis mentioned above. It can also be conveniently used as a synchronization unit in the single-phase power grid synchronization strategy.
[0050] Step 33: performing coordinate system conversion on the first voltage and the second voltage to obtain a third voltage and a fourth voltage corresponding to the rotating coordinate system.
[0051] The third voltage corresponds to the d-axis in the rotating coordinate system, and the fourth voltage corresponds to the q-axis in the rotating coordinate system.
[0052] Step 34: Obtain a given AC current using the third voltage and the fourth voltage.
[0053] Step 35: Obtain the current loop output using the given AC current and inductor current.
[0054] Step 36: Obtain a target inverter voltage using the current loop output and the first inverter voltage, and obtain a control signal according to the target inverter voltage and the bus voltage.
[0055] Step 37: Use the control signal to control the switch module to operate the off-grid inverter.
[0056] See also Figure 4 , Figure 4 1 is a flow chart of an embodiment of a control method provided by the present application. The method is applied to the above-mentioned off-grid inverter 100, and the control method includes:
[0057] Step 41: collecting the bus voltage at the power input end, the first inverter voltage at the load output end, and the inductor current of the inductor.
[0058] The bus voltage may be the voltage across the first capacitor C1 mentioned above, and the first inverter voltage may be the voltage across the second capacitor C2 mentioned above.
[0059] Step 42: Filter out the DC component in the first inverter voltage to obtain a second inverter voltage.
[0060] In some embodiments, since the first inverter voltage is an AC signal, the average value of the first inverter voltage can be calculated and used as the DC component. Then, the DC component in the first inverter voltage is filtered out to obtain the second inverter voltage.
[0061] Step 43: Perform a generalized second-order integration using the second inverter voltage to obtain a first voltage and a second voltage corresponding to the stationary coordinate system.
[0062] The first voltage corresponds to the α-axis in the stationary coordinate system, and the second voltage corresponds to the β-axis in the stationary coordinate system.
[0063] Among them, the transfer function of the generalized second-order integral is as follows:
[0064]
[0065]
[0066] Among them, U α represents the α-axis voltage, U β Indicates the β-axis voltage, Ui represents the input inverter voltage, K represents the damping ratio, ω s represents the angular frequency and S represents the Laplace transform time domain.
[0067] The SOGI circuit behaves as an integrator with infinite gain.
[0068] Step 44: performing coordinate system conversion on the first voltage and the second voltage to obtain a third voltage and a fourth voltage corresponding to the rotating coordinate system.
[0069] The third voltage corresponds to the d-axis in the rotating coordinate system, and the fourth voltage corresponds to the q-axis in the rotating coordinate system.
[0070] The conversion formula from the stationary coordinate system to the rotating coordinate system is as follows:
[0071] U d =U α *cos(ω s t)+U β *sin(ω s t);
[0072] U q =U β *cos(ω s t)-U α *sin(ω s t).
[0073] Among them, U d Indicates the third voltage, U q Represents the fourth voltage, U α Represents the first voltage, U β represents the second voltage, and t represents time.
[0074] Step 45: Obtain a current loop output using the third voltage, the fourth voltage and the inductor current.
[0075] In some embodiments, the third voltage and the fourth voltage may be used to obtain a given alternating current; and the current loop output may be obtained using the given alternating current and the inductor current.
[0076] Since the third voltage corresponds to the d-axis in the rotating coordinate system, and the fourth voltage corresponds to the q-axis in the rotating coordinate system, the third voltage can be compared with the d-axis given voltage, and the fourth voltage can be compared with the q-axis given voltage. For example, the q-axis given voltage is positive feedback, and the fourth voltage is negative feedback. The error value between the q-axis given voltage and the fourth voltage is determined, and the error value is input into the voltage regulator in the preset algorithm for adjustment to obtain a given current peak voltage. Then, the given AC current is obtained from the given AC current using the preset phase angle.
[0077] For example, the given AC current and the inductor current are compared, and then the current loop regulator in the preset algorithm is used for adjustment to obtain the current loop output. For example, the given AC current is positive feedback, and the inductor current is negative feedback. The error value between the given AC current and the inductor current is determined, and the error value is input into the current loop regulator for adjustment to obtain the output of the current loop regulator.
[0078] Step 46: Obtain a control signal using the current loop output, the second inverter voltage and the bus voltage.
[0079] In some embodiments, the current loop output and the second inverter voltage are added to obtain a third inverter voltage, and then the third inverter voltage is divided by the bus voltage to obtain a control signal.
[0080] Step 47: Use the control signal to control the switch module to operate the off-grid inverter.
[0081] In this embodiment, the DC component in the inverter voltage is filtered out before the generalized second-order integration is performed on the inverter voltage to avoid the influence of the DC component in subsequent processing, thereby improving the accuracy of the control signal and further improving the stability of the inverter voltage output at the load output end.
[0082] See also Figure 5 , Figure 5 1 is a flow chart of another embodiment of the control method provided by the present application. The method is applied to the above-mentioned off-grid inverter 100, and the control method includes:
[0083] Step 501: collecting the bus voltage at the input end of the power supply, the first inverter voltage at the output end of the load, and the inductor current of the inductor.
[0084] Step 502: Calculate the average value of the first inverter voltage to obtain a DC component.
[0085] Step 503: filtering out the DC component in the first inverter voltage to obtain a second inverter voltage.
[0086] Step 504: Perform a generalized second-order integration using the second inverter voltage to obtain a first voltage and a second voltage corresponding to the stationary coordinate system.
[0087] The first voltage corresponds to the α-axis in the stationary coordinate system, and the second voltage corresponds to the β-axis in the stationary coordinate system.
[0088] Step 505: Obtain the phase shift corresponding to the voltage regulator in the preset algorithm.
[0089] Among them, the preset algorithm can be a corresponding automatic control algorithm, such as a PID algorithm or a CCM algorithm.
[0090] Step 506: Compensate the second voltage according to the phase shift.
[0091] Step 507: performing coordinate system conversion on the first voltage and the compensated second voltage to obtain a third voltage and a fourth voltage corresponding to the rotating coordinate system.
[0092] The third voltage corresponds to the d-axis in the rotating coordinate system, and the fourth voltage corresponds to the q-axis in the rotating coordinate system.
[0093] Before converting to the rotating coordinate system, a certain amount of negative DC component is added to the β-axis as required, that is, the second voltage is compensated according to the phase shift to offset the phase shift caused by the subsequent voltage regulator.
[0094] Step 508: Obtain the d-axis given voltage and the q-axis given voltage.
[0095] Step 509: The third voltage, the fourth voltage, the d-axis given voltage and the q-axis given voltage are adjusted by a voltage regulator to obtain a given current peak voltage.
[0096] Step 510: Obtain a given alternating current according to the phase angle.
[0097] Step 511: Obtain the current loop output using the given AC current and the inductor current.
[0098] Step 512: Obtain a third inverter voltage using the current loop output and the second inverter voltage, and obtain a control signal according to the third inverter voltage and the bus voltage.
[0099] Step 513: Use the control signal to control the switch module to enable the off-grid inverter to operate.
[0100] The principle of filtering out DC components in the present application is introduced below.
[0101] Among them, the transfer function of the generalized second-order integral is as follows:
[0102]
[0103]
[0104] See also Figure 6 , U α At the angular frequency ω s The gain is 1, the phase is 0, the DC component gain is very small and can be ignored. β At the angular frequency ω s The gain is 1, the phase is -90 degrees, the DC gain is 1.414, and the phase is 0.
[0105] The conversion formula from the above-mentioned stationary coordinate system to the rotating coordinate system is as follows:
[0106] U d =U α*cos(ω s t)+U β *sin(ω s t)
[0107] U q =U β *cos(ω s t)-U α *sin(ω s t).
[0108] The conversion formula from the above rotating coordinate system to the stationary coordinate system is as follows:
[0109] U α =U d *cos(ω s t)-U q *sin(ω s t)
[0110] U β =U q *cos(ω s t)+U d *sin(ω s t).
[0111] Therefore, assuming that the inverter voltage contains a DC component, the results after generalized second-order integration, coordinate transformation, voltage regulator and inverse coordinate transformation are as follows:
[0112] U in =M+N*cosω s t
[0113] U α =N*cosω s t
[0114] Wherein, M represents the DC component in the inverter voltage, and N represents a constant.
[0115] In the related art, the DC component needs to be suppressed in the subsequent conversion, which is expressed by the following formula:
[0116]
[0117]
[0118] Among them, γ is a fixed value after the formula is converted. Frequency ω s The component on the DQ axis is the DC component, and the DC component on the αβ axis becomes the frequency ω s component, assuming that the voltage regulator is at a frequency ω s The gain at k -1, the phase delay is η, and the gain of the DC component is k0, then the output after the regulator is as follows.
[0119] U do =M'*k -1 *cos(ω s t-γ-η)+N error *k0
[0120] U qo =-M'*k -1 *sin(ω s t-γ-η).
[0121] Transforming the output back to the stationary coordinate system yields:
[0122] U αo =N error *k0*cos(ω s t)+M′*k -1 *cos(ω s t-γ-η)*cos(ω s t)+M′*k -1 *sin(ω s t-γ-η)*sin(ω s t)
[0123] =N error *k0*cos(ω s t)+M′*k -1 cos(-γ-η)
[0124] =N error *k0*cos(ω s t)+M′*k -1 *cos(γ+η).
[0125] The changes of the DC component after generalized second-order integration, rotation of the rotating coordinate system, voltage loop regulator, and then conversion to the stationary coordinate system are as shown above. From the results, when the phase of the cosine function exceeds 90 degrees, the control of the DC component becomes positive feedback. When it is less than 90 degrees, the gain of the DC component will also be reduced.
[0126] Therefore, the present application proposes to process the above-mentioned generalized second-order integral part and the conversion rotation coordinate system as follows, and after filtering out the DC component of the inverter voltage, use it as the input of the generalized second-order integral calculation, and the result is as follows.
[0127] U′ in =N*cosω s t;
[0128] U′ α =N*cosω st;
[0129] U′ β =N*sinω s t. Among them, U′ in It represents the inverter voltage after filtering out the DC component, that is, the second inverter voltage mentioned above. U′ α represents the first voltage mentioned above, U′ β represents the above-mentioned second voltage.
[0130] From the results, U′ β Does not contain DC components, and at the same time, U′ β When converting to a rotating coordinate system, do the following:
[0131] U″ β =U′ β -m*M; for U′ β Make compensation.
[0132] U d =M*cos(ω s t)-m*M*sin(ω s t)+N=M″*cos(ω s t+γ′)+N;
[0133] U q =-m*M*cos(ω s t)-M*sin(ω s t)=-M″*sin(ω s t+γ′);
[0134] U do =M″*k -1 *cos(ω s t+γ′-η)+N error *k0;
[0135] U qo =-M″*k -1 *sin(ω s t+γ′-η).
[0136] U αo =N error *k0*cos(ω s t)+M″*k -1 *cos(ω s t+γ′-η)*cos(ω s t)+M″*k -1 *sin(ω s t+γ′-η)*sin(ω s t)
[0137] =Nerror *k0*cos(ω s t)+M″*k -1 cos(γ′-η)
[0138] =N error *k0*cos(ω s t)+M″*k -1 *cos(γ′-η).
[0139] According to the voltage loop, s The phase delay at is η, let m = tanη, then we can get γ′ = η, at this time cos0 = 1, the loop output gain for the DC component is the largest, so the DC component can be effectively reduced, and positive feedback caused by excessive phase shift of the voltage loop can be effectively prevented.
[0140] In the present application, the DC component in the inverter voltage is filtered out to avoid the influence of the DC component in subsequent generalized second-order integration and other processing, and before converting to the rotating coordinate system, a certain amount of negative DC component is added to the β-axis as needed to offset the phase shift caused by the voltage regulator, improve the accuracy of the control signal, and thereby improve the stability of the inverter voltage output at the load output end.
[0141] See also Figure 7 , Figure 7 1 is a schematic diagram of the structure of an embodiment of an electronic device provided by the present application. The electronic device 70 includes a processor 71 and a memory 72 coupled to the processor 71; wherein the memory 72 is used to store a computer program, and the processor 71 is used to execute the computer program to implement the following method:
[0142] The bus voltage of the power input terminal 10, the first inverter voltage of the load output terminal 20 and the inductor current of the inductor L1 are collected; the DC component in the first inverter voltage is filtered out to obtain the second inverter voltage; the second inverter voltage is used to perform a generalized second-order integration to obtain the first voltage and the second voltage corresponding to the stationary coordinate system, wherein the first voltage corresponds to the α-axis in the stationary coordinate system, and the second voltage corresponds to the β-axis in the stationary coordinate system; the first voltage and the second voltage are converted into a coordinate system to obtain the third voltage and the fourth voltage corresponding to the rotating coordinate system, wherein the third voltage corresponds to the d-axis in the rotating coordinate system, and the fourth voltage corresponds to the q-axis in the rotating coordinate system; the third voltage, the fourth voltage and the inductor current are used to obtain the current loop output; the control signal is obtained by using the current loop output, the second inverter voltage and the bus voltage; the switch module 30 is controlled by the control signal to make the off-grid inverter 100 work.
[0143] It can be understood that the processor 71 is also used to execute a computer program to implement the method of any of the above embodiments.
[0144] See also Figure 8 , Figure 8 80 is a schematic diagram of a computer readable storage medium according to an embodiment of the present application. The computer readable storage medium 80 stores a computer program 81. When the computer program 81 is executed by a processor, the following method is implemented:
[0145] The bus voltage of the power input terminal 10, the first inverter voltage of the load output terminal 20 and the inductor current of the inductor L1 are collected; the DC component in the first inverter voltage is filtered out to obtain the second inverter voltage; the second inverter voltage is used to perform a generalized second-order integration to obtain the first voltage and the second voltage corresponding to the stationary coordinate system, wherein the first voltage corresponds to the α-axis in the stationary coordinate system, and the second voltage corresponds to the β-axis in the stationary coordinate system; the first voltage and the second voltage are converted into a coordinate system to obtain the third voltage and the fourth voltage corresponding to the rotating coordinate system, wherein the third voltage corresponds to the d-axis in the rotating coordinate system, and the fourth voltage corresponds to the q-axis in the rotating coordinate system; the third voltage, the fourth voltage and the inductor current are used to obtain the current loop output; the control signal is obtained by using the current loop output, the second inverter voltage and the bus voltage; the switch module 30 is controlled by the control signal to make the off-grid inverter 100 work.
[0146] It can be understood that when the computer program 81 is executed by the processor, it is also used to implement the method of any of the above embodiments.
[0147] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0148] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0149] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0150] If the integrated units in the above other embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program codes.
[0151] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structural transformations made according to the contents of the description and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A control method, characterized in that: Applied to an off-grid inverter, the off-grid inverter comprises a power input terminal, a load output terminal, an inductor, a switch module and a control circuit; wherein the power input terminal is respectively coupled to the switch module and the control circuit, the switch module is also respectively coupled to the inductor, the control circuit and the load output terminal, the inductor is also respectively coupled to the control circuit and the load output terminal, and the load output terminal is also coupled to the control circuit; the method comprises: Collecting the bus voltage of the power input terminal, the first inverter voltage of the load output terminal, and the inductor current of the inductor; filtering out a DC component in the first inverter voltage to obtain a second inverter voltage; Performing a generalized second-order integration using the second inverter voltage to obtain a first voltage and a second voltage corresponding to a stationary coordinate system, wherein the first voltage corresponds to an α-axis in the stationary coordinate system, and the second voltage corresponds to a β-axis in the stationary coordinate system; Performing coordinate system conversion on the first voltage and the second voltage to obtain a third voltage and a fourth voltage corresponding to a rotating coordinate system, wherein the third voltage corresponds to a d-axis in the rotating coordinate system, and the fourth voltage corresponds to a q-axis in the rotating coordinate system; Obtaining a current loop output using the third voltage, the fourth voltage and the inductor current; Obtaining a control signal using the current loop output, the second inverter voltage and the bus voltage; The switch module is controlled by utilizing the control signal to enable the off-grid inverter to operate.
2. The method according to claim 1, characterized in that The filtering out the DC component in the first inverter voltage to obtain the second inverter voltage includes: Calculating an average value of the first inverter voltage to obtain the DC component; A DC component in the first inverter voltage is filtered out to obtain a second inverter voltage.
3. The method according to claim 1, characterized in that Before the step of performing coordinate system conversion on the first voltage and the second voltage to obtain a third voltage and a fourth voltage corresponding to the rotation coordinate system, the method further includes: compensating the second voltage; The performing coordinate system conversion on the first voltage and the second voltage to obtain a third voltage and a fourth voltage corresponding to the rotating coordinate system includes: A coordinate system conversion is performed on the first voltage and the compensated second voltage to obtain the third voltage and the fourth voltage corresponding to the rotating coordinate system.
4. The method according to claim 3, characterized in that The compensating the second voltage includes: Obtaining a phase shift corresponding to a voltage regulator in a preset algorithm; The second voltage is compensated according to the phase shift.
5. The method according to claim 1, characterized in that The step of obtaining a given alternating current by using the third voltage and the fourth voltage comprises: Get the d-axis given voltage and the q-axis given voltage; The third voltage, the fourth voltage, the d-axis given voltage and the q-axis given voltage are adjusted by a voltage regulator in a preset algorithm to obtain a given current peak voltage; The given alternating current is obtained according to a preset phase angle and the given current peak voltage.
6. The method according to claim 1, characterized in that The step of obtaining a current loop output by using the third voltage, the fourth voltage and the inductor current includes: Obtaining a given alternating current using the third voltage and the fourth voltage; A current loop output is obtained using the given alternating current and the inductor current.
7. The method according to claim 1, characterized in that The method of obtaining a control signal by using the current loop output, the second inverter voltage and the bus voltage includes: Obtaining a third inverter voltage using the current loop output and the second inverter voltage; The control signal is obtained according to the third inverter voltage and the bus voltage.
8. The method according to claim 1, characterized in that The switch module comprises: A first switch tube, wherein a first end of the first switch tube is coupled to a first end of the power input end, and a second end of the first switch tube is coupled to a second end of the load output end; a second switch tube, wherein a first end of the second switch tube is coupled to a first end of the power input end, and a second end of the second switch tube is coupled to a first end of the inductor; a third switch tube, wherein a first end of the third switch tube is coupled to the second end of the first switch tube, and a second end of the third switch tube is coupled to the second end of the power input terminal; a fourth switch tube, wherein a first end of the fourth switch tube is coupled to a second end of the second switch tube, and a second end of the fourth switch tube is coupled to a second end of the power input terminal; And / or, the load output terminal includes: a first capacitor, a first end of the first capacitor is coupled to the second end of the inductor, and a second end of the first capacitor is coupled to the second end of the first switch tube; And / or, the power input end includes: a power input interface, a first resistor, a second resistor and a second capacitor; The first end of the first resistor is coupled to the first end of the power input interface, and the second end of the first resistor is coupled to the first end of the first switch tube and the first end of the second switch tube; the first end of the second resistor is coupled to the second end of the first resistor, and the second end of the second resistor is coupled to the first end of the second capacitor, and the first end of the second capacitor is coupled to the second end of the power input interface.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory coupled to the processor; The memory is used to store a computer program, and the processor is used to execute the computer program to implement the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method for controlling grid-connected current of three-phase grid-connected inverter
CN102611143A
Grid-connected inverter control device
CN102638057A
Control device of three-phase photovoltaic grid-connected inverter
CN103944186A
