Battery voltage detection device realized based on comparator
Through the comparator-based battery voltage detection device, the voltage boost module and the comparator module are used for voltage comparison, which solves the problems of circuit complexity and high cost in the existing technology, and achieves accurate measurement and reliability improvement of the battery voltage.
Patent Information
- Application Number
- CN202323091146.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2033-11-16
AI Technical Summary
The existing battery voltage detection device has complex circuits, relies on microcontrollers and programs, has high costs, is unstable in reliability in harsh electromagnetic environments, and is prone to crashes.
Using a comparator-based battery voltage detection device, the battery voltage is increased through the boost module and the first and second comparator modules are used for voltage comparison. The LED light is used to feedback the results, avoiding the need for microcontrollers and digital-to-analog converters. dependence.
It achieves accurate measurement and simple and economical detection of battery voltage, reduces production costs, and improves the reliability of equipment in harsh environments.
Smart Images

Figure CN221650556U
Abstract
Description
Technical Field
[0001] The utility model relates to the field of battery voltage measurement, in particular to a battery voltage detection device based on a comparator. Background Art
[0002] Existing battery voltage detection devices often require a microcontroller with an analog-to-digital converter to implement, and also require microcontroller programming, which has high material and R&D costs. Programming is also required during production, which also has high production costs. At the same time, the reliability of the microcontroller during operation often becomes unstable due to the harsh electromagnetic environment, causing restarts and even crashes.
[0003] Chinese patent CN1158172A "Voltage reference device, voltmeter, battery voltage detection device and wireless communication equipment" discloses a battery voltage detection device that uses digital controller software and a reference power supply, reduces chip area through multiplexing, and dynamically measures the operating voltage. However, the circuit is relatively complex and needs to be adjusted and multiplexed through software, which is costly. Utility Model Content
[0004] In view of this, the utility model proposes a battery voltage detection device based on a comparator, which is used to solve the problem that the circuit for measuring battery voltage in the prior art is too complicated, relies on a microcontroller and a program, and has a high cost.
[0005] The technical solution of the utility model is implemented as follows: a battery voltage detection device based on a comparator is characterized in that the detection device includes a boost module, a first comparator module and a second comparator module;
[0006] The boost module is electrically connected to the first comparator module and the second comparator module, and is used to boost the battery voltage;
[0007] The first comparator module is electrically connected to the second comparator module and is used to compare the battery voltage;
[0008] The second comparator module is electrically connected to the first comparator module and is used for comparing the battery voltage.
[0009] Preferably, the boost module includes a boost chip U3, a MOS tube Q1, a voltage reference U4, resistors R1, R2, R3, R4, capacitors C1, C2, an inductor L1, a battery holder BT1, and a battery BATT;
[0010] Pin 1 and pin 6 of the boost chip U3 are electrically connected to one end of the inductor L1, one end of the capacitor C1, one end of the resistor R3 and the source of the MOS tube Q1, pin 5 of the boost chip U3 is electrically connected to the other end of the inductor L1, pin 4 and pin 2 of the boost chip U3 are electrically connected to one end of the capacitor C2 and one end of the resistor R4, pin 3 of the boost chip U3 is electrically connected to the other end of the capacitor C2, one end of the voltage reference U4, the other end of the capacitor C1, the other end of the resistor R3, the gate of the MOS tube Q1, one end of the resistor R2 and one end of the battery holder, the other end of the voltage reference U4 is electrically connected to the other end of the resistor R4, the drain of the MOS tube Q1 is electrically connected to the other end of the resistor R2, the other end of the battery holder and one end of the resistor R1, and the other end of the resistor R1 is electrically connected to the battery BATT.
[0011] Preferably, the first comparator module includes comparators U1-A, U1-B, U1-C, U1-D, light emitting diodes LED1, LED2, LED3, LED4, resistors R6, R7, R8, R9, R15, R16, R17, R18 and capacitor C3;
[0012] The positive power supply of comparator U1-A is electrically connected to one end of capacitor C3, the positive power supply of comparator U1-A is connected to +3V3 voltage, the other end of capacitor C3 is grounded, the positive electrode of comparator U1-A is electrically connected to one end of resistor R6 and one end of resistor R7, the negative electrode of comparator U1-A is electrically connected to battery BATT, the negative electrode of comparator U1-B, the negative electrode of comparator U1-C, and the negative electrode of comparator U1-D, the output end of comparator U1-A is electrically connected to one end of resistor R15, the other end of resistor R15 is electrically connected to the negative electrode of light-emitting diode LED1, the positive electrode of comparator U1-B is electrically connected to the other end of resistor R7 and one end of resistor R8, and the output end of comparator U1-B is electrically connected to one end of resistor R16. The other end of the resistor R16 is electrically connected to the negative electrode of the light-emitting diode LED2, the anode of the comparator U1-C is electrically connected to the other end of the resistor R8 and one end of the resistor R9, the output end of the comparator U1-C is electrically connected to one end of the resistor R17, the other end of the resistor R17 is electrically connected to the negative electrode of the light-emitting diode LED3, the anode of the comparator U1-D is electrically connected to the other end of the resistor R9, the output end of the comparator U1-D is electrically connected to one end of the resistor R18, the other end of the resistor R18 is electrically connected to the negative electrode of the light-emitting diode LED4, the positive electrode of the light-emitting diode LED1, the positive electrode of the light-emitting diode LED2, the positive electrode of the light-emitting diode LED3 and the positive electrode of the light-emitting diode LED4 are connected to the +3V3 voltage.
[0013] Preferably, the second comparator module includes comparators U2-A, U2-B, U2-C, U2-D, light emitting diodes LED5, LED6, LED7, LED8, resistors R10, R11, R12, R13, R14, R19, R20, R21, R22 and capacitor C4;
[0014] The positive power supply of comparator U2-A is electrically connected to one end of capacitor C4, the positive power supply of comparator U2-A is connected to +3V3 voltage, the other end of capacitor C4 is grounded, the positive electrode of comparator U2-A is electrically connected to one end of resistor R10 and one end of resistor R11, the negative electrode of comparator U2-A is electrically connected to battery BATT, the negative electrode of comparator U2-B, the negative electrode of comparator U2-C, and the negative electrode of comparator U2-D, the output end of comparator U2-A is electrically connected to one end of resistor R19, the other end of resistor R19 is electrically connected to the negative electrode of light-emitting diode LED5, the positive electrode of comparator U2-B is electrically connected to the other end of resistor R11 and one end of resistor R12, the output end of comparator U2-B is electrically connected to one end of resistor R20, and the other end of resistor R20 is connected to the negative electrode of light-emitting diode LED6. Electrically connected, the positive electrode of the comparator U2-C is electrically connected to the other end of the resistor R12 and one end of the resistor R13, the output end of the comparator U2-C is electrically connected to one end of the resistor R21, the other end of the resistor R21 is electrically connected to the negative electrode of the light-emitting diode LED7, the positive electrode of the comparator U2-D is electrically connected to the other end of the resistor R13 and one end of the resistor R14, the output end of the comparator U2-D is electrically connected to one end of the resistor R22, the other end of the resistor R22 is electrically connected to the negative electrode of the light-emitting diode LED8, the positive electrode of the light-emitting diode LED5, the positive electrode of the light-emitting diode LED6, the positive electrode of the light-emitting diode LED7 and the positive electrode of the light-emitting diode LED8 are connected to the +3V3 voltage, the negative power supply of the comparator U2-D is electrically connected to the other end of the resistor R14, and the negative power supply of the comparator U2-D is grounded.
[0015] Preferably, the other end of the resistor R9 is electrically connected to the other end of the resistor R10.
[0016] Preferably, the boost chip U3 is a TLV61225DCKT boost chip.
[0017] Preferably, the voltage reference device U4 is a voltage reference device of model TL431.
[0018] Preferably, the comparators U1-A, U1-B, U1-C, and U1-D are four-way comparators of model LM339DB.
[0019] Preferably, the comparators U2-A, U2-B, U2-C, and U2-D are four-way comparators of model LM339DB.
[0020] The battery voltage detection device based on the comparator provided by the utility model has the following beneficial effects compared with the prior art:
[0021] (1) The battery voltage is increased to a reference voltage by a boost module, and then the battery voltage is compared by a first comparator module and a second comparator module after voltage division, and the comparison result is fed back through the state of the LED lamp;
[0022] (2) By corresponding the state of the LED light to different test voltages, the battery voltage can be accurately measured without the need for a microcontroller and a digital-to-analog converter. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 This is a structural diagram of a battery voltage detection device implemented based on a comparator in the utility model;
[0025] Figure 2 This is a circuit wiring diagram of a boost module of a battery voltage detection device implemented based on a comparator in the utility model;
[0026] Figure 3 It is a circuit wiring diagram of the first comparator module of the battery voltage detection device implemented based on the comparator of the utility model;
[0027] Figure 4 It is a circuit wiring diagram of the second comparator module of the battery voltage detection device implemented based on the comparator of the utility model;
[0028] Figure 5 This is a circuit wiring diagram of a first comparator module and a second comparator module of another embodiment of a battery voltage detection device implemented based on a comparator of the utility model. DETAILED DESCRIPTION
[0029] The following will be combined with the implementation of the utility model to clearly and completely describe the technical solutions in the implementation of the utility model. Obviously, the described implementation is only a part of the implementation of the utility model, not all of the implementations. Based on the implementation of the utility model, all other implementations obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0030] A battery voltage detection device based on a comparator is provided, such as Figure 1 As shown, the detection device includes a boost module 1, a first comparator module 2 and a second comparator module 3;
[0031] The boost module 1 is electrically connected to the first comparator module 2 and the second comparator module 3, and is used to boost the battery voltage;
[0032] The first comparator module 2 is electrically connected to the second comparator module 3 and is used to compare the battery voltage;
[0033] The second comparator module 3 is electrically connected to the first comparator module 2 and is used for comparing the battery voltage.
[0034] It should be noted that the battery voltage is increased to a reference voltage by the boost module, and then after voltage division, the battery voltage is compared by the first comparator module and the second comparator module, and the comparison result is fed back through the state of the LED lamp.
[0035] The battery voltage is generally 1.5V, which is connected to the boost chip U3 through the MOS tube Q1. When the battery is connected reversely, the MOS tube Q1 is cut off to protect it. When the positive pole of the battery is connected to the MOS tube Q1, the MOS tube Q1 is turned on and connected to the boost chip U3 to increase the voltage to 3.3V. Then it is connected to the voltage reference U4 to generate a 2.5V voltage reference source. At the same time, 3.3V powers the comparator. The 2.5V reference voltage is divided into 0.9V, 1.0V, 1.1V, 1.2V, 1.3V, 1.4V, 1.6V, 1.8V, 1.9V, 2.1V, 2.2V, 2.3V, 2.4V, 2.5V, 2.6V, 2.7V, 2.8V, 2.9 ... .5V and 1.6V, and then connected to the positive input of the comparator, and the positive pole of the 1.5V battery is connected to the negative input of the comparator, so that the voltage is compared with the voltage divided into 0.9V, 1.0V, 1.1V, 1.2V, 1.3V, 1.4V, 1.5V and 1.6V respectively. When the voltage is higher than the compared voltage, a low level is output, and the indicator light connected to the corresponding output pin is turned on and is always on. When the voltage indicator lights up one by one from low to high, the voltage represented by the highest light indicates the current battery voltage, thereby achieving accurate measurement and indication.
[0036] like Figure 2As shown, the boost module 1 includes a boost chip U3, a MOS tube Q1, a voltage reference U4, resistors R1, R2, R3, R4, capacitors C1, C2, an inductor L1, a battery holder BT1, and a battery BATT;
[0037] Pin 1 and pin 6 of the boost chip U3 are electrically connected to one end of the inductor L1, one end of the capacitor C1, one end of the resistor R3 and the source of the MOS tube Q1, pin 5 of the boost chip U3 is electrically connected to the other end of the inductor L1, pin 4 and pin 2 of the boost chip U3 are electrically connected to one end of the capacitor C2 and one end of the resistor R4, pin 3 of the boost chip U3 is electrically connected to the other end of the capacitor C2, one end of the voltage reference U4, the other end of the capacitor C1, the other end of the resistor R3, the gate of the MOS tube Q1, one end of the resistor R2 and one end of the battery holder, the other end of the voltage reference U4 is electrically connected to the other end of the resistor R4, the drain of the MOS tube Q1 is electrically connected to the other end of the resistor R2, the other end of the battery holder and one end of the resistor R1, and the other end of the resistor R1 is electrically connected to the battery BATT.
[0038] It should be noted that the voltage of a single battery is generally 1.5V. When the battery is installed in the battery holder, the positive pole is connected to the D pole of the MOS tube Q1, and the negative pole of the battery is connected to the G pole of the MOS tube Q1. At this time, the MOS tube Q1 is turned on; when the battery is installed upside down, the negative pole is connected to the D pole of the MOS tube Q1, and the positive pole of the battery is connected to the G pole of the MOS tube Q1. At this time, the MOS tube Q1 is turned off to avoid burning the subsequent chip and play a protective role; after the battery is correctly installed, after the MOS tube Q1 is turned on, the battery voltage Input to pin 1 and pin 6 of the boost chip U3, which are connected to pin 5 of the boost chip U3 through inductor L1, output pin 4 of the boost chip U3 is connected to feedback pin 2, and pin 3 is connected to ground, forming a boost circuit to boost the voltage from 1.5V to 3.3V, output pin 4 of the boost chip U3 is connected to filter capacitor C2, filter capacitor C2 is connected to resistor R4, and then connected to pin 1 and pin 2 of U4, while pin 3 of U4 is connected to ground, forming a 2.5V voltage reference source;
[0039] Pin 1 of U4 outputs a 2.5V voltage reference source which is connected in series with R7, R8, R9, R10, R11, R12, R13, and R14 through resistor R6 and finally to ground. After voltage division, the voltage at R6 is 1.6V, the voltage at R7 is 1.5V, the voltage at R8 is 1.4V, the voltage at R9 is 1.3V, the voltage at R10 is 1.2V, the voltage at R11 is 1.1V, the voltage at R12 is 1.0V, and the voltage at R13 is 0.9V.
[0040] like Figure 3As shown, the first comparator module 2 includes comparators U1-A, U1-B, U1-C, U1-D, light emitting diodes LED1, LED2, LED3, LED4, resistors R6, R7, R8, R9, R15, R16, R17, R18 and capacitor C3;
[0041] The positive power supply of comparator U1-A is electrically connected to one end of capacitor C3, the positive power supply of comparator U1-A is connected to +3V3 voltage, the other end of capacitor C3 is grounded, the positive electrode of comparator U1-A is electrically connected to one end of resistor R6 and one end of resistor R7, the negative electrode of comparator U1-A is electrically connected to battery BATT, the negative electrode of comparator U1-B, the negative electrode of comparator U1-C, and the negative electrode of comparator U1-D, the output end of comparator U1-A is electrically connected to one end of resistor R15, the other end of resistor R15 is electrically connected to the negative electrode of light-emitting diode LED1, the positive electrode of comparator U1-B is electrically connected to the other end of resistor R7 and one end of resistor R8, and the output end of comparator U1-B is electrically connected to one end of resistor R16. The other end of the resistor R16 is electrically connected to the negative electrode of the light-emitting diode LED2, the anode of the comparator U1-C is electrically connected to the other end of the resistor R8 and one end of the resistor R9, the output end of the comparator U1-C is electrically connected to one end of the resistor R17, the other end of the resistor R17 is electrically connected to the negative electrode of the light-emitting diode LED3, the anode of the comparator U1-D is electrically connected to the other end of the resistor R9, the output end of the comparator U1-D is electrically connected to one end of the resistor R18, the other end of the resistor R18 is electrically connected to the negative electrode of the light-emitting diode LED4, the positive electrode of the light-emitting diode LED1, the positive electrode of the light-emitting diode LED2, the positive electrode of the light-emitting diode LED3 and the positive electrode of the light-emitting diode LED4 are connected to the +3V3 voltage.
[0042] It should be noted that: the first comparator module 2 adopts a four-way comparator LM339DB, U1-A, U1-B, U1-C, and U1-D are the 1st, 2nd, 3rd, and 4th comparators of the four-way comparator LM339DB respectively, wherein the cathode of the 1st comparator U1-A of U1 is directly connected to the positive electrode of the battery, so the cathode input voltage of the comparator is the battery voltage, the anode of the 1st comparator U1-A is connected to the 1.6V voltage at the resistor R6, the output pin of the 1st comparator U1-A is connected to the indicator LED1 through the resistor R15, and the anode of LED1 is connected to the 3.3V voltage. When the battery voltage is higher than 1.6V, the 1st comparator U1-A of the comparator U1 outputs a low level, at which time LED1 is always on, and when the battery voltage is lower than 1.6V, it outputs a high level, at which time LED1 is always off;
[0043] Similarly, the cathode of the second comparator U1-B of U1 is directly connected to the positive electrode of the battery, so the input voltage of the cathode of the comparator is the battery voltage, the anode of the second comparator U1-B is connected to the 1.5V voltage at the resistor R7, the output pin of the second comparator U1-B is connected to the indicator LED2 through the resistor R16, and the anode of LED2 is connected to the 3.3V voltage. When the battery voltage is higher than 1.5V, the second comparator U1-B of the comparator U1 outputs a low level, at which time LED2 is always on; when the battery voltage is lower than 1.5V, it outputs a high level, at which time LED2 is always off;
[0044] The cathode of the 3rd comparator U1-C of U1 is directly connected to the positive electrode of the battery, so the input voltage of the cathode of the comparator is the battery voltage, the anode of the 3rd comparator U1-C is connected to the 1.4V voltage at the resistor R8, the output pin of the 3rd comparator U1-C is connected to the indicator LED3 through the resistor R17, the anode of LED3 is connected to the 3.3V voltage, when the battery voltage is higher than 1.4V, the 3rd comparator U1-C of the comparator U1 outputs a low level, at this time LED3 is always on, when the battery voltage is lower than 1.4V, it outputs a high level, at this time LED3 is always off;
[0045] The cathode of the 4th comparator U1-D of U1 is directly connected to the positive electrode of the battery, so the cathode input voltage of the comparator is the battery voltage, the anode of the 4th comparator U1-D is connected to the 1.3V voltage at the resistor R9, the output pin of the 4th comparator U1-D is connected to the indicator LED4 through the resistor R18, and the anode of LED4 is connected to the 3.3V voltage. When the battery voltage is higher than 1.3V, the 4th comparator U1-D of the comparator U1 outputs a low level, at which time LED4 is always on; when the battery voltage is lower than 1.3V, it outputs a high level, at which time LED4 is always off.
[0046] like Figure 4 As shown, the second comparator module 3 includes comparators U2-A, U2-B, U2-C, U2-D, light emitting diodes LED5, LED6, LED7, LED8, resistors R10, R11, R12, R13, R14, R19, R20, R21, R22 and capacitor C4;
[0047] The positive power supply of comparator U2-A is electrically connected to one end of capacitor C4, the positive power supply of comparator U2-A is connected to +3V3 voltage, the other end of capacitor C4 is grounded, the positive electrode of comparator U2-A is electrically connected to one end of resistor R10 and one end of resistor R11, the negative electrode of comparator U2-A is electrically connected to battery BATT, the negative electrode of comparator U2-B, the negative electrode of comparator U2-C, and the negative electrode of comparator U2-D, the output end of comparator U2-A is electrically connected to one end of resistor R19, the other end of resistor R19 is electrically connected to the negative electrode of light-emitting diode LED5, the positive electrode of comparator U2-B is electrically connected to the other end of resistor R11 and one end of resistor R12, the output end of comparator U2-B is electrically connected to one end of resistor R20, the other end of resistor R20 is electrically connected to the negative electrode of light-emitting diode LED6, the positive electrode of comparator U2-C is electrically connected to one end of resistor R20, the other end of resistor R20 is electrically connected to the negative electrode of light-emitting diode LED6, the positive electrode of comparator U2-B is electrically connected to one end of resistor R20, the other end of resistor R20 is electrically connected to the negative electrode of light-emitting diode LED6, the positive electrode of comparator U2-C is electrically connected to one end of resistor R19, the positive electrode of comparator U2-B is electrically connected to one end of resistor R11 and one end of resistor R12, the positive electrode of comparator U2-B is electrically connected to one end of resistor R20, the other end of resistor R20 is electrically connected to the negative electrode of light-emitting diode LED6, the positive electrode of comparator U2-C is electrically connected to one end of resistor R20, the positive electrode of The positive electrode is electrically connected to the other end of the resistor R12 and one end of the resistor R13, the output end of the comparator U2-C is electrically connected to one end of the resistor R21, the other end of the resistor R21 is electrically connected to the negative electrode of the light-emitting diode LED7, the positive electrode of the comparator U2-D is electrically connected to the other end of the resistor R13 and one end of the resistor R14, the output end of the comparator U2-D is electrically connected to one end of the resistor R22, the other end of the resistor R22 is electrically connected to the negative electrode of the light-emitting diode LED8, the positive electrode of the light-emitting diode LED5, the positive electrode of the light-emitting diode LED6, the positive electrode of the light-emitting diode LED7 and the positive electrode of the light-emitting diode LED8 are connected to the +3V3 voltage, the negative power supply of the comparator U2-D is electrically connected to the other end of the resistor R14, the negative power supply of the comparator U2-D is grounded, and the other end of the resistor R9 is electrically connected to the other end of the resistor R10.
[0048] It should be noted that: the second comparator module 3 adopts a four-way comparator LM339DB, U2-A, U2-B, U2-C, and U2-D are respectively the 1st, 2nd, 3rd, and 4th comparators of the four-way comparator LM339DB, wherein the cathode of the 1st comparator U2-A of U2 is directly connected to the positive electrode of the battery, so the cathode input voltage of the comparator is the battery voltage, the anode of the 1st comparator U2-A is connected to the 1.2V voltage at the resistor R10, the output pin of the 1st comparator U2-A is connected to the indicator LED5 through the resistor R19, and the anode of LED5 is connected to the 3.3V voltage. When the battery voltage is higher than 1.2V, the 2nd comparator U2-B of the comparator U2 outputs a low level, at which time LED5 is always on, and when the battery voltage is lower than 1.2V, it outputs a high level, at which time LED5 is always off;
[0049] Similarly, the cathode of the second comparator U2-B of U2 is directly connected to the positive electrode of the battery, so the input voltage of the cathode of the comparator is the battery voltage, the anode of the second comparator U2-B is connected to the 1.1V voltage at the resistor R11, the output pin of the second comparator U2-B is connected to the indicator LED6 through the resistor R20, and the anode of LED6 is connected to the 3.3V voltage. When the battery voltage is higher than 1.1, the second comparator U2-B of the comparator U2 outputs a low level, at which time LED6 is always on, and when the battery voltage is lower than 1.1V, it outputs a high level, at which time LED6 is always off;
[0050] The cathode of the 3rd comparator U2-C of U2 is directly connected to the positive electrode of the battery, so the input voltage of the cathode of the comparator is the battery voltage, the anode of the 3rd comparator U2-C is connected to the 1.0V voltage at the resistor R12, the output pin of the 3rd comparator U2-C is connected to the indicator LED7 through the resistor R21, the anode of LED7 is connected to the 3.3V voltage, when the battery voltage is higher than 1.0V, the 3rd comparator U2-C of the comparator U2 outputs a low level, at this time LED7 is always on, when the battery voltage is lower than 1.0V, it outputs a high level, at this time LED7 is always off;
[0051] The cathode of the 4th comparator U2-D of U2 is directly connected to the positive electrode of the battery, so the input voltage of the cathode of the comparator is the battery voltage, the anode of the 4th comparator U2-D is connected to the 0.9V voltage at the resistor R13, the output pin of the 4th comparator U2-D is connected to the indicator LED8 through the resistor R22, the anode of LED8 is connected to the 3.3V voltage, when the battery voltage is higher than 0.9V, the 4th comparator U2-D of the comparator U2 outputs a low level, at this time LED8 is always on, when the battery voltage is lower than 0.9V, it outputs a high level, at this time LED8 is always off;
[0052] Therefore, LED1-8 can be used to indicate voltage 1.6-0.9V respectively, realizing the measurement of battery voltage.
[0053] The boost chip U3 adopts a boost chip with model TLV61225DCKT, the voltage reference U4 adopts a voltage reference with model TL431, the comparators U1-A, U1-B, U1-C, and U1-D adopt a four-way comparator with model LM339DB, and the comparators U2-A, U2-B, U2-C, and U2-D adopt a four-way comparator with model LM339DB.
[0054] like Figure 5 As shown, it is a circuit wiring diagram for combining the first comparator module 2 and the second comparator module 3 together to measure and indicate the battery voltage.
[0055] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A battery voltage detection device based on a comparator, characterized in that: The detection device comprises a voltage boost module (1), a first comparator module (2) and a second comparator module (3); The boost module (1) is electrically connected to the first comparator module (2) and the second comparator module (3) and is used to boost the battery voltage; The first comparator module (2) is electrically connected to the second comparator module (3) and is used to compare the battery voltage; The second comparator module (3) is electrically connected to the first comparator module (2) and is used for comparing battery voltages.
2. The battery voltage detection device based on a comparator as claimed in claim 1, characterized in that: The boost module (1) comprises a boost chip U3, a MOS tube Q1, a voltage reference device U4, resistors R1, R2, R3, R4, capacitors C1, C2, an inductor L1, a battery holder BT1, and a battery BATT; Pin 1 and pin 6 of the boost chip U3 are electrically connected to one end of the inductor L1, one end of the capacitor C1, one end of the resistor R3 and the source of the MOS tube Q1, pin 5 of the boost chip U3 is electrically connected to the other end of the inductor L1, pin 4 and pin 2 of the boost chip U3 are electrically connected to one end of the capacitor C2 and one end of the resistor R4, pin 3 of the boost chip U3 is electrically connected to the other end of the capacitor C2, one end of the voltage reference U4, the other end of the capacitor C1, the other end of the resistor R3, the gate of the MOS tube Q1, one end of the resistor R2 and one end of the battery holder, the other end of the voltage reference U4 is electrically connected to the other end of the resistor R4, the drain of the MOS tube Q1 is electrically connected to the other end of the resistor R2, the other end of the battery holder and one end of the resistor R1, and the other end of the resistor R1 is electrically connected to the battery BATT.
3. The battery voltage detection device based on a comparator as claimed in claim 2, characterized in that: The first comparator module (2) comprises comparators U1-A, U1-B, U1-C, U1-D, light emitting diodes LED1, LED2, LED3, LED4, resistors R6, R7, R8, R9, R15, R16, R17, R18 and a capacitor C3; The positive power supply of comparator U1-A is electrically connected to one end of capacitor C3, the positive power supply of comparator U1-A is connected to +3V3 voltage, the other end of capacitor C3 is grounded, the positive electrode of comparator U1-A is electrically connected to one end of resistor R6 and one end of resistor R7, the negative electrode of comparator U1-A is electrically connected to battery BATT, the negative electrode of comparator U1-B, the negative electrode of comparator U1-C, and the negative electrode of comparator U1-D, the output end of comparator U1-A is electrically connected to one end of resistor R15, the other end of resistor R15 is electrically connected to the negative electrode of light-emitting diode LED1, the positive electrode of comparator U1-B is electrically connected to the other end of resistor R7 and one end of resistor R8, and the output end of comparator U1-B is electrically connected to one end of resistor R16. The other end of the resistor R16 is electrically connected to the negative electrode of the light-emitting diode LED2, the anode of the comparator U1-C is electrically connected to the other end of the resistor R8 and one end of the resistor R9, the output end of the comparator U1-C is electrically connected to one end of the resistor R17, the other end of the resistor R17 is electrically connected to the negative electrode of the light-emitting diode LED3, the anode of the comparator U1-D is electrically connected to the other end of the resistor R9, the output end of the comparator U1-D is electrically connected to one end of the resistor R18, the other end of the resistor R18 is electrically connected to the negative electrode of the light-emitting diode LED4, the positive electrode of the light-emitting diode LED1, the positive electrode of the light-emitting diode LED2, the positive electrode of the light-emitting diode LED3 and the positive electrode of the light-emitting diode LED4 are connected to the +3V3 voltage.
4. The battery voltage detection device based on a comparator as claimed in claim 3, characterized in that: The second comparator module (3) comprises comparators U2-A, U2-B, U2-C, U2-D, light emitting diodes LED5, LED6, LED7, LED8, resistors R10, R11, R12, R13, R14, R19, R20, R21, R22 and a capacitor C4; The positive power supply of comparator U2-A is electrically connected to one end of capacitor C4, the positive power supply of comparator U2-A is connected to +3V3 voltage, the other end of capacitor C4 is grounded, the positive electrode of comparator U2-A is electrically connected to one end of resistor R10 and one end of resistor R11, the negative electrode of comparator U2-A is electrically connected to battery BATT, the negative electrode of comparator U2-B, the negative electrode of comparator U2-C, and the negative electrode of comparator U2-D, the output end of comparator U2-A is electrically connected to one end of resistor R19, the other end of resistor R19 is electrically connected to the negative electrode of light-emitting diode LED5, the positive electrode of comparator U2-B is electrically connected to the other end of resistor R11 and one end of resistor R12, the output end of comparator U2-B is electrically connected to one end of resistor R20, and the other end of resistor R20 is connected to the negative electrode of light-emitting diode LED6. Electrically connected, the positive electrode of the comparator U2-C is electrically connected to the other end of the resistor R12 and one end of the resistor R13, the output end of the comparator U2-C is electrically connected to one end of the resistor R21, the other end of the resistor R21 is electrically connected to the negative electrode of the light-emitting diode LED7, the positive electrode of the comparator U2-D is electrically connected to the other end of the resistor R13 and one end of the resistor R14, the output end of the comparator U2-D is electrically connected to one end of the resistor R22, the other end of the resistor R22 is electrically connected to the negative electrode of the light-emitting diode LED8, the positive electrode of the light-emitting diode LED5, the positive electrode of the light-emitting diode LED6, the positive electrode of the light-emitting diode LED7 and the positive electrode of the light-emitting diode LED8 are connected to the +3V3 voltage, the negative power supply of the comparator U2-D is electrically connected to the other end of the resistor R14, and the negative power supply of the comparator U2-D is grounded.
5. The battery voltage detection device based on a comparator as claimed in claim 4, characterized in that: The other end of the resistor R9 is electrically connected to the other end of the resistor R10.
6. The battery voltage detection device based on a comparator as claimed in claim 2, characterized in that: The boost chip U3 is a TLV61225DCKT boost chip.
7. The battery voltage detection device based on a comparator as claimed in claim 2, characterized in that: The voltage reference device U4 is a TL431 voltage reference device.
8. The battery voltage detection device based on a comparator as claimed in claim 3, characterized in that: The comparators U1-A, U1-B, U1-C and U1-D are four-way comparators of model LM339DB.
9. The battery voltage detection device based on a comparator as claimed in claim 4, characterized in that: The comparators U2-A, U2-B, U2-C and U2-D are four-way comparators of model LM339DB.
