Battery voltage detection circuit and power supply device

Through the operational amplifier and differential circuit structure, combined with the correction module, the leakage current, standby power consumption and interference problems of the existing battery voltage detection circuit are solved, high-precision, real-time battery voltage detection is achieved, and the battery life and system performance are improved.

CN221667979UActive Publication Date: 2024-09-06HEFEI HAIER INTELLIGENT ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323365466.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-05
Publication Date
2024-09-06
Estimated Expiration
2033-12-05

AI Technical Summary

Technical Problem

Existing battery voltage detection circuits have problems such as large leakage current, high standby power consumption, susceptibility to interference, large detection errors, and inability to monitor battery status in real time, especially in series battery packs, resulting in shortened battery life and reduced system performance.

Method used

A battery voltage detection circuit is designed, which uses an operational amplifier and a differential circuit structure, connects the battery to be tested through the non-inverting and inverting input terminals, uses the correction module to perform error correction, achieves high-precision, real-time detection, and isolates the input and output voltages through the reference voltage. output to reduce interference.

Benefits of technology

It achieves high precision, low leakage current, strong anti-interference ability, real-time detection of battery voltage, reduces temperature effects and detection errors, and improves the accuracy of battery voltage detection and the overall performance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221667979U
    Figure CN221667979U
Patent Text Reader

Abstract

The utility model discloses a battery voltage detection circuit, comprising an operational amplifier which is provided with an in-phase input end which is electrically connected with a positive electrode of a battery to be detected through a first detection resistor assembly; the inverted input end is electrically connected with the negative electrode of the battery to be detected through a second detection resistor assembly; the output end is electrically connected with one analog input port of the single chip microcomputer through a correction module; the utility model further provides a power supply device. The battery voltage detection circuit provided by the utility model has the advantages of high precision, real-time detection, small temperature influence, small leakage current, input and output isolation, strong interference resistance and error correction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of power supply design, and in particular to a battery voltage detection circuit and a power supply device. Background Art

[0002] A battery is a device for energy conversion and storage. The entire battery market is divided into different sub-fields or sub-markets according to different standards or characteristics, with many categories. The battery manufacturing industry is both a traditional industry and an important part of the new energy industry in my country. It is closely related to many strategic emerging industries such as new energy vehicles, renewable energy, modern electronic information, new materials, and equipment manufacturing.

[0003] With the development of pure electric vehicles and hybrid electric vehicles, the series battery pack as an important energy storage device is a key factor affecting the performance of the entire vehicle. Among them, extending the battery life and improving the battery efficiency are the key to the commercialization and practical application of electric vehicles. Due to the existence of the bucket effect, the overall performance of the series battery pack depends on the battery with poor performance in the battery pack. The main reason for the bucket effect is that in the series battery, the current passes through all the batteries, not just the best or strongest one. If the voltage of one of the batteries is reduced, the voltage of the entire system will also decrease when the current passes through the entire series battery pack, resulting in a decrease in the performance of the entire system.

[0004] In order to effectively manage the energy usage of the series battery pack, it is necessary to monitor the battery status in the series battery pack in real time. Among the parameters that characterize the battery status, the terminal voltage of the battery can reflect its working status, so collecting the battery voltage is very important for managing the battery and extending the battery life.

[0005] The commonly used battery voltage detection circuits are as follows:

[0006] The first method is the resistor voltage division method, the circuit diagram is as follows Figure 1 As shown in the figure, the resistor voltage division method mainly uses resistor voltage division to attenuate the actual voltage to a voltage range acceptable to the measurement chip (usually a single-chip microcomputer), and then performs analog-to-digital conversion. Figure 1 In the figure, Vbat represents the battery voltage, GND represents the ground terminal, and the battery voltage is Figure 1 After the voltage is attenuated to a suitable voltage by R1 and R2, it is input into the analog-to-digital conversion port of the microcontroller and can be output as the actual battery voltage value after amplification. Figure 1The resistors R1 and R2 in the circuit must use high-precision resistors to reduce the detection error. In addition, due to the influence of the input impedance of the microcontroller pin, the resistance of R2 needs to be much smaller than the input impedance of the pin. Therefore, R2 needs to be selected with the smallest possible resistance. Due to the consideration of battery leakage current and standby power consumption, R1 and R2 need to be selected with the largest possible resistance, which makes the selection of R2 very difficult and must be selected according to the actual application.

