Power supply switch circuit and electronic equipment
By introducing a watchdog module into the power supply switch circuit, the problem of not being able to manually repair a traditional relay controller after it crashes is solved, thus ensuring the reliability of the power supply switch when the controller crashes and guaranteeing normal power supply to the load.
Patent Information
- Application Number
- CN202520505583.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2035-03-20
AI Technical Summary
Traditional relay controllers cannot be manually repaired after a crash, causing the lights to lose control and making it difficult to restore power.
Design a power supply switch circuit, including a button module, a first control module, a watchdog module, and a power supply switch. The watchdog module activates the second control module when the controller crashes, ensuring the reliability of the power supply switch.
When the controller malfunctions, the power supply switch continues to be controlled by the second control module, which improves the reliability of the power supply switch circuit and ensures normal power supply to the load.
Smart Images

Figure CN223957686U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of power supply circuit, and particularly relates to a power supply switching circuit and an electronic device. BACKGROUND
[0002] At present, a relay is often used as a switch of a power supply circuit for controlling power supply of a load. In an intelligent dimming system, a relay is usually used to control power supply of a rear-end load lamp.
[0003] When a controller of the relay is dead, the lamp cannot be controlled. Since the relay and a control circuit thereof are usually buried in a wall, it is difficult to manually repair and restart the relay. CONTENT OF THE UTILITY MODEL
[0004] The application aims to provide a power supply switching circuit and an electronic device, and aims to solve the problem that a traditional relay loses control after a controller thereof is dead.
[0005] A first aspect of the application provides a power supply switching circuit, comprising a key module, a first control module, a second control module, a watchdog module and a power supply switch. The first control module is connected with the key module, the watchdog module and the power supply switch respectively. The first control module is used to control conduction and turn-off of the power supply switch according to a trigger signal provided by the key module, and is also used to provide a watchdog feeding signal to the watchdog module. The watchdog module is also connected with the second control module. The watchdog module is used to output a first control signal in the case that the watchdog feeding signal is not received. The second control module is connected with the key module and the power supply switch respectively. The second control module is used to control conduction and turn-off of the power supply switch according to the first control signal and the trigger signal.
[0006] In one embodiment, the second control module comprises a fast-forward slow-charge unit, a first switch unit, a second switch unit and a third switch unit. The watchdog module is connected with the first switch unit through the fast-forward slow-charge unit. The first switch unit is connected with the second switch unit. The second switch unit is connected with the key module and the third switch unit respectively. The third switch unit is connected with the power supply switch. The fast-forward slow-charge unit is used to control conduction of the first switch unit in the case that the first control signal is received. The second switch unit is used to conduct according to the trigger signal. The third switch unit is used to conduct in the case that the first switch unit and the second switch unit are both conducted.
[0007] In one embodiment, the fast-forward slow-charging unit comprises a first resistor, a first capacitor and a first unidirectional conductor; a first end of the first resistor is connected with the watchdog module and an output end of the first unidirectional conductor respectively and accessed to a working voltage, a second end of the first resistor is connected with an input end of the first unidirectional conductor, a first end of the first capacitor and the first switch unit respectively, and a second end of the first capacitor is grounded.
[0008] In one embodiment, the first switch unit comprises a first P-type MOS tube, a first end of the first P-type MOS tube is connected with the second switch unit, a second end of the first P-type MOS tube is grounded, and a control end of the first P-type MOS tube is connected with the fast-forward slow-charging unit.
[0009] In one embodiment, the key module comprises a normally open switch and a second resistor, a first end of the normally open switch is accessed to the working voltage through the second resistor, the normally open switch is grounded, and the first end of the normally open switch is connected with the first control module; the second switch unit comprises a second P-type MOS tube, a first end of the second P-type MOS tube is connected with the third switch unit, a second end of the second P-type MOS tube is connected with the first switch unit, and a control end of the second P-type MOS tube is connected with the first end of the normally open switch.
[0010] In one embodiment, the third switch unit comprises a third P-type MOS tube, a third resistor and a fourth resistor; a first end of the third P-type MOS tube is used to access the working voltage, a second end of the third P-type MOS tube is connected with the power supply switch, a control end of the third P-type MOS tube is connected with the first end of the third P-type MOS tube through the third resistor, the control end of the third P-type MOS tube is connected with the second switch unit, and the second end of the third P-type MOS tube is grounded through the fourth resistor.
[0011] In one embodiment, the second control module further comprises a delay unit, a first end of the delay unit is connected with the key module, and a second end of the delay unit is connected with the third switch unit; the delay unit is used to control the third switch unit to be turned on in the case that a time length of receiving the trigger signal exceeds a turn-on threshold.
[0012] In one embodiment, the delay unit comprises a second capacitor and a second unidirectional conductor; a first end of the second capacitor is connected with the control end of the third P-type MOS tube, a second end of the second capacitor is grounded, an output end of the second unidirectional conductor is connected with the control end of the third P-type MOS tube, and an input end of the second unidirectional conductor is connected with the key module.
[0013] In one embodiment, the power supply switch comprises a storage unit and a relay unit, the storage unit being connected to the relay unit; the first control module is connected to the relay unit, and the first control module is configured to control the on and off of the relay unit according to the trigger signal; the second control module is connected to the storage unit, and the second control module is configured to control the output signal of the storage unit according to the first control signal and the trigger signal, the output signal being used to control the on and off of the relay unit.
[0014] A second aspect of the embodiments of the present application provides an electronic device comprising the power supply switch circuit as described above.
[0015] Compared with the prior art, the embodiments of the present application have the beneficial effects that: when the first control module is working normally, the key module can control the power supply switch through the first control module, and when the first control module is dead, the first control module cannot normally output the watchdog signal, and the watchdog module will correspondingly output the first control signal to start the second control module, so that the second control module controls the power supply switch according to the trigger signal, and the reliability of the power supply switch circuit is improved. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 A schematic diagram of a power supply switch circuit is provided for an embodiment of the present application;
[0017] Figure 2 A circuit schematic diagram of a second control module and a key module is provided for an embodiment of the present application;
[0018] Figure 3 Another circuit schematic diagram of a second control module and a key module is provided for an embodiment of the present application;
[0019] Figure 4 A circuit schematic diagram of a power supply switch is provided for an embodiment of the present application;
[0020] Figure 5 A schematic diagram of an electronic device is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to make the technical problems, technical solutions and beneficial effects of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0022] It should be noted that when an element is referred to as being "fixed" or "set" on another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or indirectly connected to the other element.
[0023] It should be understood that the terms "length", "width", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application.
[0024] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise specifically limited.
[0025] For the power supply circuit controlled by the key, part of the power supply circuit can identify the long press operation of the key, and when the controller is dead, the restart and repair functions of the power supply circuit are triggered by long pressing the key. However, the identification of the long press operation usually requires a delay circuit, and the delay circuit is greatly affected by different temperatures, for example, if the power supply circuit designed at room temperature needs to be pressed for 5 seconds, the power supply circuit will become 1 second in a high-temperature state, and 10 seconds in a low-temperature state, which seriously affects the reliability of the power supply circuit.
[0026] Figure 1 A schematic diagram of a power supply switching circuit provided by an embodiment of the present application is shown, only parts related to the present embodiment are shown for the convenience of description, and the details are as follows:
[0027] A power supply switching circuit 10, comprising: a key module 100, a first control module 200, a second control module 300, a watchdog module 400 and a power supply switch 500.
[0028] The first control module 200 is connected with the key module 100, the watchdog module 400 and the power supply switch 500 respectively, and the first control module 200 is used to control the conduction and turn-off of the power supply switch 500 according to the trigger signal provided by the key module 100, and the first control module 200 is also used to provide a watchdog signal to the watchdog module 400.
[0029] The watchdog module 400 is also connected with the second control module 300, and the watchdog module 400 is used to output the first control signal in the case that the feeding signal is not received.
[0030] The second control module 300 is connected with the key module 100 and the power supply switch 500 respectively, and the second control module 300 is used to control the turn-on and turn-off of the power supply switch 500 according to the first control signal and the trigger signal.
[0031] In the case that the first control module 200 works normally, the key module 100 can control the power supply switch 500 through the first control module 200, and when the first control module 200 is dead, the first control module 200 cannot normally output the feeding signal, and the watchdog module 400 will output the first control signal accordingly to start the second control module 300, so that the second control module 300 controls the power supply switch 500 according to the trigger signal, and the reliability of the power supply switch circuit 10 is improved.
[0032] It should be noted that the first control module 200 can include a control chip, and when the first control module 200 works normally, the first control module 200 can generate and output the feeding signal, and when the first control module 200 is dead, the feeding signal cannot be output. The watchdog module 400 will output the second control signal when receiving the feeding signal, and the watchdog module 400 will output the first control signal when not receiving the feeding signal, so according to the different signals output by the watchdog module 400, it can be judged whether the first control module 200 works normally. The trigger signal is a signal emitted when the key module 100 is triggered, and the trigger signal can be a low-level signal.
[0033] In an embodiment, as Figure 2 described, the second control module 300 includes a fast-charge slow-charge unit 310, a first switch unit 320, a second switch unit 330 and a third switch unit 340; the watchdog module 400 is connected with the first switch unit 320 through the fast-charge slow-charge unit 310, the first switch unit 320 is connected with the second switch unit 330, the second switch unit 330 is connected with the key module 100 and the third switch unit 340 respectively, and the third switch unit 340 is connected with the power supply switch 500; the fast-charge slow-charge unit 310 is used to control the first switch unit 320 to be turned on in the case that the first control signal is received, the second switch unit 330 is used to be turned on according to the trigger signal, and the third switch unit 340 is used to be turned on in the case that the first switch unit 320 and the second switch unit 330 are both turned on.
[0034] The first control signal is a square wave signal, and the second control signal is a high level signal. It can be understood that, in the case that the first control module 200 works normally, the second control signal pulls up the voltage of the port corresponding to the first switch unit 320, so that the first switch unit 320 is turned off; in the case that the first control module 200 is dead, the fast discharge and slow charge unit 310 can pull down the voltage of the port corresponding to the first switch unit 320, so that the first switch unit 320 is turned on, thereby realizing the control of the first switch unit 320.
[0035] The first switch unit 320, the second switch unit 330 and the third switch unit 340 each can include a plurality of switch devices.
[0036] In an embodiment, as Figure 2 described, the fast discharge and slow charge unit 310 includes a first resistor R1, a first capacitor C1 and a first unidirectional conduction device D1; a first end of the first resistor R1 is used to access a working voltage VDD, a second end of the first resistor R1 is connected with the watchdog module 400, the first end of the first resistor R1, an output end of the first unidirectional conduction device D1 respectively, the second end of the first resistor R1 is connected with an input end of the first unidirectional conduction device D1, a first end of the first capacitor C1 and the first switch unit 320 respectively, and a second end of the first capacitor C1 is grounded.
[0037] When the watchdog module 400 outputs the second control signal, the first capacitor C1 can be charged, so as to pull up the voltage of the first end of the first capacitor C1; when the watchdog module 400 outputs the first control signal, the high level of the first control signal can slowly charge the first capacitor C1 through the first resistor R1, and the low level can quickly discharge the first capacitor C1 through the first unidirectional conduction device D1, so as to finally pull down the voltage of the first end of the first capacitor C1.
[0038] The first unidirectional conduction device D1 can include a diode.
[0039] In an embodiment, as Figure 2 described, the first switch unit 320 includes a first P-type MOS tube Q1, a first end of the first P-type MOS tube Q1 is connected with the second switch unit 330, a second end of the first P-type MOS tube Q1 is grounded, and a control end of the first P-type MOS tube Q1 is connected with the fast discharge and slow charge unit 310.
[0040] The first end of the first P-type MOS tube Q1 is a source, the second end of the first P-type MOS tube Q1 is a drain, and the control end of the first P-type MOS tube Q1 is a gate.
[0041] Specifically, the control terminal of the first P-type MOSFET Q1 is connected to the first terminal of the first capacitor C1. It can be understood that when the watchdog module 400 outputs the second control signal, the first P-type MOSFET Q1 is turned off; when the watchdog module 400 outputs the first control signal, the first P-type MOSFET Q1 is turned on. The first switching unit 320 also includes a fifth resistor R5, which is positioned between the second terminal of the first P-type MOSFET Q1 and ground.
[0042] In one embodiment, such as Figure 2 The button module 100 includes a normally open switch S1 and a second resistor R2. The first end of the normally open switch S1 is connected to the working voltage VDD through the second resistor R2. The normally open switch S1 is grounded and the first end of the normally open switch S1 is connected to the first control module 200. The second switch unit 330 includes a second P-type MOSFET Q2. The first end of the second P-type MOSFET Q2 is connected to the third switch unit 340, the second end of the second P-type MOSFET Q2 is connected to the first switch unit 320, and the control terminal of the second P-type MOSFET Q2 is connected to the first end of the normally open switch S1.
[0043] Understandably, before the normally open switch S1 is triggered, the voltage at the first terminal of the normally open switch S1 (the control terminal of the second P-type MOSFET Q2) is high, and the second P-type MOSFET Q2 is off. When the normally open switch S1 is triggered, the first terminal of the normally open switch S1 (the control terminal of the second P-type MOSFET Q2) is grounded, and the second P-type MOSFET Q2 is turned on.
[0044] By adjusting the voltage at the control terminal of the second P-type MOSFET Q2 using the normally open switch S1, the on and off states of the second P-type MOSFET Q2 can be controlled.
[0045] In one embodiment, the third switching unit 340 includes a third P-type MOSFET Q3, a third resistor R3, and a fourth resistor R4; the first terminal of the third P-type MOSFET Q3 is used to connect to the operating voltage VDD, the second terminal of the third P-type MOSFET Q3 is connected to the power supply switch 500, the control terminal of the third P-type MOSFET Q3 is connected to the first terminal of the third P-type MOSFET Q3 through the third resistor R3, the control terminal of the third P-type MOSFET Q3 is connected to the second switching unit 330, and the second terminal of the third P-type MOSFET Q3 is grounded through the fourth resistor R4.
[0046] Specifically, the control terminal of the third P-type MOSFET Q3 is connected to the first terminal of the second P-type MOSFET Q2.
[0047] In summary, in the case that the first P-type MOS tube Q1 and the second P-type MOS tube Q2 are not turned on at the same time, the control end of the third P-type MOS tube Q3 is high level, and the third P-type MOS tube Q3 is turned off. In the case that the first P-type MOS tube Q1 and the second P-type MOS tube Q2 are turned on at the same time, the control end of the third P-type MOS tube Q3 is low level, and the third P-type MOS tube Q3 is turned on.
[0048] Whenever the third P-type MOS tube Q3 is turned on, the third switch unit 340 can provide a level signal to the power supply switch 500, thereby controlling the power supply switch 500.
[0049] In some embodiments, the power supply switch 500 is configured to be turned on when receiving the level signal provided by the third switch unit 340, thereby supplying power to the load through the power supply switch 500.
[0050] In an embodiment, as Figure 3 described, the second control module 300 further includes a delay unit 350, a first end of the delay unit 350 being connected with the key module 100, and a second end of the delay unit 350 being connected with the third switch unit 340; the delay unit 350 is used to control the third switch unit 340 to be turned on in the case that the time length of receiving the trigger signal exceeds the turn-on threshold.
[0051] The delay unit 350 can realize the recognition of the long-press operation of the key module 100, complete the control of the third switch unit 340, and then realize the direct control of the power supply switch 500 through the long-press of the key module 100.
[0052] In an embodiment, as Figure 3 described, the delay unit 350 includes: a second capacitor C2 and a second unidirectional conductor D2; a first end of the second capacitor C2 being connected with the control end of the third P-type MOS tube Q3, a second end of the second capacitor C2 being grounded, an output end of the second unidirectional conductor D2 being connected with the control end of the third P-type MOS tube Q3, and an input end of the second unidirectional conductor D2 being connected with the key module 100.
[0053] Specifically, at this time, the first end of the second resistor R2 is connected to the working voltage VDD, and the second end of the second resistor R2 is respectively connected with the first end of the normally open switch S1, the input end of the second unidirectional conductor D2 and the first end of the third resistor R3. The second end of the third resistor R3 is connected with the control end of the third P-type MOS tube Q3. The second unidirectional conductor D2 can include a diode.
[0054] It can be understood that before the normally open switch S1 is triggered, the second capacitor C2 is rapidly charged through the second unidirectional conductor D2, the voltage of the first end of the second capacitor C2 (the control end of the third P-type MOS tube Q3) is high, and the third P-type MOS tube Q3 is off. When the normally open switch S1 is triggered, the second capacitor C2 is slowly discharged through the third resistor R3 and the normally open switch S1. In the case that the normally open switch S1 is continuously turned on, the voltage of the first end of the second capacitor C2 (the control end of the third P-type MOS tube Q3) gradually decreases. When the duration of the received trigger signal exceeds the conduction threshold, the voltage of the first end of the second capacitor C2 becomes low, and the third P-type MOS tube Q3 is turned on.
[0055] In an embodiment, as Figure 4 described, the power supply switch 500 includes a storage unit 510 and a relay unit 520, the storage unit 510 is connected with the relay unit 520; the first control module 200 is connected with the relay unit 520, and the first control module 200 is configured to control the conduction and the off of the relay unit 520 according to a trigger signal; the second control module 300 is connected with the storage unit 510, and the second control module 300 is configured to control the output signal of the storage unit 510 according to the first control signal and the trigger signal, and the output signal is configured to control the conduction and the off of the relay unit 520.
[0056] It can be understood that the short press of the key module 100 can only make the third switch unit 340 conduct for a period of time, and the storage unit 510 can continuously output the output signal for turning on the relay unit 520 or continuously output the output signal for turning off the relay unit 520 according to the level signal output by the second control module 300.
[0057] In some embodiments, as Figure 4 described, the storage unit 510 can include a latch U4. Through the latch U4, the output signal can be controlled to be reversed every time a transition edge (for example, a rising edge) output by the second control module 300 is detected. For example, in the case that the output signal controls the relay unit 520 to be turned on, if the latch U4 detects a level change of the signal output by the second control module 300, the latch U4 can reverse the output signal, so as to control the relay to be turned off through the output signal. In the case that the output signal controls the relay unit 520 to be turned off, if the latch U4 detects a level change of the signal output by the second control module 300, the latch U4 can reverse the output signal, so as to control the relay to be turned on through the output signal.
[0058] Figure 5 A schematic diagram of an electronic device provided by an embodiment of the present application is shown. For ease of illustration, only parts related to the present embodiment are shown, and details are as follows:
[0059] An electronic device 40 comprises the power supply switching circuit 10 as described above.
[0060] The electronic device 40 can further comprise a light emitting module 20, which can be connected with the power supply 30 through the power supply switching circuit 10. When the power supply switching circuit 10 is turned on, the light emitting module 20 can obtain power supply from the power supply 30; when the power supply switching circuit 10 is turned off, the power supply 30 stops supplying power to the light emitting module 20.
[0061] The light emitting module can comprise a LED lamp set.
[0062] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A power supply switching circuit, characterized by comprising: include: The module includes a button module, a first control module, a second control module, a watchdog module, and a power switch. The first control module is connected to the button module, the watchdog module and the power switch respectively. The first control module is used to control the power switch to turn on and off according to the trigger signal provided by the button module. The first control module is also used to provide a dog-feeding signal to the watchdog module. The watchdog module is also connected to the second control module, and the watchdog module is used to output a first control signal when it does not receive the dog feeding signal; The second control module is connected to the button module and the power switch respectively. The second control module is used to control the power switch to turn on and off according to the first control signal and the trigger signal.
2. The power supply switching circuit of claim 1, wherein, The second control module includes a fast discharge / slow charge unit, a first switch unit, a second switch unit, and a third switch unit; The watchdog module is connected to the first switch unit through the fast-release and slow-charge unit. The first switch unit is connected to the second switch unit. The second switch unit is connected to the button module and the third switch unit respectively. The third switch unit is connected to the power supply switch. The fast-release and slow-charge unit is used to control the first switch unit to turn on when the first control signal is received, the second switch unit is used to turn on according to the trigger signal, and the third switch unit is used to turn on when both the first switch unit and the second switch unit are turned on.
3. The power supply switching circuit of claim 2, wherein, The fast-release and slow-charge unit includes: a first resistor, a first capacitor, and a first unidirectional conductor; The first end of the first resistor is connected to the output end of the watchdog module and the first unidirectional conductor and is connected to the working voltage. The second end of the first resistor is connected to the input end of the first unidirectional conductor, the first end of the first capacitor, and the first switching unit. The second end of the first capacitor is grounded.
4. The power supply switching circuit of claim 2, wherein, The first switching unit includes a first P-type MOS transistor, the first end of which is connected to the second switching unit, the second end of which is grounded, and the control terminal of which is connected to the fast-release and slow-charge unit.
5. The power supply switching circuit of claim 2, wherein, The button module includes a normally open switch and a second resistor. The first end of the normally open switch is connected to the working voltage through the second resistor. The normally open switch is grounded and the first end of the normally open switch is connected to the first control module. The second switching unit includes a second P-type MOSFET, the first end of which is connected to the third switching unit, the second end of which is connected to the first switching unit, and the control terminal of which is connected to the first end of the normally open switch.
6. The power supply switching circuit of claim 2, wherein, The third switching unit includes a third P-type MOSFET, a third resistor, and a fourth resistor; The first end of the third P-type MOS tube is used for connecting a working voltage, the second end of the third P-type MOS tube is connected with the power supply switch, the control end of the third P-type MOS tube is connected with the first end of the third P-type MOS tube through the third resistor, the control end of the third P-type MOS tube is connected with the second switch unit, and the second end of the third P-type MOS tube is grounded through the fourth resistor.
7. The power supply switching circuit of claim 6, wherein, The second control module further comprises a delay unit, the first end of the delay unit is connected with the key module, and the second end of the delay unit is connected with the third switch unit. The delay unit is used for controlling the third switch unit to be turned on when the time length of the trigger signal received exceeds a conduction threshold.
8. The power supply switching circuit of claim 7, wherein, The delay unit comprises a second capacitor and a second unidirectional conductor. The first end of the second capacitor is connected with the control end of the third P-type MOS tube, the second end of the second capacitor is grounded, the output end of the second unidirectional conductor is connected with the control end of the third P-type MOS tube, and the input end of the second unidirectional conductor is connected with the key module.
9. A power supply switching circuit as claimed in any one of claims 1 to 8, characterized in that, The power supply switch comprises a storage unit and a relay unit, and the storage unit is connected with the relay unit. The first control module is connected with the relay unit, and the first control module is used for controlling the conduction and turn-off of the relay unit according to the trigger signal. The second control module is connected with the storage unit, and the second control module is used for controlling the output signal of the storage unit according to the first control signal and the trigger signal, so as to control the conduction and turn-off of the relay unit.
10. An electronic device, comprising: The power supply switch circuit comprises the power supply switch circuit according to any one of claims 1 to 9.