Power supply circuit and ZIGBEE gateway
By combining rechargeable and non-rechargeable batteries in the ZIGBEE gateway and using a voltage comparator to automatically switch power supplies, the problem of rapid battery drain is solved, extending the device's battery life and reducing maintenance costs and the risk of data loss.
Patent Information
- Application Number
- CN202423041644.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2034-12-10
AI Technical Summary
When the ZIGBEE gateway is powered by battery in an environment without mains power, the battery power is consumed too quickly, which cannot meet the needs of long-term use. Frequent battery replacement increases maintenance costs and causes device downtime and data loss.
It combines rechargeable and non-rechargeable batteries, compares battery voltages using a voltage comparator and automatically switches power supply, utilizes solar photovoltaic panels for charging, and rationally sets battery capacity to extend battery life.
It enables long-term power supply in environments without mains power, reduces battery replacement frequency, lowers maintenance costs, and avoids data loss during equipment downtime.
Smart Images

Figure CN223599567U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of power supply circuit, and particularly relates to a power supply circuit and a ZIGBEE gateway. BACKGROUND
[0002] The current ZIGBEE gateway mainly uses commercial power as energy supply, and has not been optimized in terms of energy consumption, so that the battery power consumption is too fast when the battery is used in a non-commercial power environment, and the long-time use requirement in the non-commercial power environment cannot be met.
[0003] If the battery is frequently replaced, it is not only troublesome but also increases the maintenance cost. When the battery is replaced, the device needs to be shut down, so that the data generated during shutdown will be lost. Moreover, the replacement of the new battery will increase the maintenance cost, and the disposal of the waste battery will also increase the maintenance cost.
[0004] In some solutions, the device endurance is prolonged by increasing the battery pack capacity and reducing the device data transmission data amount, but this solution does not fundamentally solve the problem. SUMMARY
[0005] The utility model discloses to solve the problem that some current devices use the battery power supply in the non-commercial power environment and face the battery power consumption too fast, and cannot meet the long-time use requirement, and proposes a power supply circuit, which can solve the above problems.
[0006] In order to solve the above technical problems, the utility model adopts the following technical solutions to realize:
[0007] A power supply circuit, comprising a rechargeable battery and a non-rechargeable battery, further comprising:
[0008] A voltage comparator, the positive input end is connected with the rechargeable battery, and the inverting input end inputs a reference voltage;
[0009] The rechargeable battery is connected with the power supply end through a first switch circuit, and the control end of the first switch circuit is connected with the output end of the voltage comparator through an inverter circuit;
[0010] The non-rechargeable battery is connected with the power supply end through a second switch circuit, and the control end of the second switch circuit is connected with the output end of the voltage comparator.
[0011] In some embodiments, the output end of the voltage comparator is connected with the power supply output end of the rechargeable battery through a first pull-up resistor.
[0012] In some embodiments, the non-rechargeable battery is connected with the second switch circuit through a socket, and the power supply circuit further comprises:
[0013] The reverse connection prevention circuit is connected between the non-rechargeable battery and the second switch circuit, and is disconnected when the non-rechargeable battery is reversely connected.
[0014] In some embodiments, the reverse connection prevention circuit comprises a first PMOS tube, a drain of the first PMOS tube is connected with the non-rechargeable battery, a gate of the first PMOS tube is connected with a ground terminal, and a source of the first PMOS tube is connected with the second switch circuit.
[0015] In some embodiments, the second switch circuit comprises a second PMOS tube, a source of the second PMOS tube is connected with the source of the first PMOS tube, a gate of the second PMOS tube is connected with the output terminal of the voltage comparator, and a drain of the second PMOS tube is used for connecting the power supply terminal.
[0016] In some embodiments, a power switch is further arranged between the reverse connection prevention circuit and the non-rechargeable battery.
[0017] In some embodiments, the inverting circuit comprises an NPN triode, a base of the NPN triode is connected with the output terminal of the voltage comparator, an emitter of the NPN triode is connected with the ground terminal, and a collector of the NPN triode is connected with the first switch circuit.
[0018] In some embodiments, the first switch circuit comprises a third PMOS tube, a source of the third PMOS tube is connected with the rechargeable battery, a gate of the third PMOS tube is connected with the collector of the NPN triode, and a drain of the third PMOS tube is used for connecting the power supply terminal.
[0019] In some embodiments, the power supply circuit further comprises a feedback circuit, an input terminal of the feedback circuit is connected with the output terminal of the voltage comparator, and an output terminal of the feedback circuit is used for connecting a main controller.
[0020] The utility model discloses simultaneously proposes a kind of ZIGBEE gateway, including main controller, still including any one of the power supply circuit described in the foregoing, the power supply terminal of the main controller is connected with the power supply terminal of the power supply circuit.
[0021] Compared with the prior art, the power supply circuit of the utility model, by setting rechargeable battery and non-rechargeable battery, voltage comparator compares the output voltage of rechargeable battery, and automatically switches output power according to the comparison result. When the rechargeable battery is sufficient, the rechargeable battery is preferentially used to supply power, and the non-rechargeable battery is automatically switched to supply power when the rechargeable battery is depleted, meeting the long-term use demand in the environment without commercial power. The rechargeable battery can be charged by solar photovoltaic panel.
[0022] In addition, by reasonably setting the capacity collocation of the rechargeable battery and the non-rechargeable battery, the technical problems of high self-discharge effect, poor power retention capability, high initial purchase cost of the rechargeable battery, and limited endurance of the non-rechargeable battery are compensated.
[0023] Other features and advantages of the present application will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0024] Figure 1 is a principle block diagram of an embodiment of the power supply circuit proposed by the present application;
[0025] Figure 2 is a circuit principle diagram of an embodiment of the power supply circuit proposed by the present application;
[0026] Figure 3 is a principle block diagram of an embodiment of the ZIGBEE gateway proposed by the present application. DETAILED DESCRIPTION
[0027] The specific embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0028] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme of the embodiments of the present application will be described clearly and completely below with reference to the drawings of the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0029] It should be noted that in the description of the present application, the terms "up", "down", "left", "right", "vertical", "horizontal", "inner", "outer" and the like indicating the direction or position relationship of the terms are based on the direction or position relationship shown in the drawings, which is only for the convenience of description, and does not indicate or imply that the device or element must have a particular orientation, be constructed and operated in a particular orientation, therefore it cannot be understood as a limitation on the present application. In addition, the terms "first", "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise specifically limited.
[0030] In the present application, unless otherwise explicitly specified and limited, the terms "mounting", "connection", "linking", "fixing" and other terms should be understood in a broad sense, for example, can be fixed connection, can also be detachable connection, or integral; can be mechanical connection, can also be electrical connection; can be directly connected, can also be indirectly connected through an intermediate medium, can be internal communication of two elements or interaction relationship of two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0031] Embodiment one, see Figure 1 As shown in the figure, the embodiment provides a power supply circuit, including a rechargeable battery and a non-rechargeable battery and a voltage comparator, the positive input end of the voltage comparator is connected with the rechargeable battery, the inverting input end of the voltage comparator inputs a reference voltage, for comparing the output voltage of the rechargeable battery with the reference voltage and outputting the comparison result.
[0032] The rechargeable battery is connected with the power supply end through a first switch circuit, and the control end of the first switch circuit is connected with the output end of the voltage comparator through an inverting circuit.
[0033] The non-rechargeable battery is connected with the power supply end through a second switch circuit, and the control end of the second switch circuit is connected with the output end of the voltage comparator.
[0034] The voltage comparator outputs one of the comparison results to the control end of the second switch circuit, for controlling the conduction state of the second switch circuit, and the other one is outputted to the control end of the first switch circuit after being inverted, for controlling the conduction state of the first switch circuit. When the second switch circuit is turned on, the non-rechargeable battery is turned on with the power supply end, for providing voltage output externally. When the first switch is turned on, the rechargeable battery is turned on with the power supply end, for providing voltage output externally.
[0035] The conduction states of the first switch circuit and the second switch circuit are opposite. When the electric quantity of the rechargeable battery is sufficient, the output result of the voltage comparator controls the first switch circuit to be turned on, and the rechargeable battery is preferentially used for power supply. When the electric quantity of the rechargeable battery is lower than the reference voltage, the output result of the voltage comparator is inverted, and at this time the second switch circuit is turned on, and the non-rechargeable battery is automatically switched for power supply. The present scheme can meet the long-time use requirement in the environment without commercial power supply.
[0036] The present embodiment sets the rechargeable battery and the non-rechargeable battery, the non-rechargeable battery has the advantages of low self-discharge effect and good power retention capability, which makes up for the technical problems of high self-discharge effect and poor power retention capability of single use of the rechargeable battery.
[0037] The non-rechargeable battery can be implemented by, but is not limited to, existing batteries such as alkaline batteries, lithium batteries, zinc-carbon batteries, silver oxide batteries, etc.
[0038] In some embodiments, the rechargeable battery can be charged via a solar photovoltaic panel.
[0039] Generally, a combination of solar photovoltaic power and rechargeable batteries can guarantee the daily power consumption of the equipment. Non-rechargeable batteries are only used when sunlight is insufficient or the rechargeable batteries are depleted. This solution significantly extends the equipment's runtime and solves problems such as cumbersome operation due to frequent battery swapping, data loss during equipment downtime, and the cost of replacing old and new batteries.
[0040] like Figure 2 The diagram shown is a circuit schematic of one embodiment of the power supply circuit in this embodiment, including a voltage comparator U1, a rechargeable battery outputting voltage through VDD_BAT, and a non-rechargeable battery outputting voltage through VDD_LB.
[0041] The output of voltage comparator U1 is connected to the power output terminal VDD_BAT of the rechargeable battery through the first pull-up resistor R15. After the device is powered on, the power output terminal VDD_BAT of the rechargeable battery is provided with a high level through the first pull-up resistor R15 to prevent battery switching due to voltage instability.
[0042] The non-rechargeable battery is connected to the second switching circuit via socket P2. The power circuit also includes a reverse connection protection circuit connected between the non-rechargeable battery and the second switching circuit. When the non-rechargeable battery is connected in reverse, the reverse connection protection circuit is disconnected, protecting the non-rechargeable battery from short circuits. When the non-rechargeable battery is connected correctly, the reverse connection protection circuit is activated, and the non-rechargeable battery outputs voltage normally to the downstream device.
[0043] In some embodiments, such as Figure 2 As shown, the reverse connection protection circuit includes a first PMOS transistor Q1. The drain of the first PMOS transistor Q1 is connected to the non-rechargeable battery through socket P2. The gate of the first PMOS transistor Q1 is connected to ground VS, and the source of the first PMOS transistor Q1 is connected to the second switching circuit. When the non-rechargeable battery is connected normally, its output high level reaches the drain of the first PMOS transistor Q1. At this time, the internal diode of the PMOS transistor is turned on, the source of the PMOS transistor Q1 is at a high level, the first PMOS transistor Q1 is turned on, and the non-rechargeable battery outputs voltage through the first PMOS transistor Q1. When the non-rechargeable battery is connected in reverse, its output high level reaches the gate of the first PMOS transistor Q1. This does not meet the PMOS transistor turn-on condition, the first PMOS transistor Q1 is turned off, and the non-rechargeable battery cannot output voltage through the first PMOS transistor Q1.
[0044] In some embodiments, such as Figure 2As shown, the second switch circuit includes a second PMOS tube Q2, the source of the second PMOS tube Q2 is connected with the source of the first PMOS tube Q1, the gate of the second PMOS tube Q2 is connected with the output end of the voltage comparator U1, and the drain of the second PMOS tube Q2 is used for connecting the power supply end.
[0045] When the voltage comparator outputs high level, the second PMOS tube Q2 is cut off, and the non-rechargeable battery cannot output power supply voltage externally. Otherwise, the second PMOS tube Q2 is turned on, and the non-rechargeable battery can output power supply voltage externally through the power supply end.
[0046] In some embodiments, a power switch SW1 is further arranged between the anti-reverse circuit and the non-rechargeable battery. The power switch SW1 is turned off when the device is not out of the factory, and the power supply does not work.
[0047] In some embodiments, the inverting circuit includes an NPN transistor Q6, the base of the NPN transistor Q6 is connected with the output end of the voltage comparator U1, the emitter of the NPN transistor Q6 is connected with the ground VS, and the collector of the NPN transistor Q6 is connected with the first switch circuit. When the voltage comparator U1 outputs high level, the NPN transistor Q6 is turned on, otherwise, the NPN transistor Q6 is cut off.
[0048] In some embodiments, the first switch circuit includes a third PMOS tube Q3, the source of the third PMOS tube Q3 is connected with the rechargeable battery, the gate of the third PMOS tube Q3 is connected with the collector of the NPN transistor Q6, and the drain of the third PMOS tube is used for connecting the power supply end. When the voltage comparator U1 outputs high level, the NPN transistor Q6 is turned on, the gate of the third PMOS tube Q3 is pulled down to low level, the third PMOS tube Q3 is turned on, and the rechargeable battery is used for outputting power supply voltage externally through the power supply end. Otherwise, the third PMOS tube Q3 is cut off.
[0049] In some embodiments, the power supply circuit further includes a feedback circuit, the input end of the feedback circuit is connected with the output end of the voltage comparator, and the output end is used for connecting the main controller. The feedback circuit is used for feeding back the result output by the voltage comparator to the main controller, and the main controller can judge whether the current is powered by the rechargeable battery or the non-rechargeable battery.
[0050] In some embodiments, the power supply circuit further includes a voltage buffer U14, the output end of the voltage comparator U1 is connected with the second switch circuit through the voltage buffer U14, the voltage buffer U14 outputs high level VDD_LB when the voltage comparator U1 outputs high level, the voltage buffer U14 outputs low level VS when the voltage comparator U1 outputs low level, and the voltage comparator U1 is used for providing the working state point of the second PMOS tube Q2.
[0051] Embodiment two, the utility model discloses a kind of ZIGBEE gateway simultaneously, as shown in Fig. Figure 3 As shown, including main controller, further including power supply circuit, the power supply end of main controller is connected with the power supply end of power supply circuit, and power supply circuit is powered to main controller.
[0052] The specific power supply principle of power supply circuit can be referred to in embodiment one, and will not be repeated here.
[0053] Of course, the above description is not a limitation of the utility model, and the utility model is not limited to the above examples, and changes, modifications, additions or replacements made by ordinary skilled in the art within the essential scope of the utility model should also belong to the protection scope of the utility model.
Claims
1. A power supply circuit, characterized by comprising: The power supply circuit comprises a rechargeable battery and a non-rechargeable battery, and further comprises: a voltage comparator, a positive input terminal of which is connected with the rechargeable battery, and a reference voltage is input into a negative input terminal of the voltage comparator; the rechargeable battery is connected with a power supply terminal through a first switch circuit, a control terminal of the first switch circuit is connected with an output terminal of the voltage comparator through an inverter circuit; the non-rechargeable battery is connected with the power supply terminal through a second switch circuit, and a control terminal of the second switch circuit is connected with the output terminal of the voltage comparator.
2. The power supply circuit of claim 1, wherein, an output terminal of the voltage comparator is connected with a power output terminal of the rechargeable battery through a first pull-up resistor.
3. The power supply circuit of claim 1, wherein, the non-rechargeable battery is connected with the second switch circuit through a socket, and the power supply circuit further comprises: a reverse connection prevention circuit, which is connected between the non-rechargeable battery and the second switch circuit, and is disconnected when the non-rechargeable battery is reversely connected.
4. The power supply circuit of claim 3, wherein, the reverse connection prevention circuit comprises a first PMOS transistor, a drain of the first PMOS transistor is connected with the non-rechargeable battery, a gate of the first PMOS transistor is connected with a ground terminal, and a source of the first PMOS transistor is connected with the second switch circuit.
5. The power supply circuit of claim 4, wherein, the second switch circuit comprises a second PMOS transistor, a source of the second PMOS transistor is connected with the source of the first PMOS transistor, a gate of the second PMOS transistor is connected with the output terminal of the voltage comparator, and a drain of the second PMOS transistor is used for connecting the power supply terminal.
6. The power supply circuit of claim 3, wherein, a power switch is further arranged between the reverse connection prevention circuit and the non-rechargeable battery.
7. The power supply circuit according to any one of claims 1 to 6, characterized by, the inverter circuit comprises an NPN transistor, a base of the NPN transistor is connected with the output terminal of the voltage comparator, an emitter of the NPN transistor is connected with the ground terminal, and a collector of the NPN transistor is connected with the first switch circuit.
8. The power supply circuit of claim 7, wherein, the first switch circuit comprises a third PMOS transistor, a source of the third PMOS transistor is connected with the rechargeable battery, a gate of the third PMOS transistor is connected with the collector of the NPN transistor, and a drain of the third PMOS transistor is used for connecting the power supply terminal.
9. The power supply circuit according to any one of claims 1 to 6, characterized by, the power supply circuit further comprises a feedback circuit, an input terminal of the feedback circuit is connected with the output terminal of the voltage comparator, and an output terminal of the feedback circuit is used for connecting a main controller.
10. A ZIGBEE gateway comprising a host controller, characterized in that, the power supply circuit comprises the main controller, and a power supply terminal of the main controller is connected with the power supply terminal of the power supply circuit.