Charging and discharging circuits, power management equipment and power consumption systems

By designing a charge and discharge circuit, and automatically managing the power supply status of external power supply and batteries using detection and control signals, the problems of cumbersome power management operations and low reliability in the prior art are solved, and automated and cost-reduced power management is achieved.

CN110729803BActive Publication Date: 2024-11-19SHENZHEN JIAYU MECHATRONIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911232937.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-04
Publication Date
2024-11-19
Estimated Expiration
2039-12-04

AI Technical Summary

Technical Problem

In the prior art, power management requires manual switching to battery power when the external power supply is powered off, which is cumbersome, costly, and low reliability.

Method used

A charging and discharging circuit is designed, including an external power interface, a battery interface, a detection interface and a control interface. Using diodes, field effect tubes and transistors and other components, the power outage detection signal is output through the detection interface and the control interface receives the discharge control signal, and automatically Determine that the external power supply is powered off and control the battery to discharge to the external power supply to realize charging, discharging and power outage management without manual operation.

Benefits of technology

It improves the reliability of power management, reduces costs, and realizes automatic power management without manual operation, enhancing the automation and safety of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110729803B_ABST
    Figure CN110729803B_ABST
Patent Text Reader

Abstract

The present disclosure proposes a charging and discharging circuit, a power management device and a power consumption system, which relate to the field of electronic circuits. In the circuit, an external power supply interface is respectively connected to the first end of a first resistor and the negative electrode of a first diode, the second end of the first resistor and the positive electrode of the first diode are both connected to the negative electrode of a voltage-stabilizing diode, the positive electrode of the voltage-stabilizing diode is connected to the base of a first transistor, the collector of the first transistor is connected to the detection interface and the emitter is grounded, the positive electrode of the first diode is also connected to the drain of a field effect transistor, the source of the field effect transistor is respectively connected to the first end of a second resistor and a battery interface, the gate of the field effect transistor is respectively connected to the second end of the second resistor and the collector of the second transistor, the base of the second transistor is connected to the first end of a third resistor and the emitter is grounded, and the second end of the third resistor is connected to a control interface. The present disclosure can improve the reliability of power management and reduce costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic circuits, and in particular to charging and discharging circuits, power management equipment, and power consumption systems. Background Art

[0002] With the development of science and technology, electrical equipment such as gate systems have been widely used in various fields. Electrical equipment can be powered by an external power supply to work, but the external power supply may be cut off, so the power management of electrical equipment has received more and more attention.

[0003] In the prior art, an electric device can be connected in parallel with an external power source and a battery, and then a switch is used manually to select whether the external power source or the battery supplies power to the electric device.

[0004] However, since it is necessary to rely on manual operation to switch to battery power when it is determined that the external power supply is cut off, the operation is cumbersome, not only the cost is high, but also the reliability is low. Summary of the invention

[0005] The purpose of the present disclosure is to provide a charging and discharging circuit, a power management device and a power consumption system to improve the reliability of power management and reduce costs.

[0006] In order to achieve the above objectives, the technical solutions adopted in this disclosure are as follows:

[0007] In a first aspect, the present disclosure provides a charge and discharge circuit, the circuit comprising an external power interface, a battery interface, a detection interface, a control interface, a first diode, a field effect transistor, a first resistor, a second resistor, a third resistor, a first transistor, a second transistor and a voltage regulator diode, the detection interface is used to output a power-off detection signal, the control interface is used to receive a discharge control signal, and the discharge control signal is used to control the battery interface to discharge to the external power interface;

[0008] The external power supply interface is respectively connected to the first end of the first resistor and the cathode of the first diode, the second end of the first resistor and the anode of the first diode are both connected to the cathode of the voltage stabilizing diode, the anode of the voltage stabilizing diode is connected to the base of the first transistor, the collector of the first transistor is connected to the detection interface and the emitter is grounded;

[0009] The anode of the first diode is also connected to the drain of the field effect transistor, the source of the field effect transistor is respectively connected to the first end of the second resistor and the battery interface, the gate of the field effect transistor is respectively connected to the second end of the second resistor and the collector of the second transistor, the base of the second transistor is connected to the first end of the third resistor and the emitter is grounded, and the second end of the third resistor is connected to the control interface.

