Bidirectional transducer phase compensation method and bidirectional transducer
By performing phase compensation in the bidirectional converter, the problem of peak current in the rectifier/inverter circuit is solved, the control logic is simplified and the cost is reduced, and the safety and service life of the system are significantly improved.
Patent Information
- Application Number
- CN202310276195.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, rectifier/inverter circuits are prone to peak currents during bidirectional conversion, leading to damage to switching devices and system safety risks, and the commonly used soft-start method has complex control logic and high cost.
The bidirectional converter phase compensation method is used to compare the inductor current with the threshold, determine the time difference and perform phase compensation on the reference signal, and control the H-bridge switch duty cycle to reduce the inductor current and eliminate the peak current.
It achieves simplified control logic, reduces costs, effectively eliminates peak currents, extends the service life of the rectifier/inverter circuit, and improves system safety.
Smart Images

Figure CN118631082A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of power electronics, and in particular relates to a phase compensation method for a full-bridge base frequency controlled bidirectional converter and a corresponding bidirectional converter. Background Art
[0002] A rectifier is a device that converts AC power into DC power, which can be used for power supply devices and detecting radio signals. Inverters are the opposite of rectifiers. They are devices that convert DC power (batteries, storage batteries) into constant frequency and voltage or frequency-modulated and voltage-regulated AC power. Commonly used rectifier circuits include half-wave rectification, full-wave rectification, and bridge rectification. Among them, the bridge full-wave rectification circuit has a small output voltage pulsation, current passes through both the positive and negative half cycles, high power utilization, and a relatively high output DC voltage, so it is widely used.
[0003] See also Figure 1 The H-bridge circuit topology shown can realize bidirectional conversion of energy, that is, rectifying AC power into DC power or inverting DC power into AC power. Figure 1 The current direction shown in is the rectification from AC to DC. Taking this as an example, the circuit converts the AC input voltage Vin into a DC output voltage Vdc and provides it to the load R. The load R is connected in parallel with a capacitor C. Transistors Q1, Q1', Q2 and Q2' form an H bridge, and transistors Q1, Q1', Q2 and Q2' are connected in parallel with diodes D1, D1', D2 and D2' respectively. The node between Q1 and Q1' is A, and the node between Q2 and Q2' is B. One end of the inductor L is connected to the positive electrode of the input voltage Vin, and the other end is connected to the node A. In the positive half cycle of the input voltage Vin, the switching transistors Q1 and Q2' are turned on, and the switching transistors Q1' and Q2 are turned off; in the negative half cycle of the input voltage Vin, the switching transistors Q1' and Q2 are turned on, and the switching transistors Q1 and Q2' are turned off, so that a unidirectional pulsating DC voltage Vdc can be obtained. Figure 1 The H-bridge circuit topology shown can also realize grid-connected inversion, that is, inverting the DC power from, for example, a photovoltaic panel into AC power and providing it to the mains grid to realize grid-connected power generation. The control logic of the inversion process is the same as the control logic of the rectification process, the difference is that the current phase difference between the mains and the inductor L is different, wherein the mains and the inductor current are in phase during the rectification process, and the mains and the inductor current are in anti-phase during the inversion process.
[0004] Under the above control logic, due to the existence of leakage inductance and junction capacitance, as long as the mains voltage Vin and the voltage V between nodes A and B AB If there is a slight phase error, the current will continue to flow in the diode, capacitor or other components, causing the inductor current i L When the mains voltage passes through zero, it is too large, which is called "peak current". This will cause switching devices (including but not limited to Figure 1The damage of the transistor and diode shown in the figure will reduce the service life of the switch device and even the entire rectifier / inverter circuit. If this rectifier / inverter circuit is applied to the DC-DC converter, it will also cause the transformer excitation surge current, seriously affecting the safe operation of the system.
[0005] At present, the industry usually adopts the soft start method to eliminate peak current. However, the soft start method has complex control logic, high dependence on chips, and high cost. Summary of the invention
[0006] Therefore, the object of the present invention is to overcome the defects of the above-mentioned prior art and provide a bidirectional converter phase compensation method, wherein the bidirectional converter has a DC terminal, an AC terminal, and an inductor and an H-bridge electrically connected between the AC terminal and the DC terminal in sequence, wherein the bidirectional converter is configured to be able to convert the AC power input from the AC terminal into DC power to be output from the DC terminal or to convert the DC power input from the DC terminal into AC power to be output from the AC terminal, wherein the AC terminal can be connected to an AC power source, and the phase compensation method comprises the following steps:
[0007] Step 1: comparing the inductor current of the bidirectional converter with a current threshold;
[0008] Step 2: If the inductor current is higher than the current threshold, determine the time difference between the moment when the inductor current is higher than the current threshold and the moment when a reference signal crosses zero, where the reference signal is a signal extracted from the AC power supply;
[0009] Step 3: If the time difference is within a predetermined range, compensating the phase of the reference signal; and
[0010] Step 4: Controlling the switch duty cycle of the H-bridge based on the compensated reference signal to reduce the inductor current, thereby making the inductor current lower than the current threshold.
[0011] According to the bidirectional converter phase compensation method of the present invention, preferably, the reference signal is a sinusoidal wave signal extracted from the AC power supply.
[0012] According to the bidirectional converter phase compensation method of the present invention, preferably, in step 3, if the moment when the inductor current is higher than the current threshold is ahead of the moment when the reference signal crosses zero, the phase of the reference signal is positively compensated; if the moment when the inductor current is higher than the current threshold is behind the moment when the reference signal crosses zero, the phase of the reference signal is negatively compensated.
[0013] According to the bidirectional converter phase compensation method of the present invention, preferably, in step 3, the phase of the reference signal is compensated by a step length value, and then steps 1 to 4 are repeated until the inductor current is lower than the current threshold.
[0014] According to the bidirectional converter phase compensation method of the present invention, preferably, in step 2, if the inductor current is higher than the current threshold, the following sub-steps are performed:
[0015] Step S21: comparing the inductor current of the bidirectional converter with an auxiliary current threshold;
[0016] Step S22: if the inductor current is higher than the auxiliary current threshold, determine the time difference between the moment when the inductor current is higher than the auxiliary current threshold and the moment when the reference signal crosses zero;
[0017] Step S23: If the time difference is within a predetermined range, compensating the phase of the reference signal;
[0018] Step S24: controlling the switch duty cycle of the H-bridge based on the compensated reference signal so that the inductor current is lower than the auxiliary current threshold,
[0019] Wherein, in the step S23, the phase of the reference signal is compensated by an auxiliary step value, and then the steps S21 to S24 are repeated until the inductor current is lower than the auxiliary current threshold.
[0020] Among them, the auxiliary current threshold is higher than the current threshold, and the auxiliary step value is greater than the step value.
[0021] According to the bidirectional converter phase compensation method of the present invention, preferably, in the step S23, if the moment when the inductor current is higher than the auxiliary current threshold is ahead of the moment when the sine wave crosses zero, the phase of the reference signal is positively compensated; if the moment when the inductor current is higher than the auxiliary current threshold is behind the moment when the sine wave crosses zero, the phase of the reference signal is negatively compensated.
[0022] According to the bidirectional converter phase compensation method of the present invention, preferably, the auxiliary current threshold includes at least two auxiliary current thresholds, the auxiliary step value includes at least two auxiliary step values, and the auxiliary step value decreases as the auxiliary current threshold decreases.
[0023] According to the bidirectional converter phase compensation method of the present invention, preferably, the at least two auxiliary current thresholds include a first auxiliary current threshold and a second auxiliary current threshold, the first auxiliary current threshold is 10A, the second auxiliary current threshold is 6A, and the current threshold is 2A.
[0024] According to the bidirectional converter phase compensation method of the present invention, preferably, the predetermined range is -1 ms to -+1 ms.
[0025] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the bidirectional converter phase compensation method of the present invention.
[0026] On the other hand, the present invention provides an electronic device, including a processor and a memory, wherein the memory is used to store executable commands; the processor is configured to implement the bidirectional converter phase compensation method of the present invention by executing the executable commands.
[0027] The present invention also provides a bidirectional converter, comprising:
[0028] DC terminal;
[0029] an AC terminal configured to be electrically connected to an AC power source;
[0030] an inductor and an H-bridge electrically connected in sequence between the AC terminal and the DC terminal;
[0031] A current sensing module configured to sense an inductor current;
[0032] a comparison module configured to compare the inductor current with a current threshold;
[0033] A clock module configured to extract the timing of the inductor current;
[0034] a phase compensation module configured to compensate the phase of the reference signal when the inductor current is higher than the current threshold and the time difference between the moment of the inductor current and the moment of the zero crossing point of the reference signal is within a predetermined range; and
[0035] A control module is used to set the current threshold and control the switching duty cycle of the H-bridge based on the reference signal.
[0036] The bidirectional converter according to the present invention preferably further comprises a sine wave generator for extracting a sine wave signal from the AC power source as a reference signal.
[0037] Compared with the prior art, the advantages of the present invention are that the peak current of the bidirectional converter can be eliminated, the control logic is simple, the dependence on the chip is low, and the cost is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The embodiments of the present invention are further described below with reference to the accompanying drawings, in which:
[0039] Figure 1 The H-bridge circuit topology of the prior art is shown;
[0040] Figure 2 It is the control structure block diagram of the rectifier;
[0041] Figure 3 Schematically illustrates the conventional control logic of the rectifier;
[0042] Figure 4 A rectifier control logic block diagram according to an embodiment of the present invention is shown;
[0043] Figure 5 A flow chart showing rectifier phase compensation according to an embodiment of the present invention is shown;
[0044] Figure 6 A waveform diagram of a reference voltage before phase compensation and after phase increase by Δθ according to an embodiment of the present invention; and
[0045] Figure 7 A flow chart showing rectifier phase compensation according to another embodiment of the present invention is shown. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail by specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0047] See also Figure 2 The control structure block diagram of the rectifier shown in the figure, the AC input is converted into a DC output by the rectifier, and the AC input can be, for example, a mains input, or an AC output after being converted by a transformer. The controller provides a pulse width modulation signal to control the switching logic of the rectifier (the switching logic is, for example, the switching logic described above). Figure 1 The controller is preferably arranged in a microcontroller unit (MCU).
[0048] Figure 3 The conventional control logic of the rectifier is schematically shown. The electric signal generated by the power grid is extracted by the sine wave generator 1 to generate a standard sine wave (power frequency signal) as a reference signal and provided to the controller 2. The controller controls the switching logic of the rectifier circuit 3 based on the reference signal. The sine wave generator 1 and the controller 2 are preferably arranged in the MCU. In this conventional control mode, as mentioned above, peak current is likely to occur. Alternatively, the reference signal is other types of signals extracted from the power grid signal, such as a cosine signal, etc., as long as it can reflect the frequency and phase of the power grid signal.
[0049] In order to eliminate the peak current, the embodiment of the present invention provides a new rectifier control logic, such as Figure 4 The electric signal generated by the power grid is extracted by the sine wave generator 1 to generate a standard sine wave (power frequency signal) as a reference signal and provided to the controller 2, which then controls the rectifier circuit 3, especially the duty cycle of the transistor of the rectifier circuit 3. The current sampling module 4 collects the inductor current i of the rectifier circuit 3 in real time. L And output; analog-to-digital conversion module 5 converts the inductor current i L The reference signal is converted into a digital signal and fed back to the controller 2. The controller 2 controls the inductor current according to the reference signal so that it is ultimately in the same frequency and phase as the grid voltage. The comparison module 6 stores a current threshold I, which can be set by the controller 2. The comparison module 6 converts the inductor current i L Compared with the current threshold I, if the inductor current i L If the current is higher than the current threshold I, it is determined to be an abnormal event, and the abnormal event is output to the clock module 7. The clock module 7 extracts the time of occurrence of the abnormal event, and compares the time with the zero-crossing time of the standard sine wave output by the sine wave generator 1. If the time difference between the time of the abnormal event and the time of the sine wave zero-crossing is within a predetermined range, for example, the lead or lag does not exceed 1ms, then the abnormal event is determined to be a spike current event. The clock module 7 provides the relevant parameters of the spike current event to the phase compensation module 8. The relevant parameters are preferably the time difference between the time of the spike current event and the time of the sine wave zero-crossing, which can be positive or negative. A positive value represents that the peak current event is ahead of the sine wave zero-crossing time, and a negative value represents that the peak current event lags behind the sine wave zero-crossing time. The phase compensation module 8 adjusts the phase of the reference signal based on the relevant parameters of the peak current event, that is, compensates the phase of the sine wave output by the sine wave generator. The controller controls the duty cycle of the transistor of the rectifier based on the compensated reference signal, thereby reducing the inductor current to eliminate the peak current event of the inductor current, that is, eliminates the peak current.
[0050] In the embodiment of the present invention, the sine wave generator 1, the controller 2, the current sampling module 4, the analog-to-digital conversion module 5, the comparison module 6, the clock module 7 and the phase compensation module 8 are all arranged in the MCU.
[0051] Those skilled in the art will appreciate that the phase compensation process can compensate a phase value at one time, so that the inductor current is directly reduced to below the current threshold. In the present invention, the preferred method is gradual compensation, that is, compensating a small phase value at a time, so that the inductor current gradually decreases and eventually falls below the current threshold.
[0052] See also Figure 5 According to the flowchart of phase compensation according to an embodiment of the present invention, a phase compensation method according to an embodiment of the present invention comprises the following steps:
[0053] S1: Setting a current threshold I. By way of example and not limitation, the current threshold I is 2A.
[0054] S2: Determine whether a peak current event occurs. Specifically, as described above, the inductor current is compared with the current threshold. If the inductor current is higher than the current threshold, it is determined to be an abnormal event. The time when the abnormal event occurs is then compared with the zero-crossing time of the reference signal (sine wave). If the time difference between the abnormal event time and the zero-crossing time of the sine wave is within a predetermined range, it is determined that a peak current event occurs. Otherwise, it is determined that no peak current event occurs.
[0055] S3: If a peak current event occurs, if the peak current event precedes the zero crossing of the sine wave, the phase of the reference signal is increased by Δθ (+Δθ, positive compensation), see Figure 6 The waveform diagram of the reference signal before phase compensation and after the phase is increased by Δθ is shown. If the peak current event lags behind the zero crossing point of the sine wave, the phase of the reference signal is reduced by Δθ (-Δθ, negative compensation); if no peak current event occurs, the inductor current continues to be monitored.
[0056] S4: Control the rectifier based on the compensated reference signal, especially the switching duty cycle of the transistor of the rectifier. Since the inductor current tracks the reference current, the phase of the reference signal is compensated by ±Δθ so that the inductor current is reduced by Δi, and return to step S2.
[0057] Through the above steps, the inductor current is finally adjusted to less than 2A, thus achieving stability.
[0058] Those skilled in the art will appreciate that, in the above process, no peak current event occurs when the inductor current is lower than the current threshold, or the time difference between the moment when the inductor current is lower than the current threshold and the moment when the sine wave crosses zero exceeds a predetermined range, or both.
[0059] For example, if the monitored inductor current is 10A and is determined to be a peak current, phase compensation is performed step by step through steps S1-S4, for example, the inductor current is gradually reduced in steps of 1A until it is less than 2A and reaches stability, completing the phase compensation process.
[0060] However, if the monitored inductor current is very high, for example, 100A, it will take a long time to gradually perform phase compensation using steps S1-S4 to gradually reduce the inductor current in steps of 1A. To solve this problem, the inventor provides an improved phase compensation method.
[0061] See also Figure 7According to the flowchart of phase compensation according to another embodiment of the present invention, the rectifier phase compensation method according to another embodiment of the present invention comprises the following steps:
[0062] S1: Set the current threshold I to a first current threshold, for example, 10A.
[0063] S2: Determine whether a peak current event occurs. Specifically, as described above, the inductor current is compared with the first current threshold. If the inductor current is higher than the first current threshold, it is determined to be an abnormal event. The time when the abnormal event occurs is then compared with the zero-crossing time of the sine wave. If the time difference between the abnormal event time and the zero-crossing time of the sine wave is within a predetermined range, it is determined that a peak current event occurs. Otherwise, it is determined that no peak current event occurs.
[0064] S3: If a spike current event occurs, if the spike current event precedes the zero crossing of the sine wave, the phase of the reference voltage is increased by Δθ1 (+Δθ1); if the spike current event lags behind the zero crossing of the sine wave, the phase of the reference voltage is reduced by Δθ1 (-Δθ1), and the process continues to step S4; if no spike current event occurs, the process continues to step S5.
[0065] S4: Control the rectifier based on the compensated reference signal, especially the switching duty cycle of the transistor of the rectifier. Since the inductor current tracks the reference current, the phase of the reference signal is compensated by ±Δθ1 so that the inductor current is reduced by Δi1, and return to step S2.
[0066] Steps S1-S4 eventually adjust the inductor current to be lower than the first current threshold, and then go to step S5.
[0067] S5: Setting the current threshold I to a second current threshold, for example, 6A.
[0068] S6: Determine whether a peak current event occurs.
[0069] S7: If a spike current event occurs, if the spike current event precedes the zero crossing of the sine wave, the phase of the reference voltage is increased by Δθ2 (+Δθ2); if the spike current event lags behind the zero crossing of the sine wave, the phase of the reference voltage is reduced by Δθ2 (-Δθ2), and the process continues to step S8; if no spike current event occurs, the process continues to step S9.
[0070] S8: Control the rectifier based on the compensated reference signal, especially the switching duty cycle of the transistor of the rectifier. Since the inductor current tracks the reference current, the phase of the reference signal is compensated by ±Δθ2 so that the inductor current is reduced by Δi2, and return to step S6.
[0071] Steps S5-S8 finally adjust the inductor current to be lower than the second current threshold, and then go to step S9.
[0072] S9: Setting the current threshold I to a third current threshold, for example, 2A.
[0073] S10: Determine whether a peak current event occurs.
[0074] S11: If a peak current event occurs, if the peak current event precedes the zero crossing point of the sine wave, the phase of the reference voltage is increased by Δθ3 (+Δθ3); if the peak current event lags behind the zero crossing point of the sine wave, the phase of the reference voltage is reduced by Δθ3 (-Δθ3), and the process continues to step S12; if no peak current event occurs, return to step S1.
[0075] S12: Control the rectifier based on the compensated reference signal, especially the switching duty cycle of the transistor of the rectifier. Since the inductor current tracks the reference current, the phase of the reference signal is compensated by ±Δθ3 so that the inductor current is reduced by Δi3, and return to step S10.
[0076] Steps S9-S11 eventually adjust the inductor current to be lower than the third current threshold, thereby achieving a final stable state. If necessary, go to step S1 to enter a new round of monitoring and compensation.
[0077] In this embodiment, the first current threshold> the second current threshold> the third current threshold, and Δθ1>Δθ2>Δθ3. Since the inductor current continuously tracks the reference current, the ultimate goal of phase compensation is to adjust the inductor current to be less than the third current threshold, thereby eliminating the peak current. In order to quickly converge to a stable state, in this embodiment, when the inductor current is large, for example, higher than the first current threshold, it is adjusted with a larger step size; when the inductor current is lower than the first current threshold and higher than the second current threshold, it is adjusted with a relatively small step size; when the inductor current is lower than the second current threshold and higher than the first current threshold, it is adjusted with a smaller step size.
[0078] Those skilled in the art can understand that, in the method of this embodiment, the current threshold is not limited to three, and two current thresholds may be set, or more than three current thresholds may be set. A larger current threshold corresponds to a larger adjustment step, and the goal of adjustment is that the inductor current is less than the minimum current threshold. Therefore, the minimum current threshold is the actual current threshold, and the other current thresholds are auxiliary current thresholds for auxiliary adjustment, that is, when the inductor current is higher than the actual current threshold, an auxiliary current threshold is set for rapid adjustment, and when the inductor current is higher than the auxiliary current threshold, it is rapidly adjusted with a larger step until the inductor current is lower than the auxiliary current threshold, and then slowly adjusted with a smaller step until the inductor current is lower than the actual current threshold to reach a stable state.
[0079] Those skilled in the art will appreciate that the phase compensation method for the rectifier in this embodiment is also applicable to the inverter. Specifically, for the inverter, ideally, the phase difference between the inductor current and the AC power supply current is 180°. During the phase compensation process, the inductor current is monitored in real time. When a peak current event occurs, the phase of the reference signal extracted from the AC power supply is compensated according to the method described above, and the switching duty cycle of the H-bridge is controlled based on the compensated reference signal, thereby controlling the inductor current until the peak current disappears.
[0080] Those skilled in the art will appreciate that, in the present invention, the AC power source is not limited to the mains power.
[0081] In another embodiment of the present invention, a computer-readable storage medium is also provided, on which a computer program or executable instructions are stored. When the computer program or executable instructions are executed, the technical solution described in the above embodiment is implemented. The implementation principle is similar and will not be repeated here. In an embodiment of the present invention, a computer-readable storage medium can be any tangible medium that can store data and can be read by a computing device. Examples of computer-readable storage media include hard disk drives, network attached storage (NAS), read-only memory, random access memory, CD-ROM, CD-R, CD-RW, magnetic tape, and other optical or non-optical data storage devices. The computer-readable storage medium may also include computer-readable media distributed on a network-coupled computer system so that computer programs or instructions can be stored and executed in a distributed manner.
[0082] In another embodiment of the present invention, an electronic device is provided, including a processor and a memory, wherein the memory is used to store executable instructions that can be executed by the processor, wherein the processor is configured to execute the executable instructions stored in the memory, and when the executable instructions are executed, the technical solution introduced in any of the aforementioned embodiments is implemented, and the implementation principle is similar, which will not be repeated here.
[0083] References in this specification to "various embodiments," "some embodiments," "one embodiment," or "an embodiment," etc. refer to a particular feature, structure, or property described in conjunction with the embodiment being included in at least one embodiment. Thus, the appearances of the phrases "in various embodiments," "in some embodiments," "in one embodiment," or "in an embodiment," etc., in various places throughout the specification do not necessarily refer to the same embodiment. Furthermore, particular features, structures, or properties may be combined in any suitable manner in one or more embodiments. Thus, particular features, structures, or properties shown or described in conjunction with one embodiment may be combined in whole or in part with features, structures, or properties of one or more other embodiments without restriction, as long as the combination is not illogical or inoperable.
[0084] The expressions of "including", "having" and similar meanings in this specification are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices. "One" or "an" does not exclude multiple situations. In addition, the elements in the drawings of this application are for illustrative purposes only and are not drawn to scale.
[0085] Although the present invention has been described through preferred embodiments, the present invention is not limited to the embodiments described herein but includes various changes and modifications that may be made without departing from the scope of the present invention.
Claims
1. A phase compensation method for a bidirectional converter, wherein the bidirectional converter has a DC terminal, an AC terminal, and an inductor and an H-bridge electrically connected between the AC terminal and the DC terminal in sequence, wherein the bidirectional converter is configured to convert the AC power input from the AC terminal into DC power to output from the DC terminal or to convert the DC power input from the DC terminal into AC power to output from the AC terminal, wherein the AC terminal can be connected to an AC power source, and wherein the phase compensation method comprises the following steps: Step 1: comparing the inductor current of the bidirectional converter with a current threshold; Step 2: If the inductor current is higher than the current threshold, determine the time difference between the moment when the inductor current is higher than the current threshold and the moment when a reference signal crosses zero, where the reference signal is a signal extracted from the AC power supply; Step 3: If the time difference is within a predetermined range, compensating the phase of the reference signal; as well as Step 4: Controlling the switch duty cycle of the H-bridge based on the compensated reference signal to reduce the inductor current, thereby making the inductor current lower than the current threshold.
2. The bidirectional converter phase compensation method according to claim 1, wherein: The reference signal is a sine wave signal extracted from the AC power source.
3. The bidirectional converter phase compensation method according to claim 1 or 2, wherein: In step 3, if the moment when the inductor current is higher than the current threshold is ahead of the moment when the reference signal crosses zero, the phase of the reference signal is positively compensated; if the moment when the inductor current is higher than the current threshold is behind the moment when the reference signal crosses zero, the phase of the reference signal is negatively compensated.
4. The bidirectional converter phase compensation method according to claim 3, wherein: In step 3, the phase of the reference signal is compensated by a step length, and then steps 1 to 4 are repeated until the inductor current is lower than the current threshold.
5. The bidirectional converter phase compensation method according to claim 4, wherein: In step 2, if the inductor current is higher than the current threshold, the following sub-steps are performed: Step S21: comparing the inductor current of the bidirectional converter with an auxiliary current threshold; Step S22: if the inductor current is higher than the auxiliary current threshold, determine the time difference between the moment when the inductor current is higher than the auxiliary current threshold and the moment when the reference signal crosses zero; Step S23: If the time difference is within a predetermined range, compensating the phase of the reference signal; Step S24: controlling the switch duty cycle of the H-bridge based on the compensated reference signal so that the inductor current is lower than the auxiliary current threshold, Wherein, in the step S23, the phase of the reference signal is compensated by an auxiliary step value, and then the steps S21 to S24 are repeated until the inductor current is lower than the auxiliary current threshold. Among them, the auxiliary current threshold is higher than the current threshold, and the auxiliary step value is greater than the step value.
6. The bidirectional converter phase compensation method according to claim 5, wherein: In the step S23, if the moment when the inductor current is higher than the auxiliary current threshold is ahead of the moment when the sine wave crosses zero, the phase of the reference signal is positively compensated; if the moment when the inductor current is higher than the auxiliary current threshold is behind the moment when the sine wave crosses zero, the phase of the reference signal is negatively compensated.
7. The bidirectional converter phase compensation method according to claim 5 or 6, wherein: The auxiliary current threshold includes at least two auxiliary current thresholds, the auxiliary step value includes at least two auxiliary step values, and the auxiliary step value decreases as the auxiliary current threshold decreases.
8. The bidirectional converter phase compensation method according to claim 7, wherein: The at least two auxiliary current thresholds include a first auxiliary current threshold and a second auxiliary current threshold, the first auxiliary current threshold is 10A, the second auxiliary current threshold is 6A, and the current threshold is 2A.
9. A bidirectional converter, comprising: DC terminal; an AC terminal configured to be electrically connected to an AC power source; an inductor and an H-bridge electrically connected in sequence between the AC terminal and the DC terminal; A current sensing module configured to sense an inductor current; a comparison module configured to compare the inductor current with a current threshold; A clock module configured to extract the timing of the inductor current; a phase compensation module, configured to compensate the phase of the reference signal when the inductor current is higher than the current threshold and the time difference between the moment of the inductor current and the moment of the zero-crossing point of the reference signal is within a predetermined range; and A control module is used to set the current threshold and control the switching duty cycle of the H-bridge based on the reference signal.
10. The bidirectional converter according to claim 9, further comprising a sine wave generator for extracting a sine wave signal from the AC power source as a reference signal.
