Dual-power switching circuit and dual-power system

By using a power outage detection unit in a dual power supply switching circuit to rectify and differentially amplify the AC signal of the main power supply, it can determine whether the main power supply is out of power, and switch to the backup power supply in time, thus solving the equipment problems caused by detection delays in the existing technology. It eliminates the shutdown problem and realizes fast and accurate dual power switching.

CN118630894AActive Publication Date: 2024-09-10713TH RES INST OF CHINA STATE SHIPBUILDING CORP LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410610980.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-09-10
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

In the existing dual power supply switching circuit, due to the capacitive load in the load, the detection time of the main power outage is delayed, and the power supply cannot be switched to the backup power supply in time, resulting in equipment shutdown.

Method used

A power-off detection unit is used to process the AC signal of the main power supply through a rectifier bridge and a differential amplifier circuit to generate a pulse waveform. The comparator determines the level duration to determine whether the main power supply has lost power, and switches to the backup power supply in a timely manner through the controller. .

Benefits of technology

It realizes timely detection and switching of main power outage, avoids equipment shutdown, and meets the requirement of dual power supply switching time of less than 15ms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118630894A
    Figure CN118630894A
Patent Text Reader

Abstract

The invention relates to a dual-power-supply switching circuit and a dual-power-supply system, and belongs to the technical field of power supply switching. Comprising a power failure detection unit used for detecting whether a main power supply in the dual power supplies is powered down, the input end of a rectifier bridge of the power failure detection unit is used for being connected with the main power supply, the output end of the rectifier bridge is connected with the input end of a comparator through a connecting circuit used for outputting pulse waveforms, and the other input end of the comparator is used for inputting a reference value. The output end of the comparator is connected with a controller, and the controller is used for controlling the switching of the main power supply and the standby power supply in the dual power supplies according to the output of the comparator. After the power failure detection unit rectifies an alternating current signal of main power, a signal output by the connecting circuit serves as an analog value of the comparator, a set judgment value serves as a reference value of the comparator, and the comparator compares the analog value with the reference value to output high and low levels. Whether the main power supply is powered off is judged according to the duration of the comparator outputting high and low levels in a set period, and the controller switches the standby power supply in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a dual power supply switching circuit and a dual power supply system, belonging to the technical field of power supply switching. Background Art

[0002] The dual-channel AC220V (AC power supply, power supply voltage is 220 volts (V)) high-speed automatic switching control circuit is the most important part of the power redundancy design. It can quickly switch the output after the main power (the main power supply in the dual power supply) is powered off to ensure that the subsequent sensitive equipment does not stop. In many special application environments, users are paying more and more attention to power outages, requiring not only accurate and stable dual power switching but also a switching time of less than 15ms.

[0003] The existing dual power switching circuit determines whether the main power supply in the dual power supply is powered off by turning on or off the optocoupler. When the main power supply is detected to be powered off, the control relay switches the power from the main power supply to the other power supply in the dual power supply as the backup power supply. However, when there is a capacitive load in the load, after the main power is powered off, the capacitive load will discharge for a period of time, resulting in a certain time difference between the time when the main power supply is detected to be powered off and the actual time when the main power supply is powered off. The main power failure cannot be detected in time, and the power supply cannot be switched to the backup power supply in time. Summary of the invention

[0004] The purpose of the present invention is to provide a dual power supply switching circuit to solve the problem that the power failure detection time in the existing dual power supply switching circuit is later than the actual power failure time; and also to provide a dual power supply system to solve the problem that the main and backup powers cannot be switched in time because the power failure detection time is later than the actual power failure time.

[0005] To achieve the above object, the solution of the present invention includes:

[0006] A dual power supply switching circuit of the present invention includes a power-off detection unit for detecting whether a main power supply in a dual power supply is powered off. The power-off detection unit includes a rectifier bridge. The input end of the rectifier bridge is used to connect to the main power supply. The output end of the rectifier bridge is connected to the input end of a comparator through a connection circuit for outputting a pulse waveform. The other input end of the comparator is used to input a reference value. The output end of the comparator is connected to a controller. The controller is used to control the switching of the main power supply and the backup power supply in the dual power supply according to the output of the comparator.

[0007] Further, the connecting circuit includes an amplifying circuit.

[0008] Furthermore, the amplifier circuit is a differential amplifier circuit, the output end of the rectifier bridge is connected to the input end of the differential amplifier circuit through a voltage divider circuit for outputting a differential signal, and the output end of the differential amplifier circuit is connected to the input end of the comparator.

