Background
At present, more and more lithium battery powered devices are adopted, and compared with plug-in type devices, the lithium battery powered devices greatly improve the portability of the devices. However, the lithium battery needs to be charged and discharged within a certain voltage range, and if the charging voltage is too high or the discharging voltage is too low, the danger is caused, so that it is very important to accurately detect and protect the charging and discharging voltage of the lithium battery. For a single lithium battery, the battery voltage can be directly sampled and compared with a certain reference voltage, if the battery voltage is greater than or equal to the certain reference voltage, the lithium battery is considered to be in an overcharged state, and the charging loop of the lithium battery needs to be turned off to protect the lithium battery. Likewise, if the lithium battery voltage is less than or equal to some other reference voltage, we consider the lithium battery in an overdischarge state, and need to turn off the discharge loop of the lithium battery to protect the lithium battery. For the case of using multiple lithium batteries in series, it is necessary to detect the voltage of each lithium battery voltage and protect them, and how to accurately detect the voltage of each lithium battery in series at this time is a problem that we need to face. In FIG. 1, 101-104 are respectively a lithium battery 1, a lithium battery 2, a lithium battery 3 and a lithium battery 4 which are connected in series, and V1-V4 are voltages of various series nodes, wherein V1 is equal to a voltage (Vb 1) of the lithium battery 1, V2 is equal to a sum of a voltage (Vb 1) of the lithium battery 1 and a voltage (Vb 2) of the lithium battery 2, V3 is equal to a sum of a voltage (Vb 1) of the battery 1, a voltage (Vb 2) of the lithium battery 2 and a voltage (Vb 3) of the lithium battery 3, and V4 is equal to a sum of a voltage (Vb 1) of the battery 1, a voltage (Vb 2) of the lithium battery 2, a voltage (Vb 3) of the lithium battery 3 and a voltage (Vb 4) of the lithium battery 4;
for a typical lithium battery protection circuit, a complex circuit unit is required to calculate the voltage of each lithium battery, namely:
voltage of lithium battery 1: vb1;
Voltage of lithium battery 2, v2=v2-V1;
voltage of lithium battery 3, v3=v3-V2;
Voltage of lithium battery 4, vqb4=v4-V3;
And then, respectively transmitting the Vb 1-Vb 4 to an overcharge and overdischarge comparator, and comparing the overcharge and overdischarge comparator with a reference voltage to determine whether the battery is in an unsafe state of overcharge or overdischarge.
The common lithium battery voltage detection method has the advantages of large circuit scale, high cost, complex operation, voltage error introduction in the voltage processing process and poor precision.
Based on the reasons, the circuit of the patent is invented, the method for detecting the voltage of the lithium battery is simplified, the cost is low, and the voltage detection precision is high.
Disclosure of Invention
The invention provides a voltage detection circuit of a plurality of lithium batteries aiming at the problems existing in the prior art, the technical scheme has extremely simple circuit, only one comparator and two groups of voltage dividing capacitors are needed, and the chip area of the circuit is reduced to 20% by matching with each control switch.
In order to achieve the above purpose, the technical scheme of the invention is that the voltage detection circuit of the multi-section lithium battery comprises a high-precision comparator, two groups of voltage dividing capacitors, a control switch and a lithium battery pack, wherein the lithium battery pack is formed by connecting m (m is more than or equal to 2) lithium batteries in series, the lithium battery pack is connected with the positive input end of the high-precision comparator through one group of voltage dividing capacitors, and the high-precision basic voltage of the circuit content is connected with the negative input end of the high-precision comparator through the other group of voltage dividing capacitors.
As an improvement of the invention, in the lithium battery pack connected in series, each lithium battery is connected in series with a control switch.
Compared with the prior art, the invention has the advantages that 1) the technical scheme is extremely simple in circuit, only one comparator and two groups of voltage dividing capacitors are needed, and meanwhile, the chip area of the circuit is reduced to 20% by matching with each control switch, 2) the technical scheme is simple in battery voltage sampling and high in precision, the highest precision can reach 0.1mV, 3) the battery detection adopts a working mode of cyclic scanning, and the overall power consumption current of the circuit can be lower than 5uA.
Detailed Description
In order to enhance the understanding of the present invention, the present embodiment will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, the embodiment 1 is a multi-lithium battery voltage detection circuit, which comprises a high-precision comparator, two groups of voltage dividing capacitors, a control switch and a lithium battery pack, wherein the lithium battery pack is formed by connecting m (m is more than or equal to 2) lithium batteries in series, the lithium battery pack is connected with the positive input end of the high-precision comparator through one group of voltage dividing capacitors, the high-precision basic voltage of the circuit content is connected with the negative input end of the high-precision comparator through the other group of voltage dividing capacitors, and each lithium battery is connected with one control switch in series in the lithium battery pack which is connected in series.
The circuit diagram of the patent of the invention is shown in fig. 2, and the invention is exemplified by the series connection of 4 lithium batteries, and the invention can be similarly expanded to the case of series connection of other numbers of lithium batteries. In the figure, V1-V4 are voltages of various series nodes, wherein V1 is equal to the voltage (Vb 1) of the lithium battery 1, V2 is equal to the sum of the voltage (Vb 1) of the lithium battery 1 and the voltage (Vb 2) of the lithium battery 2, V3 is equal to the sum of the voltage (Vb 1) of the battery 1, the voltage (Vb 2) of the lithium battery 2 and the voltage (Vb 3) of the lithium battery 3, V4 is equal to the sum of the voltage (Vb 1) of the battery 1, the voltage (Vb 2) of the lithium battery 2, the voltage (Vb 3) of the battery 3 and the voltage (Vb 4) of the lithium battery 4, K1-K10 is a switch control circuit, a switch is turned on when the control level is high, C1-C4 is a capacitor, the capacitance value of which is C1=C2=C3=C4, COMP is a high-precision comparator, INP is a positive-phase input end of the comparator, INN is an inverting input end of the comparator, and VOUT is output of the comparator. Vref1 and Vref2 are high precision reference voltages inside the circuit, vref1> Vref2, respectively serving as comparison thresholds for the battery overcharge and overdischarge voltages.
The control timing of the control switches K1-K10 in the circuit is shown in FIG. 3.
At time t1, the control switches K5, K6, K7, K8 are all at high level, the voltages at the nodes VIN, INP, VR and INN in the circuit are all reset to 0 level, and after the control switches K5, K6, K7, K8 are all released to low level, the voltages at the nodes in the circuit remain unchanged.
At time t2, the control switch K1 is set to be high level, the voltage of the VIN node is suddenly changed from 0 to V1, the variation is equal to the voltage (Vb 1) of the first lithium battery, the voltage of the INP node is Vb1/2 because of the serial voltage division of the capacitors C1 and C2, meanwhile, the control switch K9 is set to be high level, the voltage of the VR node is suddenly changed from 0 to Vref1, and the voltage of the INN node is Vref1/2 because of the serial voltage division of the capacitors C3 and C4. At this time, the comparator COMP starts comparing voltages at both ends of INP and INN, namely, vb1/2 and Vref1/2. That is, comparing the voltage Vb1 of the first lithium battery with the reference voltage Vref1, if Vb1> Vref1, the output VOUT of the comparator COMP is at a high level, which indicates that the first lithium battery is in an overcharged state, and if Vb1< Vref1, the output VOUT of the comparator COMP is at a low level, which indicates that the first lithium battery has not reached an overcharged state.
At time t3, the control switches K7 and K8 are set to high level, the voltages at the nodes VR and INN in the circuit are reset to 0 level, and after the control switches K7 and K8 are released to low level, the voltages at the nodes VR and INN in the circuit are maintained unchanged. At time t4, the control switch K10 is set to high level, the voltage at the VR node is suddenly changed from 0 to Vref2, and the voltage at the INN node is Vref2/2 due to the series voltage division of the capacitors C3 and C4. At this time, the comparator COMP starts comparing voltages at both ends of INP and INN, namely, vb1/2 and Vref2/2. That is, comparing the voltage Vb1 of the first lithium battery with the reference voltage Vref2, if Vb1< Vref2, the output VOUT of the comparator COMP is low, which indicates that the first lithium battery is in an overdischarge state, and if Vb1> Vref1, the output VOUT of the comparator COMP is high, which indicates that the first lithium battery does not reach an overdischarge state.
At time t5, the control switches K6, K7, K8 are set to high level, the voltages of the nodes INP, VR and INN in the circuit are all reset to 0 level, and after the control switches K6, K7, K8 are released to low level, the voltages of the nodes INP, VR and INN in the circuit are maintained unchanged.
At time t6, the control switch K1 is set to be low level, the control switch K2 is set to be high level, the voltage of the VIN node is suddenly changed from V1 to V2, the variable quantity is equal to the voltage (Vb 2) of the second lithium battery, the voltage of the INP node is Vb2/2 because of the serial voltage division of the capacitors C1 and C2, meanwhile, the control switch K9 is set to be high level, the voltage of the VR node is suddenly changed from 0 to Vref1, and the voltage of the INN node is Vref1/2 because of the serial voltage division of the capacitors C3 and C4. At this time, the comparator COMP starts comparing voltages at both ends of INP and INN, namely, vb2/2 and Vref1/2. That is, comparing the voltage Vb2 of the second lithium battery with the reference voltage Vref1, if Vb2> Vref1, the output VOUT of the comparator COMP is high, which indicates that the second lithium battery is in an overcharged state, and if Vb2< Vref1, the output VOUT of the comparator COMP is low, which indicates that the second lithium battery is not in an overcharged state.
At time t7, the control switches K7 and K8 are set to high level, the voltages at the nodes VR and INN in the circuit are reset to 0 level, and after the control switches K7 and K8 are released to low level, the voltages at the nodes VR and INN in the circuit are maintained unchanged. At time t8, the control switch K10 is set to high level, the voltage at the VR node is suddenly changed from 0 to Vref2, and the voltage at the INN node is Vref2/2 due to the series voltage division of the capacitors C3 and C4. At this time, the comparator COMP starts comparing voltages at both ends of INP and INN, namely, vb2/2 and Vref2/2. That is, comparing the voltage Vb2 of the second lithium battery with the reference voltage Vref2, if Vb2< Vref2, the output VOUT of the comparator COMP is low, which indicates that the second lithium battery is in an overdischarge state, and if Vb2> Vref1, the output VOUT of the comparator COMP is high, which indicates that the second lithium battery does not reach an overdischarge state.
The same method can detect whether the third lithium battery and the fourth lithium battery are in an overcharged state or an overdischarged state. After the last lithium battery is detected, the circuit returns to the state at the time t1 again, and starts to detect the safety state of the first lithium battery, and the circuit is scanned circularly in this way to monitor the safety state of each lithium battery in the series battery pack at the time.
It should be noted that the above-mentioned embodiments are not intended to limit the scope of the present invention, and equivalent changes or substitutions made on the basis of the above-mentioned technical solutions fall within the scope of the present invention as defined in the claims.