Power supply control system and method thereof
By designing the power supply control system, using switching circuits and control circuits to control the on-off state of the power supply based on preset signals, the problem of low standby power consumption and intelligence is solved, and efficient management of the power supply and extended service life are achieved.
Patent Information
- Application Number
- CN202011606255.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-28
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2040-12-28
AI Technical Summary
In the prior art, the power supply still has standby power consumption during standby or shutdown, resulting in a shortening of the battery life and life, and the intelligence of controlling the power switch is low.
A power control system is designed, including a switching circuit and a control circuit, and the working state of the switching circuit is controlled through a preset signal output by a control device or power supply. When the switching circuit is in the first working state, the power supply power supply to the control device; when the power supply is in the second working state, the power supply is stopped.
It realizes intelligent power on-off control, reduces the power consumption of the power supply, extends the service life of the power supply, and improves the intelligence of the power supply switch.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power supply control, and in particular to a power supply control system and a method thereof. Background Art
[0002] At present, in most battery-applied products, especially household appliances, the power supply is not completely disconnected when they are in standby or shutdown mode. Even if the chip enters low-power mode, the control board still has a certain standby power consumption. The power consumption of the entire system may reach tens or even hundreds of uA, and long-term standby will shorten the battery usage time and life, resulting in extremely poor user experience.
[0003] Even if some products in the prior art cut off the power supply when in standby or shutdown mode, they use mechanical switches. Considering product functions, aesthetics and user experience, such switches are not suitable for all products. For example, in touch-controlled products, mechanical switches cannot be installed, and they require manual operation by users, which is less intelligent. That is, the intelligence of the power switch control in the prior art is low.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiment of the present invention provides a power control system and method thereof, so as to at least solve the technical problem of low intelligence in controlling a power switch in the related art.
[0006] According to one aspect of an embodiment of the present invention, there is provided a power supply control system, comprising: a switching circuit, wherein a first end of the switching circuit is connected to a power supply, a second end of the switching circuit is connected to a first end of a control device, and when the switching circuit is in a first working state, the power supply supplies power to the control device, and when the switching circuit is in a second working state, the power supply stops supplying power to the control device; a control circuit, wherein a first end of the control circuit is connected to a third end of the switching circuit, a second end of the control circuit is connected to a second end of the control device, and a third end of the control circuit is connected to the first end of the switching circuit, and the control circuit is used to control the working state of the switching circuit based on a preset signal output by the control device or the power supply.
[0007] Optionally, the switching circuit includes: a first switching device, a first end of the first switching device connected to the first end of the switching circuit, a second end of the first switching device connected to the second end of the switching circuit, and a third end of the first switching device connected to the third end of the switching circuit.
[0008] Optionally, the first switching device includes: a first transistor, the emitter of the first transistor is connected to the first end of the switching circuit, the collector of the first transistor is connected to the second end of the switching circuit, and the base of the first transistor is connected to the third end of the switching circuit.
[0009] Optionally, the first switching device includes: a first field effect transistor, a source of the field effect transistor connected to the first end of the switching circuit, a drain of the field effect transistor connected to the second end of the switching circuit, and a gate of the field effect transistor connected to the third end of the switching circuit.
[0010] Optionally, the switch circuit further includes: a first resistor connected in series between the third end of the first switch device and the third end of the switch circuit.
[0011] Optionally, the control circuit includes: a first circuit, a first end of the first circuit is connected to a first end of the control circuit, a second end of the first circuit is connected to a second end of the control circuit, and the first circuit is used to control the working state of the switch circuit to a second working state; a second circuit, a first end of the second circuit is connected to a third end of the control circuit, a second end of the second circuit is connected to the first end of the control circuit, and the second circuit is used to control the working state of the switch circuit to the first working state.
[0012] Optionally, the first circuit includes: a second switching device, a first end of the second switching device is connected to the first end of the first circuit, a second end of the second switching device is connected to the second end of the first circuit, and a third end of the second switching device is grounded.
[0013] Optionally, the second switching device includes: a second triode, the collector of the second triode is connected to the first end of the first circuit, the base of the second triode is connected to the second end of the first circuit, and the emitter of the second triode is grounded.
[0014] Optionally, the second switching device includes: a second field effect transistor, the drain of the second field effect transistor is connected to the first end of the first circuit, the gate of the second field effect transistor is connected to the second end of the first circuit, and the source of the second field effect transistor is grounded.
[0015] Optionally, the first circuit further includes: a second resistor connected in series between the second end of the first circuit and the second end of the second switch device; and a third resistor connected in series between the first end of the first circuit and the first end of the second switch device.
[0016] Optionally, the second circuit includes: a first capacitor, a first end of the first capacitor is connected to the second end of the second circuit, and the second end of the first capacitor is grounded; a diode, a positive electrode of the diode is connected to the second end of the second circuit, and a negative electrode of the diode is connected to the first end of the second circuit; a fourth resistor, a first end of the fourth resistor is connected to the first end of the second circuit, and the second end of the fourth resistor is grounded.
[0017] Optionally, the system also includes: a second capacitor, a first end of the second capacitor is connected to the first end of the control device, a second end of the second capacitor is connected to the second end of the control device, the first end of the control device is connected to a DC power supply, and the second end of the control device is grounded.
[0018] According to another aspect of an embodiment of the present invention, a power supply control method is also provided, including: outputting a preset signal through a control device or a power supply; controlling the working state of a switching circuit based on the preset signal through a control circuit; supplying power to the control device through the power supply when the switching circuit is in a first working state; and stopping supplying power to the control device through the power supply when the switching circuit is in a second working state.
[0019] Optionally, the preset signal includes at least one of the following: a first signal, a second signal, the first signal being a signal output by the control device, and the second signal being a signal output by the power supply, and controlling the working state of the switching circuit based on the preset signal through the control circuit, including: controlling the switching circuit to be in the second working state based on the first signal through the first circuit in the control circuit; controlling the switching circuit to be in the first working state based on the second signal through the second circuit in the control circuit.
[0020] Optionally, controlling the switch circuit to be in the second working state based on the first signal by the first circuit in the control circuit includes: controlling the second switch device in the first circuit to be in the second working state based on the first signal by the first circuit; and controlling the first switch device in the switch circuit to be in the second working state based on the second working state.
[0021] Optionally, the switch circuit is controlled to be in the first working state based on the second signal by the second circuit in the control circuit, including: controlling the power supply to charge the first capacitor in the second circuit based on the first signal, wherein the voltage of the first capacitor increases based on the charge amount of the first capacitor; when the voltage of the first capacitor reaches a second preset voltage, controlling the switch circuit to be in the first working state based on the second signal by the second circuit in the control circuit.
[0022] Optionally, before the control device outputs a preset signal, the method further includes: determining through the control device whether the standby time reaches a preset time; and outputting a first signal through the control device when the control device determines that the standby time reaches the preset time.
[0023] Optionally, before outputting a preset signal through the power supply, the method further includes: when the power supply is connected to the switching circuit, outputting a second signal through the power supply.
[0024] Optionally, when the power supply is connected to the switching circuit, before controlling the power supply to output the second signal, the method also includes: determining the target state of the power supply through the voltage of the first capacitor in the second circuit; when the voltage of the first capacitor reaches a first preset voltage, determining the target state of the power supply to be a first state through the second circuit, wherein the first state is used to characterize that when the power supply is connected to the switching circuit, the power supply is controlled to output the second signal; when the voltage of the first capacitor does not reach the first preset voltage, determining the target state of the power supply to be a second state through the second circuit, wherein the second state is used to characterize that when the power supply is connected to the switching circuit, the power supply is prohibited from outputting the second signal.
[0025] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program. When the program is executed, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned power control method.
[0026] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the power control method described above is executed when the program is run.
[0027] In an embodiment of the present invention, a preset signal can be output by a control device or a power supply; then, the control circuit controls the working state of the switch circuit based on the preset signal; when the switch circuit is in a first working state, the control device is powered by the power supply; when the switch circuit is in a second working state, the control device is stopped from being powered by the power supply, thereby realizing intelligent power on and off of the power supply, thereby reducing the power consumption of the power supply and extending the service life of the power supply while ensuring normal use by the user; the power supply can be turned on and off in time by controlling the switch circuit, thereby completing the power on and off control of the power supply without the need for user auxiliary operation, thereby solving the technical problem of low intelligence in controlling the power switch in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0029] Figure 1 is a schematic diagram of a power supply control system according to an embodiment of the present invention;
[0030] Figure 2 is a schematic diagram of another power supply control system according to an embodiment of the present invention;
[0031] Figure 3 is a schematic diagram of a circuit principle according to an embodiment of the present invention;
[0032] Figure 4 is a schematic diagram of a startup circuit according to an embodiment of the present invention;
[0033] Figure 5 is a schematic diagram of a self-locking circuit according to an embodiment of the present invention;
[0034] Figure 6 is a flow chart of a power control method according to an embodiment of the present invention;
[0035] Figure 7 is a flow chart of an energy-saving control method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0038] Example 1
[0039] According to an embodiment of the present invention, a power supply control system is provided. Figure 1 is a schematic diagram of a power control system according to an embodiment of the present invention, such as Figure 1 As shown, the power control system includes:
[0040] A switch circuit 12, wherein a first end of the switch circuit is connected to a power source 14, and a second end of the switch circuit 12 is connected to a first end of a control device 14. When the switch circuit 12 is in a first working state, the power source 14 supplies power to the control device 14, and when the switch circuit 12 is in a second working state, the power source 14 stops supplying power to the control device 14;
[0041] A control circuit 16, wherein a first end of the control circuit 16 is connected to a third end of the switch circuit 12, a second end of the control circuit 16 is connected to a second end of the control device 14, and a third end of the control circuit 16 is connected to a first end of the switch circuit 12. The control circuit 16 is used to control the working state of the switch circuit 12 based on a preset signal output by the control device 14 or the power supply 14.
[0042] The switch circuit is a circuit having two states, "on" and "off". The first working state in the above steps may be that the switch circuit is on, and the second working state in the above steps may be that the switch circuit is off. The power supply may be an AC power supply; the power supply may also be a DC power supply, such as a battery. The control device may be a controller, such as an MCU (Microcontroller Unit), a CPU (Central Processing Unit), etc.
[0043] In an optional embodiment, when the switch circuit is turned on, the power supply can supply power to the control device, and the control device supplies power to the load, so as to improve the intelligence of the power supply to the load. When the switch circuit is turned off, the power supply can stop supplying power to the control device, so that when the standby time of the control device is too long, the power can be automatically cut off, thereby achieving the effect of reducing the power consumption of the power supply and increasing the service life of the power supply.
[0044] The preset signal may be a first signal and a second signal, wherein the first signal is a signal output by the control device, and the second signal is a signal output by the power supply.
[0045] In another optional embodiment, when the control device detects that the standby time of the load is too long, the control device can output a first signal, wherein the first signal can be a level signal. At this time, the control circuit can control the switch circuit to disconnect based on the preset signal, so that the power supply stops supplying power to the control device, thereby achieving the effect of reducing the power consumption of the power supply and increasing the service life of the power supply.
[0046] In another optional embodiment, when the power supply and the switching circuit are reconnected, the power supply can output a second signal, wherein the second signal can be a current signal. At this time, the control circuit can control the switching circuit to be turned on based on the preset signal, so that the power supply supplies power to the control device to ensure the normal operation of the load.
[0047] In an embodiment of the present invention, a preset signal is output by a control device or a power supply; then the control circuit controls the working state of the switch circuit based on the preset signal; when the switch circuit is in a first working state, the control device is powered by the power supply; when the switch circuit is in a second working state, the control device is stopped from being powered by the power supply, thereby realizing intelligent power on and off of the power supply, thereby reducing the power consumption of the power supply and extending the service life of the power supply while ensuring normal use by the user; the power supply can be turned on and off in time by controlling the switch circuit, thereby completing the power on and off control of the power supply without the need for user auxiliary operation, thereby solving the technical problem of low intelligence in controlling the power switch in the related art.
[0048] Alternatively, if Figure 2 As shown, the switch circuit 12 includes: a first switch device 122 .
[0049] The first end of the first switch device is connected to the first end of the switch circuit, the second end of the first switch device is connected to the second end of the switch circuit, and the third end of the first switch device is connected to the third end of the switch circuit.
[0050] The first switching device in the above steps can be a triode, a field effect transistor, a thyristor, a power transistor, a gate turn-off thyristor, an insulated bipolar transistor, a relay, etc., wherein the relay can be a contactless switch solid-state relay.
[0051] When the first switch device is in the on state, the switch circuit is turned on, and when the first switch device is in the off state, the switch circuit is turned off.
[0052] Optionally, the first switching device includes: a first transistor, the emitter of the first transistor is connected to the first end of the switching circuit, the collector of the first transistor is connected to the second end of the switching circuit, and the base of the first transistor is connected to the third end of the switching circuit.
[0053] In an optional embodiment, if Figure 3 As shown, the first switch device can be a PNP transistor Q1. When the base voltage of Q1 changes from a low level to a high level, Q1 can be turned from an on state to an off state. When the emitter voltage of Q1 is less than the on voltage, Q1 can be turned from an off state to an on state, thereby controlling the switch circuit to be turned on.
[0054] Optionally, the first switching device includes: a first field effect transistor, a source of the field effect transistor connected to the first end of the switching circuit, a drain of the field effect transistor connected to the second end of the switching circuit, and a gate of the field effect transistor connected to the third end of the switching circuit.
[0055] In an optional embodiment, the first switch device may be a PMOS (P-Metal-Oxide-Semiconductor) field effect transistor, and when the gate voltage of the PMOS field effect transistor changes from a low level to a high level, the PMOS field effect transistor may be changed from an on state to an off state. When the voltage between the gate and the source of the PMOS field effect transistor is higher than the on voltage, the PMOS field effect transistor may be changed from an off state to an on state, thereby controlling the switch circuit to be turned on.
[0056] Optionally, the switch circuit further includes: a first resistor connected in series between the third end of the first switch device and the third end of the switch circuit.
[0057] like Figure 2 As shown, the switch circuit 12 further includes a first resistor 124 .
[0058] The first resistor may be a pull-down resistor, which is used to prevent the first switch device from malfunctioning due to the influence of noise signals, so that the first switch device is more stable in the cut-off state.
[0059] Optionally, the control circuit includes: a first circuit, a first end of the first circuit is connected to a first end of the control circuit, a second end of the first circuit is connected to a second end of the control circuit, and the first circuit is used to control the working state of the switch circuit to a second working state; a second circuit, a first end of the second circuit is connected to a third end of the control circuit, a second end of the second circuit is connected to the first end of the control circuit, and the second circuit is used to control the working state of the switch circuit to the first working state.
[0060] In an optional embodiment, if Figure 2 As shown, the control circuit 16 includes: a first circuit 162 .
[0061] The first end of the first circuit 162 is connected to the first end of the control circuit 16, and the second end of the first circuit 162 is connected to the second end of the control circuit 16. The first circuit is used to control the disconnection of the switch circuit when receiving the first signal output by the control device, so that the power supply no longer supplies power to the control device, thereby achieving the effect of reducing the power consumption of the power supply and increasing the service life of the power supply.
[0062] In an optional embodiment, if Figure 2 As shown, the control circuit 16 includes: a second circuit 164.
[0063] The first end of the second circuit 164 is connected to the third end of the control circuit 16, and the second end of the second circuit 164 is connected to the first end of the control circuit 16. The second circuit is used to control the switch circuit to be turned on when receiving the second signal output by the power supply, so that the power supply supplies power to the control device to ensure the normal operation of the load.
[0064] Optionally, the first circuit includes: a second switching device, a first end of the second switching device is connected to the first end of the first circuit, a second end of the second switching device is connected to the second end of the first circuit, and a third end of the second switching device is grounded.
[0065] In an optional embodiment, if Figure 2 As shown, the first circuit 162 includes: a second switching device 1622 .
[0066] The first end of the second switch device 1622 is connected to the first end of the first circuit 162, the second end of the second switch device 1622 is connected to the second end of the first circuit 162, and the third end of the second switch device 1622 is grounded, wherein when the second switch device is in the cut-off state, the first circuit is controlled to operate, and the voltage at the third end of the first switch device is increased through the first circuit, thereby disconnecting the switch circuit, so that the power supply no longer supplies power to the control device.
[0067] Optionally, the second switching device includes: a second triode, the collector of the second triode is connected to the first end of the first circuit, the base of the second triode is connected to the second end of the first circuit, and the emitter of the second triode is grounded.
[0068] In an optional embodiment, if Figure 3 As shown, the second switching device can be an NPN transistor Q2. When the base voltage of Q2 changes from high to low, Q2 can be changed from an on state to an off state. At this time, the first switching device is affected by Q2, and the voltage at its third terminal increases, thereby causing the first switching device to change from an on state to an off state, and the control switch circuit is disconnected, so that the power supply no longer supplies power to the control device, thereby achieving the effect of reducing the power consumption of the power supply and increasing the service life of the power supply.
[0069] Optionally, the second switching device includes: a second field effect transistor, the drain of the second field effect transistor is connected to the first end of the first circuit, the gate of the second field effect transistor is connected to the second end of the first circuit, and the source of the second field effect transistor is grounded.
[0070] In an optional embodiment, the second switching device can be an NMOS (N-Metal-Oxide-Semiconductor) field effect transistor. When the gate voltage of the NMOS field effect transistor changes from high to low and is lower than the turn-on voltage, the NMOS field effect transistor can be changed from an on state to an off state. At this time, the first switching device is affected by the NMOS field effect transistor, and the voltage at its third terminal increases, thereby causing the first switching device to change from an on state to an off state, controlling the switch circuit to be disconnected, so that the power supply no longer supplies power to the control device, thereby achieving the effect of reducing the power consumption of the power supply and increasing the service life of the power supply.
[0071] Optionally, the first circuit further includes: a second resistor connected in series between the second end of the first circuit and the second end of the second switch device; and a third resistor connected in series between the first end of the first circuit and the first end of the second switch device.
[0072] In an optional embodiment, if Figure 2 As shown, the first circuit 162 also includes: a second resistor 1624 and a third resistor 1626 .
[0073] The second resistor 1624 is connected in series between the second end of the first circuit 162 and the second switching device 1622, wherein the second resistor plays a current limiting role to protect the second switching device; the third resistor 1626 is connected in series between the first end of the first circuit 162 and the first end of the second switching device 1622, wherein the third resistor plays a current limiting role to prevent the second switching device from being damaged due to excessive current passing through the second switching device when the second switching device is in the on state.
[0074] Optionally, the second circuit includes: a first capacitor, a first end of the first capacitor is connected to the second end of the second circuit, and the second end of the first capacitor is grounded; a diode, a positive electrode of the diode is connected to the second end of the second circuit, and a negative electrode of the diode is connected to the first end of the second circuit; a fourth resistor, a first end of the fourth resistor is connected to the first end of the second circuit, and the second end of the fourth resistor is grounded.
[0075] In an optional embodiment, if Figure 2 As shown, the second circuit 164 includes: a first capacitor 1642 , a diode 1644 , and a fourth resistor 1646 .
[0076] A first end of the first capacitor 1642 is connected to the second end of the second circuit 164, and the second end of the first capacitor 1642 is grounded; a diode 1644, the positive electrode of the diode 1644 is connected to the second end of the second circuit 164, and the negative electrode of the diode 1644 is connected to the first end of the second circuit 164; a fourth resistor 1646, the first end of the fourth resistor 1646 is connected to the first end of the second circuit 164, and the second end of the fourth resistor 1646 is grounded.
[0077] In another optional embodiment, when the power supply is disconnected from the switch circuit, the first capacitor is discharged through the diode and the fourth resistor, so that the voltage across the first capacitor is reduced, so as to prepare for the power supply to start again. When the power supply is reconnected to the switch circuit, the power supply charges the first capacitor through the first end of the switch circuit. Since the voltage across the capacitor cannot change suddenly, the voltage across the first capacitor gradually increases from 0. Before the voltage rises to the power supply voltage, the switch circuit in the device is turned on, so that the power supply can supply power to the control device, thereby maintaining the normal operation of the load.
[0078] Optionally, the system also includes: a second capacitor, a first end of the second capacitor is connected to the first end of the control device, a second end of the second capacitor is connected to the second end of the control device, the first end of the control device is connected to a DC power supply, and the second end of the control device is grounded.
[0079] In an optional embodiment, if Figure 2 As shown, the system further includes: a second capacitor 20, a first end of the second capacitor 20 is connected to a second end of the control device 14, a first end of the control device 14 is connected to a DC power supply 22, and a second end of the control device 14 is grounded. The second capacitor can be a filter capacitor, which can play a filtering role in the system. Filtering is to smooth the rectified AC pulses to prevent the control device from experiencing voltage instability.
[0080] like Figure 3 The diagram shows the circuit principle; the J1 terminal is connected to the power supply, such as a battery; the electronic switch Q1 can be a transistor or a MOS transistor, and is a PNP transistor in the diagram, one end of which is connected to the power supply and the other end is connected to the control system, such as the power port of U1; R3, Q2, and R2 form a self-locking circuit; C1, D1, and R4 form a starting circuit.
[0081] like Figure 4 The figure shows the schematic diagram of the startup circuit. When the power is just connected, the power charges C1 through the emitter junction of Q1 via R1. Due to the characteristic that the voltage across the capacitor cannot change suddenly, the voltage of C1 gradually increases from 0. Before it rises to the power supply voltage, the transistor Q1 remains on.
[0082] like Figure 5The figure shows a schematic diagram of a self-locking circuit; after the chip is reset during the startup process, the output control signal controls the transistor Q2 to turn on and pull down the base of Q1, keeping Q1 turned on to form a self-locking power supply.
[0083] Example 2
[0084] According to an embodiment of the present invention, a power control method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0085] The method provided in the above embodiment of the present invention can be executed by the power control system in the above embodiment. The specific implementation scheme and preferred application scenario are the same as those in the above embodiment and will not be described in detail here.
[0086] Figure 6 is a flow chart of a power control method according to an embodiment of the present invention. Figure 6 As shown, the method comprises the following steps:
[0087] Step S602, outputting a preset signal through a control device or a power supply;
[0088] Step S604, controlling the working state of the switch circuit based on a preset signal by the control circuit;
[0089] Step S606, when the switch circuit is in the first working state, supplying power to the control device through the power supply;
[0090] Step S608: When the switch circuit is in the second working state, stop supplying power to the control device through the power supply.
[0091] Optionally, the preset signal includes at least one of the following: a first signal, a second signal, the first signal being a signal output by the control device, and the second signal being a signal output by the power supply, and controlling the working state of the switching circuit based on the preset signal through the control circuit, including: controlling the switching circuit to be in the second working state based on the first signal through the first circuit in the control circuit; controlling the switching circuit to be in the first working state based on the second signal through the second circuit in the control circuit.
[0092] Optionally, controlling the switch circuit to be in the second working state based on the first signal by the first circuit in the control circuit includes: controlling the second switch device in the first circuit to be in the second working state based on the first signal by the first circuit; and controlling the first switch device in the switch circuit to be in the second working state based on the second working state.
[0093] Optionally, the switch circuit is controlled to be in the first working state based on the second signal by the second circuit in the control circuit, including: controlling the power supply to charge the first capacitor in the second circuit based on the first signal, wherein the voltage of the first capacitor increases based on the charge amount of the first capacitor; when the voltage of the first capacitor reaches a second preset voltage, controlling the switch circuit to be in the first working state based on the second signal by the second circuit in the control circuit.
[0094] Optionally, before the control device outputs a preset signal, the method further includes: determining through the control device whether the standby time reaches a preset time; and outputting a first signal through the control device when the control device determines that the standby time reaches the preset time.
[0095] The preset duration in the above steps is set by the user and can be 10 days or 30 days.
[0096] In an optional embodiment, if the load has not been running within a preset time period, it means that the load will not be used for a long time. In order to avoid consuming more electricity, a first signal can be output by the control device to control the switch circuit to disconnect, so that the power supply stops supplying power to the control device.
[0097] Optionally, before outputting a preset signal through the power supply, the method further includes: when the power supply is connected to the switching circuit, outputting a second signal through the power supply.
[0098] The second signal in the above step may be a current signal.
[0099] In an optional embodiment, when the power supply is connected to the switch circuit, it indicates that the control device needs to be powered on. At this time, the power supply outputs a current signal to turn on the switch circuit, so that the power supply can supply power to the control device.
[0100] In another optional embodiment, the battery at the power supply end can be in a pluggable form, such as an installation form similar to a shared power bank, which can be popped out by pressing once and entered by pressing again, so as to facilitate user operation.
[0101] Optionally, when the power supply is connected to the switching circuit, before controlling the power supply to output the second signal, the method also includes: determining the target state of the power supply through the voltage of the first capacitor in the second circuit; when the voltage of the first capacitor reaches a first preset voltage, determining the target state of the power supply to be a first state through the second circuit, wherein the first state is used to characterize that when the power supply is connected to the switching circuit, the power supply is controlled to output the second signal; when the voltage of the first capacitor does not reach the first preset voltage, determining the target state of the power supply to be a second state through the second circuit, wherein the second state is used to characterize that when the power supply is connected to the switching circuit, the power supply is prohibited from outputting the second signal.
[0102] The target state in the above steps is used to indicate whether the power supply can supply power. The first preset voltage and the second preset voltage in the above steps can be the voltage values of the first capacitor when the power supply can supply power measured by experiments. For example, the first preset voltage can be 0.
[0103] In an optional embodiment, whether the power supply can be supplied can be determined by the voltage of the first capacitor in the second circuit. When the voltage of the first capacitor reaches the first preset voltage, the second circuit can determine that the power supply can supply power. When the voltage of the first capacitor does not reach the first preset voltage, the second circuit can determine that the power supply does not meet the standard for supplying power, that is, the power supply cannot supply power at this time.
[0104] In another optional embodiment, when the voltage of the first capacitor reaches the first preset voltage, the switch circuit can be turned on, and the power supply can supply power to the control device. When the voltage of the first capacitor does not reach the preset voltage, the switch circuit is still in a disconnected state, and the power supply cannot supply power to the control device.
[0105] Combine the following Figure 7 A preferred embodiment of the present invention is described in detail. Figure 7 The energy-saving control method is shown, and the method may include the following steps:
[0106] Step S701, whether to be in standby mode, if yes, execute step S702, if no, execute step S705;
[0107] Step S702, standby timing;
[0108] Step S703, whether the preset time is reached, if yes, execute step S704, if no, execute step S701;
[0109] Step S704, close the self-locking and self-power off;
[0110] Step S705, maintaining self-locking.
[0111] Specifically, after the whole machine enters standby mode, the MCU starts timing and records the standby time. When the preset time is reached, for example, the standby time reaches 10 days or 30 days, the MCU outputs a low level, the transistor Q2 is cut off, the base voltage of the transistor Q1 changes from a low level to a high level, Q1 changes from an on state to an off state, and the control system is powered off; because the base voltage of Q1 is always maintained at a high level at this time, Q1 is always in the off state, thereby achieving the purpose of powering off the power supply and control system and achieving ultra-low power consumption.
[0112] After entering the ultra-low standby power consumption, if you want to reactivate the system, you need to unplug the power supply from the J1 port, plug it in again, and restart the system so that the system can be powered on again. The specific process and principle of restarting are as follows: When the power supply is unplugged from the J1 port, C1 discharges through D1 and R4, and the voltage at the C1 end decreases, so as to prepare for re-insertion and restart. When the power supply is re-connected to J1 again, the power supply charges C1 through the emitter junction of Q1 through R1. Due to the characteristic that the voltage across the capacitor cannot change suddenly, the voltage of C1 gradually increases from 0, and the transistor Q1 remains turned on during the period before it increases to the power supply voltage. If the back-end control system is powered on, the MCU is reset. After the MCU is reset successfully, the output control signal controls Q2 to turn on, pulls down the base of Q1, and Q1 turns on to form a closed-loop self-locking.
[0113] Example 3
[0114] According to an embodiment of the present invention, a computer-readable storage medium is further provided. The computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the power control method in the above-mentioned embodiment 2.
[0115] Example 4
[0116] According to an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the power control method in the above-mentioned embodiment 2 is executed when the program is run.
[0117] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0118] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0119] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0120] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0121] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0122] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0123] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A power supply control system, characterized in that: include: a switch circuit, wherein a first end of the switch circuit is connected to a power source, a second end of the switch circuit is connected to a first end of a control device, when the switch circuit is in a first working state, the power source supplies power to the control device, and when the switch circuit is in a second working state, the power source stops supplying power to the control device; a control circuit, wherein a first end of the control circuit is connected to a third end of the switch circuit, a second end of the control circuit is connected to a second end of the control device, and a third end of the control circuit is connected to a first end of the switch circuit, wherein the control circuit is used to control the working state of the switch circuit based on a preset signal output by the control device or the power supply, wherein the preset signal includes at least one of the following: a first signal and a second signal, wherein the first signal is a signal output by the control device, and the second signal is a signal output by the power supply; Wherein, the control circuit includes: a first circuit, a first end of the first circuit is connected to the first end of the control circuit, a second end of the first circuit is connected to the second end of the control circuit, and the first circuit is used to control the working state of the switch circuit to the second working state based on the first signal; a second circuit, a first end of the second circuit is connected to the third end of the control circuit, a second end of the second circuit is connected to the first end of the control circuit, and the second circuit is used to control the working state of the switch circuit to the first working state based on the second signal.
2. The system according to claim 1, characterized in that The switch circuit comprises: A first switching device, wherein a first end of the first switching device is connected to a first end of the switching circuit, a second end of the first switching device is connected to a second end of the switching circuit, and a third end of the first switching device is connected to a third end of the switching circuit.
3. The system according to claim 2, characterized in that The first switching device comprises: A first transistor, wherein the emitter of the first transistor is connected to the first end of the switch circuit, the collector of the first transistor is connected to the second end of the switch circuit, and the base of the first transistor is connected to the third end of the switch circuit.
4. The system according to claim 2, characterized in that The first switching device comprises: A first field effect transistor, wherein a source of the field effect transistor is connected to a first end of the switch circuit, a drain of the field effect transistor is connected to a second end of the switch circuit, and a gate of the field effect transistor is connected to a third end of the switch circuit.
5. The system according to claim 2, characterized in that The switch circuit further comprises: The first resistor is connected in series between the third terminal of the first switch device and the third terminal of the switch circuit.
6. The system according to claim 1, characterized in that The first circuit comprises: A second switch device, wherein a first end of the second switch device is connected to a first end of the first circuit, a second end of the second switch device is connected to a second end of the first circuit, and a third end of the second switch device is grounded.
7. The system according to claim 6, characterized in that The second switching device comprises: A second triode, wherein the collector of the second triode is connected to the first end of the first circuit, the base of the second triode is connected to the second end of the first circuit, and the emitter of the second triode is grounded.
8. The system according to claim 6, characterized in that The second switching device comprises: A second field effect transistor, wherein a drain of the second field effect transistor is connected to the first end of the first circuit, a gate of the second field effect transistor is connected to the second end of the first circuit, and a source of the second field effect transistor is grounded.
9. The system according to claim 6, characterized in that The first circuit further comprises: a second resistor connected in series between the second end of the first circuit and the second end of the second switch device; A third resistor is connected in series between the first end of the first circuit and the first end of the second switch device.
10. The system according to claim 1, characterized in that The second circuit comprises: a first capacitor, wherein a first end of the first capacitor is connected to a second end of the second circuit, and a second end of the first capacitor is grounded; a diode, wherein an anode of the diode is connected to the second end of the second circuit, and a cathode of the diode is connected to the first end of the second circuit; A fourth resistor, wherein a first end of the fourth resistor is connected to the first end of the second circuit, and a second end of the fourth resistor is grounded.
11. The system according to claim 1, characterized in that The system further comprises: A second capacitor, wherein a first end of the second capacitor is connected to a first end of the control device, a second end of the second capacitor is connected to a second end of the control device, the first end of the control device is connected to a DC power supply, and the second end of the control device is grounded.
12. A power control method, applied to the power control system as claimed in claim 1, characterized in that: include: Output a preset signal via a control device or power supply; Controlling the working state of the switch circuit based on the preset signal by the control circuit; When the switch circuit is in the first working state, supplying power to the control device through a power supply; When the switch circuit is in the second working state, stopping supplying power to the control device through the power supply; The preset signal includes at least one of the following: a first signal and a second signal, wherein the first signal is a signal output by the control device, and the second signal is a signal output by the power supply, and the control circuit controls the working state of the switch circuit based on the preset signal, including: controlling the switch circuit to be in the second working state based on the first signal by a first circuit in the control circuit; The switch circuit is controlled to be in the first working state based on the second signal by a second circuit in the control circuit.
13. The method according to claim 12, characterized in that Controlling the switch circuit to be in the second working state based on the first signal by a first circuit in the control circuit includes: Based on the first signal, controlling, by the first circuit, a second switch device in the first circuit to be in the second working state; Based on the second working state, the first switching device in the switching circuit is controlled to be in the second working state.
14. The method according to claim 12, characterized in that Controlling the switch circuit to be in the first working state based on the second signal by a second circuit in the control circuit includes: controlling the power supply to charge a first capacitor in the second circuit based on the first signal through the second circuit, wherein a voltage of the first capacitor increases based on a charge amount of the first capacitor; When the voltage of the first capacitor reaches a second preset voltage, the second circuit in the control circuit controls the switch circuit to be in the first working state based on the second signal.
15. The method according to claim 12, characterized in that Before outputting the preset signal through the control device, the method further includes: Determining, by the control device, whether the standby time has reached a preset time; When the control device determines that the standby time reaches the preset time, the control device outputs a first signal.
16. The method according to claim 12, characterized in that Before outputting the preset signal through the power supply, the method further includes: When the power source is connected to the switch circuit, a second signal is output through the power source.
17. The method according to claim 16, characterized in that When the power supply is connected to the switch circuit, before controlling the power supply to output a second signal, the method further includes: determining a target state of the power supply by a voltage of a first capacitor in a second circuit; When the voltage of the first capacitor reaches a first preset voltage, determining, through the second circuit, that the target state of the power supply is a first state, wherein the first state is used to indicate that when the power supply is connected to the switch circuit, the power supply is controlled to output a second signal; When the voltage of the first capacitor does not reach the first preset voltage, the target state of the power supply is determined to be a second state through the second circuit, wherein the second state is used to indicate that when the power supply is connected to the switching circuit, the power supply is prohibited from outputting a second signal.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the power control method according to any one of claims 12 to 17.
19. A processor, characterized in that: The processor is used to run a program, wherein the program executes the power control method according to any one of claims 12 to 17 when running.
Citation Information
Patent Citations
Power source control method, circuit and electrical device
CN104270003A
Power supply control system
CN214540445U