[0009] Furthermore, the voltage divider circuit includes a voltage divider resistor connected in series between the output ends of the rectifier bridge, and two sides of the voltage divider resistor are connected to the input ends of the differential amplifier circuit as outputs of the voltage divider circuit.

[0010] Furthermore, it also includes a plurality of resistors connected in series, and the connection point between any two adjacent resistors is connected to the input terminal of the comparator, so that the level at the connection point of the two adjacent resistors is output to the comparator as a reference value.

[0011] Furthermore, it also includes an optocoupler isolation circuit, and the controller outputs a control signal for switching the main power supply and the backup power supply through the optocoupler isolation circuit.

[0012] Furthermore, it also includes a power conversion unit for supplying power for the operation of the dual power switching circuit, the power conversion unit includes a main power supply unit whose input end is connected to the main power supply and a backup power supply unit whose input end is connected to the backup power supply, the output end of the main power supply unit is connected to the power supply end of the first power supply of the dual power switching circuit, and the output end of the backup power supply unit is connected to the power supply end via a diode in the same direction as its output.

[0013] Furthermore, the power conversion unit also includes a conversion circuit for stepping down the first power supply into a second power supply, the second power supply is connected to the controller via the light-emitting side of the optocoupler in the optocoupler isolation circuit, and the first power supply is connected to the output end of the controller for outputting a control signal via the coupling side of the optocoupler.

[0014] A dual power supply system of the present invention includes a first input terminal for connecting a main power supply as a main power supply, a second input terminal for connecting a backup power supply as a backup power supply, and a transmission terminal for outputting power supply, and also includes a dual power supply switching circuit as described above and a first relay and a second relay respectively connected between the first input terminal, the second input terminal and the transmission terminal; the output terminal of the controller in the dual power supply switching circuit respectively controls the closing or opening of the first relay and the second relay.

[0015] Furthermore, it also includes a manual-automatic switching unit, which includes two double-pole double-throw switches, a first input end and a second input end are respectively connected to two common terminals of the first double-pole double-throw switch, two terminals on one side of the first double-pole double-throw switch are connected to two common terminals of the second double-pole double-throw switch, and two terminals on the other side of the first double-pole double-throw switch are respectively connected to output ends of the first relay and the second relay; the first terminal of the two terminals on one side of the second double-pole double-throw switch is connected to the transmission end, and the second terminal of the two terminals on the other side of the second double-pole double-throw switch is short-circuited with the first terminal.

[0016] Beneficial effects of the present invention:

[0017] The present invention is a pioneering invention, which provides a dual power switching circuit and a dual power system. The main power as a common power source in the main and backup power is collected and detected by a power failure detection unit, and whether the main power is powered off is timely determined by the detection result, and then the main power is switched to the backup power by the controller in time, so as to avoid the shutdown of the subsequent sensitive equipment caused by the main power failure and the failure of the backup power to be replenished in time. The dual power switching circuit specifically includes a power failure detection unit for detecting whether the main power in the dual power is powered off. The power failure detection unit includes a rectifier bridge, the input end of the rectifier bridge is used to connect to the main power, the output end of the rectifier bridge is connected to the input end of the comparator through a connection circuit for outputting a pulse waveform, the other input end of the comparator is used to input a reference value, and the output end of the comparator is connected to a controller, and the controller is used to control the switching of the main power and the backup power in the dual power according to the output of the comparator. Among them, the power-off detection unit rectifies the AC power signal of the main power to obtain a pulse signal with only a positive half-cycle, and sets the judgment value as the reference value of the comparator, and uses the signal output through the connecting circuit after rectification as the analog value of the comparator. The comparator compares the analog value and the reference value to output a high and low level. Specifically, the duration of the digital signal output by the comparator within the set period (the duration of the output high and low levels within the set period) is used to judge whether the main power is off. When the duration of the high level within the set period is too long or too short, it is considered that the main power is off, and the main power is switched to the backup power through the controller in time. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a schematic diagram of dual power switching control of a dual power system according to an embodiment of the present invention;

[0019] Figure 2 This is a power conversion circuit diagram for converting AC220V into DC12V according to an embodiment of the present invention;

[0020] Figure 3 This is a power conversion circuit diagram for converting DC12V into DC3.3V according to an embodiment of the present invention;

[0021] Figure 4 is a power-off detection circuit diagram of an embodiment of the present invention;

[0022] Figure 5 is a circuit diagram of an embodiment of the present invention outputting a reference value;

[0023] Figure 6 is an optocoupler isolation circuit diagram of an embodiment of the present invention;

[0024] Figure 7 is a waveform diagram of a main power-on signal of an embodiment of the present invention;

