A method and device for alleviating voltage sag based on switching power supply, and switching power supply

By calculating and adjusting the transformer turns ratio in the switching power supply, the problem of the need for external governance equipment in the prior art to alleviate the voltage drop is solved, and cost reduction and impact mitigation are achieved.

CN114726235BActive Publication Date: 2024-11-01NORTH CHINA ELECTRIC POWER UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210321017.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2024-11-01
Estimated Expiration
2042-03-28

AI Technical Summary

Technical Problem

In the prior art, the voltage drop problem of switching power supplies requires additional management equipment, which increases costs.

Method used

By obtaining the voltage drop voltage value, the first-stage filter capacitor capacity and the preset output voltage value, the peak-to-peak value of the output voltage and the transformer turn ratio are calculated based on the energy conservation principle, and the transformer turns ratio is adjusted to alleviate the voltage drop to the switching power supply The impact of

Benefits of technology

It reduces the cost of switching power supply, effectively alleviates the impact of voltage drop on switching power supply, and avoids the use of additional management equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114726235B_ABST
    Figure CN114726235B_ABST
Patent Text Reader

Abstract

The present invention discloses a voltage sag mitigation method, device and switching power supply based on a switching power supply, the method comprising: obtaining a voltage sag minimum value, a first-stage filter capacitor capacity in the switching power supply and a preset output voltage value of the switching power supply; based on the energy conservation principle, calculating the peak-to-peak value of the first-stage output voltage according to the first-stage filter capacitor capacity and the voltage sag voltage value in the switching power supply; determining the first-stage filter capacitor voltage value in the switching power supply according to the difference between the voltage sag voltage value and the peak-to-peak value of the first-stage output voltage; determining the transformer turns ratio in the switching power supply according to the ratio of the product of the first-stage filter capacitor voltage value and the preset maximum duty cycle to the preset minimum output voltage value of the switching power supply. By implementing the present invention, when a voltage sag occurs, the influence of the voltage sag on the switching power supply is mitigated by changing the transformer turns ratio, and the cost of the switching power supply is reduced compared to the method of adding external treatment equipment in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of switching power supplies, and in particular to a method and device for alleviating voltage sag based on a switching power supply, and a switching power supply. Background Art

[0002] Voltage sag refers to the event that the power supply voltage suddenly drops in a short period of time. With the continuous updating of technology, the extensive application of digital automatic control technology in industrial production, and the large-scale use of many sensitive electrical equipment, voltage sag has become the most important power quality issue.

[0003] As the working power supply or control power supply of electrical equipment, the switching power supply mainly provides multiple different power supply voltages, and usually requires a certain voltage stabilization accuracy. Because the switching power supply has the advantages of high efficiency, small size, low power consumption, and high reliability, it has been widely used in household or industrial electronic equipment.

[0004] As a typical sensitive device, the switching power supply is easily affected by voltage sag, which in turn causes the interruption of the related process control system. At present, the voltage sag problem in the switching power supply is mainly alleviated by measures such as increasing the DC capacitor value, reducing the load capacity and installing PFC circuits.

[0005] However, the current methods for alleviating voltage sags require additional management equipment for the switching power supply management measures, which increases external investment costs. Summary of the invention

[0006] In view of this, an embodiment of the present invention provides a method, device and switching power supply for alleviating voltage sag based on a switching power supply to solve the technical problem that the method for alleviating voltage sag used in the prior art for the switching power supply requires external management equipment.

[0007] The technical solution proposed by the present invention is as follows:

[0008] A first aspect of an embodiment of the present invention provides a method for alleviating a voltage sag based on a switching power supply, comprising: obtaining a minimum voltage sag voltage, a first-stage filter capacitor capacity in the switching power supply, and a preset output voltage value of the switching power supply; based on the principle of conservation of energy, calculating a peak-to-peak value of the first-stage output voltage according to the first-stage filter capacitor capacity and the voltage sag voltage value in the switching power supply; determining a first-stage filter capacitor voltage value in the switching power supply according to a difference between the voltage sag voltage value and the peak-to-peak value of the first-stage output voltage; determining a transformer turns ratio in the switching power supply according to a ratio of a product of the first-stage filter capacitor voltage value and a preset maximum duty cycle to a preset minimum output voltage value of the switching power supply.