[0010] Optionally, the circuit also includes a second diode and a third diode, the second diode is connected in series with the first resistor, the third diode is connected in series with the voltage-stabilizing diode, the second end of the first resistor is connected to the positive electrode of the second diode, the negative electrode of the second diode and the positive electrode of the first diode are both connected to the positive electrode of the third diode, and the negative electrode of the third diode is connected to the negative electrode of the voltage-stabilizing diode.

[0011] Optionally, the circuit further includes a fourth resistor, one end of which is connected between the base of the first transistor and the anode of the voltage-stabilizing diode, and the other end of which is connected to the emitter of the first transistor.

[0012] Optionally, the circuit also includes a fourth diode, which is connected in series to the collector end of the second transistor, the gate of the field effect transistor is respectively connected to the second end of the second resistor and the positive electrode of the fourth diode, and the cathode of the fourth diode is connected to the collector of the second transistor.

[0013] Optionally, the circuit further includes a fifth resistor, one end of the fifth resistor is connected between the base of the second transistor and the first end of the third resistor, and the other end of the fifth resistor is connected to the emitter of the second transistor.

[0014] In a second aspect, the present disclosure further provides a power management device, wherein the device is provided with a circuit as described in any one of the first aspects;

[0015] When the power management device determines that the external power interface is powered off according to the power-off detection signal of the detection interface, the power management device sends the discharge control signal to the control interface, and the discharge control signal is used to control the battery interface to discharge to the external power interface.

[0016] In a third aspect, the present disclosure further proposes an electricity consumption system, which includes an external power supply, an electric device, a battery and the power management device as described in the second aspect, wherein the external power supply and the electric device are respectively connected to the external power supply interface, and the battery is connected to the battery interface.

[0017] Optionally, the electrical equipment includes a gate system.

[0018] In the embodiment of the present disclosure, the charge and discharge circuit 100 includes an external power supply interface 101, a battery interface 102, a detection interface 103, a control interface 104, a first diode 105, a field effect transistor 106, a first resistor 107, a second resistor 108, a third resistor 109, a first transistor 110, a second transistor 111 and a voltage-stabilizing diode 112. The detection interface 103 is used to output a power-off detection signal, and the control interface 104 is used to receive a discharge control signal. The external power supply interface 101 is respectively connected to the first end of the first resistor 107 and the negative electrode of the first diode 105, and the second end of the first resistor 107 and the positive electrode of the first diode 105 are both connected to The cathode of the voltage-regulating diode 112 is connected, the anode of the voltage-regulating diode 112 is connected to the base of the first transistor 110, the collector of the first transistor 110 is connected to the detection interface 103 and the emitter is grounded, the anode of the first diode 105 is also connected to the drain of the field effect transistor 106, the source of the field effect transistor 106 is respectively connected to the first end of the second resistor 108 and the battery interface, the gate of the field effect transistor 106 is respectively connected to the second end of the second resistor 108 and the collector of the second transistor 111, the base of the second transistor 111 is connected to the first end of the third resistor 109 and the emitter is grounded, and the second end of the third resistor 109 is connected to the control interface 104. Since the power-off detection signal of the detection interface 103 can also be used to determine whether the external power supply 200 is powered off, and the control interface 104 can receive a discharge control signal, when the voltage of the external power supply interface 101, that is, the external power supply 200 is normal, power can be supplied to the battery interface 102 to charge the battery 400, and when the external power supply 200 is powered off, it can also be discharged to the external power supply interface 101 in time based on the discharge control signal, thereby realizing the detection of charging, discharging and power off without manual operation, improving the reliability of power management and reducing costs.

[0019] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or be understood by practicing the present disclosure. The purpose and other advantages of the present disclosure can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solution of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present disclosure and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 A schematic diagram of the structure of a charging and discharging circuit provided by the present disclosure is shown;

[0022] Figure 2 A schematic diagram showing the structure of another charging and discharging circuit provided by the present disclosure is shown;