[0007] The second method is to add a controlled switch element on the basis of the resistor voltage divider method, such as MOSFET (also known as MOS tube, Metal-Oxide-Semiconductor Field-EffectTransistor). The circuit diagram is as follows Figure 2 As shown in the figure, in view of the problems of leakage current and standby power consumption when the resistor voltage divider method is used for detection, a PMOS (such as Figure 2 P1 in the figure) controls the switch of the detection circuit, and then uses NMOS (such as Figure 2 When the battery voltage needs to be detected, the MCU I / O port outputs a high level, N1 is turned on, thereby driving P1 to turn on, and the voltage detection circuit starts to work; in the standby state, the MCU I / O port outputs a low level, N1 is turned off, and P1 is also turned off, disconnecting the detection circuit to reduce circuit leakage current and standby loss.

[0008] Figure 2 The selection of resistors R1 and R2 is the same as the resistor voltage divider method. The resistance values ​​of resistors R3 and R4 are selected according to the battery voltage Vbat to be detected, and P1 needs to be saturated and turned on. The resistance values ​​of resistors R5 and R6 are selected according to the voltage of the microcontroller I / O port, and N1 also needs to be saturated and turned on. MOS tubes P1 and N1 need to select devices with DS (Dielectric Strength) withstand voltage higher than the battery voltage Vbat. In addition, the on-resistance Rdson of P1 should be as small as possible to prevent affecting the accuracy of battery voltage detection.

[0009] In practical applications, the resistor voltage divider method has the following disadvantages: First, the leakage current and standby power consumption are large; second, it is easily affected by resistance error and temperature drift. The error of the resistance value itself and the impact of temperature change on the resistance value will cause a lot of errors in voltage detection. The higher the battery voltage, the greater the detection error; third, it is easy to be interfered with. Batteries are generally equipped with charging circuits, which can be AC / DC charging circuits. The battery voltage end is easy to introduce ripple interference, that is, the AC component in the DC power supply output; excessive ripple may cause large detection errors.

[0010] Adding a detection circuit with controlled switch elements has the following disadvantages: First, the battery status cannot be monitored in real time. In some applications with poor environments, battery leakage can easily cause battery damage, and battery short circuit can easily cause fire, so it is required to monitor the battery status in real time, and to protect and stop losses in time when abnormalities are found; second, there is also the problem of being easily interfered with. Since the battery system and the single-chip computer system are not isolated, the battery and the charging circuit are directly connected, which can easily introduce ripple interference and cause detection errors; third, there is no error calibration circuit. Due to the individual independent characteristics of components, there are often differences between different individuals of the same component, and even a set circuit may have large errors. Utility Model Content

[0011] In view of the above problems, the present application designs and provides a battery voltage detection circuit to improve the accuracy of battery voltage detection. The battery voltage detection circuit provided by the present application has the advantages of high precision, real-time detection, small temperature influence, small leakage current, input and output isolation, strong anti-interference, and error correction.

[0012] In order to achieve the above utility model / design purpose, the utility model adopts the following technical solutions:

[0013] The first aspect of the present application provides a battery voltage detection circuit, including an operational amplifier, which has: a non-inverting input terminal, the non-inverting input terminal is electrically connected to the positive electrode of the battery to be tested through a first detection resistor component; an inverting input terminal, the inverting input terminal is electrically connected to the negative electrode of the battery to be tested through a second detection resistor component; and an output terminal, the output terminal is electrically connected to an analog input port of a single-chip microcomputer through a correction module.

[0014] Further, the first detection resistor component includes a first resistor and a second resistor, the first end of the first resistor is electrically connected to the positive electrode of the battery to be tested; the first end of the second resistor is electrically connected to the second end of the first resistor, and the second end of the second resistor is electrically connected to the in-phase input terminal; the second detection resistor component includes a third resistor and a fourth resistor, the first end of the third resistor is electrically connected to the negative electrode of the battery to be tested; the first end of the fourth resistor is electrically connected to the second end of the third resistor, and the second end of the fourth resistor is electrically connected to the inverting input terminal.

[0015] Furthermore, the battery voltage detection circuit also includes: a fifth resistor, a first end of the fifth resistor is electrically connected to the reference voltage, and a second end of the fifth resistor is electrically connected to the first end of the first resistor; and a sixth resistor, a first end of the sixth resistor is electrically connected to the reference voltage, and a second end of the sixth resistor is electrically connected to the first end of the third resistor.

[0016] Furthermore, the battery voltage detection circuit also includes: a first capacitor, a positive electrode of the first capacitor is electrically connected to the second end of the second resistor, and a negative electrode of the first capacitor is grounded; and a seventh resistor, a first end of the seventh resistor is electrically connected to the second end of the second resistor, and a second end of the seventh resistor is grounded.

[0017] Furthermore, the battery voltage detection circuit further includes: an eighth resistor, a first end of the eighth resistor is electrically connected to the inverting input end, and a second end of the eighth resistor is electrically connected to the output end.

[0018] Furthermore, the battery voltage detection circuit further includes: a second capacitor, a positive electrode of the second capacitor is electrically connected to the second end of the fourth resistor, and a negative electrode of the second capacitor is grounded.

[0019] Furthermore, the operational amplifier is an LM358 chip; the first resistor and the third resistor have the same resistance value; the fifth resistor and the sixth resistor have the same resistance value; the second resistor and the fourth resistor have the same resistance value, and the seventh resistor and the eighth resistor have the same resistance value.

[0020] Furthermore, the battery voltage detection circuit also includes: a first voltage-dividing resistor, a first end of the first voltage-dividing resistor is connected to the output end, and a second end of the first voltage-dividing resistor is connected to the analog input port; a second voltage-dividing resistor, a first end of the second voltage-dividing resistor is connected to the second end of the first voltage-dividing resistor, another end is connected to the analog input port, and the second end of the second voltage-dividing resistor is grounded; and a third voltage-dividing resistor, a first end of the third voltage-dividing resistor is connected to the second end of the first voltage-dividing resistor, another end is connected to the analog input port, and the second end of the third voltage-dividing resistor is grounded; the correction module includes: a double-row DuPont connector, in which one row of pin pins is correspondingly provided with a correction resistor; the other row of pin pins is electrically connected to the first voltage-dividing resistor, the second voltage-dividing resistor, the third voltage-dividing resistor and the analog input port; a pair of pin pins of the double-row DuPont connector can be connected through a short-circuit cap.

[0021] Furthermore, the double-row DuPont connector is provided with a first pin pin, a second pin pin, a third pin pin, a fourth pin pin, a fifth pin pin and a sixth pin pin; wherein a row of pin pins consisting of the second pin pin, the fourth pin pin and the sixth pin pin is electrically connected to the first voltage-dividing resistor, the second voltage-dividing resistor, the third voltage-dividing resistor and the analog input port; the correction module also includes: a first correction resistor, a first end of the first correction resistor is electrically connected to the output end, and a second end of the first correction resistor is electrically connected to the first pin pin; a second correction resistor, a first end of the second correction resistor is electrically connected to the third pin pin, and a second end of the third correction resistor is grounded; a third correction resistor, a first end of the third correction resistor is electrically connected to the fifth pin pin, and a second end of the third correction resistor is grounded; and a short-circuit cap can electrically connect the first pin pin and the second pin pin, or can electrically connect the third pin pin and the fourth pin pin, or can electrically connect the fifth pin pin and the sixth pin pin.

[0022] The second aspect of the present application provides a power supply device, including a battery to be tested; a single-chip microcomputer; and an operational amplifier, which has: a non-inverting input terminal, the non-inverting input terminal is electrically connected to the positive electrode of the battery to be tested through a first detection resistor component; an inverting input terminal, the inverting input terminal is electrically connected to the negative electrode of the battery to be tested through a second detection resistor component; and an output terminal, the output terminal is electrically connected to an analog input port of the single-chip microcomputer through a correction module.

[0023] Compared with the prior art, the advantages and positive effects of the utility model are: the battery voltage detection circuit provided in the present application has the advantages of high precision, real-time detection, small temperature influence, small leakage current, input and output isolation, strong anti-interference, and error correction.

[0024] After reading the specific embodiments of the present invention in conjunction with the accompanying drawings, other features and advantages of the present invention will become more clear. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0026] Figure 1 It is a circuit diagram of detecting voltage by a resistor voltage division method in the prior art;