[0009] Optionally, the voltage sag mitigation method based on the switching power supply also includes: calculating the minimum voltage value that the switching power supply can withstand the voltage sag based on the turns ratio of the transformer in the switching power supply, the preset minimum output voltage of the switching power supply, the preset maximum duty cycle, and the voltage value of the first-stage filter capacitor.

[0010] Optionally, the peak-to-peak value of the first-stage output voltage is calculated using the following formula:

[0011]

[0012] in, Represents the peak-to-peak value of the first-stage output voltage, P in Indicates the maximum input power, P in =P O / E ff , E ff To estimate the efficiency, P O is the output power, f L is the input voltage frequency, U sag is the voltage sag value, D ch is the preset input rectifier filter capacitor charging duty cycle, C DC Indicates the capacity of the first-stage filter capacitor in the switching power supply.

[0013] Optionally, the transformer turns ratio is calculated using the following formula:

[0014]

[0015] Where n is the transformer turns ratio, D max Indicates the preset maximum duty cycle, Indicates the minimum preset output voltage of the switching power supply.

[0016] A second aspect of an embodiment of the present invention provides a voltage sag mitigation device based on a switching power supply, comprising: a parameter acquisition module, used to obtain a voltage sag voltage value, a first-stage filter capacitor capacity in the switching power supply, and a preset output voltage value of the switching power supply; a first-stage output calculation module, used to calculate the peak-to-peak value of the first-stage output voltage according to the first-stage filter capacitor capacity and the voltage sag voltage value in the switching power supply based on the principle of conservation of energy; a voltage value calculation module, used to determine the voltage value of the first-stage filter capacitor in the switching power supply according to the difference between the voltage sag voltage value and the peak-to-peak value of the first-stage output voltage; a turns ratio determination module, used to determine the turns ratio of the transformer in the switching power supply according to the ratio of the product of the first-stage filter capacitor voltage value and a preset maximum duty cycle to the preset output voltage value of the switching power supply.

[0017] A third aspect of an embodiment of the present invention provides a switching power supply, comprising: a first-stage single-phase full-bridge uncontrolled rectifier circuit, a first-stage filter capacitor, a second-stage single-phase full-bridge controllable inverter circuit, a transformer, and a third-stage full-wave rectifier circuit connected in sequence, wherein the turns ratio of the transformer is calculated and determined using the voltage sag mitigation method based on the switching power supply described in the first aspect of the embodiment of the present invention and any one of the first aspects.

[0018] Optionally, the second-stage single-phase full-bridge controllable inverter circuit, the transformer and the third-stage full-wave rectifier circuit constitute a Buck circuit, and the minimum duty cycle of the Buck circuit is determined according to a preset output voltage value of the switching power supply, a maximum input voltage of the switching power supply and a turns ratio of the transformer.

[0019] Optionally, the magnetizing inductance of the transformer is calculated using the following formula:

[0020]

[0021] Among them, U Lm Represents the voltage difference across the transformer’s magnetizing inductance, ΔI Lm It represents the change in the transformer excitation inductance current, and t represents the time for storing energy in the excitation inductance;

[0022] The filter inductance in the third-stage full-wave rectifier circuit is calculated using the following formula:

[0023]

[0024] Among them, U max Indicates the maximum input voltage of the switching power supply, I O Indicates the rated output current of the switching power supply, f O represents the operating frequency of the third-stage circuit, U0 represents the preset output voltage value of the switching power supply, and Dmin represents the minimum duty cycle of the Buck circuit.

[0025] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the voltage sag mitigation method based on a switching power supply as described in the first aspect of the embodiment of the present invention and any one of the first aspects.

[0026] A fifth aspect of an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the voltage sag mitigation method based on a switching power supply as described in the first aspect of the embodiment of the present invention and any one of the first aspects.

[0027] The technical solution provided by the present invention has the following effects:

[0028] The voltage sag mitigation method, device and storage medium based on the switching power supply provided by the embodiment of the present invention, when a voltage sag occurs, determines the turns ratio of the transformer in the switching power supply based on the voltage sag voltage value, the peak-to-peak value of the first-stage output voltage and the preset minimum output voltage of the switching power supply. When the transformer adopts this turns ratio, the influence of the voltage sag on the switching power supply can be mitigated. Compared with the method of adding external treatment equipment in the prior art, the cost of the switching power supply is reduced.

[0029] The switching power supply provided by the embodiment of the present invention adopts a topological structure such as a first-stage single-phase full-bridge uncontrolled rectifier circuit, a first-stage filter capacitor, a second-stage single-phase full-bridge controllable inverter circuit, a transformer, and a third-stage full-wave rectifier circuit. When a voltage sag occurs, the turns ratio of the transformer in the switching power supply is determined based on the voltage sag voltage value, the peak-to-peak value of the first-stage output voltage, and the preset minimum output voltage of the switching power supply. When the transformer adopts this turns ratio, the influence of the voltage sag on the switching power supply can be alleviated. Compared with the method of adding external treatment equipment in the prior art, the cost of the switching power supply is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 is a structural block diagram of a switching power supply according to an embodiment of the present invention;

[0032] Figure 2 is a flow chart of a method for alleviating voltage sag based on a switching power supply according to an embodiment of the present invention;

[0033] Figure 3 is a structural block diagram of a voltage sag mitigation device based on a switching power supply according to an embodiment of the present invention;

[0034] Figure 4 is a schematic diagram of the structure of a computer-readable storage medium provided according to an embodiment of the present invention;

[0035] Figure 5 is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0037] The terms "first", "second", "third", "fourth", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof 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 necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0038] An embodiment of the present invention provides a switching power supply, such as Figure 1 As shown, the switching power supply includes: a first-stage single-phase full-bridge uncontrolled rectifier circuit 10, a first-stage filter capacitor C1, a second-stage single-phase full-bridge controllable inverter circuit 20, a transformer Q, and a third-stage full-wave rectifier circuit 30 connected in sequence.

[0039] Specifically, Figure 1 As shown, the first-stage single-phase full-bridge uncontrolled rectifier circuit uses four diodes to achieve rectification. The first-stage filter capacitor is connected after the first-stage single-phase full-bridge uncontrolled rectifier circuit for filtering. After filtering by the filter capacitor, the first-stage output voltage ripple is related to the capacitor capacity. The peak-to-peak value of the first-stage output voltage can be obtained by using the principle of energy conservation:

[0040]

[0041] In the formula, ΔU DC max Represents the peak-to-peak value of the first-stage output voltage, P in Indicates the maximum input power, P in =P O / E ff , E ff is the estimated efficiency, f L is the input voltage frequency, U min -U max is the input voltage range, D chis the charging duty cycle of the specified input rectifier filter capacitor, D ch =T1 / T2, and its typical value is 0.2. The peak-to-peak value of the first-stage output voltage is the voltage value between the lowest peak value and the highest peak value in the output voltage waveform, or the voltage drop in the first-stage circuit.

[0042] The second-stage single-phase full-bridge controllable inverter circuit is composed of four switch tubes, each of which is a MOS tube with a freewheeling diode. Assuming that the first stage outputs a constant DC voltage, an AC voltage with a DC constant voltage value as an amplitude will be formed on the primary side of the transformer. Changing the duty cycle can change the final output voltage of the switching power supply. Among them, a capacitor with a large enough capacity is connected in series between the inverter circuit and the transformer to block the DC component and prevent the transformer from generating unidirectional magnetic bias due to the asymmetric conduction time of the two sets of switch tubes of the inverter full bridge, thereby improving the circuit's anti-unbalance ability.