[0023] Figure 3 A schematic diagram showing the structure of another charging and discharging circuit provided by the present disclosure is shown;

[0024] Figure 4 A schematic diagram showing the structure of another charging and discharging circuit provided by the present disclosure is shown;

[0025] Figure 5 A schematic diagram showing the structure of another charging and discharging circuit provided by the present disclosure is shown;

[0026] Figure 6 A schematic diagram of a module of a power management device provided by the present disclosure is shown;

[0027] Figure 7 A module schematic diagram of an electricity consumption system provided by the present disclosure is shown.

[0028] icon:

[0029] 100-charging and discharging circuit; 101-external power supply interface; 102-battery interface; 103-detection interface; 104-control interface; 105-first diode; 106-field effect transistor; 107-first resistor; 108-second resistor; 109-third resistor; 110-first triode; 111-second triode; 112-voltage-stabilizing diode; 113-second diode; 114-third diode; 115-fourth resistor; 116-fourth diode; 117-fifth resistor; 200-external power supply, 300-electrical equipment; 400-battery; 500-power management equipment. DETAILED DESCRIPTION

[0030] The technical solutions in the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings in the present disclosure.

[0031] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0032] Before explaining the present disclosure in detail, the application scenarios of the present disclosure are first introduced.

[0033] Please refer to Figure 1, which is a structural diagram of a charge and discharge circuit 100 provided by the present disclosure. The charge and discharge circuit 100 includes an external power interface 101, a battery interface 102, a detection interface 103, a control interface 104, a first diode 105, a field effect transistor 106, a first resistor 107, a second resistor 108, a third resistor 109, a first triode 110, a second triode 111 and a voltage-stabilizing diode 112. The detection interface 103 is used to output a power-off detection signal, and the control interface 104 is used to receive a discharge control signal. The external power interface 101 is respectively connected to the first end of the first resistor 107 and the negative electrode of the first diode 105, and the second end of the first resistor 107 and the positive electrode of the first diode 105 are both connected to the voltage-stabilizing diode The cathode of the first transistor 110 is connected to the cathode of the first transistor 111, the anode of the voltage-stabilizing diode 112 is connected to the base of the first transistor 110, the collector of the first transistor 110 is connected to the detection interface 103 and the emitter is grounded, the anode of the first diode 105 is also connected to the drain of the field effect transistor 106, the source of the field effect transistor 106 is respectively connected to the first end of the second resistor 108 and the battery interface, the gate of the field effect transistor 106 is respectively connected to the second end of the second resistor 108 and the collector of the second transistor 111, the base of the second transistor 111 is connected to the first end of the third resistor 109 and the emitter is grounded, and the second end of the third resistor 109 is connected to the control interface 104.

[0034] The operation of the electrical device 300 requires electrical energy, and both the battery 400 and the external power supply 200 can provide electrical energy, and the battery 400 may need to be charged. Therefore, when the external power supply 200 works normally, it can supply power to the electrical device 300, and of course it can also charge the battery 400. When the external power supply 200 is powered off, the battery 400 can supply power to the electrical device 300. In order to realize power management functions such as charging, discharging and power failure, improve the reliability of power management and reduce costs, power management can be performed through the charging and discharging circuit 100 provided in the present disclosure.

[0035] The external power interface 101 can be used to access the external power supply 200 . The external power supply 200 and the power-consuming device 300 can be connected in parallel to the external power interface 101 .

[0036] It should be noted that the embodiment of the present disclosure does not specifically limit the type of the external power supply 200 . For example, the external power supply 200 can be used to provide 220V or 380V AC power.

[0037] The battery interface 102 may be used to connect to the battery 400 , wherein the battery 400 may be used to supply power to the powered device 300 when the external power source 200 is powered off.

[0038] The detection interface 103 may be used to output a power-off detection signal, wherein the power-off detection signal may be used to indicate whether the external power supply 200 is powered off, and when the power-off detection signal is at a high level, it may be determined that the external power supply 200 is powered off.