[0027] Figure 2 It is a circuit diagram in which a controlled switch element is added to the resistor voltage division method in the prior art;

[0028] Figure 3 It is a circuit diagram of a battery voltage detection circuit provided by the utility model;

[0029] In the figure, U1-A, operational amplifier; R1, first resistor; R5, second resistor; Vbat, positive electrode of the battery to be tested; R2, third resistor; R6, fourth resistor; GND, negative electrode of the battery to be tested; R3, fifth resistor; R4, sixth resistor; C1, first capacitor; R7, seventh resistor; R8, eighth resistor; GND_S, ground terminal; C2, second capacitor; P1, double-row DuPont connector; R9, first correction resistor; R10, first voltage-dividing resistor; R11, second correction resistor; R12, third correction resistor; R13, second voltage-dividing resistor; R14, third voltage-dividing resistor. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0031] In the description of the present invention, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore, should not be understood as a limitation on the present invention.

[0032] In the description of the present utility model, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "electrically connected" should be understood in a broad sense. For example, it can be a fixed electrical connection, a detachable electrical connection, or an integral electrical connection. For ordinary technicians in this field, the specific meanings of the above terms in the present utility model can be understood according to specific circumstances. In the description of the implementation method, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0033] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0034] In the description of the present invention, unless otherwise specified, “plurality” means two or more.