[0043] The third-stage full-wave rectifier circuit is composed of two diodes. Among them, when the switches T1 and T3 in the second stage are turned on, the polarity of the voltage on the primary winding of the transformer is positive at the top and negative at the bottom. According to the principle of electromagnetic induction, the voltages of the upper and lower windings of the secondary side of the transformer are all positive at the top and negative at the bottom. At this time, the diode connected to the upper winding is turned on, and the current forms a path through the upper winding, VD5, inductor and load; when T2 and T4 are turned on, the polarity of the voltage on the primary winding of the transformer is positive at the bottom and negative at the top. The voltages of the upper and lower windings of the secondary side of the transformer are all positive at the bottom and negative at the top. At this time, the diode connected to the lower winding is turned on, and the current forms a path through the lower winding, VD6, inductor and load; when all the switches on the primary side are turned off, the inductor current continues to flow through VD5 and VD6; and L and C on the output side form a low-pass filter to convert the rectified square wave into a DC output.

[0044] Therefore, according to the above-mentioned change rules, the second and third-level topology circuits can be regarded as Buck circuits, and then the relationship between the second and third-level topology input voltage and output voltage can be obtained:

[0045]

[0046] Where U O Indicates the final output voltage of the switching power supply, U DC represents the voltage across the filter capacitor of the first stage circuit, n represents the turns ratio of the high-frequency transformer, D O Indicates the duty cycle of the "Buck circuit", D indicates the duty cycle of the full-bridge switching power supply switch tube, and in order to prevent the two pairs of power switch tubes from being "conducted together", the duty cycle variation range is limited to D<0.5, D O <1.

[0047] Based on the switching power supply topology, when a voltage sag occurs, for the first-stage single-phase full-bridge uncontrolled rectifier circuit, if the voltage of the first-stage filter capacitor is higher than the mains voltage, the energy for the subsequent load power supply comes entirely from the capacitor, and the capacitor voltage keeps dropping until it drops below the mains voltage, and the mains will recharge the capacitor. Therefore, if the voltage sag value or amplitude is U sag , then the voltage range of the filter capacitor when a voltage sag occurs is

[0048] For the second and third stage circuits, ideally, when a voltage sag occurs, when the depth or duration of the sag is small, the controller of the switching power supply output voltage will immediately and actively increase the duty cycle of the switching tube to maintain constant voltage after detecting that the output voltage has a downward trend. If the sag is recovered before the controller reaches the regulation limit, that is, before the duty cycle reaches the maximum value, the switching power supply can be considered to be unaffected by the voltage sag; if the depth or duration of the sag is large, when the controller regulation reaches the limit, that is, the duty cycle of the switching tube reaches the maximum value, if the energy loss has not been replenished, the output voltage will inevitably lose its constant voltage capability and decrease. At this time, the switching power supply is considered to be affected by the voltage sag.

[0049] Therefore, in order to alleviate the impact of voltage sag on the switching power supply, the turns ratio of the transformer can be changed so that the switching power supply can maintain a constant voltage in the case of voltage sag. It can be seen that When a voltage sag occurs, the voltage range across the first-stage filter capacitor is That is, the minimum voltage across the first-stage filter capacitor is In different scenarios, the error between the actual output voltage of the switching power supply and the rated output voltage is different, that is, the output voltage of the switching power supply can fluctuate within a certain range of the set value. For example, the output voltage U O Set to 12V, the output voltage can be 12V±1% during normal operation. The floating range can be adjusted according to the actual scenario and can be 2% or 3%. Therefore, when alleviating voltage sag, the output voltage of the switching power supply can take the minimum value of the preset output voltage of the switching power supply. That is U O -m%, where m represents the floating range.

[0050] Since the duty cycle is adjusted to the maximum value when judging whether it is affected by voltage sag, the turns ratio of the transformer is expressed as:

[0051]

[0052] Where n is the transformer turns ratio, D max Indicates the preset maximum duty cycle, Indicates the preset minimum value of the output voltage of the switching power supply. Specifically, the preset maximum duty cycle can be 0.85, or other values, which are not limited in the embodiment of the present invention.

[0053] For the peak-to-peak value of the first-stage output voltage when a voltage sag occurs in this formula The above formula can be combined Get. That is It is expressed as:

[0054]

[0055] in, Indicates the peak-to-peak value of the first-stage output voltage, U sag It is the voltage sag value.