[0039] The control interface 104 may be used to receive a discharge control signal, wherein the discharge control signal may be used to control the battery interface 102 to discharge to the external power interface 101 , and the discharge control signal may be a high level.

[0040] Optionally, the charge and discharge circuit 100 can be set in a power management device 500, which can include a processor (such as a single-chip microcomputer). The detection interface 103 and the control interface 104 can be connected to the processor (such as a single-chip microcomputer). Then, the power management device 500 can detect a power-off detection signal from the detection interface 103 and input a discharge control signal to the control interface 104.

[0041] The first diode 105 can be used to prevent the voltage of the external power interface 101 from being directly input to the battery interface 102 , thereby preventing the battery 400 from being burned.

[0042] The first transistor 110 can be used to convert the electrical signal in the circuit into a power-off detection signal. When the reverse voltage of the voltage-stabilizing diode 112 is close to the breakdown voltage, the voltage at both ends of the voltage-stabilizing diode 112 can be stabilized at the breakdown voltage, thereby playing a stabilizing role. In the embodiment of the present disclosure, the voltage-stabilizing diode 112 can be used to determine whether the voltage of the external power interface 101 reaches the breakdown voltage. According to the actual needs of the charging and discharging circuit, a voltage-stabilizing diode 112 of corresponding specifications is selected, so that when the voltage of the external power interface 101 is normal, the voltage-stabilizing diode 112 is reversely broken down, and the electrical signal passes through the voltage-stabilizing diode 112 to the first transistor 110, so that the first transistor 110 is turned on, and the power-off detection signal is low level; on the contrary, if the external power interface 101 is powered off, the voltage-stabilizing diode 112 will not be reversely broken down, the first transistor 110 will not be turned on, and the power-off detection signal is high level. It can be seen from the above that the first transistor 110 and the voltage-stabilizing diode 112 can together form a power-off detection loop.

[0043] Please continue to refer to Figure 1When the voltage of the external power interface 101 is normal, that is, the external power supply 200 is normal, the first resistor 107, the first transistor 110 and the voltage-stabilizing diode 112 can form a loop, the PN junction of the first transistor 110 is forward-conducted, the voltage-stabilizing diode 112 generates a constant voltage, and the current flows to the battery interface 102 through the field effect transistor 106, thereby charging the battery 400. Among them, the voltage of the voltage-stabilizing diode 112 is lower than the voltage of the battery interface 102 (that is, the voltage of the external power supply 200), the detection interface 103 is at a low level, and the voltage for charging the battery 400 can be the voltage of the voltage-stabilizing diode 112, plus the BE junction voltage drop of the first transistor 110, and then subtracting the diode voltage drop of the field effect transistor 106. When the external power interface 101 is powered off, that is, the external power supply 200 is powered off, the voltage of the battery interface 102 drops, and when the voltage of the external power interface 101 is lower than the voltage of the Zener diode 112, the first transistor 110 is not turned on, and the detection interface 103 is not at a low level (that is, a high level). Then if the control interface 104 is at a high level, the second transistor 111 and the field effect transistor 106 are turned on, and the battery interface 102 supplies power to the external power interface 101 through the field effect transistor 106 and the first diode 105.

[0044] In the embodiment of the present disclosure, the charge and discharge circuit 100 includes an external power supply interface 101, a battery interface 102, a detection interface 103, a control interface 104, a first diode 105, a field effect transistor 106, a first resistor 107, a second resistor 108, a third resistor 109, a first transistor 110, a second transistor 111 and a voltage-stabilizing diode 112. The detection interface 103 is used to output a power-off detection signal, and the control interface 104 is used to receive a discharge control signal. The external power supply interface 101 is respectively connected to the first end of the first resistor 107 and the negative electrode of the first diode 105, and the second end of the first resistor 107 and the positive electrode of the first diode 105 are both connected to The cathode of the voltage-regulating diode 112 is connected, the anode of the voltage-regulating diode 112 is connected to the base of the first transistor 110, the collector of the first transistor 110 is connected to the detection interface 103 and the emitter is grounded, the anode of the first diode 105 is also connected to the drain of the field effect transistor 106, the source of the field effect transistor 106 is respectively connected to the first end of the second resistor 108 and the battery interface, the gate of the field effect transistor 106 is respectively connected to the second end of the second resistor 108 and the collector of the second transistor 111, the base of the second transistor 111 is connected to the first end of the third resistor 109 and the emitter is grounded, and the second end of the third resistor 109 is connected to the control interface 104. Since the power-off detection signal of the detection interface 103 can also be used to determine whether the external power supply 200 is powered off, and the control interface 104 can receive a discharge control signal, when the voltage of the external power supply interface 101, that is, the external power supply 200 is normal, power can be supplied to the battery interface 102 to charge the battery 400, and when the external power supply 200 is powered off, it can also be discharged to the external power supply interface 101 in time based on the discharge control signal, thereby realizing the detection of charging, discharging and power off without manual operation, improving the reliability of power management and reducing costs.