[0025] Figure 8 is a waveform diagram of a main power off signal according to an embodiment of the present invention;

[0026] Fig. 9 is a waveform diagram of the main power-off process of an embodiment of the present invention;

[0027] Fig.10 It is a waveform diagram of the main and standby power switching process of an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to solve the problems in the background technology, the present invention provides a dual power switching circuit and a dual power system, wherein the main power as a common power source in the main and standby power is collected and detected by a power failure detection unit, and whether the main power is powered off is timely determined by the detection result, and then the main power is switched to the standby power by the controller in time, so as to avoid the shutdown of the subsequent sensitive equipment caused by the main power failure and the standby power failure. Among them, the power failure detection unit rectifies the AC signal of the main power to obtain a pulse signal with only a positive half cycle, and sets the judgment value as the reference value of the comparator, and uses the signal output through the connection circuit after rectification as the analog value of the comparator. The comparator compares the analog value and the reference value to output a high and low level, and specifically determines whether the main power is powered off by the duration of the digital signal output by the comparator within the set period (the duration of the output high and low levels within the set period). When the duration of the high level within the set period is too long or too short, it is considered that the main power is powered off, and the main power is switched to the standby power by the controller in time.

[0029] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0030] An embodiment of a dual power switching circuit:

[0031] A dual power switching circuit comprises a power conversion unit, a power failure detection unit and an optical coupling isolation unit.

[0032] The power conversion unit converts the input main and standby power into control power for supplying power to the operation of the dual power switching circuit.

[0033] Specifically, the power conversion circuit as the power conversion unit is as follows: Figure 2 As shown, the power chip U6 that converts AC 220V (AC220V) into DC 12V (DC12V) is used as the power module U6, and its input end is connected to the main power. In order to protect the chip, a fuse (fuse is also called fuse) F1 and a resistor R24 ​​are connected in series on the line connected to the live wire, and a varistor RV1 is also connected in parallel to the input end of the power chip U6; the power chip U7 that converts AC220V into DC12V is used as the power module U7, and its input end is connected to the backup power (backup power or auxiliary power). In order to protect the chip, a fuse F2 and a resistor R25 are connected in series on the line connected to the live wire, and a varistor RV2 is also connected in parallel to the input end of the power chip U7.