[0056] The switching power supply provided by the embodiment of the present invention adopts a topological structure such as a first-stage single-phase full-bridge uncontrolled rectifier circuit, a first-stage filter capacitor, a second-stage single-phase full-bridge controllable inverter circuit, a transformer, and a third-stage full-wave rectifier circuit. When a voltage sag occurs, the turns ratio of the transformer in the switching power supply is determined based on the voltage sag voltage value, the peak-to-peak value of the first-stage output voltage, and the preset minimum output voltage of the switching power supply. When the transformer adopts this turns ratio, the influence of the voltage sag on the switching power supply can be alleviated. Compared with the method of adding external treatment equipment in the prior art, the cost of the switching power supply is reduced.

[0057] In one embodiment, the second-stage single-phase full-bridge controllable inverter circuit, the transformer and the third-stage full-wave rectifier circuit constitute a Buck circuit, and the minimum duty cycle of the Buck circuit is determined according to a preset output voltage value of the switching power supply, a maximum input voltage of the switching power supply and a turns ratio of the transformer.

[0058] Specifically, the minimum duty cycle is expressed by the following formula:

[0059]

[0060] Where n is the turns ratio of the transformer, D min Indicates the minimum duty cycle, U O Indicates the preset output voltage value of the switching power supply, U max Indicates the maximum input voltage of the switching power supply.

[0061] Among them, the turns ratio can be the turns ratio calculated when the voltage sag occurs. However, the voltage sag is only a possible emergency situation, so the turns ratio can be the turns ratio calculated without considering the voltage sag. The transformer turns ratio without considering the voltage sag is calculated using the following formula:

[0062]

[0063] Where U min Indicates the minimum input voltage of the switching power supply.

[0064] In one embodiment, the excitation inductance of the transformer generates losses in the circulating current in the transformer, so it is necessary to minimize the losses as much as possible during the design, and the circulating current is generally controlled to be around 1A. According to Lenz's law, when the magnetic flux of the inductor coil is changed, a voltage difference will be generated at both ends of the coil, that is, in Therefore, the transformer's magnetizing inductance is calculated using the following formula:

[0065]

[0066] Among them, U Lm Represents the voltage difference across the transformer’s magnetizing inductance, ΔI Lm It represents the change in the transformer excitation inductance current, and t represents the time for storing energy in the excitation inductance.

[0067] The filter inductance in the third-stage full-wave rectifier circuit is calculated using the following formula:

[0068]

[0069] Among them, U max Indicates the maximum input voltage of the switching power supply, I O Indicates the rated output current of the switching power supply, f O represents the operating frequency of the third-stage circuit, U0 represents the preset output voltage value of the switching power supply, and Dmin represents the minimum duty cycle of the Buck circuit.

[0070] In addition, the first-stage filter capacitor capacity can also be determined when the voltage sag is not considered. According to the above formula, it can be obtained:

[0071]

[0072] in, It can be approximated as U min 10% to 15% of the total.

[0073] Regarding the control strategy of the switching power supply, in order to achieve the effect of maintaining a constant output voltage within a certain input voltage range, it is necessary to add closed-loop control to the output of the switching power supply, that is, to use PWM control technology to adjust the duty cycle so that the output of the switching power supply can be stabilized. Among them, the controller collects the output signal, and the feedback control generates the corresponding switch tube control signal compensation, thereby achieving a regulated output at the output end of the switching power supply.

[0074] The embodiment of the present invention also provides a method for alleviating voltage sag based on a switching power supply, such as Figure 2 As shown, the mitigation method includes the following steps:

[0075] Step S101: Obtain the voltage sag voltage value, the capacity of the first-stage filter capacitor in the switching power supply, and the preset minimum output voltage of the switching power supply. When a voltage sag occurs, the voltage value when the voltage sag occurs can be obtained. At the same time, in order to prevent the switching power supply from being affected by the voltage sag, the output voltage of the switching power supply needs to maintain a constant voltage or float within a certain range. Therefore, it is also necessary to obtain the preset minimum output voltage of the switching power supply. In addition, the first-stage output voltage in the switching power supply is related to the capacitance, thereby obtaining the capacity of the first-stage filter capacitor in the switching power supply.