[0035] In view of the problems existing in the circuits for detecting battery voltage provided in the prior art, especially for detecting the voltage of a battery pack connected in series, one or more embodiments of the present application provide a battery voltage detection circuit. Figure 3 As shown, the battery voltage detection circuit is mainly implemented by an operational amplifier U1-A chip. The operational amplifier U1-A has a non-inverting input terminal, an inverting input terminal and an output terminal, wherein the non-inverting input terminal is electrically connected to the positive electrode of the battery to be tested through a first detection resistor component, the inverting input terminal is electrically connected to the negative electrode of the battery to be tested through a second detection resistor component, and the output terminal is electrically connected to an analog input port of the microcontroller through a correction module.

[0036] like Figure 3 As shown, the first detection resistor component includes a first resistor R1 and a second resistor R5, the first end of the first resistor R1 is electrically connected to the positive electrode of the battery to be tested, the first end of the second resistor R5 is electrically connected to the second end of the first resistor R1, and the second end of the second resistor R5 is electrically connected to the in-phase input terminal, and the second detection resistor component includes a third resistor R2 and a fourth resistor R6, the first end of the third resistor R2 is electrically connected to the negative electrode of the battery to be tested, the first end of the fourth resistor R6 is electrically connected to the second end of the third resistor R2, and the second end of the fourth resistor R6 is electrically connected to the inverting input terminal.

[0037] like Figure 3 As shown, a fifth resistor R3 and a sixth resistor R4 are also provided in the battery voltage detection circuit, a first end of the fifth resistor R3 is electrically connected to a reference voltage, a second end of the fifth resistor R3 is electrically connected to a first end of the first resistor R1, a first end of the sixth resistor R4 is electrically connected to the reference voltage, and a second end of the sixth resistor R4 is electrically connected to a first end of the third resistor R2.

[0038] like Figure 3In the battery voltage detection circuit shown, the input end and the output end are isolated, which can effectively isolate the input interference signal. The in-phase input end and the inverting input end of the operational amplifier U1-A are electrically connected to the reference voltage point of the operational amplifier U1-A through the fifth resistor R3 and the sixth resistor R4, which can effectively reduce the common mode interference. In terms of leakage current, in the open-loop state, the gain of the operational amplifier U1-A is very high, the input impedance is very large, and the output impedance is very small, that is, the virtual disconnection characteristic of the operational amplifier U1-A. In this case, the operational amplifier U1-A itself will hardly introduce leakage current, and in the loop of the positive electrode Vbat of the battery to be tested, the first resistor R1, the fifth resistor R3, the sixth resistor R4, the third resistor R2 and the negative electrode GND of the battery to be tested, the first resistor R1 and the third resistor R2 can both use megohm-level resistors, and the current is very small, almost short-circuited, so the leakage current at one end of the battery to be tested is also very small. The formed differential circuit can shield common mode interference and improve the accuracy of sampling. In addition, the input offset voltage Vos of the operational amplifier U1-A is very small, generally at the mV or μV level, and the sampling error or temperature drift error is much smaller than that of the resistor voltage divider method.

