Dual-power switching device, switching method, circuit board and electronic equipment
By using detection circuits and microprocessor-controlled switching modules in dual-channel power supply switching devices, combined with energy storage capacitors, the problem of dual-channel power supply switching delay is solved, achieving fast response and stable power switching, reducing equipment restart time, and ensuring ensure the continuous operation of the equipment.
Patent Information
- Application Number
- CN202410733432.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-20
AI Technical Summary
There is a delay in dual-channel power supply switching, which causes the device to lose power and shut down during power switching. It takes a long time to restart, affecting normal operation and possibly causing data loss.
Design a dual power supply switching device, including a detection circuit, a microprocessor and a switching module. The output voltage information of the two power supplies is obtained through the detection circuit. The microprocessor controls the switching module to switch the power supply when a fault occurs, and uses the energy storage capacitor to switch the power supply. Provide temporary power supply instantly and reduce relay control delay.
It improves the power switching response time, avoids unstable power supply, reduces the equipment restart time, and ensures the continuous operation of the equipment.
Smart Images

Figure CN118677089A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power switching, and in particular to a dual power switching device, a switching method, a circuit board and an electronic device. Background Art
[0002] The power supply system of the device is usually provided with two power inputs, one for the main power input and the other for the backup power input, that is, the dual power supply mode is used to power the device, so that when one of the power inputs fails, the device can switch to the other power input for power supply, thereby ensuring that the device can operate uninterruptedly. However, the inventor of the present application found in the implementation process that the switching of the dual power supply requires the controller to control the signal switch of at least two relays, which has a certain delay time. Secondly, although the power supply system of the device is provided with two power inputs, the switching between the two power supplies is not completed instantly, and the device will still be powered off and shut down for a period of time until the input of the other power supply is turned on. The device will restart and resume work, and the shutdown and restart of the device will affect the normal operation of the device and even cause the data of the device to be lost. Summary of the invention
[0003] In view of the above-mentioned prior art, the present invention provides a dual power switching device, a switching method, a circuit board and an electronic device, which mainly solve the technical problems existing in the above-mentioned background technology.
[0004] To achieve the above-mentioned purpose, the technical solution of an embodiment of the present invention is implemented as follows: In the first aspect of the present invention, a dual power supply switching device is provided, the device comprising a first power supply circuit, a second power supply circuit, a microprocessor, a detection circuit and a switching module, the output end of the first power supply circuit is connected to the detection circuit, the output end of the detection circuit is connected to the microprocessor, the switching module is used to disconnect the path between the first power supply circuit and the power load when a fault occurs in the first power supply circuit, and to connect the path between the second power supply circuit and the power load, the detection circuit is used to detect the output voltages of the first power supply circuit and the second power supply circuit, the second power supply circuit is used to power the power load when the path between the second power supply circuit and the power load is connected, and the microprocessor is used to output an adjustment signal to the switching module according to the output signal of the detection circuit.
[0005] Optionally, when the first power supply circuit returns to normal, the switching module disconnects the path between the second power supply circuit and the power load, and connects the path between the first power supply circuit and the power load.
[0006] Optionally, the detection circuit includes a first voltage detection circuit and a second voltage detection circuit, the first voltage detection circuit is connected to the output end of the first power supply circuit for detecting the output voltage of the first power supply circuit, the second voltage detection circuit is connected to the output end of the second power supply circuit for detecting the output voltage of the second power supply circuit, and the first voltage detection circuit and the second voltage detection circuit are both connected to the microprocessor signal.
[0007] Optionally, the switching module includes a first relay and a second relay, and an energy storage capacitor, wherein one end of the first relay is connected to the first power supply circuit, the other end is electrically connected to the second relay, and is connected to a path between the first power supply circuit and the power load to simultaneously power the second relay and the power load, the second relay is connected to the path between the second power supply circuit and the power load, the energy storage capacitor is connected in parallel with the second relay, an input end of which is connected to the second power supply circuit, and an output end of which is connected to the power load.
[0008] Optionally, the second relay is an electromagnetic relay. When the contacts of the first relay are connected, the second relay is energized, so that the contacts of the second relay are in an open state; when the contacts of the first relay are disconnected, the second relay is de-energized, so that the contacts of the second relay are in an on state.
[0009] Optionally, the second relay includes an electromagnetic relay.
[0010] A second aspect of the present invention provides a dual power switching method, the switching method is applied to the dual power switching device as described in any one of the above, and the switching method comprises the following steps:
[0011] Acquire output voltage information of a first power supply circuit and a second power supply circuit from a detection circuit, wherein the first power supply circuit is a main power supply circuit and the second power supply circuit is an auxiliary power supply circuit;
[0012] The microprocessor determines whether the first power supply circuit fails based on the output voltage information of the first power supply circuit. When a fault occurs, the microprocessor controls the first relay to disconnect the path between the first power supply circuit and the power load, so that the power load and the second relay lose power at the same time, and the contacts of the second relay are in the on state, thereby making the path between the second power supply circuit and the power load conductive to realize power supply, and the energy storage capacitor supplies power to the power load at the moment when the first power supply circuit disconnects power supply.
[0013] Optionally, when the first power supply circuit and the second power supply circuit are operating normally, the contacts of the first relay are connected, and the second relay is energized, so that the contacts of the second relay are in a disconnected state, and the second power supply circuit continues to charge the energy storage power supply.
[0014] A third aspect of the present invention provides a circuit board, comprising a substrate and a dual power switching device; wherein the substrate is used to carry the dual power switching device, and the dual power switching device is any of the dual power switching devices described above.
[0015] A fourth aspect of the present invention provides an electronic device, comprising the circuit board as described above.
[0016] The beneficial effect of the present invention is that: the output voltage detection data of the first power supply circuit and the second power supply circuit are respectively obtained through the detection circuit, and input into the microprocessor. If the output voltage of the second power supply circuit is abnormal, the microprocessor outputs an alarm signal. If the output voltage of the first power supply circuit is abnormal, that is, when the first power supply circuit fails, when the first power supply circuit works normally, its first relay is powered on and turned on, and its first power supply circuit is used as the main power supply circuit to supply power to the power load and the second relay at the same time. When the second relay is powered on, its contacts are in a disconnected state, and when the second relay is powered off, its contacts are in a conducting state. At this time, a path is formed between the second power supply circuit, the second relay and the power load, and the second power supply circuit supplies power to the power load. Through the above-mentioned setting, the microprocessor only needs to control one relay, and the other relay can be directly changed to a contact state based on the power-on / power-off state, thereby effectively improving the switching response time. Secondly, in the process of switching the first power supply circuit to the second power supply circuit, an energy storage capacitor is used to temporarily supply power to the power load to avoid the problem of unstable power supply to the power load. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a schematic diagram of the structure of a dual power switching device in an embodiment of the present application;
[0018] Figure 2 This is a connection diagram of the switching module in the embodiment of the present application;
[0019] Description of Figure Numbers:
[0020] 1. First power supply circuit; 2. Second power supply circuit; 3. Microprocessor; 4. Detection circuit; 5. Switching module; 501. First relay; 502. Second relay; 503. Energy storage capacitor; 6. Electrical load. DETAILED DESCRIPTION
[0021] The technical solution of the present invention is further elaborated in detail below in conjunction with the drawings and specific embodiments of the specification. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. In the following description, the expression "some embodiments" is related to a subset of all possible embodiments, but it should be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0022] In the following description, a large number of specific details are provided to provide a more thorough understanding of the present invention. However, it is apparent to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present invention, some technical features well known in the art are not described.
[0023] It should be understood that the present invention can be implemented in different forms and should not be interpreted as being limited to the embodiments proposed herein. On the contrary, providing these embodiments will make the disclosure thorough and complete, and the scope of the present invention will be fully conveyed to those skilled in the art. And the purpose of the terms used herein is only to describe specific embodiments and is not intended to be a limitation of the present invention. When used herein, the singular forms of "one", "one" and "said / the" are also intended to include plural forms, unless the context clearly indicates another way. It should also be understood that the terms "compose" and / or "include" when used in this specification determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.
[0024] It should also be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "inside", "outside", "left", "right" and similar expressions used herein are for illustrative purposes only and are not intended to be the only implementation method.
[0025] In order to fully understand the present invention, a detailed structure will be proposed in the following description to illustrate the technical solution proposed by the present invention. The optional embodiments of the present invention are described in detail as follows, but in addition to these detailed descriptions, the present invention may also have other implementations.
[0026] Please refer to the attached Figure 1 In a first aspect, the present invention provides a dual power switching device, the device comprising a first power supply circuit 1, a second power supply circuit 2, a microprocessor 3, a detection circuit 4 and a switching module 5, the output end of the first power supply circuit 1 is connected to the detection circuit 4, the output end of the detection circuit 4 is connected to the microprocessor 3, the switching module 5 is used to disconnect the path between the first power supply circuit 1 and the power load 6 when the first power supply circuit 1 fails, and to conduct the path between the second power supply circuit 2 and the power load 6, the detection circuit 4 is used to detect the output voltages of the first power supply circuit 1 and the second power supply circuit 2, the second power supply circuit 2 is used to supply power to the power load 6 when the path between the second power supply circuit 2 and the power load 6 is conducted, and the microprocessor 3 is used to output an adjustment signal to the switching module 5 according to the output signal of the detection circuit 4.
[0027] In a specific implementation, the first power supply circuit 1 is the main power supply circuit, and the second power supply circuit 2 is the auxiliary power supply circuit. During normal use of the first power supply circuit 1 and the second power supply circuit 2, the output voltage detection data of the first power supply circuit 1 and the second power supply circuit 2 are respectively obtained through the detection circuit 4 and input into the microprocessor 3. If the output voltage of the second power supply circuit 2 is abnormal, the microprocessor 3 outputs an alarm signal. If the output voltage of the first power supply circuit 1 is abnormal, that is, the first power supply circuit 1 fails, the switching module 5 switches to the second power supply circuit 2 for power supply, and when the first power supply circuit 1 returns to normal, it switches back to the first power supply circuit 1 for power supply.
[0028] Furthermore, when the first power supply circuit 1 returns to normal, the switching module 5 disconnects the path between the second power supply circuit 2 and the power load 6 , and connects the path between the first power supply circuit 1 and the power load 6 .
[0029] Furthermore, the detection circuit 4 includes a first voltage detection circuit 4 and a second voltage detection circuit 4, the first voltage detection circuit 4 is connected to the output end of the first power supply circuit 1, and is used to detect the output voltage of the first power supply circuit 1, the second voltage detection circuit 4 is connected to the output end of the second power supply circuit 2, and is used to detect the output voltage of the second power supply circuit 2, and the first voltage detection circuit 4 and the second voltage detection circuit 4 are both connected to the microprocessor 3 signal.
[0030] Furthermore, the switching module 5 includes a first relay 501, a second relay 502, and an energy storage capacitor 503. One end of the first relay 501 is connected to the first power supply circuit 1, and the other end is electrically connected to the second relay 502, and is connected to the path between the first power supply circuit 1 and the power load 6 to simultaneously power the second relay 502 and the power load 6. The second relay 502 is connected to the path between the second power supply circuit 2 and the power load 6. The energy storage capacitor 503 is connected in parallel with the second relay 502, an input end of which is connected to the second power supply circuit 2, and an output end of which is connected to the power load 6.
[0031] Specifically, when the first power supply circuit 1 is working normally, its first relay 501 is powered on, and its first power supply circuit 1 serves as the main power supply circuit to supply power to the power load 6 and the second relay 502 at the same time. When the second relay 502 is powered on, its contacts are in an open state, and at this time, a path is formed between the second power supply circuit 2, the energy storage capacitor 503 and the power load 6, and the second power supply circuit 2 charges the energy storage capacitor 503. When the energy storage capacitor 503 is fully charged, the energy storage capacitor 503 charges the second power supply circuit 2 and the energy storage capacitor 503. The path formed between the second power supply circuit 2 and the power load 6 becomes an open circuit, so that when the first power supply circuit 1 works normally, the second power supply circuit 2 does not supply power to the power load 6. When the first power supply circuit 1 fails, its microprocessor 3 turns off the second relay 502, so that the power supply to the power load 6 and the second relay 502 is cut off. When the second relay 502 is powered off, its contacts are in a conducting state. At this time, a path is formed between the second power supply circuit 2, the second relay 502 and the power load 6, and the second power supply circuit 2 supplies power to the power load 6.
[0032] It takes a while from the time when the second relay 502 is powered off to the time when the path between the second power supply circuit 2 and the power load 6 is connected, and this period of time is usually several seconds. During these few seconds, the power load 6 is in a power-off state, so it will crash and restart. The restart of the equipment takes several minutes or even longer. Therefore, during the period when the power supply of the power load 6 is switched from the first power supply circuit 1 to the second power supply circuit 2, the power load 6 cannot work normally. Therefore, while the first power supply circuit 1 is supplying power to the power load 6, the second power supply circuit 2 will also charge the energy storage capacitor 503. The energy storage capacitor 503 is used to store electricity and supplies power to the power load 6 at the moment when the path between the first power supply circuit 1 and the power load 6 is disconnected. Then, when the path between the second power supply circuit 2 and the power load 6 is connected, that is, when the power supply of the power load 6 has been successfully switched to the second power supply circuit 2, the energy storage capacitor 503 stops supplying power to the power load 6.
[0033] In one embodiment, the second relay 502 is an electromagnetic relay, which is a switch that works on the electromagnetic principle. It includes an electromagnetic coil and a mechanical switch. When the coil is energized, the magnetic field generated will attract a metal sheet, thereby changing the state of the mechanical switch to achieve the opening or closing of the contacts. Therefore, when the contacts of the first relay 501 are connected, the second relay 502 is energized, so that the contacts of the second relay 502 are in an open state; when the contacts of the first relay 501 are disconnected, the second relay 502 loses power, so that the contacts of the second relay 502 are in a conducting state.
[0034] A second aspect of the present invention provides a dual power switching method, the switching method is applied to the dual power switching device as described in any one of the above, and the switching method comprises the following steps:
[0035] S1, obtaining output voltage information of a first power supply circuit 1 and a second power supply circuit 2 from a detection circuit 4, wherein the first power supply circuit 1 is a main power supply circuit, and the second power supply circuit 2 is an auxiliary power supply circuit;
[0036] S2. The microprocessor 3 determines whether the first power supply circuit 1 fails based on the output voltage information of the first power supply circuit 1. When a fault occurs, the microprocessor 3 controls the first relay 501 to disconnect the path between the first power supply circuit 1 and the power load 6, so that the power load 6 and the second relay 502 lose power at the same time, and the contact of the second relay 502 is in the on state, thereby making the path between the second power supply circuit 2 and the power load 6 conductive to realize power supply, and the energy storage capacitor 503 supplies power to the power load at the moment when the first power supply circuit 1 disconnects power supply.
[0037] Specifically, when the first power supply circuit 1 and the second power supply circuit 2 work normally, the contacts of the first relay 501 are connected, and the second relay 502 is energized, so that the contacts of the second relay 502 are in a disconnected state, and the second power supply circuit 2 continues to charge the energy storage power supply.
[0038] Specifically, when the first power supply circuit 1 is working normally, its first relay 501 is powered on, and its first power supply circuit 1 serves as the main power supply circuit to supply power to the power load 6 and the second relay 502 at the same time. When the second relay 502 is powered on, its contacts are in an open state, and at this time, a path is formed between the second power supply circuit 2, the energy storage capacitor 503 and the power load 6, and the second power supply circuit 2 charges the energy storage capacitor 503. When the energy storage capacitor 503 is fully charged, the energy storage capacitor 503 charges the second power supply circuit 2 and the energy storage capacitor 503. The path formed between the second power supply circuit 2 and the power load 6 becomes an open circuit, so that when the first power supply circuit 1 works normally, the second power supply circuit 2 does not supply power to the power load 6. When the first power supply circuit 1 fails, its microprocessor 3 turns off the second relay 502, so that the power supply to the power load 6 and the second relay 502 is cut off. When the second relay 502 is powered off, its contacts are in a conducting state. At this time, a path is formed between the second power supply circuit 2, the second relay 502 and the power load 6, and the second power supply circuit 2 supplies power to the power load 6.
[0039] It takes a while from the time when the second relay 502 is powered off to the time when the path between the second power supply circuit 2 and the power load 6 is connected, and this period of time is usually several seconds. During these few seconds, the power load 6 is in a power-off state, so it will crash and restart. The restart of the equipment takes several minutes or even longer. Therefore, during the period when the power supply of the power load 6 is switched from the first power supply circuit 1 to the second power supply circuit 2, the power load 6 cannot work normally. Therefore, while the first power supply circuit 1 is supplying power to the power load 6, the second power supply circuit 2 will also charge the energy storage capacitor 503. The energy storage capacitor 503 is used to store electricity and supplies power to the power load 6 at the moment when the path between the first power supply circuit 1 and the power load 6 is disconnected. Then, when the path between the second power supply circuit 2 and the power load 6 is connected, that is, when the power supply of the power load 6 has been successfully switched to the second power supply circuit 2, the energy storage capacitor 503 stops supplying power to the power load 6.
[0040] A third aspect of the present invention provides a circuit board, comprising a substrate and a dual power switching device; wherein the substrate is used to carry the dual power switching device, and the dual power switching device is any of the dual power switching devices described above.
[0041] A fourth aspect of the present invention provides an electronic device, comprising the circuit board as described above.
[0042] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. The protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A dual power switching device, characterized in that: The device includes a first power supply circuit, a second power supply circuit, a microprocessor, a detection circuit and a switching module. The output end of the first power supply circuit is connected to the detection circuit, and the output end of the detection circuit is connected to the microprocessor. The switching module is used to disconnect the path between the first power supply circuit and the power load and conduct the path between the second power supply circuit and the power load when the first power supply circuit fails. The detection circuit is used to detect the output voltages of the first power supply circuit and the second power supply circuit. The second power supply circuit is used to supply power to the power load when the path between the second power supply circuit and the power load is conducted. The microprocessor is used to output an adjustment signal to the switching module according to the output signal of the detection circuit.
2. A dual power switching device according to claim 1, characterized in that: When the first power supply circuit returns to normal, the switching module disconnects the path between the second power supply circuit and the power load, and connects the path between the first power supply circuit and the power load.
3. A dual power switching device according to claim 2, characterized in that: The detection circuit includes a first voltage detection circuit and a second voltage detection circuit. The first voltage detection circuit is connected to the output end of the first power supply circuit to detect the output voltage of the first power supply circuit. The second voltage detection circuit is connected to the output end of the second power supply circuit to detect the output voltage of the second power supply circuit. The first voltage detection circuit and the second voltage detection circuit are both connected to the microprocessor signal.
4. A dual power switching device according to claim 3, characterized in that: The switching module includes a first relay, a second relay, and an energy storage capacitor. One end of the first relay is connected to the first power supply circuit, and the other end is electrically connected to the second relay, and is connected to the path between the first power supply circuit and the power load to simultaneously power the second relay and the power load. The second relay is connected to the path between the second power supply circuit and the power load. The energy storage capacitor is connected in parallel with the second relay, and its input end is connected to the second power supply circuit, and one of its output ends is connected to the power load.
5. A dual power switching device according to claim 4, characterized in that: When the contacts of the first relay are connected, the second relay is energized, so that the contacts of the second relay are in an open state; when the contacts of the first relay are disconnected, the second relay is de-energized, so that the contacts of the second relay are in an on state.
6. A dual power switching device according to claim 5, characterized in that: The second relay includes an electromagnetic relay.
7. A dual power switching method, characterized in that: The switching method is applied to the dual power switching device according to any one of claims 1 to 6, and the switching method comprises the following steps: Acquire output voltage information of a first power supply circuit and a second power supply circuit from a detection circuit, wherein the first power supply circuit is a main power supply circuit and the second power supply circuit is an auxiliary power supply circuit; The microprocessor determines whether the first power supply circuit fails based on the output voltage information of the first power supply circuit. When a fault occurs, the microprocessor controls the first relay to disconnect the path between the first power supply circuit and the power load, so that the power load and the second relay lose power at the same time, and the contacts of the second relay are in the on state, thereby making the path between the second power supply circuit and the power load conductive to realize power supply, and the energy storage capacitor supplies power to the power load at the moment when the first power supply circuit disconnects power supply.
8. A dual power switching method according to claim 7, characterized in that: When the first power supply circuit and the second power supply circuit work normally, the contacts of the first relay are connected, and the second relay is energized, so that the contacts of the second relay are in a disconnected state, and the second power supply circuit continues to charge the energy storage power supply.
9. A circuit board, characterized in that: It comprises a substrate and a dual power switching device; wherein the substrate is used to carry the dual power switching device, and the dual power switching device is the dual power switching device according to any one of claims 1 to 6.
10. An electronic device, characterized in that: Comprising the circuit board as claimed in claim 9.
Citation Information
Cited By
Dual-power supply circuit and power supply system
CN119813501A
A power supply system with dual power supply circuit
CN119813501B