[0076] Step S102: Based on the energy conservation principle, the peak-to-peak value of the first-stage output voltage is calculated according to the first-stage filter capacitor capacity and the voltage sag voltage value in the switching power supply. The peak-to-peak value of the first-stage output voltage is calculated using the following formula:

[0077]

[0078] in, Represents the peak-to-peak value of the first-stage output voltage, P in Indicates the maximum input power, P in =P O / E ff , E ff To estimate the efficiency, P O is the output power, f L is the input voltage frequency, U sag is the voltage sag value, D ch is the preset input rectifier filter capacitor charging duty cycle, C DC Indicates the capacity of the first-stage filter capacitor in the switching power supply.

[0079] Step S103: Determine the voltage value of the first-stage filter capacitor in the switching power supply according to the difference between the voltage sag voltage value and the peak-to-peak value of the first-stage output voltage. Specifically, the lowest output voltage of the switching power supply after the controller reaches saturation is related to the voltage value of the first-stage filter capacitor. The voltage value of the first-stage filter capacitor can be determined by the difference between the voltage sag voltage value and the peak-to-peak value of the first-stage output voltage, that is, the voltage value of the first-stage filter capacitor is expressed as

[0080] Step S104: Determine the transformer turns ratio in the switching power supply according to the ratio of the product of the voltage value of the first-stage filter capacitor and the preset maximum duty cycle to the preset minimum output voltage of the switching power supply. Since the second and third-stage circuits in the switching power supply constitute a Buck circuit, the transformer turns ratio is obtained based on the relationship between the second and third-stage input and output voltages. Specifically, the transformer turns ratio is calculated by the following formula:

[0081]

[0082] Where n is the transformer turns ratio, D max Indicates the preset maximum duty cycle, Indicates the minimum preset output voltage of the switching power supply.

[0083] The voltage sag mitigation method based on the switching power supply provided in the embodiment of the present invention determines the turns ratio of the transformer in the switching power supply based on the voltage sag voltage value, the peak-to-peak value of the first-stage output voltage, and the preset minimum output voltage of the switching power supply when a voltage sag occurs. When the transformer adopts this turns ratio, the influence of the voltage sag on the switching power supply can be mitigated. Compared with the method of adding external treatment equipment in the prior art, the cost of the switching power supply is reduced.

[0084] In one embodiment, the voltage sag mitigation method based on the switching power supply further includes: calculating the minimum voltage value that the switching power supply can withstand the voltage sag based on the turns ratio of the transformer in the switching power supply, the preset minimum output voltage of the switching power supply, the preset maximum duty cycle, and the voltage value of the first-stage filter capacitor.

[0085] Specifically, in different application scenarios, due to the different equipment used, the requirements for the output voltage of the switching power supply are different, that is, the acceptable error between the actual output voltage of the switching power supply and the rated output voltage is different. Therefore, in actual applications, whether the voltage sag affects the switching power supply depends on the minimum output voltage U of the switching power supply that the equipment can accept. O min Therefore, when the minimum output voltage of the switching power supply and the transformer turns ratio are known, the minimum voltage sag value that the switching power supply can withstand can be determined. The minimum voltage sag value is expressed as:

[0086]

[0087] In the formula, Indicates that the device requires the switching power supply to preset the minimum output voltage. Indicates the minimum voltage sag amplitude that the switching power supply can withstand when the equipment requires the switching power supply output.

[0088] At the same time, the minimum voltage of the first-stage filter capacitor can also be calculated:

[0089]

[0090] By calculating the minimum voltage value that the switching power supply can withstand voltage sag, when it is determined that a voltage sag occurs, the voltage sag value can be compared with the minimum voltage value. If the voltage sag value is less than the minimum voltage value, corresponding measures can be taken in time.

[0091] The embodiment of the present invention also provides a voltage sag mitigation device based on a switching power supply, such as Figure 3 As shown, the device comprises:

[0092] The parameter acquisition module is used to obtain the voltage sag value, the capacity of the first-stage filter capacitor in the switching power supply, and the preset output voltage value of the switching power supply; the specific content refers to the corresponding part of the above method embodiment, which will not be repeated here.

[0093] The first-stage output calculation module is used to calculate the peak-to-peak value of the first-stage output voltage based on the principle of conservation of energy, according to the first-stage filter capacitor capacity and the voltage sag voltage value in the switching power supply; for specific contents, please refer to the corresponding part of the above method embodiment, which will not be repeated here.

[0094] The voltage value calculation module is used to determine the voltage value of the first-stage filter capacitor in the switching power supply according to the difference between the voltage sag voltage value and the peak-to-peak value of the first-stage output voltage; the specific content refers to the corresponding part of the above method embodiment, which will not be repeated here.

[0095] The turns ratio determination module is used to determine the turns ratio of the transformer in the switching power supply according to the ratio of the product of the voltage value of the first-stage filter capacitor and the preset maximum duty cycle to the preset output voltage value of the switching power supply. For details, please refer to the corresponding part of the above method embodiment, which will not be repeated here.

[0096] The voltage sag mitigation device based on the switching power supply provided by the embodiment of the present invention determines the turns ratio of the transformer in the switching power supply based on the voltage sag voltage value, the peak-to-peak value of the first-stage output voltage, and the preset minimum output voltage of the switching power supply when a voltage sag occurs. When the transformer adopts this turns ratio, the influence of the voltage sag on the switching power supply can be mitigated. Compared with the method of adding external treatment equipment in the prior art, the cost of the switching power supply is reduced.

[0097] For a detailed description of the functions of the switching power supply-based voltage sag mitigation device provided in an embodiment of the present invention, please refer to the description of the switching power supply-based voltage sag mitigation method in the above embodiment.

[0098] The embodiment of the present invention also provides a storage medium, such as Figure 4As shown, a computer program 601 is stored thereon, and when the instruction is executed by the processor, the steps of the voltage sag mitigation method based on the switching power supply in the above embodiment are implemented. The storage medium also stores audio and video stream data, feature frame data, interaction request signaling, encrypted data, and preset data size, etc. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0099] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0100] The embodiment of the present invention further provides an electronic device, such as Figure 5 As shown, the electronic device may include a processor 51 and a memory 52, wherein the processor 51 and the memory 52 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0101] The processor 51 may be a central processing unit (CPU). The processor 51 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0102] The memory 52 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the corresponding program instructions / modules in the embodiment of the present invention. The processor 51 executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory 52, that is, the voltage sag mitigation method based on the switching power supply in the above method embodiment is implemented.

[0103] The memory 52 may include a program storage area and a data storage area, wherein the program storage area may store an application required for operating the device and at least one function; the data storage area may store data created by the processor 51, etc. In addition, the memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 52 may optionally include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0104] The one or more modules are stored in the memory 52 and when executed by the processor 51, perform the following steps: Figure 2 The voltage sag mitigation method based on the switching power supply in the illustrated embodiment.

[0105] For details of the above electronic equipment, please refer to Figure 2 The corresponding related descriptions and effects in the illustrated embodiments can be understood and will not be repeated here.

[0106] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for alleviating voltage sag based on a switching power supply, characterized in that: include: Obtain the minimum voltage sag value, the capacity of the first-stage filter capacitor in the switching power supply, and the preset output voltage value of the switching power supply; Based on the energy conservation principle, the peak-to-peak value of the first-stage output voltage is calculated according to the first-stage filter capacitor capacity and the voltage sag voltage value in the switching power supply; Determining a voltage value of a first-stage filter capacitor in a switching power supply according to a difference between the voltage sag voltage value and a peak-to-peak value of the first-stage output voltage; Determine the turns ratio of the transformer in the switching power supply according to the ratio of the product of the voltage value of the first-stage filter capacitor and the preset maximum duty cycle to the preset minimum output voltage of the switching power supply; The lowest voltage value of the switching power supply withstand voltage drop is calculated according to the transformer turns ratio in the switching power supply, the preset minimum output voltage of the switching power supply, the preset maximum duty cycle and the voltage value of the first-stage filter capacitor; The peak-to-peak value of the first-stage output voltage is calculated using the following formula: in, Represents the peak-to-peak value of the first-stage output voltage, P in Indicates the maximum input power, P in =P O / E ff , E ff To estimate the efficiency, P O is the output power, f L is the input voltage frequency, U sag is the voltage sag value, D ch is the preset input rectifier filter capacitor charging duty cycle, C DC Indicates the capacity of the first-stage filter capacitor in the switching power supply; The transformer turns ratio is calculated using the following formula: Where n is the transformer turns ratio, D max Indicates the preset maximum duty cycle, Indicates the minimum preset output voltage of the switching power supply.