[0045] Optionally, see Figure 2 The charge and discharge circuit 100 also includes a second diode 113 and a third diode 114. The second diode 113 is connected in series with the first resistor 107, and the third diode 114 is connected in series with the voltage-stabilizing diode 112. The second end of the first resistor 107 is connected to the positive electrode of the second diode 113, the negative electrode of the second diode 113 and the positive electrode of the first diode 105 are both connected to the positive electrode of the third diode 114, and the negative electrode of the third diode 114 is connected to the negative electrode of the voltage-stabilizing diode 112.

[0046] In order to prevent the external power supply 200 and the ground from being reversely connected, thereby damaging the components in the loop and improving the safety of the charge and discharge circuit 100 , a second diode 113 connected in series with the first resistor 107 and a third diode 114 connected in series with the voltage regulator diode 112 may be provided.

[0047] It should be noted that the second diode 113 may also be connected in series to the first end of the first resistor 107 .

[0048] When the charge and discharge circuit 100 further includes a second diode 113 and a third diode 114 , the voltage for charging the battery 400 can be the voltage of the voltage-stabilizing diode 112 , plus the BE junction voltage drop of the first transistor 110 and the voltage drop of the third diode 114 , minus the diode voltage drop of the field effect transistor 106 .

[0049] Optionally, see Figure 3 The charge and discharge circuit 100 further includes a fourth resistor 115 , one end of which is connected between the base of the first transistor 110 and the anode of the voltage-stabilizing diode 112 , and the other end of which is connected to the emitter of the first transistor 110 .

[0050] The fourth resistor 115 can be used to limit the current in the loop, thereby improving the safety of the charge and discharge circuit 100 .

[0051] Optionally, see Figure 4 The charge and discharge circuit 100 also includes a fourth diode 116, which is connected in series to the collector end of the second transistor 111. The gate of the field effect transistor 106 is respectively connected to the second end of the second resistor 108 and the positive electrode of the fourth diode 116, and the cathode of the fourth diode 116 is connected to the collector of the second transistor 111.

[0052] In order to prevent the positive and negative electrodes of the battery 400 from being reversely connected and causing damage to the circuit, thereby improving the safety of the charge and discharge circuit 100 , a fourth diode 116 connected in series with the second transistor 111 may be provided.

[0053] Optionally, see Figure 5 The charge and discharge circuit 100 further includes a fifth resistor 117 , one end of which is connected between the base of the second transistor 111 and the first end of the third resistor 109 , and the other end of which is connected to the emitter of the second transistor 111 .

[0054] The fifth resistor 117 can be used to limit the current in the loop, thereby improving the safety of the charge and discharge circuit 100 .

[0055] Please refer to Figure 6 , is a module diagram of a power management device 500 provided by the present disclosure. The power management device 500 can be provided with any of the aforementioned charging and discharging circuits 100. When the power management device 500 determines that the external power interface 101 is powered off according to the power-off detection signal of the detection interface 103, it can send a discharge control signal to the control interface 104, and the discharge control signal is used to control the battery interface 102 to discharge to the external power interface 101.

[0056] The processor in the power management device 500 can be connected to the detection interface 103 and the control interface 104 respectively, and when the power failure detection signal is at a high level, it determines that the external power interface 101 is powered off, thereby outputting a high level to the control interface 104 as a discharge control signal.