[0034] The live wire L of the main power supply Figure 2 The other end of the fuse F1 is connected to the varistor RV1 and the 24th resistor R24. The other end of the 24th resistor R24 ​​is connected to the AC-L pin of the power module U6 (pin 2 of U6). The neutral line N ( Figure 2 The other end of the varistor RV1 is connected to the AC-N pin of the power module U6 (pin 1 of U6), the output end of the power module U6 (-V0 pin of U6 corresponds to pin 4 of U6 and +V0 pin of U6 corresponds to pin 5 of U6) is connected in parallel with the tenth capacitor C10 and the eleventh capacitor C11, and the output end of the power module U6 is connected in parallel with the tenth capacitor C10 and the eleventh capacitor C11 to output +12V control voltage.

[0035] Auxiliary power live wire L( Figure 2 The other end of the fuse F2 is connected to the varistor RV2 and the 25th resistor R25. The other end of the 25th resistor R25 is connected to the AC-L pin of the power module U7 (pin 2 of U7). The neutral line N ( Figure 2 The output end of the power module U7 (-V0 pin of U7 corresponds to pin 4 of U7 and +V0 pin of U7 corresponds to pin 5 of U7) is connected in parallel with the twelfth capacitor C12 and the thirteenth capacitor C13. The negative terminal of the output end of the power module U7 after the twelfth capacitor C12 and the thirteenth capacitor C13 are connected in parallel is grounded. The positive terminal of the output end of the power module U7 after the twelfth capacitor C12 and the thirteenth capacitor C13 are connected in parallel is output through the diode D1 to output +12V control voltage.

[0036] In order to realize that the power conversion circuit mainly draws power from the main power supply, a diode D1 with the same direction as the output direction is set on the positive pole of the output end of the power chip U7, so that when the main power supply has power, the DC12V of the dual power supply switching circuit is provided by the main power supply, and at the same time avoids reverse input to U7 when the output of U6 is higher than that of U7; when the main power supply is cut off, DC12V is provided by the auxiliary power supply.

[0037] The power conversion circuit further converts DC12V to DC3.3V through the power chip U8 for use by the dual power switching circuit. Figure 3As shown, the power chip U8 which converts DC12V to DC3.3V is used as the power module U8, the positive pole of its input end (pin 4 of U8 corresponds to the Vin pin) is connected to +12V, the negative pole of the input end of the power module U8 (pin 1 of U8 corresponds to the GND pin) is grounded, the output end of the power module U8 (pins 5 and 7 of U8) is connected in parallel with the fourteenth capacitor C14 and the fifteenth capacitor C15, the positive terminal of the output end of the power module U8, the positive pole of the fourteenth capacitor C14 and one end of the fifteenth capacitor C15 output +3.3V control power, the negative terminal of the output end of the power module U8, the negative pole of the fourteenth capacitor C14 and the other end of the fifteenth capacitor C15 are grounded.

[0038] Among them, the varistor RV1 and the varistor RV2 are used as voltage-limiting protection devices, which are mainly used to clamp the voltage when the circuit is subjected to overvoltage and absorb excess current to protect sensitive devices. Figure 2 and Figure 3 The circuit converts the input main and backup power into control power with voltages of 12V and 3.3V respectively for powering the operation of the dual power switching circuit.

[0039] Of course, in actual use, the required control voltage can be adjusted according to actual needs.

[0040] Among them, a power-off detection unit for detecting whether the main power supply in the dual power supply is powered off includes a rectifier bridge, a connecting circuit and a comparator; the input end of the rectifier bridge is connected to the main power supply as the main power supply, and the output end of the rectifier bridge is connected to the input end of the comparator through a connecting circuit for outputting a pulse waveform, and the other input end of the comparator is used to input a reference value, and the output end of the comparator is connected to a controller, and the controller is used to control the switching of the main power supply and the backup power supply in the dual power supply according to the output of the comparator.

[0041] Specifically, the connection circuit is an amplifier circuit. When the amplifier circuit adopts a differential amplifier circuit, the power-off detection unit includes a rectifier bridge, a differential amplifier circuit and a comparator; the input end of the main power is connected to the input end of the rectifier bridge for full-wave rectification, and the AC power signal of the main power is output as a pulse signal with a positive half-cycle, that is, the sinusoidal wave waveform of the main power is rectified to output a positive half-cycle of the sinusoidal wave, and the output end of the rectifier bridge is output through the differential amplifier circuit and the comparator to obtain the pulse signal of the main power off (main power off) or the main power on, and the pulse signal is given to the controller, and the driving signal is output through the controller. The controller outputs the driving signal of the relay through the optocoupler isolation unit to control the relay, and the main power is switched to the backup power in time when the main power is off.

[0042] Specifically, the power failure detection circuit as the power failure detection unit is as follows: Figure 4As shown, the output end of the rectifier bridge B1 generates a differential signal through a voltage divider circuit composed of resistors R2, R3, R4, R5 and R7. The differential signal is input into the differential amplifier circuit. The waveform after differential amplification enters the comparator and is compared with the reference value, and then the pulse signal Si-01 is output. The controller detects the change of the high and low levels of the pulse signal Si-01 to determine whether the main power is off.

[0043] The positive output of the rectifier bridge B1 is connected to the second resistor R2, the negative output of the rectifier bridge B1 is grounded GND and the seventh resistor R7, the other end of the second resistor R2 is connected to the third resistor R3 and the fourth resistor R4, the other end of the fourth resistor R4 is connected to the fifth resistor R5 and the other end of the seventh resistor R7, the other end of the third resistor R3 is connected to the first resistor R1 and the non-inverting input terminal of the operational amplifier U3A, the other end of the fifth resistor R5 is connected to the sixth resistor R6 and the inverting input terminal of the operational amplifier U3A, the other end of the sixth resistor R6 is connected to the output terminal of the operational amplifier U3A and the non-inverting input terminal of the operational amplifier U3D, and the inverting input terminal of the operational amplifier U3D is connected to the comparison level Vref.

[0044] The input end of the differential amplifier circuit is connected to the output end of the rectifier bridge, and the output end of the differential amplifier circuit is connected to the positive input end of the comparator; the differential amplifier circuit includes a second resistor, a fourth resistor and a seventh resistor which are sequentially connected in series between the positive and negative outputs of the rectifier bridge, the connection point between the seventh resistor and the negative output of the rectifier bridge is grounded, the connection point between the second resistor and the fourth resistor is respectively connected to the input pin of the operational amplifier and the positive power supply pin of the operational amplifier through the third resistor, a first resistor is connected between the third resistor and the positive power supply pin of the operational amplifier, and the connection point between the first resistor and the positive power supply pin of the operational amplifier is grounded; the connection point between the fourth resistor and the seventh resistor is respectively connected to the output pin of the operational amplifier and the output end of the operational amplifier through the fifth resistor, a sixth resistor is also provided between the fifth resistor and the output end of the operational amplifier, the negative power supply pin of the operational amplifier is connected to the power supply, and the output end of the operational amplifier serves as the output end of the differential amplifier circuit.

[0045] The comparator reference value is determined by Figure 5 Specifically, Figure 5 As shown, after the tenth resistor R10, the eighteenth resistor R18 and the twentieth resistor R20 are connected in series, the other end of the tenth resistor R10 is connected to +12V, the twentieth resistor R20 is grounded GND, and the level at the connection point of the tenth resistor R10 and the eighteenth resistor R18 is taken as the comparison level Vref, and the comparison level Vref is used as the reference value of the comparator in the power-off detection unit.

[0046] The voltage value of the main power collected by the power failure detection unit is processed by rectification and differential amplification to obtain an analog value, which is compared with the reference value by a comparator and transmitted to the controller in the form of a digital signal.

[0047] The present invention uses a power-off detection unit to rectify the AC signal of the main power, and the signal output by the connecting circuit is used as the analog value of the comparator, and the set judgment value is used as the reference value of the comparator. The comparator compares the analog value and the reference value and outputs a high and low level. The duration of the high and low levels output by the comparator within a set period is used to determine whether the main power is off, and the controller switches to the backup power in time.

[0048] Among them, the basic principle of power-off detection is:

[0049] The power-off detection unit rectifies the AC power signal of the main power to obtain a signal with only a positive half-cycle, and sets the judgment value as the reference value of the comparator, and uses the signal output through the connecting circuit after rectification as the analog value of the comparator. The comparator compares the analog value and the reference value to output a high and low level. Specifically, the duration of the digital signal output by the comparator within the set period (the duration of the high and low levels within the set period) is used to determine whether the main power is off. When the duration of the high level within the set period is too long or too short, it is considered that the main power is off, and the main power is switched to the backup power in time through the controller.

[0050] For example, the frequency of the AC voltage used as a power source is 50 Hz and the period is 20 milliseconds. The main power outputs a positive half-cycle sine wave (a signal with only a positive half-cycle) through rectification, and then a square wave is obtained through a differential amplifier circuit used as a connecting circuit. A judgment value is set to make the time occupied by the high and low levels equal in half a cycle. The comparator compares the judgment value and the square wave, and outputs a high level if the square wave is greater than or equal to the judgment value, otherwise it outputs a low level. The main power is considered to be powered off by judging whether the duration of the high level is too long or too short in the set period, or by judging the relationship between the high level time and the low level time in the set period to determine whether the main power is powered off.

[0051] As another embodiment, the connection circuit in the power failure detection unit may also be a wire for connecting the output end of the rectifier bridge and the input end of the comparator, and the wire is used to output the pulse waveform output by the rectifier bridge to the comparator.

[0052] Specifically, as a power switching circuit (optocoupler isolation circuit) of a power switching unit (optocoupler isolation unit), such as Figure 6As shown, one end of the eleventh resistor R11 is connected to +3.3V, and the other end is connected to the 7th pin of the optocoupler U5, and the 8th pin of the optocoupler U5 is connected to the MCU (single-chip microcomputer, also known as controller, Multipoint Control Unit, multi-point control unit; Microcontroller Unit) control pin OUT2, one end of the twelfth resistor R12 is connected to +3.3V, and the other end is connected to the 5th pin of the optocoupler U5, and the 6th pin of the optocoupler U5 is connected to the MCU control pin OUT1, one end of the thirteenth resistor R13 is connected to +3.3V, and the other end is connected to the 3rd pin of the optocoupler U5, and the 4th pin of the optocoupler U5 is connected to the MCU control pin OUT1. One end of the seventeenth resistor R17 is connected to +12V, and the other end is connected to the 14th pin of the optocoupler U5, and the 13th pin of the optocoupler U5 is connected to the output OUT-F and the nineteenth resistor R19, and the other end of the nineteenth resistor R19 is connected to GND. Pin 12 of the optocoupler U5 is connected to pin 9 of the optocoupler U5, pin 11 of the optocoupler U5 is connected to GND, pin 10 of the optocoupler U5 is connected to one end of the twenty-first resistor R21, the other end of the twenty-first resistor R21 is connected to +12V, pin 9 of the optocoupler U5 is connected to the output OUT-Z and one end of the twenty-second resistor R22, and the other end of the twenty-second resistor R22 is grounded.

[0053] OUT-Z in the optocoupler isolation circuit is controlled by the two control pins OUT1 and OUT2 of the microcontroller to prevent OUT-Z and OUT-F from being turned on at the same time, thus realizing hardware protection.

[0054] The control power converted by the power conversion circuit is used by the optocoupler isolation circuit.

[0055] The controller (single-chip microcomputer) in the optocoupler isolation circuit outputs a control signal (driving signal) that forms a voltage difference (potential difference) with the other end of the light-emitting diode in the optocoupler, so that the light-emitting diode is turned on.

[0056] The control voltage provided by the power conversion unit cooperates with the driving signal output by the controller to drive the optocoupler isolation unit, and the optocoupler isolation unit outputs a driving signal that can drive the relay to close or close.

[0057] Specifically, the dual-channel AC220V high-speed automatic switching controller of the present invention serves as a dual power switching circuit, and the dual power switching circuit includes a power conversion circuit as a power conversion unit, a power power failure detection circuit as a power failure detection unit, and a power switching circuit as a power switching unit.

[0058] The power conversion circuit converts the input main and standby power into 12V and 3.3V control power to provide power for the dual power switching module. The circuit diagram is as follows: Figure 2 and Figure 3 shown.

[0059] Among them, the power failure detection circuit 1 in the power failure detection circuit is as follows: Figure 4 As shown, the main power signal is converted into a DC 0-5V pulse signal through a rectifier bridge, a differential amplifier circuit, and a comparison circuit; the power failure detection circuit 2 in the power failure detection circuit, as shown Figure 5 As shown, it provides a voltage reference for the comparison circuit; the circuit diagrams are as follows Figure 4 and Figure 5 shown.

[0060] Among them, the power switching circuit is the optocoupler isolation circuit, which converts the 0-3.3V drive signal output by the microcontroller into a 0-12V drive signal for driving the solid-state relay. The circuit diagram is as follows Figure 6 shown.

[0061] The present invention provides an accurate, stable and high-speed dual-channel AC220V high-speed automatic switching controller with phase detection, wherein the main power is switched to the backup power process:

[0062] a) After the main power is cut off, the power failure detection circuit transmits the power failure signal to the MCU;

[0063] b) MCU determines the main power failure by comparing the power failure signal with the normal signal;

[0064] c) MCU outputs instructions to the power switching circuit;