[0039] In one or more embodiments of the present application, the operational amplifier U1-A is an LM358 chip. In actual use, an operational amplifier U1-A in the LM358 chip is used, and the battery voltage detection circuit also includes a first capacitor C1, a seventh resistor R7, an eighth resistor R8, and a second capacitor C2. The positive electrode of the first capacitor C1 is electrically connected to the second end of the second resistor R5, and the negative electrode of the first capacitor C1 is connected to the ground terminal GND_S. The first end of the seventh resistor R7 is electrically connected to the second end of the second resistor R5, and the second end of the seventh resistor R7 is connected to the ground terminal GND_S. The first end of the eighth resistor R8 is electrically connected to the inverting input terminal, and the second end of the eighth resistor R8 is electrically connected to the output terminal. The positive electrode of the second capacitor C2 is electrically connected to the second end of the fourth resistor R6, and the negative electrode of the second capacitor C2 is connected to the ground terminal GND_S. Pin 4 of the operational amplifier U1-A is connected to the ground terminal GND_S, and pin 8 is connected to the external power supply voltage, that is, the +12V power supply voltage.

[0040] In one or more embodiments of the present application, the first resistor R1 and the third resistor R2 have the same resistance value; the fifth resistor R3 and the sixth resistor R4 have the same resistance value, the second resistor R5 and the fourth resistor R6 have the same resistance value, and the seventh resistor R7 and the eighth resistor R8 have the same resistance value.

[0041] The following introduces the principle of the battery voltage detection circuit detecting the voltage of the battery to be tested from the perspective of principle.

[0042] According to Kirchhoff's current law, the sum of the currents in a node (the intersection of multiple branches electrically connected) is equal to zero, that is, the current cannot accumulate or disappear in the node, so the sum of the currents flowing into the node must be equal to the sum of the currents flowing out of the node, and the following expression can be obtained:

[0043]

[0044]

[0045]

[0046]

[0047] According to the virtual short characteristic of the operational amplifier U1-A, that is, at the differential input terminal (non-inverting input terminal and inverting input terminal) of the operational amplifier U1-A, since the open-loop gain of the operational amplifier U1-A is very large, the voltage at the differential input terminal approaches 0, that is,:

[0048] V3=V4…………⑤

[0049] Further, there are:

[0050] Vin=Vbat-Vgnd…………⑥

[0051] From the above formula we can get:

[0052]

[0053] A first voltage-dividing resistor R10, a second voltage-dividing resistor R13, and a third voltage-dividing resistor R14 are also provided at the output end of the operational amplifier U1-A. A first end of the first voltage-dividing resistor R10 is connected to the output end, and a second end of the first voltage-dividing resistor R10 is connected to the analog input port; a first end of the second voltage-dividing resistor R13 is connected to the second end of the first voltage-dividing resistor R10, and another end is connected to the analog input port, and a second end of the second voltage-dividing resistor R13 is connected to the ground terminal GND_S; a first end of the third voltage-dividing resistor R14 is connected to the second end of the first voltage-dividing resistor R10, and another end is connected to the analog input port, and a second end of the third voltage-dividing resistor R14 is connected to the ground terminal GND_S.

[0054] After attenuation by the operational amplifier U1-A, the first voltage-dividing resistor R10, the second voltage-dividing resistor R13 and the third voltage-dividing resistor R14 are fine-tuned to divide the voltage. The sampling voltage of the analog input port of the single-chip microcomputer corresponds to the sampling voltage within the set voltage range, such as the shutdown protection voltage of the battery to be tested and the maximum voltage of the battery to be tested, so that:

[0055]

