Battery internal resistance detection circuit based on single-chip microcomputer control
By using a microcontroller-based battery internal resistance detection circuit, the problem of internal resistance detection error caused by different battery discharge curves is solved, thus achieving accuracy and precision in battery internal resistance testing.
Patent Information
- Application Number
- CN202422847166.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2034-11-21
AI Technical Summary
In the existing technology, when the power distribution network is equipped with a backup battery, the circuit for detecting the internal resistance of the battery will produce a large error due to the different discharge curves of different batteries, which will affect the detection accuracy.
A battery internal resistance detection circuit based on microcontroller control is adopted. The internal resistance of the battery is accurately measured by combining resistors R100, R71, transistor Q13, R93, R149, R88, transistor Q18, R77, optocoupler PC1, optocoupler PC20, resistors R70, R61, R79, R65, R153, R101, MOSFET Q12, and MOSFET Q21.
Under different discharge curves, the accuracy and precision of battery internal resistance testing were improved, reducing errors caused by increased internal resistance and enhancing detection accuracy.
Smart Images

Figure CN223471135U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model discloses a battery internal resistance detection circuit belongs to switching power supply technical field, concretely relates to a kind of battery internal resistance detection circuit based on single-chip microcomputer control. BACKGROUND
[0002] The network power supply is a device for providing stable power supply for smart home or Internet of Things devices. Since most smart devices or Internet of Things devices have small power, external power supply devices are needed for normal operation. The main function of the network power supply is to output stable current and voltage from the mains to supply smart devices or Internet of Things devices;
[0003] The operating mechanism is generally divided into mechanical and electronic types. The mechanical operating mechanism stores energy using a spring or other mechanical means. When the main power is off, the stored energy is released to maintain the operation of the power equipment. The electronic operating mechanism stores energy using electronic components. When the main power is off, the controller controls the energy storage electronic components to release the stored energy to continue power supply. The working principle and duration requirements of the operating mechanism determine its importance in the power system.
[0004] The network power supply in the prior art is equipped with a backup battery. However, when cooperating with different backup batteries, the internal resistance detection circuit of the battery often produces a large error due to different discharge curves of different batteries. INVENTION CONTENTS
[0005] The utility model discloses a battery internal resistance detection circuit based on single-chip microcomputer control, solves the above-mentioned problems.
[0006] Technical scheme: a battery internal resistance detection circuit based on single-chip microcomputer control, the battery internal resistance detection circuit comprises: a resistor R100, a resistor R71, a triode Q13, a resistor R93, a resistor R149, a resistor R88, a triode Q18, a resistor R77, an optical coupler PC1, an optical coupler PC20, a resistor R70, a resistor R61, a resistor R79, a resistor R65, a resistor R153, a resistor R101, a MOS tube Q12, and a MOS tube Q21.
[0007] One end of the resistor R100 is connected to the I / O1 interface of the single-chip microcomputer, and the other end is connected to one end of the resistor R71 and the b terminal of the triode Q13. The e terminal of the triode Q13 is connected to the other end of the resistor R71 and grounded. The c terminal of the triode Q13 is connected to the 2 pin of the optical coupler PC1. One end of the resistor R93 inputs a 3.3V voltage, and the other end is connected to the 1 pin of the optical coupler PC1.
[0008] One end of the resistor R149 is connected with the I / O2 interface of the single-chip microcomputer, the other end is connected with one end of the resistor R149 and the b electrode of the triode Q18, the e electrode of the triode Q18 is connected with the other end of the resistor R149 and grounded, the c electrode of the triode Q18 is connected with the 2nd pin of the photoelectric coupler PC20, one end of the resistor R77 inputs 3.3V voltage, the other end is connected with the 1st pin of the photoelectric coupler PC20;
[0009] One end of the resistor R70, one end of the resistor R61, one end of the resistor R69 and one end of the resistor R65 are connected with the positive electrode of the battery B, the 4th pin of the photoelectric coupler PC1 is connected with the other end of the resistor R70, the G electrode of the MOS tube Q12 is connected with one end of the resistor R153 and the 3rd pin of the photoelectric coupler PC1, the D electrode of the MOS tube Q12 is connected with the other end of the resistor R61, the 4th pin of the photoelectric coupler PC20 is connected with the other end of the resistor R69, the G electrode of the MOS tube Q21 is connected with one end of the resistor R101 and the 3rd pin of the photoelectric coupler PC20, the D electrode of the MOS tube Q21 is connected with the other end of the resistor R65, the other end of the resistor R153, the S electrode of the MOS tube Q12, the other end of the resistor R101 and the S electrode of the MOS tube Q21 are connected with the negative electrode of the battery B.
[0010] In further embodiments, the single-chip microcomputer I / O1 interface and I / O2 interface respectively give high-level control signals to control the discharge of the battery B.
[0011] In further embodiments, the resistor R100 and the resistor R149 are current limiting resistors of the single-chip microcomputer I / O1 interface and I / O2 interface.
[0012] In further embodiments, the resistor R71 and the resistor R88 are bias resistors of the triode Q13 and the triode Q18 respectively.
[0013] In further embodiments, the resistor R93 and the resistor R77 are current limiting resistors of the photoelectric coupler PC1 and the photoelectric coupler PC20 respectively.
[0014] In further embodiments, the resistor R61 and the resistor R65 are discharge resistors of the MOS tube Q12 and the MOS tube Q21 respectively.
[0015] In further embodiments, the resistor R69 and the resistor R70 are driving resistors of the MOS tube Q12 and the MOS tube Q21 respectively.
[0016] In further embodiments, the resistor R153 and the resistor R101 are bias resistors of the MOS transistor Q12 and the MOS transistor Q21, respectively.
[0017] Beneficial effects: the utility model discloses can solve various batteries under the premise of different discharge curve, the inaccuracy caused by internal resistance test, and the precision of battery internal resistance test is influenced by the high and low of the discharge platform of different batteries due to the increase of battery internal resistance. BRIEF DESCRIPTION OF DRAWINGS
[0018] Figure 1 is the circuit diagram of the utility model. DETAILED DESCRIPTION
[0019] The technical solutions of the utility model will be described clearly and completely below in conjunction with the drawings. Obviously, the described embodiments are part of the embodiments of the utility model, rather than all the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by the ordinary skilled in the art without making creative efforts belong to the protection scope of the utility model.
[0020] In the description of the utility model, it needs to be explained that the orientation or position relation indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer" and the like is the orientation or position relation shown in the drawings, and is only for the convenience of describing the utility model and simplifying the description, and does not indicate or imply that the indicated device or element must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the utility model. In addition, the terms "first", "second", "third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance.
[0021] In the description of the utility model, it needs to be explained that, unless otherwise explicitly specified and limited, the terms "mounting", "connecting", "connection" should be understood broadly, for example, can be fixed connection, can also be detachable connection, or integrally connected, can be mechanical connection, can also be electrical connection, can be directly connected, can also be indirectly connected through an intermediate medium, and can be the communication inside two elements. For the ordinary skilled in the art, the specific meaning of the above terms in the utility model can be understood according to the specific circumstances. In addition, the technical features involved in the different embodiments of the utility model described below can be combined with each other as long as they do not conflict with each other.
[0022] A battery internal resistance detection circuit based on single-chip microcomputer control, including: resistor R100, resistor R71, transistor Q13, resistor R93, resistor R149, resistor R88, transistor Q18, resistor R77, optocoupler PC1, optocoupler PC20, resistor R70, resistor R61, resistor R79, resistor R65, resistor R153, resistor R101, MOS transistor Q12, and MOS transistor Q21;
[0023] In one embodiment, Figure 1 As shown, one end of the resistor R100 is connected to the I / O1 interface of the single-chip microcomputer, and the other end is connected to one end of the resistor R71 and the b-pole of the transistor Q13. The e-pole of the transistor Q13 is connected to the other end of the resistor R71 and is grounded. The c-pole of the transistor Q13 is connected to the No. 2 pin of the optocoupler PC1. One end of the resistor R93 inputs a 3.3V voltage, and the other end is connected to the No. 1 pin of the optocoupler PC1.
[0024] In one embodiment, Figure 1 As shown, one end of the resistor R149 is connected to the I / O2 interface of the single-chip microcomputer, and the other end is connected to one end of the resistor R149 and the b-pole of the transistor Q18. The e-pole of the transistor Q18 is connected to the other end of the resistor R149 and grounded. The c-pole of the transistor Q18 is connected to the No. 2 pin of the optocoupler PC20. One end of the resistor R77 inputs a 3.3V voltage, and the other end is connected to the No. 1 pin of the optocoupler PC20.
[0025] In one embodiment, Figure 1 As shown, one end of the resistor R70, one end of the resistor R61, one end of the resistor R69, and one end of the resistor R65 are connected to the positive electrode of battery B, pin 4 of the optocoupler PC1 is connected to the other end of the resistor R70, the G electrode of the MOS transistor Q12 is simultaneously connected to one end of the resistor R153 and pin 3 of the optocoupler PC1, the D electrode of the MOS transistor Q12 is connected to the other end of the resistor R61, pin 4 of the optocoupler PC20 is connected to the other end of the resistor R69, the G electrode of the MOS transistor Q21 is simultaneously connected to one end of the resistor R101 and pin 3 of the optocoupler PC20, the D electrode of the MOS transistor Q21 is connected to the other end of the resistor R65, and the other end of the resistor R153, the S electrode of the MOS transistor Q12, the other end of the resistor R101, and the S electrode of the MOS transistor Q21 are connected to the negative electrode of battery B.
[0026] In one embodiment, Figure 1 As shown, the single chip microcomputer I / O1 interface and I / O2 interface respectively provide high level control signals to control the discharge of battery B.
[0027] In one embodiment, as shown in Figure 1 The resistor R100 and the resistor R149 are current limiting resistors of the single-chip microcomputer I / O1 interface and I / O2 interface.
[0028] In one embodiment, as shown in Figure 1 The resistor R71 and the resistor R88 are bias resistors of the triode Q13 and the triode Q18 respectively.
[0029] In one embodiment, as shown in Figure 1 The resistor R93 and the resistor R77 are current limiting resistors of the optocoupler PC1 and the optocoupler PC20 respectively.
[0030] In one embodiment, as shown in Figure 1 The resistor R61 and the resistor R65 are discharge resistors of the MOS tube Q12 and the MOS tube Q21 respectively.
[0031] In one embodiment, as shown in Figure 1 The resistor R69 and the resistor R70 are driving resistors of the MOS tube Q12 and the MOS tube Q21 respectively.
[0032] In one embodiment, as shown in Figure 1 The resistor R153 and the resistor R101 are bias resistors of the MOS tube Q12 and the MOS tube Q21 respectively.
[0033] In one embodiment, as shown in Figure 1 The optocoupler PC1 internally includes a light emitting diode PC1A and a photosensitive triode PC1B, and the optocoupler PC20 internally includes a light emitting diode PC20A and a photosensitive triode PC20B.
[0034] Working principle: when the power supply starts the battery internal resistance detection function, first make the I / O1 interface of the single-chip microcomputer high level, so that the triode Q13 is turned on, the light emitting diode PC1A inside the optocoupler PC1 is turned on, the photosensitive triode PC1B inside the optocoupler PC1 is turned on, so that the MOS tube Q12 has driving, the battery B discharges large current through the resistor R61 and the MOS tube Q12, the voltage U1 between the two ends of the battery B is tested, after the millisecond level discharge, the I / O1 interface and the I / O2 interface are turned on at the same time, at this time the resistor R61 and the resistor R65 begin to discharge in parallel, ignoring the internal resistance of the MOS tube, the voltage U2 between the two ends of the battery can be obtained, using the voltage difference and the current difference value of the two measurements, according to Ohm's law, the internal resistance of the battery can be easily calculated.
[0035] Obviously, the above embodiments are only examples for clearly illustrating the present application and are not intended to limit the present application. Based on the above description, other different forms of changes or variations can be made by those skilled in the art. Here, all the embodiments are not required to be enumerated. The changes or variations derived therefrom are still within the protection scope of the present application.
Claims
1. A single-chip microcomputer control-based battery internal resistance detection circuit, characterized by, The battery internal resistance detection circuit comprises: a resistor R100, a resistor R71, a triode Q13, a resistor R93, a resistor R149, a resistor R88, a triode Q18, a resistor R77, a photo-coupler PC1, a photo-coupler PC20, a resistor R70, a resistor R61, a resistor R79, a resistor R65, a resistor R153, a resistor R101, a MOS tube Q12, a MOS tube Q21; One end of the resistor R100 is connected with an I / O1 interface of a single-chip microcomputer, and the other end is connected with one end of the resistor R71 and a b electrode of the triode Q13; an e electrode of the triode Q13 is connected with the other end of the resistor R71 and grounded; a c electrode of the triode Q13 is connected with a No.2 pin of the photo-coupler PC1; one end of the resistor R93 inputs a 3.3V voltage, and the other end is connected with a No.1 pin of the photo-coupler PC1; One end of the resistor R149 is connected with an I / O2 interface of the single-chip microcomputer, and the other end is connected with one end of the resistor R149 and a b electrode of the triode Q18; an e electrode of the triode Q18 is connected with the other end of the resistor R149 and grounded; a c electrode of the triode Q18 is connected with a No.2 pin of the photo-coupler PC20; one end of the resistor R77 inputs a 3.3V voltage, and the other end is connected with a No.1 pin of the photo-coupler PC20; One end of the resistor R70, one end of the resistor R61, one end of the resistor R69 and one end of the resistor R65 are connected with a positive electrode of a battery B; a No.4 pin of the photo-coupler PC1 is connected with the other end of the resistor R70; a G electrode of the MOS tube Q12 is connected with one end of the resistor R153 and a No.3 pin of the photo-coupler PC1; a D electrode of the MOS tube Q12 is connected with the other end of the resistor R61; a No.4 pin of the photo-coupler PC20 is connected with the other end of the resistor R69; a G electrode of the MOS tube Q21 is connected with one end of the resistor R101 and a No.3 pin of the photo-coupler PC20; a D electrode of the MOS tube Q21 is connected with the other end of the resistor R65; the other end of the resistor R153, an S electrode of the MOS tube Q12, the other end of the resistor R101 and an S electrode of the MOS tube Q21 are connected with a negative electrode of the battery B.
2. The battery internal resistance detection circuit based on single-chip microcomputer control according to claim 1, characterized in that, The single-chip microcomputer I / O1 interface and I / O2 interface respectively give high-level control signals to control discharging of the battery B.
3. The battery internal resistance detection circuit based on single chip microcomputer control according to claim 1, characterized in that: The resistor R100 and the resistor R149 are current-limiting resistors of the single-chip microcomputer I / O1 interface and I / O2 interface.
4. The battery internal resistance detection circuit based on single-chip microcomputer control according to claim 1, characterized in that, The resistor R71 and the resistor R88 are bias resistors of the triode Q13 and the triode Q18 respectively.
5. The battery internal resistance detection circuit based on single-chip microcomputer control according to claim 1, characterized in that, The resistor R93 and the resistor R77 are current-limiting resistors of the photo-coupler PC1 and the photo-coupler PC20 respectively.
6. The battery internal resistance detection circuit based on single-chip microcomputer control according to claim 1, characterized in that, The resistor R61 and the resistor R65 are discharging resistors of the MOS tube Q12 and the MOS tube Q21 respectively.
7. The battery internal resistance detection circuit based on single-chip microcomputer control according to claim 1, characterized in that, The resistor R69 and the resistor R70 are driving resistors of the MOS tube Q12 and the MOS tube Q21 respectively.
8. The battery internal resistance detection circuit based on single-chip microcomputer control according to claim 1, characterized in that, The resistor R153 and the resistor R101 are bias resistors of the MOS transistor Q12 and the MOS transistor Q21, respectively. The resistor R153 and the resistor R101 are bias resistors of the MOS transistor Q12 and the MOS transistor Q21, respectively.
Citation Information
Cited By
Method for detecting whether power tube in switching circuit breaks down or not and driving system
CN121784504A