Dual-power switching circuit
By designing a dual power switching circuit that automatically judges and switches, the problem of slow manual power switching is solved, fast response and high-reliability power supply is achieved, and data loss caused by equipment power outage is avoided.
Patent Information
- Application Number
- CN202420666524.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-02
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2034-04-02
AI Technical Summary
In the prior art, manual power switching speed is slow, resulting in frequent power outages of equipment, easy loss of data stored in equipment, and low power supply reliability.
Design a dual power switching circuit, including power output module, voltage comparison module, isolation output module, first switch module, second switch module and power switching module, which can automatically judge the mains input status and switch the mains or backup power supply in a timely manner Power supply, automatic switching is achieved through components such as photocouplers and transistors.
It realizes rapid response of automatic switching power supply, improves the reliability of power supply, avoids data loss caused by equipment power outage, and improves the real-time and reliability of power supply.
Smart Images

Figure CN222089333U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of power supply switching circuits, in particular to a dual power supply switching circuit. Background Art
[0002] In power-using places, the power required for power supply is mostly provided by the national or regional power grid. When the mains power supply is insufficient, the backup power supply is generally used. In actual industrial production, in most cases, manual switching of power supplies is used to switch between power sources. However, this method has a slow switching speed, which can easily cause power failure of the equipment and is not very reliable. At the same time, for devices with storage functions, power failure can easily cause the loss of data stored in the device, resulting in losses. Utility Model Content
[0003] The purpose of the utility model is to overcome the shortcomings of the prior art that manual power switching is slow, easily causes power failure of the device, has low reliability, and easily causes loss of data stored in the device due to power failure. A dual power switching circuit is provided, which can automatically switch the power supply when used, has a fast switching speed, supplies power to the device in time, improves power supply reliability, and prevents loss of data stored in the device.
[0004] The purpose of the utility model is mainly achieved through the following technical solutions:
[0005] A dual power switching circuit includes a power output module, a voltage comparison module, an isolation output module, a first switch module, a second switch module and a power switching module, wherein:
[0006] The input end of the power output module is connected to the mains power to convert the mains power into stable direct current, and the output end is connected to the load to output direct current to the load;
[0007] The input end of the voltage comparison module is connected to the output end of the power output module, and is used to input the direct current of the power output module, judge the size of the direct current, and output the judgment result;
[0008] The input end of the isolation output module is connected to the output end of the voltage comparison module, and the output end is connected to the input end of the power switching module, for receiving the judgment result of the voltage comparison module, and outputting a control signal according to the judgment result to control the power switching module to switch the power supply;
[0009] The output end of the power switching module is connected to the first switch module and the second switch module respectively, and is used to control the first switch module to be connected or the second switch module to be connected according to the control signal;
[0010] The first switch module is arranged between the power output module and the load, and is used to control the connection or disconnection of the mains power;
[0011] The second switch module is arranged between the backup power supply and the load, and is used to control the connection or disconnection of the backup power supply.
[0012] In the present application, the dual power switching circuit includes a power output module, a voltage comparison module, an isolation output module, a first switch module, a second switch module and a power switching module. When the mains power supply is normal, the mains power is converted into stable direct current through the power output module and transmitted to the load. At this time, the voltage comparison module determines that the input size of the mains power is normal, and transmits the judgment result to the isolation output module. The isolation output module controls the power switching module to act according to the judgment result, so that the first switch module is connected and the second switch module is disconnected, so that the mains power is transmitted to the load via the first switch module; when the mains power is cut off, the voltage comparison module determines that the mains power input is abnormal, and transmits the judgment result to the isolation output module. The isolation output module controls the power switching module to act according to the judgment result that the mains power input is abnormal, so that the first switch module is disconnected and the second switch module is connected, and the backup power supply transmits electric energy to the load via the second switch module. The dual power switching circuit described in the present application can timely judge whether the mains power input is normal according to the input situation of the mains power when applied, so as to timely switch the mains power supply to the load or the backup power supply to the load, without manual operation, good real-time performance, fast switching speed, and effectively improve the reliability of power supply.
[0013] Furthermore, the voltage comparison module is a comparator U1, the inverting input terminal of the comparator U1 is connected to the power output module, the non-inverting input terminal inputs a reference voltage, the output terminal is connected to a pull-up resistor R1, and the other end of the pull-up resistor R1 connected to the comparator U1 is connected to the power supply VCC.
[0014] Furthermore, the isolation output module is a photocoupler U2, a first pin of the photocoupler U2 is connected to the output end of the comparator U1, a second pin is connected to a first resistor R2, a third pin is connected to a power supply VCC via a second resistor R3, and a fourth pin is connected to a power output module.
[0015] Furthermore, the power switching module is a transistor Q1, the base of the transistor Q1 is connected to the fourth pin of the photocoupler U2 through a current limiting resistor R4, the emitter is grounded, and the collector is connected to the second switch module. The base of the transistor Q1 is grounded through a pull-down resistor R5, and the other end of the pull-down resistor R5 connected to the base of the transistor Q1 is connected to the first switch module.
[0016] Further, the first switch module is a first MOS tube Q2, the gate of the first MOS tube Q2 is grounded through a third resistor R6, the source is connected to the power output module, the drain is connected to the load through a first diode D5, and the other end of the third resistor R6 connected to the first MOS tube Q2 is connected to the base of the transistor Q1 through a pull-down resistor R5.
[0017] Further, the second switch module includes a second MOS tube Q3 and a third MOS tube Q4, the base of the second MOS tube Q3 is connected to the base of the third MOS tube Q4 and the collector of the triode Q1, the source of the second MOS tube Q3 is connected to the source of the third MOS tube Q4, the drain of the second MOS tube Q3 is connected to the backup power supply, a fourth resistor R7 is connected between the source and the gate of the second MOS tube, and the drain of the third MOS tube Q4 is connected to the load through the second diode D1.
[0018] To sum up, compared with the prior art, the utility model has the following beneficial effects: the utility model sets a power output module, a voltage comparison module, an isolation output module, a first switch module, a second switch module and a power switching module. When used, it can promptly determine whether the AC power input is normal according to the AC power input situation, so as to promptly switch the AC power supply to the load or the backup power supply to the load, without manual operation, with good real-time performance and fast switching speed, which effectively improves the reliability of power supply. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the embodiments of the present utility model, constitute a part of this application, and do not constitute a limitation of the embodiments of the present utility model. In the drawings:
[0020] Figure 1 It is a structural block diagram of the utility model;
[0021] Figure 2 This is a circuit schematic diagram of the utility model. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solutions and advantages of the utility model more clearly understood, the utility model is further described in detail below in conjunction with embodiments and drawings. The schematic implementation manner of the utility model and its description are only used to explain the utility model and are not intended to limit the utility model.
[0023] Example:
[0024] like Figure 1As shown, a dual power switching circuit includes a power output module, a voltage comparison module, an isolation output module, a first switch module, a second switch module and a power switching module, wherein: the input end of the power output module is connected to the mains power, used to convert the mains power into stable direct current, and the output end is connected to the load, used to output direct current to the load; the input end of the voltage comparison module is connected to the output end of the power output module, used to input the direct current of the power output module, and judge the size of the direct current, and output the judgment result at the same time; the input end of the isolation output module is connected to the output end of the voltage comparison module, and the output end is connected to the input end of the power switching module, used to receive the judgment result of the voltage comparison module, and output a control signal to control the power switching module to switch the power according to the judgment result; the output end of the power switching module is respectively connected to the first switch module and the second switch module, used to control the first switch module to be connected or the second switch module to be connected according to the control signal; the first switch module is arranged between the power output module and the load, used to control the connection or disconnection of the mains power; the second switch module is arranged between the backup power supply and the load, used to control the connection or disconnection of the backup power supply.
[0025] In this embodiment, the dual power switching circuit includes a power output module, a voltage comparison module, an isolation output module, a first switch module, a second switch module and a power switching module. When the mains power supply is normal, the mains power is converted into stable direct current through the power output module and transmitted to the load. At this time, the voltage comparison module determines that the input size of the mains power is normal, and transmits the judgment result to the isolation output module. The isolation output module controls the power switching module to act according to the judgment result, so that the first switch module is connected and the second switch module is disconnected, so that the mains power is transmitted to the load via the first switch module; when the mains power is cut off, the voltage comparison module determines that the mains power input is abnormal, and transmits the judgment result to the isolation output module. The isolation output module controls the power switching module to act according to the judgment result of the mains power input abnormality, so that the first switch module is disconnected and the second switch module is connected, and the backup power supply transmits electric energy to the load via the second switch module. The dual power switching circuit described in this embodiment can timely judge whether the mains power input is normal according to the input situation of the mains power when applied, so as to timely switch the mains power supply to the load or the backup power supply to the load, without manual operation, good real-time performance, fast switching speed, and effectively improve the reliability of power supply.
[0026] Further, such as Figure 2As shown, the voltage comparison module is a comparator U1, the inverting input terminal of the comparator U1 is connected to the power output module, the reference voltage is input to the inverting input terminal, and the output terminal is connected to a pull-up resistor R1, and the other end of the pull-up resistor R1 connected to the comparator U1 is connected to the power supply VCC. Specifically, the mains power is converted into a stable direct current through the power output module and transmitted to the inverting input terminal of the comparator U1, and the reference voltage is input to the inverting input terminal. When the mains power input is normal, the direct current input to the inverting input terminal of the comparator U1 is greater than the reference voltage Vref. At this time, the output terminal of the comparator U1 outputs a low level to inform the subsequent circuit that the mains power input is normal. When the mains power is disconnected, the input voltage of the inverting input terminal of the comparator U1 is less than the reference voltage Vref. The output terminal of the comparator U1 outputs a high level to inform the subsequent circuit that the mains power input is abnormal.
[0027] Further, such as Figure 2 As shown, the isolation output module is a photocoupler U2, the first pin of the photocoupler U2 is connected to the output end of the comparator U1, the second pin is connected to the first resistor R2, the third pin is connected to the power supply VCC through the second resistor R3, and the fourth pin is connected to the power output module. Specifically, the photocoupler U2 receives a level signal from the comparator U1. When the comparator U1 outputs a low level, the output end of the photocoupler U2 is disconnected, and the photocoupler U2 has no output, so that the power switching module controls the first switch module to be connected and the second switch module to be disconnected, so that the city power is delivered to the load via the first switch module; when the comparator U1 outputs a high level, the output end of the photocoupler U2 is connected, so that the output end of the photocoupler U2 outputs a high level, so that the power switching module controls the first switch module to be disconnected and the second switch module to be connected, so that the city power is disconnected, and the backup power supply delivers electric energy to the load via the second switch module. In this embodiment, the isolated output module uses a photocoupler. Since the photocoupler has good isolation characteristics, it can completely separate the input and output and has strong anti-interference ability, thereby avoiding malfunction of the output end and preventing it from outputting erroneous control signals. At the same time, since the photocoupler has no contacts, compared with the contacts of the relay, it avoids the mechanical movement of the contacts, has a faster response speed, and a longer life.
[0028] Further, such as Figure 2As shown, the power switching module is a transistor Q1, the base of the transistor Q1 is connected to the fourth pin of the photoelectric coupler U2 through a current limiting resistor R4, the emitter is grounded, the collector is connected to the second switch module, the base of the transistor Q1 is grounded through a pull-down resistor R5, and the other end of the pull-down resistor R5 connected to the base of the transistor Q1 is connected to the first switch module. Specifically, when the photoelectric coupler U2 has no output, the base of the transistor Q1 has no output, and the transistor Q1 is disconnected; when the photoelectric coupler U2 outputs a high level, the base of the transistor Q1 receives the control signal of the photoelectric coupler U2, so that the transistor Q1 is connected.
[0029] Further, such as Figure 2 As shown, the first switch module is a first MOS tube Q2, the gate of the first MOS tube Q2 is grounded through a third resistor R6, the source is connected to the power output module, the drain is connected to the load through a first diode D5, and the other end of the third resistor R6 connected to the first MOS tube Q2 is connected to the base of the triode Q1 through a pull-down resistor R5; the second switch module includes a second MOS tube Q3 and a third MOS tube Q4, the base of the second MOS tube Q3 is connected to the base of the third MOS tube Q4 and the collector of the triode Q1, the source of the second MOS tube Q3 is connected to the source of the third MOS tube Q4, the drain of the second MOS tube Q3 is connected to the standby power supply, a fourth resistor R7 is connected between the source and the gate of the second MOS tube, and the drain of the third MOS tube Q4 is connected to the load through a second diode D1. Specifically, when the transistor Q1 is disconnected, the gate of the first MOS tube Q2 is at a low level and the source is at a high level, so that the first MOS tube Q2 is connected, and the mains outputs electric energy to the load. Due to the presence of the body diode D3 of the second MOS tube Q3, the backup power is input to the source of the second MOS tube Q3 and the source of the third MOS tube Q4 through the body diode D3 of the second MOS tube Q3, and is transmitted to the gate of the second MOS tube Q3 and the gate of the third MOS tube Q4 through R7, so that the source and gate of the second MOS tube Q3 and the third MOS tube Q4 are both at high level. When the transistor Q1 is connected, the gate and source of the first MOS transistor Q2 are both at a high level, and the first MOS transistor Q2 is not conducting. At this time, the backup power supply is input to the source of the second MOS transistor Q3 and the source of the third MOS transistor Q4 through the body diode D3 of the second MOS transistor Q3. Since the transistor Q1 is conducting, the gates of the second MOS transistor Q3 and the third MOS transistor Q4 are both pulled down to a low level, so that the second MOS transistor Q3 and the third MOS transistor Q4 are both conducting, so that the backup power supply is delivered to the load. In this embodiment, due to the presence of the first diode D5 and the second diode D1, the mains power and the backup power supply will not charge each other.
[0030] When this embodiment is used, when the mains input is normal, the comparator U1 outputs a low level, thereby disconnecting the photocoupler U2, the triode Q1, the second MOS tube Q3 and the third MOS tube Q4 are all off, and the first MOS tube Q2 is turned on, so that the mains power supplies power to the load; when the mains power is disconnected, the comparator U1 outputs a high level, thereby turning on the photocoupler U2, the triode Q1, the second MOS tube Q3 and the third MOS tube Q4 are all on, and the first MOS tube Q2 is off, so that the backup power supply supplies power to the load.
[0031] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the utility model in detail. It should be understood that the above description is only the specific implementation method of the utility model and is not used to limit the protection scope of the utility model. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the utility model should be included in the protection scope of the utility model.
Claims
1. A dual power switching circuit, characterized in that: It includes a power output module, a voltage comparison module, an isolation output module, a first switch module, a second switch module and a power switching module, wherein: The input end of the power output module is connected to the mains power to convert the mains power into stable direct current, and the output end is connected to the load to output direct current to the load; The input end of the voltage comparison module is connected to the output end of the power output module, and is used to input the direct current of the power output module, judge the size of the direct current, and output the judgment result; The input end of the isolation output module is connected to the output end of the voltage comparison module, and the output end is connected to the input end of the power switching module, for receiving the judgment result of the voltage comparison module, and outputting a control signal according to the judgment result to control the power switching module to switch the power supply; The output end of the power switching module is connected to the first switch module and the second switch module respectively, and is used to control the first switch module to be connected or the second switch module to be connected according to the control signal; The first switch module is arranged between the power output module and the load, and is used to control the connection or disconnection of the mains power; The second switch module is arranged between the backup power supply and the load, and is used to control the connection or disconnection of the backup power supply.
2. A dual power switching circuit according to claim 1, characterized in that: The voltage comparison module is a comparator U1, the inverting input terminal of the comparator U1 is connected to the power output module, the non-inverting input terminal inputs a reference voltage, the output terminal is connected to a pull-up resistor R1, and the other end of the pull-up resistor R1 connected to the comparator U1 is connected to the power supply VCC.
3. A dual power switching circuit according to claim 2, characterized in that: The isolation output module is a photocoupler U2, a first pin of the photocoupler U2 is connected to the output end of the comparator U1, a second pin is connected to a first resistor R2, a third pin is connected to a power supply VCC via a second resistor R3, and a fourth pin is connected to a power output module.
4. A dual power switching circuit according to claim 3, characterized in that: The power switching module is a transistor Q1, the base of the transistor Q1 is connected to the fourth pin of the photocoupler U2 through a current limiting resistor R4, the emitter is grounded, and the collector is connected to the second switch module. The base of the transistor Q1 is grounded through a pull-down resistor R5, and the other end of the pull-down resistor R5 connected to the base of the transistor Q1 is connected to the first switch module.
5. A dual power switching circuit according to claim 4, characterized in that: The first switch module is a first MOS tube Q2, the gate of the first MOS tube Q2 is grounded through a third resistor R6, the source is connected to the power output module, the drain is connected to the load through a first diode D5, and the other end of the third resistor R6 connected to the first MOS tube Q2 is connected to the base of the transistor Q1 through a pull-down resistor R5.
6. A dual power switching circuit according to claim 4, characterized in that: The second switch module includes a second MOS tube Q3 and a third MOS tube Q4, the base of the second MOS tube Q3 is connected to the base of the third MOS tube Q4 and the collector of the triode Q1, the source of the second MOS tube Q3 is connected to the source of the third MOS tube Q4, the drain of the second MOS tube Q3 is connected to the backup power supply, a fourth resistor R7 is connected between the source and the gate of the second MOS tube, and the drain of the third MOS tube Q4 is connected to the load through the second diode D1.
