Battery charging and discharging control circuit and corresponding battery controller
By designing a battery charging and discharging control circuit, a microcontroller chip and a charging and discharging module are used to realize real-time monitoring and control of battery power, solving the problem of over-discharging or over-charging of the battery, protecting battery performance and extending its service life.
Patent Information
- Application Number
- CN202520284723.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-20
- Publication Date
- 2026-01-13
- Estimated Expiration
- 2035-02-20
AI Technical Summary
The batteries in existing electronic devices are easily damaged by over-discharging or over-charging, affecting their lifespan and performance.
A battery charging and discharging control circuit was designed. Through a microcontroller chip and a charging and discharging module, the battery power is monitored and controlled in real time to prevent power supply or charging operations when the battery power is lower or higher than the set value.
It effectively prevents over-discharge or over-charge of the battery, protects battery performance, extends service life, avoids safety hazards, and improves battery reliability.
Smart Images

Figure CN223797941U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to circuit technical field, especially a kind of battery charge-discharge control circuit and corresponding battery controller. BACKGROUND
[0002] In modern society, battery can provide power for electronic device, so that electronic device can work normally. However, in the process of battery power supply, battery is prone to over-discharge. Moreover, in the process of charging battery by user, battery is also prone to overcharge. Over-discharge and overcharge will damage the performance and service life of battery. Therefore, the battery of existing electronic device has the technical problem of being easily damaged.
[0003] Therefore, it is necessary to provide a battery charge-discharge control circuit and corresponding battery controller to solve the above technical problems. SUMMARY
[0004] The utility model provides a kind of battery charge-discharge control circuit and corresponding battery controller, effectively solve the technical problem that the battery of existing electronic device is easily damaged.
[0005] The utility model provides a kind of battery charge-discharge control circuit, it includes,
[0006] Battery, for outputting battery voltage and power signal;
[0007] First voltage division module, one end is connected with the battery, the other end is connected with micro control chip, for voltage division operation to the power signal, to generate power detection signal;
[0008] Micro control chip, for obtaining the power of the battery based on the power detection signal, and generating first control signal;
[0009] Charging power supply, for outputting charging voltage and power signal;
[0010] Second voltage division module, one end is connected with the charging power supply, the other end is connected with micro control chip, for voltage division operation to the power signal, to generate charging signal;
[0011] Wherein, the micro control chip is also used to generate second control signal based on the charging signal;
[0012] Charge-discharge module, including first connecting end, second connecting end, third connecting end and control end, the first connecting end is connected with the battery, the second connecting end is connected with external device, the third connecting end is connected with the charging power supply, and the control end is connected with the micro control chip;
[0013] When the charge-discharge module receives the first control signal, the charge-discharge module is in a conducting state, and the battery is used to perform a power supply operation on the external device through the battery voltage; if the battery power is less than a first set value, the micro control chip stops outputting the first control signal, the charge-discharge module is in a disconnected state, and the battery stops supplying power to the external device;
[0014] When the charge-discharge module receives the second control signal, the charge-discharge module is in a conducting state, and the charging power supply is used to perform a charging operation on the battery through the charging voltage; if the battery power is greater than a second set value, the micro control chip stops outputting the second control signal, the charge-discharge module is in a disconnected state, and the charging power supply stops charging the battery.
[0015] Further, the micro control chip includes a control pin, the charge-discharge module includes a transistor and a MOS tube, the control pin is connected to the base of the transistor through the control end, the collector of the transistor is connected to the gate of the MOS tube, the emitter of the transistor is grounded, the source of the MOS tube is connected to the battery through the first connection end, the emitter of the transistor is connected to the external device through the second connection end, and the drain of the MOS tube is connected to the charging power supply through the third connection end;
[0016] When the base of the transistor receives the first control signal, the transistor is in a conducting state, the MOS tube is in a conducting state, and the battery is used to perform a power supply operation on the external device; if the battery power is less than a first set value, the micro control chip stops outputting the first control signal, the transistor is in a disconnected state, the MOS tube is in a disconnected state, and the battery stops supplying power to the external device.
[0017] When the base of the transistor receives the second control signal, the transistor is in a conducting state, the MOS tube is in a conducting state, and the charging power supply is used to perform a charging operation on the battery; if the battery power is greater than a second set value, the micro control chip stops outputting the second control signal, the transistor is in a disconnected state, the MOS tube is in a disconnected state, and the charging power supply stops charging the battery.
[0018] Further, the first voltage dividing module includes a first voltage dividing resistor and a second voltage dividing resistor, the micro control chip includes a first input pin, one end of the first voltage dividing resistor is connected to the battery, the other end of the first voltage dividing resistor is connected to the first input pin, one end of the second voltage dividing resistor is connected to the first voltage dividing resistor, and the other end of the second voltage dividing resistor is grounded;
[0019] The second voltage division module comprises a third voltage division resistor and a fourth voltage division resistor, the micro control chip comprises a second input pin, one end of the third voltage division resistor is connected to the charging power supply, the other end of the third voltage division resistor is connected to the second input pin, one end of the fourth voltage division resistor is connected to the third voltage division resistor, and the other end of the fourth voltage division resistor is grounded.
[0020] Further, the battery charging and discharging control circuit further comprises an adjusting button, the micro control chip comprises an adjusting pin, the adjusting button is connected to the adjusting pin, and the adjusting button is used for adjusting the power of the external device.
[0021] Further, the battery charging and discharging control circuit further comprises a display module, the micro control chip comprises a display pin, the display pin is connected to the display module, the micro control chip is used for generating a display signal based on the power detection signal and internal parameter settings of the micro control chip, and the display module displays the power of the battery and the power output time of the external device based on the display signal.
[0022] Further, the battery charging and discharging control circuit comprises an LED lamp, the micro control chip comprises a power display pin, the power display pin is connected to the LED lamp, the micro control chip is used for outputting a power signal, and the LED lamp is used for displaying the current power of the external device based on the power signal.
[0023] Further, the battery charging and discharging control circuit comprises a programming debugging interface, the micro control chip comprises a debugging pin, the programming debugging interface is connected to the debugging pin, and the programming debugging interface is used for debugging the internal parameter settings of the micro control chip and adjusting the power output of the external device.
[0024] Further, the battery charging and discharging control circuit comprises a voltage conversion chip, the voltage conversion chip comprises a Vin pin and a Vout pin, the micro control chip U1 comprises a power supply pin, the Vin pin is connected to the battery, the Vout pin is connected to the power supply pin, and the voltage conversion chip is used for voltage conversion operation on the battery voltage to generate a chip power supply voltage, and the chip power supply voltage is used for power supply operation on the micro control chip.
[0025] Further, the model of the micro control chip is STM8S103.
[0026] A battery controller comprising the battery charging and discharging control circuit described in any of the preceding embodiments.
[0027] The utility model discloses a battery charge and discharge control circuit, the battery charge and discharge control circuit is provided with micro - control signal and charge and discharge module.
[0028] And, when the charge and discharge module receives the second control signal, the charge and discharge module is in the on state, and the charging power supply is used for charging operation on the battery through the charging voltage. If the battery capacity is greater than the second set value, the micro control chip stops outputting the second control signal, the charge and discharge module is in the off state, and the charging power supply stops charging the battery. Therefore, the setting of the battery charge and discharge control circuit effectively protects the battery and prevents the battery from overcharging. Avoiding the overcharge leading to the battery appearing the bulge, the leakage and even the explosion and other security risks, it is favorable for improving the service life of the battery and maintaining the performance of the battery. And, the battery charge and discharge control circuit effectively solves the technical problem that the battery of the existing electronic equipment is easily damaged. BRIEF DESCRIPTION OF DRAWINGS
[0029] In order to more clearly illustrate the technical scheme in the embodiments of the utility model or the prior art, the following briefly introduces the drawing needed to be used in the embodiments, and the drawing in the following description is only the corresponding drawing of part of the embodiments of the utility model.
[0030] Figure 1 It is the structural diagram of the battery charge and discharge control circuit of the utility model one embodiment.
[0031] Figure 2 It is the circuit diagram of the battery of the battery charge and discharge control circuit of the utility model one embodiment.
[0032] Figure 3 It is the circuit diagram of the micro control chip of the battery charge and discharge control circuit of the utility model one embodiment.
[0033] Figure 4 It is the circuit diagram of the charge and discharge module and the second voltage division module of the battery charge and discharge control circuit of the utility model one embodiment.
[0034] Figure 5 It is the circuit diagram of the first voltage division module of the battery charge and discharge control circuit of the utility model one embodiment.
[0035] Figure 6 The circuit diagram of the adjusting button of the battery charge-discharge control circuit of the embodiment.
[0036] Figure 7 The circuit diagram of the display driving chip of the battery charge-discharge control circuit of the embodiment.
[0037] Figure 8 The circuit diagram of the LCD display of the battery charge-discharge control circuit of the embodiment.
[0038] Figure 9 The circuit diagram of the LED lamp of the battery charge-discharge control circuit of the embodiment.
[0039] Figure 10 The circuit diagram of the programming debugging interface of the battery charge-discharge control circuit of the embodiment.
[0040] Figure 11 The circuit diagram of the voltage conversion chip of the battery charge-discharge control circuit of the embodiment.
[0041] Figure 12 The circuit diagram of the reset pin of the battery charge-discharge control circuit of the embodiment.
[0042] Figure 13 The circuit diagram of the switch button of the battery charge-discharge control circuit of the embodiment.
[0043] In the figure, 10 is a battery charge-discharge control circuit, 11 is a first voltage division module, 12 is a charging power supply, 13 is a second voltage division module, 14 is a charge-discharge module, 15 is an external device, 16 is a first connection end, 17 is a second connection end, 18 is a third connection end, and 19 is a control end. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0045] The directions mentioned in the present application, such as “up”, “down”, “front”, “back”, “left”, “right”, “inner”, “outer”, “side”, “top” and “bottom”, are only the directions of the drawings, and the directions are used to explain and understand the present application, rather than to limit the present application.
[0046] The terms "first", "second", etc. in the utility model are only for the purpose of description, and cannot be understood as indicating or implying relative importance, and are not as a limitation on the order.
[0047] In the drawings, similar elements are denoted by the same reference numerals.
[0048] Please refer to Figure 1 , Figure 2 and Figure 3 , the utility model provides a kind of battery charge-discharge control circuit 10, which is applied to a kind of battery controller.The battery controller can be used to control external device 15, in the embodiment, external device 15 can be a kind of therapeutic instrument. Among them, battery BAT+ is used to output battery voltage and power signal.The one end of first voltage division module 11 is connected with battery BAT+, and the other end of first voltage division module 11 is connected with micro control chip U1.First voltage division module 11 can carry out voltage division operation to power signal, and first voltage division module 11 can generate power detection signal.
[0049] On the basis of Figure 1 And Figure 2 , please combine Figure 3 And Figure 4 . Micro control chip U1 can obtain the power of the battery BAT+ based on power detection signal, and micro control chip U1 can generate first control signal.Charging power supply 12 can output charging voltage and charging signal, and one end of second voltage division module 13 is connected with charging power supply 12, and the other end of second voltage division module 13 is connected with micro control chip U1.Second voltage division module 13 is used to carry out voltage division operation to power signal, and second voltage division module 13 can generate charging signal. Among them, micro control chip U1 is also used to generate second control signal based on charging signal.Charge-discharge module 14 includes first connection end 16, second connection end 17, third connection end 18 and control end 19, first connection end 16 is connected with battery BAT+, and second connection end 17 is connected with external device 15.Third connection end 18 is connected with charging power supply 12, and control end 19 is connected with micro control chip U1.
[0050] Please refer to Figure 1 , Figure 2 And Figure 3When the charge-discharge module 14 receives the first control signal, the charge-discharge module 14 is in the on state, and the battery BAT+ can supply power to the external device 15 through the battery voltage. If the battery BAT+ is less than the first set value, the micro control chip U1 stops outputting the first control signal. The charge-discharge module 14 is in the off state, and the battery BAT+ stops supplying power to the external device 15. The first set value is 9.6V. When the charge-discharge module 14 receives the second control signal, the charge-discharge module 14 is in the on state, and the charging power supply 12 can charge the battery BAT+ through the charging voltage. If the battery BAT+ is greater than the second set value, the micro control chip U1 stops outputting the second control signal. The charge-discharge module 14 is in the off state, and the charging power supply 12 stops charging the battery BAT+. The second set value is 12.6V.
[0051] Please refer to Figures 2 to 13 , the following is a detailed description of the specific structure of the battery charge-discharge control circuit 10:
[0052] Please refer to Figure 3 and Figure 4 The model of the micro control chip U1 is STM8S103. The micro control chip U1 includes the control pin SPI_MOSI(TIM1_CH1) / PC6(HS), the charge-discharge module 14 includes the transistor Q2 and the MOS tube Q1. The control pin SPI_MOSI(TIM1_CH1) / PC6(HS) is connected to the base of the transistor Q2 through the control end 19, the collector of the transistor Q2 is connected to the gate of the MOS tube Q1, and the emitter of the transistor Q2 is grounded. The source of the MOS tube Q1 is connected to the battery BAT+ through the first connection end 16, the emitter of the transistor Q2 is connected to the external device 15 through the second connection end 17, and the drain of the MOS tube Q1 is connected to the charging power supply 12 through the third connection end 18.
[0053] Please refer to Figure 3 and Figure 4When the base of the triode Q2 receives the first control signal, the triode Q2 is in the on state. The MOS tube is in the on state, and the battery BAT+ is used for power supply operation of the external device 15. If the battery BAT+ is less than the first set value, the micro control chip U1 stops outputting the first control signal. The triode Q2 is in the off state, the MOS tube Q1 is in the off state, and the battery BAT+ stops supplying power to the external device 15. When the base of the triode Q2 receives the second control signal, the triode Q2 is in the on state, the MOS tube Q1 is in the on state, and the charging power supply 12 is used for charging operation of the battery BAT+. If the battery BAT+ is greater than the second set value, the micro control chip U1 stops outputting the second control signal, the triode Q2 is in the off state, the MOS tube Q1 is in the off state, and the charging power supply 12 stops charging the battery BAT+.
[0054] Please refer to Figure 3 , Figure 4 and Figure 5 , the first voltage dividing module 11 includes a first voltage dividing resistor R2 and a second voltage dividing resistor R3, and the micro control chip U1 includes a first input pin AIN4 / TIM2_CH2 / ADC_ETR / PD3(HS). One end of the first voltage dividing resistor R2 is connected to the battery BAT+, and the other end of the first voltage dividing resistor R2 is connected to the first input pin AIN4 / TIM2_CH2 / ADC_ETR / PD3(HS). One end of the second voltage dividing resistor R3 is connected to the first voltage dividing resistor R2, and the other end of the second voltage dividing resistor R3 is grounded. The first voltage dividing resistor R2 and the second voltage dividing resistor R3 can perform voltage dividing operation on the power signal, effectively avoiding damage to the micro control chip U1 caused by excessive voltage of the power signal. The second voltage dividing module 13 includes a third voltage dividing resistor R10 and a fourth voltage dividing resistor R11, and the micro control chip U1 includes a second input pin [AIN3][TIM2_CH3] / PD2(HS). One end of the third voltage dividing resistor R10 is connected to the battery BAT+, and the other end of the third voltage dividing resistor R10 is connected to the second input pin [AIN3][TIM2_CH3] / PD2(HS). One end of the fourth voltage dividing resistor R11 is connected to the third voltage dividing resistor R10, and the other end of the fourth voltage dividing resistor R11 is grounded. The third voltage dividing resistor R10 and the fourth voltage dividing resistor R11 can perform voltage dividing operation on the power signal, effectively avoiding damage to the micro control chip U1 caused by excessive voltage of the power signal.
[0055] Please refer to Figure 3 , Figure 6 and Figure 9, the battery charging and discharging control circuit 10 further comprises an adjusting button SW2, the micro control chip U1 comprises an adjusting pin PD4(HS) / UART1_CK / TIM2_CH1 / BEEP, the adjusting button SW2 is connected with the adjusting pin PD4(HS) / UART1_CK / TIM2_CH1 / BEEP, and the adjusting button SW2 is used for adjusting the power of the external device 15. In the therapeutic instrument of the embodiment, the power of the external device 15 is adjusted, that is, the treatment intensity of the therapeutic instrument is adjusted. The treatment intensity includes 100% treatment intensity, 75% treatment intensity, 50% treatment intensity and 25% treatment intensity. The battery charging and discharging control circuit 10 comprises an LED lamp LED1, the micro control chip U1 comprises a power display pin SPI_MISO(TIM1_CH2) / PC7(HS), the power display pin SPI_MISO(TIM1_CH2) / PC7(HS) is connected with the LED lamp LED1, and the micro control chip U1 is used for outputting a power signal. The LED lamp LED1 can display the current power of the external device 15 based on the power signal. In the therapeutic instrument of the embodiment, the power of the external device 15 is displayed, that is, the treatment intensity of the therapeutic instrument is displayed.
[0056] Please refer to Figure 3 、 Figure 7 and Figure 8 , the battery charging and discharging control circuit 10 further comprises a display module. The micro control chip U1 comprises a display pin, and the display pin is connected with the display module. The display module comprises a display driving chip U2 and an LCD display DIS. The display pin comprises an SPI_SCK(TIM2_CH1) / PC5(HS) pin, a TIM1_CH4 / CLK_CCO[AIN2LI][TIM1_CH2N] / PC4(HS) pin and a TIM1_CH3[TLI][TIM1_CH1N] / PC3(HS) pin, the display driving chip comprises a CS pin, a WR pin and a DATA pin. The SPI_SCK(TIM2_CH1) / PC5(HS) pin is connected with the CS pin, the TIM1_CH4 / CLK_CCO[AIN2LI][TIM1_CH2N] / PC4(HS) pin is connected with the WR pin, and the TIM1_CH3[TLI][TIM1_CH1N] / PC3(HS) pin is connected with the DATA pin.
[0057] Please refer to Figure 7 and Figure 8The COM0 pin of the display driving chip U2 is connected to the COM0 pin of the LCD display DIS, and the COM1 pin of the display driving chip U2 is connected to the COM1 pin of the LCD display DIS. The COM2 pin of the display driving chip U2 is connected to the C2 pin of the LCD display DIS, and the COM3 pin of the display driving chip U2 is connected to the C3 pin of the LCD display DIS. The SEG8 pin of the display driving chip U2 is connected to the S0 pin of the LCD display DIS, the SEG11 pin of the display driving chip U2 is connected to the S1 pin of the LCD display DIS, and the SEG14 pin of the display driving chip U2 is connected to the S2 pin of the LCD display DIS. The SEG17 pin of the display driving chip U2 is connected to the SEG3 pin of the LCD display DIS, and the SEG20 pin of the display driving chip U2 is connected to the SEG4 pin of the LCD display DIS. The micro control chip U1 can generate a display signal based on the power detection signal and the internal parameter setting of the micro control chip U1, and the display module displays the power of the battery BAT+ and the power output time of the external device 15 based on the display signal. In the therapeutic apparatus of the embodiment, the power of the external device 15 is displayed, that is, the treatment time of the therapeutic apparatus is displayed. Moreover, during the charging of the battery BAT+, the area displaying the power of the battery flashes.
[0058] Please refer to Figure 3 and Figure 10 The battery charging and discharging control circuit 10 comprises a programming debugging interface CON1, the micro control chip U1 comprises a debugging pin SWIM / PD1(HS), the programming debugging interface CON1 is connected to the debugging pin SWIM / PD1(HS), and the programming debugging interface CON1 is used to debug the internal parameter setting of the micro control chip U1 and adjust the power output of the external device 15. The programming debugging interface CON1 can be connected to a computer or other equipment, so that the user can program and operate the micro control chip U1. Further, the user can debug the internal parameter setting of the micro control chip U1 and adjust the power output of the external device 15. In the therapeutic apparatus of the embodiment, the power output of the external device 15 is adjusted, that is, the treatment intensity and treatment time of the therapeutic apparatus are set. When the controller is powered on, the default treatment time is 30 minutes, and the default treatment intensity is 100% of the treatment intensity.
[0059] On the basis of Figure 3 , please combine Figure 11 , Figure 12 and Figure 13The battery charging and discharging control circuit 10 comprises a voltage conversion chip U3, the voltage conversion chip U3 comprises a Vin pin and a Vout pin.The micro control chip U1 comprises a power supply pin VDD.The Vin pin is connected with the battery BAT+, and the Vout pin is connected with the power supply pin VDD.The voltage conversion chip U3 is used for voltage conversion operation on the battery voltage, and the voltage conversion chip U3 can generate a chip power supply voltage, which is used for power supply operation on the micro control chip U1.The micro control chip U1 comprises a reset pin NRST, and the reset pin NRST is connected with the programming debugging interface CON1 and the Vout pin.The micro control chip U1 is automatically reset through the reset pin NRST.The battery charging and discharging control circuit 10 comprises a switch button SW1, and the micro control chip U1 comprises a switch pin PD5 (HS) / UART1_TX / AIN5, and the user can turn on or turn off the battery controller through the switch button PD5 (HS) / UART1_TX / AIN5.
[0060] The working principle of the utility model is as follows: when the battery charging and discharging control circuit 10 works, firstly, the user connects the controller and the therapeutic instrument through the electric wire.Then, the user turns on the controller through the switch button SW1.Next, the battery BAT+ can output a battery voltage and a power signal.The first voltage division module 11 can carry out voltage division operation on the power signal, and the first voltage division module 11 can generate a power detection signal.The micro control chip U1 can obtain the power of the battery BAT+ based on the power detection signal, and the micro control chip U1 can generate a first control signal.Then, the base of the triode Q2 can receive the first control signal, so that the triode Q2 is in the on state, and the MOS tube Q1 is turned on.Further, the battery charging and discharging module 14 is in the on state, and the battery voltage output by the battery BAT+ can be used for power supply operation on the external equipment 15.If the power of the battery BAT+ is less than the first set value, the micro control chip U1 stops outputting the first control signal.Then, the triode Q2 is disconnected, so that the MOS tube Q1 is disconnected, and the battery charging and discharging module 14 is in the on state.Then, the battery BAT+ stops power supply on the external equipment 15.
[0061] When the battery BAT+ is insufficient, the user can connect the charging power supply 12 to the drain of the MOS tube Q1. Then, the charging power supply 12 can output a charging voltage and a power supply signal. The second voltage dividing module 13 can perform a voltage dividing operation on the power supply signal, and the second voltage dividing module 13 can generate a charging signal. Moreover, the micro control chip U1 can also generate a second control signal based on the charging signal. Then, the base of the triode Q2 receives the second control signal, so that the triode Q2 is turned on, thereby making the MOS tube Q1 conductive. Therefore, the charge-discharge module 14 is in a conductive state, and further, the charging voltage output by the charging power supply 12 can charge the battery BAT+ through the charge-discharge module 14. If the battery BAT+ is greater than the second set value, the micro control chip U1 stops outputting the second control signal. Subsequently, the triode Q2 is turned off, so that the MOS tube Q1 is turned off, and the charging power supply 12 stops charging the battery BAT+.
[0062] When the controller is powered on, the default treatment time of the therapeutic instrument is 30 minutes, and the default treatment intensity of the therapeutic instrument is 100% of the treatment intensity. According to the needs of the user, the user can adjust the treatment intensity of the therapeutic instrument through the adjustment key. Moreover, the display module displays the battery BAT+ and the treatment time of the therapeutic instrument based on the display signal output by the micro control chip U1. Moreover, the micro control chip U1 can output a power signal, and the LED lamp LED1 can display the current treatment intensity of the therapeutic instrument based on the power signal.
[0063] The utility model provides a kind of battery charge-discharge control circuit, which is provided with micro control signal and charge-discharge module. When the charge-discharge module receives the first control signal, the charge-discharge module is in a conductive state, and the battery is used to power external devices by the battery voltage. If the battery capacity is less than the first set value, the micro control chip stops outputting the first control signal, and the charge-discharge module is in an off state, and the battery stops powering external devices. Therefore, the battery charge-discharge control circuit effectively protects the battery and prevents over-discharge. Over-discharge can cause irreversible damage to the battery, which helps to prolong the service life of the battery and protect the performance of the battery.
[0064] Moreover, when the charge-discharge module receives the second control signal, the charge-discharge module is in a conducting state, and the charging power supply is used to charge the battery through a charging voltage. If the battery power is greater than a second set value, the micro control chip stops outputting the second control signal, the charge-discharge module is in a disconnected state, and the charging power supply stops charging the battery. Therefore, the battery charge-discharge control circuit effectively protects the battery and prevents overcharging of the battery. Overcharging can cause the battery to bulge, leak, and even explode, which can improve the service life of the battery and maintain the performance of the battery. Moreover, the battery charge-discharge control circuit effectively solves the technical problem of the battery being easily damaged in the prior art.
[0065] In summary, although the utility model has disclosed the above-mentioned preferred embodiments, the above-mentioned preferred embodiments are not used to limit the utility model, and those skilled in the art can make various changes and decorations without departing from the spirit and scope of the utility model, therefore the protection scope of the utility model is subject to the range defined by the claims.
Claims
1. A battery charge and discharge control circuit, characterized by comprising: It includes, a battery for outputting a battery voltage and a power signal; a first voltage dividing module, one end of which is connected to the battery and the other end of which is connected to a micro control chip, for performing voltage dividing operation on the power signal to generate a power detection signal; a micro control chip for obtaining the power of the battery based on the power detection signal and generating a first control signal; a charging power supply for outputting a charging voltage and a power supply signal; a second voltage dividing module, one end of which is connected to the charging power supply and the other end of which is connected to the micro control chip, for performing voltage dividing operation on the power supply signal to generate a charging signal; wherein the micro control chip is further configured to generate a second control signal based on the charging signal; a charge-discharge module, comprising a first connection end, a second connection end, a third connection end and a control end, the first connection end being connected to the battery, the second connection end being connected to an external device, the third connection end being connected to the charging power supply, and the control end being connected to the micro control chip; when the charge-discharge module receives the first control signal, the charge-discharge module is in a conducting state, the battery is used to perform power supply operation on the external device through the battery voltage, if the power of the battery is less than a first set value, the micro control chip stops outputting the first control signal, the charge-discharge module is in a disconnected state, and the battery stops supplying power to the external device; when the charge-discharge module receives the second control signal, the charge-discharge module is in a conducting state, the charging power supply is used to perform charging operation on the battery through the charging voltage, if the power of the battery is greater than a second set value, the micro control chip stops outputting the second control signal, the charge-discharge module is in a disconnected state, and the charging power supply stops charging the battery.
2. The battery charge and discharge control circuit according to claim 1, wherein The micro control chip includes a control pin, the charge-discharge module includes a transistor and a MOS tube, the control pin is connected to the base of the transistor through the control end, the collector of the transistor is connected to the gate of the MOS tube, the emitter of the transistor is grounded, the source of the MOS tube is connected to the battery through the first connection end, the emitter of the transistor is connected to the external device through the second connection end, and the drain of the MOS tube is connected to the charging power supply through the third connection end; when the base of the transistor receives the first control signal, the transistor is in a conducting state, the MOS tube is in a conducting state, the battery is used to perform power supply operation on the external device through the battery voltage, if the power of the battery is less than a first set value, the micro control chip stops outputting the first control signal, the transistor is in a disconnected state, the MOS tube is in a disconnected state, and the battery stops supplying power to the external device; When the base of the transistor receives a second control signal, the transistor is in a conducting state, the MOS transistor is in a conducting state, the charging power source is used to charge the battery through the charging voltage, if the battery power is greater than a second set value, the micro control chip stops outputting the second control signal, the transistor is in an off state, the MOS transistor is in an off state, and the charging power source stops charging the battery.
3. The battery charge and discharge control circuit according to claim 1, wherein The first voltage division module includes a first voltage division resistor and a second voltage division resistor, the micro control chip includes a first input pin, one end of the first voltage division resistor is connected to the battery, the other end of the first voltage division resistor is connected to the first input pin, one end of the second voltage division resistor is connected to the first voltage division resistor, and the other end of the second voltage division resistor is grounded. The second voltage division module includes a third voltage division resistor and a fourth voltage division resistor, the micro control chip includes a second input pin, one end of the third voltage division resistor is connected to the charging power source, the other end of the third voltage division resistor is connected to the second input pin, one end of the fourth voltage division resistor is connected to the third voltage division resistor, and the other end of the fourth voltage division resistor is grounded.
4. The battery charge and discharge control circuit according to claim 2, wherein The battery charge and discharge control circuit further includes an adjustment button, the micro control chip includes an adjustment pin, the adjustment button is connected to the adjustment pin, and the adjustment button is used to adjust the power of the external device.
5. The battery charge and discharge control circuit according to claim 2, wherein The battery charge and discharge control circuit further includes a display module, the micro control chip includes a display pin, the display pin is connected to the display module, the micro control chip is used to generate a display signal based on the power detection signal and internal parameter settings of the micro control chip, and the display module displays the power of the battery and the power output time of the external device based on the display signal.
6. The battery charge and discharge control circuit according to claim 2, wherein The battery charge and discharge control circuit includes an LED lamp, the micro control chip includes a power display pin, the power display pin is connected to the LED lamp, the micro control chip is used to output a power signal, and the LED lamp is used to display the current power of the external device based on the power signal.
7. The battery charge and discharge control circuit according to claim 2, wherein The battery charge and discharge control circuit includes a programming debugging interface, the micro control chip includes a debugging pin, the programming debugging interface is connected to the debugging pin, and the programming debugging interface is used to debug the internal parameter settings of the micro control chip to adjust the power output of the external device.
8. The battery charge and discharge control circuit according to claim 2, wherein The battery charge and discharge control circuit includes a voltage conversion chip, the voltage conversion chip includes a Vin pin and a Vout pin, the micro control chip U1 includes a power supply pin, the Vin pin is connected to the battery, the Vout pin is connected to the power supply pin, and the voltage conversion chip is used to perform voltage conversion on the battery voltage to generate a chip power supply voltage, which is used to supply power to the micro control chip.
9. The battery charge and discharge control circuit according to claim 2, wherein The model of the micro control chip is STM8S103.
10. A battery controller characterized by comprising: The battery charge and discharge control circuit includes the battery charge and discharge control circuit according to any one of claims 1-9.