[0065] d) The power switching circuit controls the main power solid-state relay to disconnect and simultaneously turns on the backup power relay, and the switching is completed.

[0066] The process of switching from backup power to main power:

[0067] a) After the main power is powered on, the power failure detection circuit transmits the power-on signal to the MCU;

[0068] b) MCU determines whether the main power supply is powered on by comparing the power-on signal with the normal signal;

[0069] c) MCU outputs instructions to the power switching circuit;

[0070] d) The power switching circuit controls the backup power solid-state relay to disconnect and simultaneously opens the main power relay, and the switching is completed.

[0071] Beneficial effects of the present invention:

[0072] a) The switching time of the main power supply and the backup power supply of the present invention is less than 15ms;

[0073] b) The present invention can be applied to the occasion where there is one mains power supply and one inverter output, so as to avoid overcurrent protection at the switching moment caused by different phases.

[0074] The AC220V AC main power is rectified, filtered, compared and other circuits (such as Figure 4 , Figure 5 As shown), the AC signal is converted into a 0-5V pulse signal, such as Figure 7 and Figure 8 As shown, the yellow waveform Ch1 in the figure is the waveform after conversion, and the blue waveform Ch2 is the waveform before conversion.

[0075] The single chip microcomputer collects pulse signals and determines the main power state by analyzing the high and low level time, thereby controlling the main and standby power solid state relay switches to achieve main and standby power switching.