[0057] The beneficial effects of the power management device 500 are similar to those of the charge and discharge circuit 100 , and are not described in detail herein.

[0058] Please refer to Figure 7 , is a module schematic diagram of a power consumption system provided by the present disclosure, the system includes an external power supply 200, a power consumption device 300, a battery 400 and a power management device 500 as described above, the external power supply 200 and the power consumption device 300 are respectively connected to the external power supply interface 101, and the battery 400 is connected to the battery interface 102.

[0059] The beneficial effects of the above-mentioned power consumption system are similar to the beneficial effects of the charging and discharging circuit 100, and will not be described in detail here.

[0060] Optionally, the electrical equipment 300 includes a gate system.

[0061] When the power-consuming device 300 includes a gate system, the gate system can be powered and the battery 400 can be charged when the external power supply 200 is normal, and when the external power supply 200 is powered off, the gate system can be powered by the battery 400 in time, so that the gate system can be opened in time when the external power supply 200 is powered off. After the gate is opened, the discharge control signal can no longer be output to the control interface, thereby stopping the battery 400 from supplying power and powering off the gate system.

[0062] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0063] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A charging and discharging circuit, characterized in that: The circuit includes an external power interface, a battery interface, a detection interface, a control interface, a first diode, a field effect transistor, a first resistor, a second resistor, a third resistor, a first transistor, a second transistor and a voltage-stabilizing diode, wherein the detection interface is used to output a power-off detection signal, and the control interface is used to receive a discharge control signal, and the discharge control signal is used to control the battery interface to discharge to the external power interface; The external power supply interface is respectively connected to the first end of the first resistor and the cathode of the first diode, the second end of the first resistor and the anode of the first diode are both connected to the cathode of the voltage stabilizing diode, the anode of the voltage stabilizing diode is connected to the base of the first transistor, the collector of the first transistor is connected to the detection interface and the emitter is grounded; The anode of the first diode is also connected to the drain of the field effect tube, the source of the field effect tube is respectively connected to the first end of the second resistor and the battery interface, the gate of the field effect tube is respectively connected to the second end of the second resistor and the collector of the second triode, the base of the second triode is connected to the first end of the third resistor and the emitter is grounded, and the second end of the third resistor is connected to the control interface; The circuit also includes a second diode and a third diode, the second diode is connected in series with the first resistor, the third diode is connected in series with the voltage-stabilizing diode, the second end of the first resistor is connected to the positive electrode of the second diode, the negative electrode of the second diode and the positive electrode of the first diode are both connected to the positive electrode of the third diode, and the negative electrode of the third diode is connected to the negative electrode of the voltage-stabilizing diode.

2. The circuit according to claim 1, characterized in that The circuit further includes a fourth resistor, one end of which is connected between the base of the first transistor and the anode of the voltage-stabilizing diode, and the other end of which is connected to the emitter of the first transistor.

3. The circuit according to claim 1, characterized in that The circuit also includes a fourth diode, which is connected in series to the collector end of the second transistor, the gate of the field effect transistor is respectively connected to the second end of the second resistor and the anode of the fourth diode, and the cathode of the fourth diode is connected to the collector of the second transistor.

4. The circuit according to claim 1, characterized in that The circuit further includes a fifth resistor, one end of which is connected between the base of the second transistor and the first end of the third resistor, and the other end of which is connected to the emitter of the second transistor.

5. A power management device, characterized in that: The device is provided with a circuit as claimed in any one of claims 1 to 4; When the power management device determines that the external power interface is powered off according to the power-off detection signal of the detection interface, the power management device sends the discharge control signal to the control interface, and the discharge control signal is used to control the battery interface to discharge to the external power interface.

6. An electricity system, characterized in that: The system includes an external power source, an electric device, a battery and the power management device as claimed in claim 5, wherein the external power source and the electric device are respectively connected to the external power interface, and the battery is connected to the battery interface.

7. The power system according to claim 6, characterized in that: The electrical equipment includes a gate system.