2. A voltage sag mitigation device based on a switching power supply, characterized in that: include: A parameter acquisition module is used to obtain the voltage sag value, the capacity of the first-stage filter capacitor in the switching power supply, and the preset output voltage value of the switching power supply; The first-stage output calculation module is used to calculate the peak-to-peak value of the first-stage output voltage based on the energy conservation principle and the voltage sag value of the first-stage filter capacitor in the switching power supply; A voltage value calculation module, used for determining a voltage value of a first-stage filter capacitor in a switching power supply according to a difference between the voltage sag voltage value and a peak-to-peak value of the first-stage output voltage; A turns ratio determination module, used to determine the turns ratio of the transformer in the switching power supply according to the ratio of the product of the voltage value of the first-stage filter capacitor and the preset maximum duty cycle to the preset output voltage value of the switching power supply; A minimum voltage value calculation module is used to calculate the minimum voltage value of the switching power supply withstand voltage drop according to the transformer turns ratio in the switching power supply, the preset minimum output voltage of the switching power supply, the preset maximum duty cycle and the voltage value of the first-stage filter capacitor; The peak-to-peak value of the first-stage output voltage is calculated using the following formula: in, Represents the peak-to-peak value of the first-stage output voltage, P in Indicates the maximum input power, P in =P O / E ff , E ff To estimate the efficiency, P O is the output power, f L is the input voltage frequency, U sag is the voltage sag value, D ch is the preset input rectifier filter capacitor charging duty cycle, C DC Indicates the capacity of the first-stage filter capacitor in the switching power supply; The transformer turns ratio is calculated using the following formula: Where n is the transformer turns ratio, D max Indicates the preset maximum duty cycle, Indicates the minimum preset output voltage of the switching power supply.

3. A switching power supply, characterized in that: include: A first-stage single-phase full-bridge uncontrolled rectifier circuit, a first-stage filter capacitor, a second-stage single-phase full-bridge controllable inverter circuit, a transformer, and a third-stage full-wave rectifier circuit are connected in sequence, and the turns ratio of the transformer is calculated and determined using the voltage sag relief method based on the switching power supply described in claim 1.

4. The switching power supply according to claim 3, characterized in that: The second-stage single-phase full-bridge controllable inverter circuit, transformer and third-stage full-wave rectifier circuit constitute a Buck circuit. The minimum duty cycle of the Buck circuit is determined according to a preset output voltage value of the switching power supply, a maximum input voltage of the switching power supply and a transformer turns ratio.

5. The switching power supply according to claim 4, characterized in that: The magnetizing inductance of the transformer is calculated using the following formula: Among them, U Lm Represents the voltage difference across the transformer’s magnetizing inductance, ΔI Lm It represents the change in the transformer excitation inductance current, and t represents the time for storing energy in the excitation inductance; The filter inductance in the third-stage full-wave rectifier circuit is calculated using the following formula: Among them, U max Indicates the maximum input voltage of the switching power supply, I O Indicates the rated output current of the switching power supply, f O represents the operating frequency of the third-stage circuit, U0 represents the preset output voltage value of the switching power supply, and Dmin represents the minimum duty cycle of the Buck circuit.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the voltage sag mitigation method based on a switching power supply according to claim 1.

7. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the voltage sag mitigation method based on a switching power supply as claimed in claim 1 by executing the computer instructions.