[0076] When the single chip microcomputer detects that the main power is off, it immediately controls the main power solid state relay to close. Therefore, the power-off detection time is from the main power off to the main power solid state relay control signal output. According to the detection time written by the software, due to the different main power amplitudes (AC220V±10%), the theoretical detection time should be less than or equal to 8.5ms. In fact, the main power waveform and the main power solid state relay control signal are detected by an oscilloscope. After 120 hours of continuous operation and 1000 tests, the actual detection time (actual power-off detection time) is Fig. 9 The Δt in the figure is Δt=t2-t1=-7.37-0.288≈-7.66ms, and the actual detection time is less than 7.8ms, which meets the design specifications. Fig. 9 shown.

[0077] The main power switching time is the time it takes for the output to switch from the main power to the backup power. Therefore, the output state is detected by an oscilloscope, and the time from output power off to output power on is measured. After 120 hours of continuous operation and 1000 tests, the actual main power switching time is Fig.10 Δt in, Δt=t2-t1=-216-(-202)≈-14ms, t2 is the power-on time, t1 is the power-off time, the actual switching time of the main power supply is less than or equal to 14.5ms, which meets the design requirements. The waveform is shown in Fig.10 shown.

[0078] The present invention mainly solves the problem that the automatic switching of two AC220V circuits during power failure causes power failure in the subsequent stage due to the long switching time. The present invention adopts MCU real-time detection and solid-state relay switching technology to ensure that the power switching is completed within 15ms after power failure.

