Charging circuit for small capacity battery
By designing a small-capacity battery charging circuit, using a microprocessor and a sampling resistor to implement charging current feedback and keeping the charging voltage and current constant, the problem of existing charging circuits being unsafe for small-capacity batteries is solved, and the service life of the battery is extended. Charging management is simplified.
Patent Information
- Application Number
- CN201811492574.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-07
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2038-12-07
AI Technical Summary
The existing charging circuit cannot provide a stable and small constant current power supply, which is unsafe for charging small-capacity batteries, may cause damage, and cannot extend their service life.
A charging circuit for small-capacity batteries is designed. The voltage output pin with adjustable output voltage of the microprocessor is used as the charging pin. The feedback of the charging current is realized through the sampling resistor and the analog-to-digital conversion input pin to maintain the charging voltage and To keep the current constant, a voltage follower and filter unit are used for current control to avoid current fluctuations, and diodes are used to provide reverse protection.
It achieves ideal charging protection for small-capacity batteries, ensures charging safety, and extends the service life of the battery. It does not require a specialized charging management chip or additional charging management module.
Smart Images

Figure CN109525015B
Abstract
Description
Technical Field
[0001] The invention relates to the field of electricity, and in particular to a charging circuit for a small-capacity battery. Background Art
[0002] Currently, batteries on the market are generally charged by using a corresponding charging power supply, and combined with a microprocessor pulse width modulation (PWM) method to adjust the charging power management IC module to achieve charging. The existing method is to use a microprocessor to drive the charging management chip.
[0003] For more information about the existing battery charging circuit, please refer to the Chinese patent application with publication number CN105226755A and name "Embedded Intelligent Charger".
[0004] The existing circuit is generally used for ordinary batteries, usually using a current of several hundred milliamperes for charging, or even a current of several amperes for fast charging.
[0005] However, when charging a small-capacity battery, it is usually hoped that the change in charging current is controlled at the microampere or milliampere level. Small-capacity batteries are mainly suitable for applications that require small batteries, such as in-ear hearing aids, swallowable smart pills, and non-intelligent battery watches. The capacity of small-capacity batteries is usually only 20 to 100 mA. This is because the battery is small in size, so the corresponding capacity is usually small.
[0006] For small-capacity batteries, it is dangerous to use a large current of several hundred milliamperes or several amperes for charging. Even a small current disturbance may cause damage to the small-capacity battery. Therefore, the existing charging circuit cannot provide a stable and small constant current power supply for charging, and cannot ensure the charging safety of small-capacity batteries. Summary of the invention
[0007] The problem solved by the invention is to provide a charging circuit for a small-capacity battery, so as to provide protection for the charging of the small-capacity battery and prolong the service life of the small-capacity battery.
[0008] To solve the above problems, the present invention provides a charging circuit for a small-capacity battery, comprising: a microprocessor, wherein the microprocessor has a voltage output pin with an adjustable output voltage, and the voltage output pin serves as a charging pin for the small-capacity battery; the charging pin is connected to a first end of a sampling resistor, and a second end of the sampling resistor is connected to a positive charging electrode of the small-capacity battery, and a negative charging electrode of the small-capacity battery is grounded; the microprocessor also has a first analog-to-digital conversion input pin and a second analog-to-digital conversion input pin; the first analog-to-digital conversion input pin is connected to the first end of the sampling resistor, and the second analog-to-digital conversion input pin is connected to the second end of the sampling resistor.
[0009] Optionally, the charging pin is connected to the first end of the sampling resistor through a voltage follower; the charging pin is connected to the input end of the voltage follower; and the output end of the voltage follower is connected to the first end of the sampling resistor.
[0010] Optionally, the output end of the voltage follower is connected to the first end of the sampling resistor through a reverse protection unit.
[0011] Optionally, the reverse protection unit is a diode, the output end of the voltage follower is connected to the anode of the diode, and the cathode of the diode is connected to the first end of the sampling resistor.
[0012] Optionally, the charging pin is connected to the input end of the voltage follower through a filtering unit.
[0013] Optionally, the charging pin is a digital-to-analog conversion output pin of the microprocessor.
[0014] Optionally, the filtering unit includes a filter resistor, a first capacitor and a second capacitor; the charging pin is connected to the first end of the filter resistor, and the second end of the filter resistor is connected to the input end of the voltage follower; the first end of the first capacitor is connected to the first end of the filter resistor, and the second end of the first capacitor is grounded; the first end of the second capacitor is connected to the second end of the filter resistor, and the second end of the second capacitor is grounded.
[0015] Optionally, the charging pin is a pulse width modulation output pin.
[0016] Optionally, the filtering unit includes a first filter resistor, a second filter resistor, a first capacitor and a second capacitor; the charging pin is connected to the first end of the first filter resistor, the second end of the first filter resistor is connected to the first end of the second filter resistor, and the second end of the second filter resistor is connected to the input end of the voltage follower; the first end of the first capacitor is connected to the second end of the first filter resistor, and the second end of the first capacitor is grounded; the first end of the second capacitor is connected to the second end of the second filter resistor, and the second end of the second capacitor is grounded.
[0017] Optionally, the first analog-to-digital conversion input pin is connected to a first end of the sampling resistor via a first current limiting resistor, and the second analog-to-digital conversion input pin is connected to a second end of the sampling resistor via a second current limiting resistor.
[0018] In one aspect of the technical solution of the present invention, a voltage output pin with adjustable output voltage is used as a charging voltage reference pin for a small-capacity battery, thereby avoiding direct charging with a power supply. In this way, a charging source with low charging voltage and small charging current can be provided for a small-capacity battery. In addition, the feedback of the charging current is realized through circuit design. According to the corresponding settings, the microprocessor can keep the reference voltage output by its charging pin constant under the feedback of the charging current, thereby ensuring the constant charging current, thereby providing a more ideal charging protection for the small-capacity battery, ensuring the charging safety of the small-capacity battery, and extending the service life of the small-capacity battery.
[0019] In another aspect of the technical solution of the present invention, a dedicated charging management chip is not required, and charging and charging management can be directly performed using a microprocessor, and there is no need for an external charging management module (peripheral circuit). BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a charging circuit diagram of a small-capacity battery provided by an embodiment of the present invention;
[0021] Figure 2 FIG. 4 is a charging circuit diagram of a small-capacity battery provided in another embodiment of the present invention.
[0022] Figure 2 is a PWM modulation reference voltage. Figure 1 The design is similar. DETAILED DESCRIPTION
[0023] As described in the background art, for a small-capacity battery, charging with a relatively large current of several hundred milliamperes or several amperes will have adverse effects such as reducing the life of the battery.
[0024] To this end, the present invention provides a new charging circuit for a small-capacity battery to solve the above-mentioned shortcomings.
[0025] For a clearer representation, the present invention is described in detail below with reference to the accompanying drawings.
[0026] The embodiment of the present invention provides a charging circuit for a small-capacity battery, such as Figure 1 As shown, including:
[0027] The microprocessor M1 has a digital-to-analog conversion output pin P11 (DAC0). In this embodiment, the digital-to-analog conversion output pin P11 is used as a charging pin of the charging circuit, that is, the charging pin is equivalent to a charging power source.
[0028] In order to use the charging pin for charging, in this embodiment, the charging pin is connected to the first end of the sampling resistor RS, the second end of the sampling resistor RS is connected to the charging positive electrode of the small-capacity battery BT, and the charging negative electrode of the small-capacity battery BT is grounded. The microprocessor M1 also has a first analog-to-digital conversion input pin P12 (ADC3) and a second analog-to-digital conversion input pin P13 (ADC2). The first analog-to-digital conversion input pin P12 is connected to the first end of the sampling resistor RS, and the second analog-to-digital conversion input pin P13 is connected to the second end of the sampling resistor RS.
[0029] In the charging circuit provided in this embodiment, the digital-to-analog conversion output pin P11 is used as a voltage output pin in the microprocessor M1. The voltage output pin in this embodiment refers to: this pin is a voltage output pin, and the output voltage is adjustable. In this embodiment, the voltage output by this voltage output pin will be adjusted according to the feedback effect to achieve constant voltage. Please refer to the subsequent content for further information.
[0030] In this embodiment, the digital-to-analog conversion output pin P11 (voltage output pin with adjustable output voltage) is used as a charging pin for the small-capacity battery BT, thereby avoiding direct charging using a power source. In this way, a charging source with low charging voltage and small charging current can be provided for the small-capacity battery BT.
[0031] However, there is still a need to solve the problem of constant charging voltage (current).
[0032] Therefore, in this embodiment, a sampling resistor RS connected in series with a small-capacity battery BT is designed in the circuit, and the current flowing through the sampling resistor RS is the charging current. Then, the first end of the sampling resistor RS is designed to be connected to the first analog-to-digital conversion input pin P12 of the microprocessor M1, and the second end of the sampling resistor RS is connected to the second analog-to-digital conversion input pin P13 of the microprocessor M1. In such a circuit structure design, the voltages at both ends of the sampling resistor RS can be sampled by using two analog-to-digital conversion input pins, that is, the voltage difference at both ends of the sampling resistor RS can be obtained, and then the microprocessor M1 can obtain the current flowing through the sampling resistor RS, which is equivalent to the microprocessor M1 being able to sample the charging current.
[0033] Once the microprocessor M1 can sample the charging current, the charging current feedback is realized. According to the corresponding settings, the microprocessor M1 can keep the output voltage of its charging pin constant under the feedback of the charging current, that is, ensure the constant charging voltage (current).
[0034] A specific small-capacity battery is a button-type charger for hearing aids. The power supply voltage of the battery is generally 1.2V, 1.35V, 1.4V, 1.5V or 1.55V, and the capacity of the battery is 20-100mA. The capacity of the battery is usually expressed as 1C. In a small-capacity battery, the charging current is controlled at about 0.05-0.2C. During the charging process, the charging is divided into fast charging and slow charging. The fast charging is controlled at about 0.2C and the slow charging is about 0.05C. It is usually charged in a constant current manner.
[0035] In the circuit provided in this embodiment, when charging a small-capacity battery BT, a low charging voltage in a wide range from about 5V to 1mV can be provided, that is, in the circuit provided in this embodiment, the charging voltage range can be adjusted from 1mV to 5V.
[0036] In the circuit provided in this embodiment, the charging voltage is reduced to about 1mV by selecting the parameters of the components in the circuit. For example, when the digital-to-analog converter (DAC) in the microprocessor M1 is 12 bits, it can divide the corresponding reference voltage into 2 12 That is, the voltage of each portion is 1 / 4096 of the reference voltage. When the reference voltage is 3.3V, the minimum voltage reaches about 0.8mV. At this time, correspondingly, the charging current can be controlled below 30mA, or even 100μA. For example, when the analog-to-digital converter (ADC) in the microprocessor M1 is 12 bits, if a battery with a power supply voltage of 1.25V is charged (in a 1.25V battery, the charging reference resistance is about 160 ohms), it can be seen that the minimum current difference is 3.3×(1 / 4096)×(1 / 160)≈0.000005A, which is about a change of 5μA. In other words, in the case of realizing the feedback of the charging current, this embodiment can accurately control the charging current when charging the small-capacity battery BT, and control the current to fluctuate within the error range of the milliampere level or even the microampere level (such as 5μA), thereby reducing the damage to the small-capacity battery BT due to large current fluctuations or excessive current.
[0037] It can be seen that the above charging circuit can provide more ideal charging protection for the small-capacity battery BT, ensure the charging safety of the small-capacity battery BT, and extend the service life of the small-capacity battery BT.
[0038] At the same time, the corresponding charging circuit does not require a dedicated charging management chip. The microprocessor can directly perform charging and charging management, and there is no need for an external charging management module (peripheral circuit).
[0039] In this embodiment, the charging pin is designed to be connected to the first end of the sampling resistor RS through the voltage follower VF. Specifically, the charging pin is connected to the input end of the voltage follower VF, and the output end of the voltage follower VF is connected to the first end of the sampling resistor RS. The working voltage input end of the voltage follower VF is connected to the positive voltage, and the other voltage end is grounded.
[0040] The voltage follower VF has the advantages of high input impedance and low output impedance. Therefore, when it is connected between the charging pin and the sampling resistor RS, it can achieve buffering and play a connecting role. In addition, since the voltage follower VF has low output impedance, it can also be used to amplify the drive current, that is, it can further solve the problem that the drive current output by the voltage reference is sometimes too weak to charge the small-capacity battery BT normally, that is, adding the voltage follower VF can increase the charging current without increasing the charging voltage.
[0041] Furthermore, in this embodiment, the output end of the voltage follower VF is connected to the first end of the sampling resistor RS through the reverse protection unit.
[0042] The reverse protection unit of this embodiment is implemented by a diode D1. Specifically, the output end of the voltage follower VF is connected to the positive electrode of the diode D1, and the negative electrode of the diode D1 is connected to the first end of the sampling resistor RS. The diode D1 serves as a reverse protection unit for the small-capacity battery BT during charging. When the battery voltage is too high, it prevents the current from reversing and damaging the voltage follower VF. Using a diode as a reverse protection unit has the advantages of current orientation, low cost, and ease of use.
[0043] Furthermore, in this embodiment, the charging pin is connected to the input end of the voltage follower VF through the filtering unit.
[0044] Specifically, the filter unit designed in this embodiment includes a filter resistor RF, a first capacitor C1 and a second capacitor C2. Among them, the charging pin is connected to the first end of the filter resistor RF, and the second end of the filter resistor RF is connected to the input end of the voltage follower VF. The first end of the first capacitor C1 is connected to the first end of the filter resistor RF, and the second end of the first capacitor C1 is grounded. The first end of the second capacitor C2 is connected to the second end of the filter resistor RF, and the second end of the second capacitor C2 is grounded. The corresponding RC filtering effect can be achieved through the resistance of the first capacitor C1 and the charging pin itself. The corresponding RC filtering effect can be achieved by connecting the first end of the second capacitor C2 to the combination of the filter resistor RF. The corresponding filtering effect can eliminate interference and make the charging voltage more constant.
[0045] In this embodiment, the first analog-to-digital conversion input pin P12 is connected to the first end of the sampling resistor RS through the first current limiting resistor RL1, and the second analog-to-digital conversion input pin P13 is connected to the second end of the sampling resistor RS through the second current limiting resistor RL2. The two current limiting resistors are used to prevent the corresponding voltage from being too large and affecting the voltage sampling.
[0046] In this embodiment, the model of the microprocessor M1 may be STM32F103, STM32F105 or STM32F407. Generally, any microprocessor with a digital-to-analog conversion output pin and two or more analog-to-digital conversion input pins may be applicable to the present invention.
[0047] In summary, this embodiment provides a charging circuit for a small-capacity battery, including: a microprocessor, an RC filter unit (including a filter resistor, a first capacitor and a second capacitor), a voltage follower unit (voltage follower), a diode forward device (reverse protection unit) and a sampling resistor. Among them, the microprocessor has an ADC port (a voltage output pin with adjustable output voltage) and a DAC port (a first analog-to-digital conversion input pin and a second analog-to-digital conversion input pin). The output voltage of the ADC port is adjustable. The ADC port enters the voltage follower unit through the RC filter unit to amplify the current, connects the first end of the sampling resistor through a diode, and the second end of the sampling resistor is connected to the charging positive electrode of the small-capacity battery. The voltage difference across the sampling resistor is collected and powered by the sampling resistor. The charging circuit of the small-capacity battery is a high-precision and simple small-current charging solution that does not require a special charging management IC module to provide safety protection for the charging of small-capacity batteries.
[0048] Another embodiment of the present invention provides another charging circuit for a small-capacity battery, such as Figure 2 shown.
[0049] Similar to the above-mentioned embodiment, the charging circuit of this embodiment also includes a microprocessor M2, one of the pins of the microprocessor M2 (this pin is a voltage output pin, and the output voltage is adjustable) is used as a charging pin, the charging pin is connected to the input end of the voltage follower VF, the output end of the voltage follower VF is connected to the positive electrode of the diode D1, the negative electrode of the diode D1 is connected to the first end of the sampling resistor RS, the first end of the sampling resistor RS is connected to the charging positive electrode of the small-capacity battery BT, and the charging negative electrode of the small-capacity battery BT is grounded. The microprocessor M2 also has a first analog-to-digital conversion input pin P22 (ADC3) and a second analog-to-digital conversion input pin P23 (ADC2). The first analog-to-digital conversion input pin P22 is connected to the first end of the sampling resistor RS through the first current limiting resistor RL1, and the second analog-to-digital conversion input pin P23 is connected to the second end of the sampling resistor RS through the second current limiting resistor RL2. For the properties and advantages of these structures, please refer to the corresponding contents of the above-mentioned embodiments.
[0050] In this embodiment, what is different from the above-mentioned embodiment is that Figure 2 As shown, the charging pin adopts the pulse width modulation output pin P21 (PWM1) of the microprocessor M2.
[0051] The pulse width modulation output pin P21 is also a voltage output pin, and the output voltage is adjustable. The specific adjustment can be adjusted by the pulse width (pulse duty cycle). The voltage output by the pulse width modulation output pin P21 is also combined with the subsequent two-stage filtering to become a more constant voltage for charging the battery.
[0052] In this embodiment, what is different from the above-mentioned embodiment is that Figure 2 As shown, the filter unit includes a first filter resistor RF1, a second filter resistor RF2, a first capacitor C1 and a second capacitor C2, that is, there are two filter resistors.
[0053] Correspondingly, the charging pin is connected to the first end of the first filter resistor RF1, the second end of the first filter resistor RF1 is connected to the first end of the second filter resistor RF2, and the second end of the second filter resistor RF2 is connected to the input end of the voltage follower VF. The first end of the first capacitor C1 is connected to the second end of the first filter resistor RF1, and the second end of the first capacitor C1 is grounded. The first end of the second capacitor C2 is connected to the second end of the second filter resistor RF2, and the second end of the second capacitor C2 is grounded. In such a structure, the first filter resistor RF1 and the first capacitor C1 constitute a first-stage filtering structure, and the second filter resistor RF2 and the second capacitor C2 constitute a second-stage filtering structure. In addition to better filtering, the two-stage filtering can also make the charging voltage provided to the battery by the pulse width modulation output pin P21 more constant.
[0054] In this embodiment, the model of the microprocessor M2 can also be STM32F103, STM32F105 or STM32F407. Similarly, any microprocessor with a pulse width modulation output pin and two or more analog-to-digital conversion input pins can be applied to the present invention.
[0055] For more information about this embodiment, please refer to the previous embodiments.
[0056] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A charging circuit for a small-capacity battery, characterized in that: include: A microprocessor, wherein the microprocessor has a voltage output pin with an adjustable output voltage, and the voltage output pin serves as a charging pin for a small-capacity battery; The charging pin is connected to the first end of the sampling resistor through a voltage follower, the second end of the sampling resistor is connected to the positive charging electrode of the small-capacity battery, and the negative charging electrode of the small-capacity battery is grounded; the charging pin is connected to the input end of the voltage follower; the output end of the voltage follower is connected to the first end of the sampling resistor; The microprocessor also has a first analog-to-digital conversion input pin and a second analog-to-digital conversion input pin; The first analog-to-digital conversion input pin is connected to a first end of the sampling resistor through a first current limiting resistor, and the second analog-to-digital conversion input pin is connected to a second end of the sampling resistor through a second current limiting resistor.
2. The charging circuit for a small-capacity battery as claimed in claim 1, characterized in that: The output end of the voltage follower is connected to the first end of the sampling resistor through a reverse protection unit.
3. The charging circuit for a small-capacity battery as claimed in claim 2, characterized in that: The reverse protection unit is a diode, the output end of the voltage follower is connected to the anode of the diode, and the cathode of the diode is connected to the first end of the sampling resistor.
4. The charging circuit for a small-capacity battery as claimed in claim 3, characterized in that: The charging pin is connected to the input end of the voltage follower through a filtering unit.
5. The charging circuit for a small-capacity battery as claimed in claim 4, characterized in that: The charging pin is a digital-to-analog conversion output pin of the microprocessor.
6. The charging circuit for a small-capacity battery as claimed in claim 5, characterized in that: The filtering unit includes a filtering resistor, a first capacitor and a second capacitor; The charging pin is connected to a first end of the filter resistor, and a second end of the filter resistor is connected to an input end of the voltage follower; The first end of the first capacitor is connected to the first end of the filter resistor, and the second end of the first capacitor is grounded; The first end of the second capacitor is connected to the second end of the filter resistor, and the second end of the second capacitor is grounded.
7. The charging circuit for a small-capacity battery as claimed in claim 4, characterized in that: The charging pin is a pulse width modulation output pin.
8. The charging circuit for a small-capacity battery as claimed in claim 7, characterized in that: The filtering unit includes a first filtering resistor, a second filtering resistor, a first capacitor and a second capacitor; The charging pin is connected to the first end of the first filter resistor, the second end of the first filter resistor is connected to the first end of the second filter resistor, and the second end of the second filter resistor is connected to the input end of the voltage follower; The first end of the first capacitor is connected to the second end of the first filter resistor, and the second end of the first capacitor is grounded; A first end of the second capacitor is connected to a second end of the second filter resistor, and a second end of the second capacitor is grounded.
