A bidirectional inverter device and control method
Through the phase-locked loop and controller, analyze the inverter output voltage, judge the mains access and switch the working mode, solve the large size and high cost problems caused by mechanical contact switches in the existing technology, and realize efficient inverter switching .
Patent Information
- Application Number
- CN202111160115.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-09-30
AI Technical Summary
The existing bidirectional inverter devices require switching through mechanical contact switches such as relays or contactors, resulting in large size and high cost.
Using a phase-locked loop and a controller, the voltage phase and frequency are analyzed by reading the inverter's output voltage, calculating the predicted voltage, and periodically disturbing the voltage frequency when the difference between the predicted voltage and the actual voltage exceeds the threshold range. , judge the mains power access, switch the working mode, and do not need to use relays or contactors.
It effectively reduces the volume and cost of the inverter device, improves the switching efficiency between the inverter and the mains power, and improves the working efficiency.
Smart Images

Figure CN113783289B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of inverters, and in particular to a bidirectional inverter device and a control method. Background Art
[0002] At present, the existing inverter device needs to use mechanical contact switches such as relays or contactors to achieve switching between the mains and the inverter. Specifically, when the mains is connected, the output port is switched to the mains port through the relay or contactor, and the mains input is used as the output power supply to the electrical appliance; when the mains is not connected, the relay or contactor switches the output port to the inverter board output port, and the inverter is used as the output power supply to the electrical appliance. The existing bidirectional inverter device has the following problems: the switching needs to be achieved through mechanical contact switches such as relays or contactors, which results in a large size of the inverter device and high cost. Summary of the invention
[0003] The present invention provides a bidirectional inverter device and a control method to solve the problem that the existing bidirectional inverter device needs to be switched by mechanical contact switches such as relays or contactors, resulting in a large size and high cost of the inverter device.
[0004] A first embodiment of the present invention provides a bidirectional inverter device, comprising:
[0005] controller, bidirectional inverter and phase-locked loop;
[0006] The controller is connected to the phase-locked loop and the bidirectional inverter respectively;
[0007] The mains input terminal is connected to the input terminal of the phase-locked loop and the first output terminal of the bidirectional inverter respectively;
[0008] The second output end and the first output end of the bidirectional inverter are connected to a battery and an electrical appliance respectively.
[0009] A second embodiment of the present invention provides a control method for a bidirectional inverter device, which is executed in the above-mentioned bidirectional inverter device, and includes:
[0010] Reading the output voltage of the bidirectional inverter, and analyzing the output voltage to obtain a voltage phase and a voltage frequency;
[0011] Calculate the predicted voltage at the next moment according to the voltage phase and the voltage frequency;
[0012] The voltage frequency is periodically disturbed, and when the difference between the predicted voltage and the actual voltage exceeds a preset threshold range, it is determined that the mains power is connected to the bidirectional inverter device, and the working mode of the bidirectional inverter is switched to an input mode.
[0013] Further, the reading of the output voltage of the bidirectional inverter is specifically:
[0014] The output voltage analog signal is read through the ADC pin in the controller, and the output voltage is obtained by performing analog-to-digital conversion on the output voltage analog signal.
[0015] Furthermore, the predicted voltage at the next moment is calculated based on the voltage phase and the voltage frequency. Specifically:
[0016] According to the voltage phase, the amplification factor of the ksin(wt) function waveform in the output voltage is calculated;
[0017] Calculating the output frequency of the inverter according to the voltage frequency;
[0018] The predicted voltage of the bidirectional inverter at the next moment is calculated according to the amplification factor and the output frequency.
[0019] Further, the switching of the working mode of the bidirectional inverter to the input mode is specifically:
[0020] A rectifier bridge is used to rectify the mains power into direct current, and the direct current is stepped down through a dual-loop bidirectional LLC and then input into the battery.
[0021] The embodiment of the present invention calculates the predicted voltage at the next moment based on the voltage phase and the voltage frequency, and periodically perturbs the voltage frequency. When the difference between the predicted voltage and the actual voltage exceeds a preset threshold range, it is determined that the AC power is connected to the bidirectional inverter device, and the working mode of the bidirectional inverter is switched to the input mode. There is no need to set mechanical contact switches such as relays or contactors, which can effectively reduce the size and cost of the bidirectional inverter device and can effectively improve the working efficiency of the bidirectional inverter device. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a structural schematic diagram of a bidirectional inverter device provided by an embodiment of the present invention;
[0023] Figure 2 It is a flow chart of a control method of a bidirectional inverter device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0026] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0027] See also Figure 1 In a first embodiment of the present invention, there is provided Figure 1 A bidirectional inverter device is shown, comprising:
[0028] A controller 10, a bidirectional inverter 20 and a phase-locked loop 30;
[0029] The controller 10 is connected to the phase-locked loop 30 and the bidirectional inverter 20 respectively;
[0030] The mains input terminal 40 is connected to the input terminal of the phase-locked loop 30 and the first output terminal of the bidirectional inverter 20 respectively;
[0031] The second output terminal and the first output terminal of the bidirectional inverter 20 are connected to the battery 50 and the electrical appliance 60 respectively.
[0032] In the embodiment of the present invention, the phase-locked loop 30 (phase locked loop) is a negative feedback control system that uses the voltage generated by phase synchronization to tune the voltage-controlled oscillator to generate a target frequency. It can control the frequency and phase of the oscillation signal inside the loop through an external reference signal to achieve automatic tracking of the output signal frequency with the input signal frequency. The embodiment of the present invention can obtain the voltage phase and voltage frequency of the output voltage through the phase-locked loop 30.
[0033] The implementation of the embodiments of the present invention has the following beneficial effects:
[0034] In the embodiment of the present invention, the first output terminal of the bidirectional inverter 20 and the mains input terminal 40 are respectively connected to the electrical appliance 60, and the phase and frequency of the output voltage are obtained through the phase-locked loop 30, and the output voltage at the next moment is predicted according to the phase and frequency of the voltage. By periodically disturbing the output voltage, the output voltage of the inverter and the input voltage of the mains are prevented from being in the same frequency and phase, resulting in the inability to identify whether the mains is connected. Whether the mains is connected is determined according to the difference between the actual voltage and the predicted voltage, and the working mode of the inverter is switched when the mains is connected. In the embodiment of the present invention, the current output voltage is obtained through the phase-locked loop 30, and the predicted voltage is calculated and the actual voltage is obtained, so as to determine whether the mains is connected according to the difference between the predicted voltage and the actual voltage, so as to switch the working mode of the inverter, and there is no need to set a mechanical contact switch such as a relay or a contactor to realize the switching, which can not only effectively reduce the size of the inverter device, and reduce the deployment cost of the equipment, but also effectively improve the efficiency of switching between the inverter and the mains, which is conducive to improving the working efficiency of the inverter device.
[0035] See also Figure 2 A second embodiment of the present invention provides a control method for a bidirectional inverter device, which is executed in the above-mentioned bidirectional inverter device, and includes:
[0036] S1, reading the output voltage of the bidirectional inverter 20, and analyzing the output voltage to obtain the voltage phase and voltage frequency;
[0037] S2. Calculate the predicted voltage at the next moment according to the voltage phase and voltage frequency;
[0038] S3. Periodically disturb the voltage frequency. When the difference between the predicted voltage and the actual voltage exceeds a preset threshold range, determine that the mains power is connected to the bidirectional inverter device, and switch the working mode of the bidirectional inverter 20 to the input mode.
[0039] The embodiment of the present invention calculates the predicted voltage at the next moment based on the voltage phase and the voltage frequency, and periodically perturbs the voltage frequency. When the difference between the predicted voltage and the actual voltage exceeds a preset threshold range, it is determined that the AC power is connected to the bidirectional inverter device, and the working mode of the bidirectional inverter 20 is switched to the input mode. There is no need to set mechanical contact switches such as relays or contactors, which can effectively reduce the size and cost of the bidirectional inverter device and can effectively improve the working efficiency of the bidirectional inverter device.
[0040] In one embodiment, the output voltage of the bidirectional inverter 20 is read as follows:
[0041] The output voltage analog signal is read through the ADC pin in the controller 10, and the output voltage is obtained by performing analog-to-digital conversion on the output voltage analog signal.
[0042] In the embodiment of the present invention, the output voltage analog signal is read through the ADC pin of the DSP chip. After the output voltage of the bidirectional inverter 20 is obtained, the voltage phase ф and the voltage frequency f are obtained by performing software phase locking on the output voltage.
[0043] In one embodiment, the predicted voltage at the next moment is calculated based on the voltage phase and voltage frequency. Specifically:
[0044] According to the voltage phase, the amplification factor of the ksin(wt) function waveform in the output voltage is calculated;
[0045] The output frequency of the inverter is obtained according to the voltage frequency calculation;
[0046] The predicted voltage of the bidirectional inverter 20 at the next moment is calculated according to the amplification factor and the output frequency.
[0047] In one embodiment, the output voltage of the bidirectional inverter 20 is a function waveform related to ksin(wt), k is the amplification factor, when 220V AC is output, k=220*√2, w is the value related to the output frequency of the bidirectional inverter 20, when 50Hz AC is output, w=100π; suppose the next moment time t=t1, the corresponding predicted voltage calculated according to the amplification factor and the output frequency is u1=ksin(w*t1).
[0048] At the same time, the voltage frequency of the output voltage is disturbed periodically by ±F to avoid the inverter output voltage and the mains input voltage being in the same frequency and phase, which results in the mains being unable to interfere with the inverter output voltage and making it impossible to identify whether the mains is connected. Specifically:
[0049] Only the voltage frequency in the output voltage is disturbed, and the expression is: F=f+s, where f is the frequency obtained by the phase-locked loop 30, and s changes back and forth between periodically +c and -c.
[0050] In one embodiment, the working mode of the bidirectional inverter 20 is switched to the input mode, specifically:
[0051] The mains power is rectified into direct current by a rectifier bridge, and the direct current is stepped down by a dual-loop bidirectional LLC and then input into the battery 50 .
[0052] In one embodiment, the condition for switching the working mode of the bidirectional inverter 20 to the input mode is that the current mains is connected to the bidirectional inverter 20 device, and the judgment condition is that the difference between the predicted voltage and the actual voltage exceeds the preset threshold range. When the mains is connected, because the output voltage frequency is periodically disturbed in the embodiment of the present invention, the output voltage of the inverter and the input voltage of the mains are different in frequency and phase, and can be accurately identified when the mains is connected, and when the difference between the actual voltage and the predicted voltage reaches the preset threshold range, it is determined that the mains is connected, and the mode of the inverter is switched to the input mode, without the need to set additional mechanical contact switches such as relays or contactors.
[0053] It should be noted that the working modes of the bidirectional inverter 20 include an inverter mode and an input mode. In the inverter mode, the voltage of the battery 50 is boosted by an open-loop bidirectional LLC and inverted into AC output by an inverter / rectifier bridge; the input mode is: the input AC power is rectified into DC power by an inverter rectifier bridge, i.e., a PWM rectification mode, and the DC power is stepped down by an open-loop bidirectional LLC and input into the battery 50.
[0054] The control method of the bidirectional inverter 20 in the embodiment of the present invention is executed in the bidirectional inverter device, and the phase and frequency of the output voltage are obtained through the phase-locked loop 30, and the output voltage at the next moment is predicted according to the phase and frequency of the voltage. By periodically disturbing the output voltage, the output voltage of the inverter and the input voltage of the mains are prevented from being in the same frequency and phase, resulting in the inability to identify whether the mains is connected. Whether the mains is connected is determined according to the difference between the actual voltage and the predicted voltage, and the working mode of the inverter is switched when the mains is connected. The embodiment of the present invention obtains the current output voltage through the phase-locked loop 30, calculates the predicted voltage and obtains the actual voltage, thereby determining whether the mains is connected according to the difference between the predicted voltage and the actual voltage, so as to switch the working mode of the inverter, and there is no need to set a mechanical contact switch such as a relay or a contactor to achieve switching, which can not only effectively reduce the size of the inverter device, and reduce the deployment cost of the equipment, but also effectively improve the efficiency of switching between the inverter and the mains, which is conducive to improving the working efficiency of the inverter device.
[0055] The above are preferred embodiments of the present invention. It should be noted that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A control method for a bidirectional inverter device, It is characterized in that The invention is suitable for being executed in a bidirectional inverter device, wherein the bidirectional inverter device comprises: a controller, a bidirectional inverter and a phase-locked loop; the controller is respectively connected to the phase-locked loop and the bidirectional inverter; the mains input end is respectively connected to the input end of the phase-locked loop and the first output end of the bidirectional inverter; the second output end and the first output end of the bidirectional inverter are respectively connected to a battery and an electrical appliance; The control method comprises: Reading the output voltage of the bidirectional inverter, and analyzing the output voltage to obtain a voltage phase and a voltage frequency; Calculate the predicted voltage at the next moment according to the voltage phase and the voltage frequency; Performing periodic disturbance on the voltage frequency, and when the difference between the predicted voltage and the actual voltage exceeds a preset threshold range, determining that the mains power is connected to the bidirectional inverter device, and switching the working mode of the bidirectional inverter to an input mode; The predicted voltage at the next moment is calculated according to the voltage phase and the voltage frequency, specifically: According to the voltage phase, the amplification factor of the ksin(wt) function waveform in the output voltage is calculated; Calculating the output frequency of the inverter according to the voltage frequency; Calculating a predicted voltage of the bidirectional inverter at the next moment according to the amplification factor and the output frequency; The switching of the working mode of the bidirectional inverter to the input mode is specifically: A rectifier bridge is used to rectify the mains power into direct current, and the direct current is stepped down through a dual-loop bidirectional LLC and then input into the battery.
2. The control method of the bidirectional inverter device according to claim 1, It is characterized in that The reading of the output voltage of the bidirectional inverter is specifically: The output voltage analog signal is read through the ADC pin in the controller, and the output voltage is obtained by performing analog-to-digital conversion on the output voltage analog signal.