[0079] Traditional switching equipment is too slow and may cause false switching under low load conditions. It also lacks phase detection function. When the output switches from backup power to main power, it is easy to trigger overcurrent protection and cause power cut-off. There is an urgent need for an accurate, stable and high-speed dual power switching device.

[0080] An embodiment of a dual power supply system:

[0081] A dual power supply system, such as Figure 1As shown, it includes a first input terminal L1 ( Figure 1 Terminal L1 in terminal block XT1) is used to connect the second input terminal L2 ( Figure 1 Terminal L2 in terminal block XT1) and power transmission terminal L for output power supply ( Figure 1 Terminal L in terminal block XT1), dual power switching circuit (i.e., set at Figure 1 The dual power switching circuit on the circuit board AP1), the first relay K1 connected between the first input terminal L1 and the power transmission terminal L, and the second relay K2 connected between the second input terminal L2 and the power transmission terminal L; the output end of the controller in the dual power switching circuit (the output end of the controller includes port Z and port F, port Z includes a positive terminal Z+ and a negative terminal Z-, and port F includes a positive terminal F+ and a negative terminal F-) respectively controls the connection between the first relay K1 and the second relay K2 to close or close. The first relay K1 and the second relay K2 are used to control the switching of the main and standby power.

[0082] The dual power switching circuit has been described in detail in an embodiment of the dual power switching circuit, and will not be described in detail here.

[0083] The dual power supply system also includes a manual-automatic switching unit, which includes two double-pole double-throw switches, a first input end and a second input end are respectively connected to two common terminals of the first double-pole double-throw switch, two terminals on one side of the first double-pole double-throw switch are connected to two common terminals of the second double-pole double-throw switch, and two terminals on the other side of the first double-pole double-throw switch are respectively connected to output ends of the first relay and the second relay; the first terminal of the two terminals on one side of the second double-pole double-throw switch is connected to the transmission end, and the second terminal of the two terminals on the other side of the second double-pole double-throw switch is short-circuited with the first terminal.

[0084] Specific as Figure 1 As shown, the two double-pole double-throw switches included in the manual-automatic switching unit are a first double-pole double-throw switch S1 (first switch S1) and a second double-pole double-throw switch S2 (second switch S2), and the side shared by the two common terminals of the double-pole double-throw switch is used as one side of the double-pole double-throw switch, and the other side shared by the two common terminals of the double-pole double-throw switch is used as the other side of the double-pole double-throw switch.