[0056] Taking into account the differences in components, in order to improve the versatility of the power supply detection circuit, a correction module is also provided in the battery voltage detection circuit. The correction module includes a double-row DuPont connector P1, that is, two rows of pins, each row of pins is connected, and the two rows of pins are disconnected. One row of pins is provided with a correction resistor, and the other row of pins is electrically connected to the first voltage-dividing resistor R10, the second voltage-dividing resistor R13, the third voltage-dividing resistor R14 and the analog input port. A pair of pins of the double-row DuPont connector P1 can be connected through a short-circuit cap.

[0057] In one or more embodiments of the utility model, the double-row DuPont connector P1 is provided with a first pin pin, a second pin pin, a third pin pin, a fourth pin pin, a fifth pin pin and a sixth pin pin; wherein a row of pin pins composed of the second pin pin, the fourth pin pin and the sixth pin pin are electrically connected to the first voltage-dividing resistor R10, the second voltage-dividing resistor R13, the third voltage-dividing resistor R14 and the analog input port.

[0058] The correction module also includes a first correction resistor R9, a second correction resistor R11 and a third correction resistor R12. The first end of the first correction resistor R9 is electrically connected to the output end, the second end of the first correction resistor R9 is electrically connected to the first pin pin, the first end of the second correction resistor R11 is electrically connected to the third pin pin, the second end of the third correction resistor R12 is connected to the ground terminal GND_S, the first end of the third correction resistor R12 is electrically connected to the fifth pin pin, and the second end of the third correction resistor R12 is connected to the ground terminal GND_S. The short-circuit cap can be electrically connected to the first pin pin and the second pin pin, or can be electrically connected to the third pin pin and the fourth pin pin, or can be electrically connected to the fifth pin pin and the sixth pin pin, that is, fine-tuning is achieved by further connecting resistors in parallel to the upper voltage divider resistor and the lower voltage divider resistor to reduce sampling errors. The circuit can detect the voltage of the battery to be tested in real time without generating leakage current and standby power consumption.

[0059] The utility model adopts a differential operational amplifier circuit to sample the voltage of the battery to be tested, and connects a reference voltage to the in-phase input terminal and the inverting input terminal to suppress common-mode interference, thereby obtaining a useful differential-mode signal, which can effectively reduce the leakage current and standby power consumption of the battery of the standby device, and can detect the battery voltage in real time, and reduce the battery voltage detection error caused by single or batch problems of components through a correction module.

[0060] The second aspect of the utility model provides a power supply device, including a battery to be tested, a single-chip microcomputer and an operational amplifier U1-A, the operational amplifier U1-A having a non-inverting input terminal, an inverting input terminal and an output terminal, wherein the non-inverting input terminal is electrically connected to the positive electrode of the battery to be tested through a first detection resistor component, the inverting input terminal is electrically connected to the negative electrode of the battery to be tested through a second detection resistor component, and the output terminal is electrically connected to an analog input port of the single-chip microcomputer through a correction module. The power supply device can effectively and accurately detect the voltage of the battery to be tested. For a detailed description of the circuit connection of the operational amplifier U1-A, please refer to the detailed description of the above-mentioned embodiment and the detailed record of the drawings in the specification, which will not be repeated here.

[0061] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, it is still possible for a person skilled in the art to modify the technical solutions described in the above embodiments, or to replace some of the technical features therein with equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions claimed to be protected by the present invention.

Claims

1. A battery voltage detection circuit, characterized in that: include: An operational amplifier having: A non-inverting input terminal, the non-inverting input terminal is electrically connected to the positive electrode of the battery to be tested through a first detection resistor component; an inverting input terminal, the inverting input terminal being electrically connected to the negative electrode of the battery to be tested through a second detection resistor component; and The output end is electrically connected to an analog input port of the single chip microcomputer through a correction module.

2. The battery voltage detection circuit according to claim 1, characterized in that: The first detection resistor assembly includes a first resistor and a second resistor, wherein the first end of the first resistor is electrically connected to the positive electrode of the battery to be tested; the first end of the second resistor is electrically connected to the second end of the first resistor, and the second end of the second resistor is electrically connected to the in-phase input end; The second detection resistor component includes a third resistor and a fourth resistor, wherein the first end of the third resistor is electrically connected to the negative electrode of the battery to be tested; the first end of the fourth resistor is electrically connected to the second end of the third resistor, and the second end of the fourth resistor is electrically connected to the inverting input end.