[0085] The two common terminals (common terminal 1 and common terminal 2) of the first switch S1 are connected to the first input terminal L1 and the second input terminal L2 respectively, the two terminals on one side of the first switch S1 (terminal 1A and terminal 2A on the same side of the two common terminals) are connected to the first relay K1 and the second relay K2 respectively, the two terminals on the other side of the first switch S1 (terminal 1B and terminal 2B on the same side of the two common terminals) are connected to the two common terminals (common terminal 1 and common terminal 2) of the second switch S2 respectively, and one terminal on one side of the second switch S2 (the first terminal, i.e., Figure 1 The other terminal (the second terminal, i.e., the terminal 1A in the middle) of the second switch S2 is shorted to the other terminal on the other side of the second switch S2. Figure 1 The terminal on one side of the common terminal 1 is terminal 1A, and the terminal on the other side is terminal 1B; the terminal on one side of the common terminal 2 is terminal 2A, and the terminal on the other side is terminal 2B.

[0086] The two terminals on the same side of the second switch S2 are defined as the first terminal and the second terminal in the same direction, that is, the first terminal on one side of the second switch S2 and the second terminal on the other side of the second switch S1 are not on the same side, and the order in the same direction is also opposite.

[0087] When the common terminal 1 and the common terminal 2 of the first switch S1 are connected to the terminal 1A and the terminal 2A on one side of the first switch S1, the common terminal 1 and the common terminal 2 of the first switch S1 are disconnected from the terminal 1B and the terminal 2B on the other side of the first switch S1. At this time, the first switch S1 starts to automatically control the switching between the main power supply and the backup power supply.

[0088] When the common terminals 1 and 2 of the first switch S1 are connected to the terminals 1B and 2B on the other side of the first switch S1, the common terminals 1 and 2 of the first switch S1 are disconnected from the terminals 1A and 2A on one side of the first switch S1. Meanwhile, when the common terminals 1 and 2 of the second switch S2 are connected to the terminals 1A and 2A of the second switch S2, the second switch S2 is manually switched to the main power supply. When the common terminals 1 and 2 of the second switch S2 are connected to the terminals 1B and 2B on the other side of the second switch S2, the second switch S2 is manually switched to the backup power supply.

Claims

1. A dual power switching circuit, It is characterized in that It includes a power failure detection unit for detecting whether the main power supply in the dual power supply is powered off. The power failure detection unit includes a rectifier bridge. The input end of the rectifier bridge is used to connect to the main power supply. The output end of the rectifier bridge is connected to the input end of the comparator through a connecting circuit for outputting a pulse waveform. The other input end of the comparator is used to input a reference value. The output end of the comparator is connected to a controller. The controller is used to control the switching of the main power supply and the backup power supply in the dual power supply according to the output of the comparator.

2. The dual power switching circuit according to claim 1, It is characterized in that The connecting circuit includes an amplifying circuit.

3. The dual power switching circuit according to claim 2, It is characterized in that The amplifier circuit is a differential amplifier circuit, the output end of the rectifier bridge is connected to the input end of the differential amplifier circuit through a voltage divider circuit for outputting a differential signal, and the output end of the differential amplifier circuit is connected to the input end of the comparator.

4. The dual power switching circuit according to claim 3, It is characterized in that The voltage divider circuit comprises a voltage divider resistor connected in series between the output ends of the rectifier bridge, and two sides of the voltage divider resistor are connected to the input ends of the differential amplifier circuit as outputs of the voltage divider circuit.

5. The dual power switching circuit according to claim 1, It is characterized in that It also includes a plurality of resistors connected in series, and the connection point between any two adjacent resistors is connected to the input end of the comparator, so that the level at the connection point of the two adjacent resistors is output to the comparator as a reference value.

6. The dual power switching circuit according to claim 1, It is characterized in that It also includes an optocoupler isolation circuit, and the controller outputs a control signal for switching the main power supply and the backup power supply through the optocoupler isolation circuit.

7. The dual power switching circuit according to claim 6, It is characterized in that It also includes a power conversion unit for supplying power for the operation of the dual power switching circuit, the power conversion unit includes a main power supply unit whose input end is connected to the main power supply and a backup power supply unit whose input end is connected to the backup power supply, the output end of the main power supply unit is connected to the power supply end of the first power supply of the dual power switching circuit, and the output end of the backup power supply unit is connected to the power supply end via a diode in the same direction as its output.

8. The dual power switching circuit according to claim 7, It is characterized in that The power conversion unit also includes a conversion circuit for stepping down the first power supply into a second power supply. The second power supply is connected to the controller via the light-emitting side of the optocoupler in the optocoupler isolation circuit, and the first power supply is connected to the output end of the controller for outputting a control signal via the coupling side of the optocoupler.

9. A dual power supply system, comprising a first input terminal for connecting a main power supply as a main power supply, a second input terminal for connecting a backup power supply as a backup power supply, and a transmission terminal for outputting power supply, It is characterized in that It also includes a dual power switching circuit as described in any one of claims 1 to 8, and a first relay and a second relay respectively connected between the first input terminal, the second input terminal and the transmission terminal; the output end of the controller in the dual power switching circuit respectively controls the closing or opening of the first relay and the second relay.

10. The dual power supply system according to claim 9, It is characterized in that It also includes a manual-automatic switching unit, which includes two double-pole double-throw switches, the first input end and the second input end are respectively connected to the two common terminals of the first double-pole double-throw switch, the two terminals on one side of the first double-pole double-throw switch are connected to the two common terminals of the second double-pole double-throw switch, and the two terminals on the other side of the first double-pole double-throw switch are respectively connected to the output ends of the first relay and the second relay; the first terminal of the two terminals on one side of the second double-pole double-throw switch is connected to the power transmission end, and the second terminal of the two terminals on the other side of the second double-pole double-throw switch is short-circuited with the first terminal.

Citation Information

Patent Citations

  • Dual-power supply management circuit capable of automatically switching auxiliary power supply

    CN117239905A

  • Dual power supply switcher

    CN201374586Y

  • Double power supply conversion static switch

    CN201536273U

  • Control circuit for remote activation of master / slave industrial control equipment

    WO2018094615A1