3. The battery voltage detection circuit according to claim 2, characterized in that: Also includes: a fifth resistor, a first end of the fifth resistor being electrically connected to a reference voltage, and a second end of the fifth resistor being electrically connected to a first end of the first resistor; and A sixth resistor, wherein a first end of the sixth resistor is electrically connected to a reference voltage, and a second end of the sixth resistor is electrically connected to the first end of the third resistor.

4. The battery voltage detection circuit according to claim 3, characterized in that: Also includes: a first capacitor, wherein a positive electrode of the first capacitor is electrically connected to the second end of the second resistor, and a negative electrode of the first capacitor is grounded; and A seventh resistor, wherein a first end of the seventh resistor is electrically connected to the second end of the second resistor, and a second end of the seventh resistor is grounded.

5. The battery voltage detection circuit according to claim 4, characterized in that: Also includes: An eighth resistor, wherein a first end of the eighth resistor is electrically connected to the inverting input end, and a second end of the eighth resistor is electrically connected to the output end.

6. The battery voltage detection circuit according to claim 5, characterized in that: Also includes: A second capacitor, wherein a positive electrode of the second capacitor is electrically connected to the second end of the fourth resistor, and a negative electrode of the second capacitor is grounded.

7. The battery voltage detection circuit according to claim 6, characterized in that: The operational amplifier is an LM358 chip; the first resistor and the third resistor have the same resistance value; the fifth resistor and the sixth resistor have the same resistance value; the second resistor and the fourth resistor have the same resistance value, and the seventh resistor and the eighth resistor have the same resistance value.

8. The battery voltage detection circuit according to any one of claims 1 to 7, characterized in that: Also includes: a first voltage-dividing resistor, wherein a first end of the first voltage-dividing resistor is connected to the output end, and a second end of the first voltage-dividing resistor is connected to the analog input port; a second voltage-dividing resistor, wherein a first end of the second voltage-dividing resistor is connected to the second end of the first voltage-dividing resistor in one way, another end of the second voltage-dividing resistor is connected to the analog input port, and a second end of the second voltage-dividing resistor is grounded; and a third voltage-dividing resistor, wherein a first end of the third voltage-dividing resistor is connected to the second end of the first voltage-dividing resistor in one way, another end of the third voltage-dividing resistor is connected to the analog input port, and a second end of the third voltage-dividing resistor is grounded; The correction module comprises: A double-row DuPont connector, wherein one row of pins is provided with a corresponding correction resistor; the other row of pins is electrically connected to the first voltage-dividing resistor, the second voltage-dividing resistor, the third voltage-dividing resistor and the analog input port; a pair of pins of the double-row DuPont connector can be connected through a short-circuit cap.

9. The battery voltage detection circuit according to claim 8, characterized in that: The double-row DuPont connector is provided with a first pin pin, a second pin pin, a third pin pin, a fourth pin pin, a fifth pin pin and a sixth pin pin; wherein a row of pin pins consisting of the second pin pin, the fourth pin pin and the sixth pin pin is electrically connected to the first voltage-dividing resistor, the second voltage-dividing resistor, the third voltage-dividing resistor and the analog input port; The correction module also includes: A first correction resistor, wherein a first end of the first correction resistor is electrically connected to the output end, and a second end of the first correction resistor is electrically connected to the first pin; A second correction resistor, wherein a first end of the second correction resistor is electrically connected to the third pin; A third correction resistor, a first end of the third correction resistor is electrically connected to the fifth pin, and a second end of the third correction resistor is grounded; and The short-circuit cap may electrically connect the first pin pin and the second pin pin, or may electrically connect the third pin pin and the fourth pin pin, or may electrically connect the fifth pin pin and the sixth pin pin.

10. A power supply device, characterized in that: include: The battery to be tested; Single chip microcomputer; and An operational amplifier having: A non-inverting input terminal, the non-inverting input terminal is electrically connected to the positive electrode of the battery to be tested through a first detection resistor component; an inverting input terminal, the inverting input terminal being electrically connected to the negative electrode of the battery to be tested through a second detection resistor component; and The output end is electrically connected to an analog input port of the single chip microcomputer through a correction module.