Charge and discharge control circuit
By introducing charge and discharge modules, adjustment modules, compensation modules and control modules into the charge and discharge control circuit, receiving and processing battery feedback signals, and automatically adjusting voltage and current, the problems of slow reaction time and low processing efficiency in the prior art are solved. It realizes rapid response and efficient automatic regulation.
Patent Information
- Application Number
- CN201910769697.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-20
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2039-08-20
AI Technical Summary
The existing charging and discharging control circuit has slow reaction time and low processing efficiency, and cannot automatically adjust the charging or discharging voltage.
A charging and discharging control circuit including a charging and discharging module, a regulation module, a compensation module and a control module are designed. By receiving the battery feedback voltage and current, a voltage and current control signal is generated, and the voltage and current is automatically adjusted, so as to achieve rapid response and efficient processing are achieved. .
The effect of fast reaction time and high processing efficiency is achieved to automatically adjust the charging or discharge voltage in a timely manner, and solve the problems of low efficiency and inability to automatically control in the existing technology.
Smart Images

Figure CN110391686B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to charging and discharging technology, and in particular to a charging and discharging control circuit. Background Art
[0002] As a reliable chemical power source, batteries have been widely used in power systems, transportation, portable electronic products and other industrial fields. Among them, how to charge and discharge batteries is a current research hotspot. Many existing DC converters are a kind of power source that directly converts DC power into DC power, mainly through boosting and bucking, and cannot achieve bidirectional flow.
[0003] In the prior art charge and discharge control circuit, the response time is slow, the processing efficiency is low, the integration is low and the volume is large. Moreover, the current and voltage need to be adjusted by software system control and cannot be automatically adjusted by hardware internal components. Summary of the invention
[0004] The present invention provides a charge and discharge control circuit to achieve the effects of fast response time, high processing efficiency and timely automatic regulation of charge or discharge voltage.
[0005] The embodiment of the present invention provides a charge and discharge control circuit, comprising: a charge and discharge module, a regulating module, a compensation module and a control module.
[0006] The charging and discharging module is used to convert the first voltage of the power supply node into the second voltage to charge the battery, or convert the battery voltage into the first voltage to supply power externally;
[0007] The regulating module is connected to the charging and discharging module, and is used to receive the battery feedback voltage and the battery feedback current provided by the charging and discharging module, the regulating module generates a voltage control signal according to the battery feedback voltage and the reference voltage, the regulating module generates a current control signal according to the battery feedback current and the reference current, and the regulating module adjusts the magnitude of the first voltage and / or the second voltage according to the voltage control signal and the current control signal;
[0008] The compensation module is connected to the regulation module, and is used to compensate the battery feedback voltage to generate a feedback compensation voltage, and to compensate the battery feedback current to generate a feedback compensation current;
[0009] A control module is connected to the regulating module and the compensating module. The control module adjusts the reference voltage according to the battery feedback voltage and adjusts the reference current according to the battery feedback current.
[0010] Optionally, a driving module is also included, which is connected between the regulating module and the charging and discharging module and is used to switch the charging and discharging process of the charging and discharging module and adjust the second voltage according to the voltage control signal and current control signal of the regulating module.
[0011] Optionally, the driving circuit includes a switch Q1, a switch Q2, an inductor L2, and a MOS driver M1, wherein the switch Q1 is used to switch the charging and discharging process of the charging and discharging module; the switch Q2 is used to adjust the second voltage; the inductor L2 is used to store the first voltage transmitted by the regulating module; the MOS driver M1 is used to control the switching states of the switch Q1 and the switch Q2; the switch Q1 and the switch Q2 are connected to the MOS driver M1; the first end of the inductor L1 is connected to the switch Q2, and the second end is grounded.
[0012] Optionally, the charge and discharge module includes a DC input terminal IN, an inductor L1, a sampling resistor Rcl, a capacitor C1, a sampling resistor Rs and a battery D1; the DC input terminal IN is used to provide the first voltage; the inductor L1 is used to store the first voltage or consume the second voltage; the sampling resistor Rcl is used to collect the voltage across the sampling resistor Rcl; the capacitor C1 is used to store the second voltage or consume the second voltage; the sampling resistor Rs is used to collect the voltage across the sampling resistor Rs; the battery D1 is used to store the second voltage or release the second voltage.
[0013] Optionally, the DC input terminal IN is connected to the first end of the switch Q1; the first end of the inductor L1 is connected to the second end of the switch Q1; the second end of the inductor L1 is connected to the first end of the sampling resistor Rcl; the second end of the sampling resistor Rcl is connected to the first end of the capacitor C1; the second end of the capacitor C1 is grounded; the first end of the sampling resistor Rs is connected to the second end of the sampling resistor Rcl; the second end of the sampling resistor Rs is connected to the positive electrode of the battery D1; and the negative electrode of the battery D1 is grounded.
[0014] Optionally, the regulation module includes: a modulation controller PWM, a power amplifier P1, a power amplifier P2, a power amplifier P3, a power amplifier P4, a power amplifier P5, a converter Z1, a buffer F1, a voltage regulator W1, a clock generator S1 and a constant current source H1; the modulation controller PWM is used to store data and transmit instructions; the power amplifier P1 is used to integrate and generate the battery feedback voltage; the power amplifier P2 is used to integrate and generate the battery feedback current; the power amplifier P3 is used to integrate the battery feedback voltage and the reference voltage to generate the voltage control signal; the power amplifier P4 is used to integrate the battery feedback current and the reference current to generate the current control signal; the converter Z1 is used to integrate the voltage control signal and the current control signal; the buffer F1 is used to buffer the signal; the voltage regulator W1 is used to stabilize the circuit; the clock generator S1 and the constant current source H1 are used to generate a timing signal; the power amplifier P5 is used to integrate the constant current source and the timing signal.
[0015] Optionally, the input end of the power amplifier P1 is connected to the two ends of the battery D1, and the output end is connected to the input end of the power amplifier P3; the input end of the power amplifier P2 is connected to the sampling resistor Rs, and the output end is connected to the input end of the rate amplifier P4; the output end of the power amplifier P4 and the output end of the power amplifier P5 are connected to the converter Z1; the other end of the converter Z1 is connected to the buffer F1; the output end of the buffer F1 is connected to the modulation controller PWM; the clock generator S1 and the constant current source H1 are connected to the modulation controller PWM, and the first end of the voltage regulator W1 is connected to the modulation controller PWM, and the second end is grounded.
[0016] Optionally, the compensation module includes: a compensation circuit B1 and a compensation circuit B2, wherein one end of the compensation circuit B1 is connected to the adjustment module, and the other end is connected to the control module; one end of the compensation circuit B2 is connected to the adjustment module, and the other end is connected to the control module.
[0017] Optionally, the control module includes a converter Z2, a converter Z3, a converter Z4 and a controller MCU; the converter Z2 and the converter Z3 are used to convert digital signals into analog signals; the converter Z4 is used to convert analog signals into digital signals; and the controller MCU is used to receive digital signals and issue control instructions.
[0018] Optionally, one end of the converter Z2 is connected to the power amplifier P3, and the other end is connected to the controller MCU; one end of the converter Z3 is connected to the power amplifier P4, and the other end is connected to the controller MCU; one end of the converter Z3 is connected to the compensation module, and the other end is connected to the controller MCU.
[0019] The present embodiment provides a charge and discharge control circuit, which includes a charge and discharge module, a regulating module, a compensation module and a control module. The charge and discharge module is used to convert a first voltage of a power supply node into a second voltage to charge a battery, or convert a battery voltage into a first voltage to supply power externally. The regulating module is connected to the charge and discharge module and is used to receive a battery feedback voltage and a battery feedback current provided by the charge and discharge module. The regulating module generates a voltage control signal according to the battery feedback voltage and a reference voltage. The regulating module generates a current control signal according to the battery feedback current and a reference current. The regulating module adjusts the magnitude of the first voltage and / or the second voltage according to the voltage control signal and the current control signal. The compensation module is connected to the regulating module and is used to compensate the battery feedback voltage to generate a feedback compensation voltage, and compensate the battery feedback current to generate a feedback compensation current. The control module is connected to the regulating module and the compensation module. The control module adjusts the magnitude of the reference voltage according to the battery feedback voltage, and the control module adjusts the magnitude of the reference current according to the battery feedback current. The invention solves the problems of slow response time, low processing efficiency and inability to automatically adjust the charging or discharging voltage of the charging and discharging control circuit in the prior art, and achieves the effects of fast response time, high processing efficiency and timely automatic adjustment of the charging or discharging voltage. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a schematic diagram of the module connection relationship in the first embodiment of the present invention;
[0021] Figure 2 Schematic diagram of circuit connection relationship in Embodiment 1 of the present invention. DETAILED DESCRIPTION
[0022] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0023] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0024] In addition, the terms "first", "second", etc. can be used in this article to describe various directions, actions, steps or elements, but these directions, actions, steps or elements are not limited by these terms. These terms are only used to distinguish a first direction, action, step or element from another direction, action, step or element. For example, without departing from the scope of the present application, the first speed difference can be referred to as the second speed difference, and similarly, the second speed difference can be referred to as the first speed difference. Both the first speed difference and the second speed difference are speed differences, but they are not the same speed difference. The terms "first", "second", etc. cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0025] Embodiment 1
[0026] Figure 1 Schematic diagram of module connection relationship in Embodiment 1 of the present invention, Figure 2 This is a schematic diagram of the circuit connection relationship in the first embodiment of the present invention. This embodiment provides a charge and discharge control circuit, including: a charge and discharge module 1, a regulation module 2, a compensation module 3, a control module 4 and a drive module 5. The drive module includes a switch Q1 and a switch Q2.
[0027] The charging and discharging module 1 is used to convert a first voltage of a power supply node into a second voltage to charge a battery, or to convert a battery voltage into a first voltage to supply power externally.
[0028] In this embodiment, the charge and discharge module 1 can receive a first voltage provided by an external power source and increase its voltage to a second voltage and store it in the battery through a charging circuit. Generally, when charging, the first voltage is less than the second voltage, and the charging circuit is a boost charging circuit. The charge and discharge module 1 can also release the voltage stored in the battery so that the load consumes it. The charging and discharging of the battery can ensure that the external load uses electrical energy, and the battery can be cyclically charged and used repeatedly, thereby improving energy utilization.
[0029] In one embodiment, the charging and discharging module 1 includes a DC input terminal IN, an inductor L1, a sampling resistor Rcl, a capacitor C1, a sampling resistor Rs and a battery D1; the DC input terminal IN is used to provide the first voltage; the inductor L1 is used to store the first voltage or consume the second voltage; the sampling resistor Rcl is used to collect the voltage across the sampling resistor Rcl; the capacitor C1 is used to store the second voltage or consume the second voltage; the sampling resistor Rs is used to collect the voltage across the sampling resistor Rs; the battery D1 is used to store electric energy or release the second voltage.
[0030] The DC input terminal IN is connected to the first terminal of the switch Q1; the first terminal of the inductor L1 is connected to the second terminal of the switch Q1; the second terminal of the inductor L1 is connected to the first terminal of the sampling resistor Rcl; the second terminal of the sampling resistor Rcl is connected to the first terminal of the capacitor C1; the second terminal of the capacitor C1 is grounded; the first terminal of the sampling resistor Rs is connected to the second terminal of the sampling resistor Rcl; the second terminal of the sampling resistor Rs is connected to the positive terminal of the battery D1; and the negative terminal of the battery D1 is grounded.
[0031] In this embodiment, the DC input terminal IN is the input terminal of the external power supply. Exemplarily, the DC input terminal IN provides a DC charging voltage, which is preferably 5V in this embodiment. The inductor L1 and the capacitor C1 are boost components during charging, which can increase the 5V voltage of the DC input terminal, that is, increase the charging voltage at both ends of the battery D1, and improve the charging efficiency. The two ends of the sampling resistor Rcl are connected to the adjustment module 2, and the adjustment module 2 confirms the working current of the charging and discharging module 1 by receiving the voltage at both ends of the sampling resistor Rcl, so as to adjust and stabilize the charging voltage at both ends of the battery D1. The two ends of the sampling resistor Rs are connected to the adjustment module 2, and the adjustment module 2 collects the current flowing through the sampling resistor Rs to obtain the battery current. The two ends of the battery D1 are connected to the adjustment module 2, and the adjustment module 2 collects the voltage at both ends of the battery D1 to obtain the battery voltage. The above-mentioned battery voltage and battery current are respectively provided to the adjustment module 2 as the battery feedback voltage and battery feedback current of the charging and discharging module 1.
[0032] The regulating module 2 is connected to the charging and discharging module 1, and is used to receive the battery feedback voltage and the battery feedback current provided by the charging and discharging module 1. The regulating module 2 generates a voltage control signal according to the battery feedback voltage and the reference voltage. The regulating module 2 generates a current control signal according to the battery feedback current and the reference current. The regulating module 2 adjusts the magnitude of the first voltage and / or the second voltage according to the voltage control signal and the current control signal.
[0033] In this embodiment, the regulating module 2 is used to receive the battery feedback current and battery feedback voltage of the charging and discharging module 1, the battery feedback current is determined by measuring the voltage difference across the sampling resistor Rs, and the battery feedback voltage is the voltage difference across the battery D1, and receives the current compensation and voltage compensation in the control module 4 to adaptively adjust the battery feedback current and battery feedback voltage to obtain a current control signal and a voltage control signal, the current control signal is the current magnitude after compensation, and the voltage control signal is the voltage magnitude after compensation. Exemplarily, if the battery feedback current and battery feedback voltage are lower than the preset value at this time, the battery feedback current and battery feedback voltage are compensated by current compensation and voltage compensation to reach the preset value. Afterwards, the voltage control signal and the current control signal are integrated to obtain a signal that needs to be adjusted, which includes the adjustment value of the voltage or current. The adjustment value is input into the charging and discharging module 1 to adjust the voltage or current of charging or discharging.
[0034] A regulation module 2 includes: a modulation controller PWM, a power amplifier P1, a power amplifier P2, a power amplifier P3, a power amplifier P4, a power amplifier P5, a converter Z1, a buffer F1, a voltage regulator W1, a clock generator S1 and a constant current source H1; the modulation controller PWM is used to generate a pulse width control signal to control the switching cycle or frequency of the switch Q1 and the switch Q2 according to input parameters, such as the battery feedback voltage, the battery feedback current and the working current of the charge and discharge module 1; the power amplifier P1 is used to integrate and generate the battery feedback voltage; the power amplifier P2 is used to The battery feedback current is generated by integration; the power amplifier P3 is used to integrate the battery feedback voltage and the reference voltage to generate the voltage control signal; the power amplifier P4 is used to integrate the battery feedback current and the reference current to generate the current control signal; the converter Z1 is used to integrate the voltage control signal and the current control signal; the buffer F1 is used to buffer the signal; the voltage regulator W1 is used to stabilize the voltage of the input regulation module 2; the clock generator S1 and the constant current source H1 are used to generate the timing signal; the power amplifier P5 is used to integrate the constant current source and the timing signal.
[0035] The input end of the power amplifier P1 is connected to the two ends of the battery D1, and the output is connected to the input end of the power amplifier P3; the input end of the power amplifier P2 is connected to the two ends of the sampling resistor Rs, and the output end of the power amplifier P2 is connected to the input end of the rate amplifier P4; the output end of the power amplifier P4 and the output end of the power amplifier P5 are connected to the converter Z1; the other end of the converter Z1 is connected to the input end of the buffer F1; the output end of the buffer F1 is connected to the modulation controller PWM; the clock generator S1 and the constant current source H1 are connected to the modulation controller PWM to provide a clock signal, and the first end of the voltage regulator W1 is connected to the modulation controller PWM, and the second end is grounded.
[0036] In this embodiment, the regulating module 2 is an integrated circuit chip, comprising a plurality of pins, and the chip is connected to other external components through the pins. The modulation controller PWM can perform pulse width modulation, which is an analog control method. According to the change of the corresponding load, the bias of the transistor base or the gate of the MOS tube as the switch Q1 or the switch Q2 is modulated to realize the change of the conduction time of the transistor or the MOS tube, thereby realizing the change of the output of the switching regulated power supply. After the modulation controller PWM is connected to the voltage regulator W1, it is connected to the capacitor C2 through the pin Vcc and then grounded. The other end of the capacitor C2 is connected to the charge and discharge module 1. The modulation controller PWM can adjust the voltage of the charge and discharge module 1 through this branch. The modulation controller PWM is connected to the capacitor C3 through the pin VREG and then grounded. The modulation controller PWM establishes a connection with the controller MCU in the control module 4 through the pins CHG / DIS and EN. The modulation controller PWM is connected to the inductor L3 through the pin FREQ and then grounded. The modulation controller PWM is connected to the capacitor C4 through the pin SS and then grounded. Preferably, the modulation controller PWM can use a chip with model number AD8452.
[0037] The compensation module 3 is connected to the regulation module 2 and is used for compensating the battery feedback voltage to generate a feedback compensation voltage, and compensating the battery feedback current to generate a feedback compensation current.
[0038] The compensation module 3 includes: a compensation circuit B1 and a compensation circuit B2, wherein one end of the compensation circuit B1 is connected to the adjustment module 2 and the other end is connected to the control module 4; one end of the compensation circuit B2 is connected to the adjustment module 2 and the other end is connected to the control module 4.
[0039] In this embodiment, the compensation circuit B1 and the compensation circuit B2 can play the role of adjusting the control voltage, adjusting the output voltage by controlling the duty cycle of the pulse voltage through loop feedback, and can also play a protective role. Once the output current is too large, the voltage output can be limited or cut off through loop feedback control. The compensation circuit B1 receives the integrated battery feedback voltage transmitted by the power amplifier P1 and compensates and regulates it, and then transmits the battery feedback voltage to the power amplifier P3 to integrate it with the reference voltage transmitted by the controller MCU. The compensation circuit B2 receives the integrated battery feedback current transmitted by the power amplifier P2 and compensates and regulates it, and then transmits the battery feedback current to the power amplifier P3 to integrate it with the reference current transmitted by the controller MCU. After the converter Z1 integrates the voltage control signal and the current control signal, the compensation circuit B1 and the compensation circuit B2 receive the integrated signal and transmit it back to the controller MCU for storage after compensation and adjustment.
[0040] The control module 4 is connected to the regulating module 2 and the compensating module 3. The control module 4 adjusts the reference voltage of the input power amplifier P3 according to the battery feedback voltage. The control module adjusts the reference current of the input power amplifier P4 according to the battery feedback current.
[0041] In this embodiment, the control module 4 can receive the digital signal and store it for processing and calculation or issue a control instruction to the adjustment module 2 or the compensation module 3 .
[0042] The control module 4 includes a converter Z2, a converter Z3, a converter Z4 and a controller MCU; the converter Z2 and the converter Z3 are used to convert digital signals into analog signals; the converter Z4 is used to convert analog signals into digital signals; the controller MCU is used to receive digital signals and issue control instructions.
[0043] One end of the converter Z2 is connected to the power amplifier P3, and the other end is connected to the controller MCU; one end of the converter Z3 is connected to the power amplifier P4, and the other end is connected to the controller MCU; one end of the converter Z3 is connected to the compensation module, and the other end is connected to the controller MCU.
[0044] In this embodiment, converter Z2 and converter Z3 are digital-to-analog converters, which are used to convert digital signals into analog signals and then transmit them to the adjustment module 2 and the compensation module 3. Converter Z4 is an analog-to-digital converter, which is used to convert analog signals into digital signals, and convert the signals sent by the controller MCU and transmit them to the controller MCU for processing. The controller MCU receives the integrated battery feedback voltage of the power amplifier P1 through converter Z4, receives the integrated battery feedback current of the power amplifier P2 through converter Z4, obtains voltage compensation based on the integrated battery feedback voltage and the preset voltage, and obtains current compensation based on the integrated battery feedback current and the preset current, and then compensates the battery feedback current and the battery feedback voltage to reach the preset value. The controller MCU also receives the signal data of the voltage control signal and the current control signal output from the converter Z1 from the compensation circuit B1 and the compensation circuit B2 through converter Z4, and stores the data. When the charging voltage or the discharging voltage is too large and affects the circuit, the controller MCU will control the adjustment module to disconnect, stop working, and protect the circuit. In an optional embodiment, the controller's pin MODE is connected to a switch before the power amplifier P2, which can control the switching of the positive and negative input interfaces of the battery feedback current; when the charge and discharge module 1 is in the charging mode, the current at the left end of the resistor Rs is higher than the current at the right end. After the controller MCU detects it, it controls the switch to switch the circuit, and the left end current is input to the positive pole of the power amplifier P2, and the right end current is input to the negative pole of the power amplifier P2; when the charge and discharge module 1 is in the discharging mode, the current at the left end of the resistor Rs is lower than the current at the right end. At this time, after the switch switches the circuit, the left end current is input to the negative pole of the power amplifier P2, and the right end current is input to the positive pole of the power amplifier P2.
[0045] The driving module 5 is connected between the regulating module 5 and the charging and discharging module 1 , and is used to switch the charging and discharging process of the charging and discharging module and to regulate the second voltage according to the voltage control signal and the current control signal of the regulating module.
[0046] The driving circuit also includes an inductor L2 and a MOS driver M1. The switch Q1 is used to switch the charging and discharging process of the charging and discharging module; the switch Q2 is used to adjust the second voltage; the inductor L2 is used to store the first voltage transmitted by the regulating module; the MOS driver M1 is used to convert the pulse width adjustment signal provided by the regulating module 5 into an analog control signal to control the switching state of the switch Q1 and the switch Q2, such as the switching frequency and the switching cycle ratio; the switch Q1 and the switch Q2 are connected to the MOS driver M1; the first end of the inductor L1 is connected to the switch Q2, and the second end is grounded.
[0047] In this embodiment, the driving module 5 receives the control signal of the regulating module 2 and makes voltage adjustment to the charging and discharging module 1. When the switch Q1 is turned on, the charging and discharging module 1 is in a charging state, and when the switch Q1 is turned off, the charging and discharging module 1 is in a discharging state. The MOS tube M1 can receive the pulse width adjustment signal of the modulation controller PWM, and adjust the charging voltage or discharging voltage of the charging and discharging module 1 by intermittently turning on the switch Q2.
[0048] The present embodiment provides a charge and discharge control circuit, which includes a charge and discharge module, a regulating module, a compensation module and a control module. The charge and discharge module is used to convert a first voltage of a power supply node into a second voltage to charge a battery, or convert a battery voltage into a first voltage to supply power externally. The regulating module is connected to the charge and discharge module and is used to receive a battery feedback voltage and a battery feedback current provided by the charge and discharge module. The regulating module generates a voltage control signal according to the battery feedback voltage and a reference voltage. The regulating module generates a current control signal according to the battery feedback current and a reference current. The regulating module adjusts the magnitude of the first voltage and / or the second voltage according to the voltage control signal and the current control signal. The compensation module is connected to the regulating module and is used to compensate the battery feedback voltage to generate a feedback compensation voltage, and compensate the battery feedback current to generate a feedback compensation current. The control module is connected to the regulating module and the compensation module. The control module adjusts the magnitude of the reference voltage according to the battery feedback voltage, and the control module adjusts the magnitude of the reference current according to the battery feedback current. The invention solves the problems of slow response time, low processing efficiency and inability to automatically adjust the charging or discharging voltage of the charging and discharging control circuit in the prior art, and achieves the effects of fast response time, high processing efficiency and timely automatic adjustment of the charging or discharging voltage.
[0049] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0050] It is worth noting that in the embodiment of the above-mentioned charge and discharge control circuit, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0051] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A charge and discharge control circuit, characterized in that: include: Charging and discharging module, regulation module, compensation module and control module, The charging and discharging module is used to convert the first voltage of the power supply node into the second voltage to charge the battery, or convert the battery voltage into the first voltage to supply power externally; The regulating module is connected to the charging and discharging module, and is used to receive the battery feedback voltage and the battery feedback current provided by the charging and discharging module, the regulating module generates a voltage control signal according to the battery feedback voltage and the reference voltage, the regulating module generates a current control signal according to the battery feedback current and the reference current, and the regulating module adjusts the magnitude of the first voltage and / or the second voltage according to the voltage control signal and the current control signal; The compensation module is connected to the regulation module, and is used to compensate the battery feedback voltage to generate a feedback compensation voltage, and to compensate the battery feedback current to generate a feedback compensation current; A control module connected to the regulating module and the compensating module, wherein the control module adjusts the reference voltage according to the battery feedback voltage, and the control module adjusts the reference current according to the battery feedback current; Comparing the battery feedback voltage with a preset voltage to obtain voltage compensation, comparing the battery feedback current with a preset current to obtain current compensation, and then compensating the battery feedback current and the battery feedback voltage; The regulating module includes: a modulation controller PWM, a power amplifier P1, a power amplifier P2, a power amplifier P3, a power amplifier P4, a power amplifier P5, a converter Z1, a buffer F1, a voltage stabilizer W1, a clock generator S1 and a constant current source H1; The compensation module comprises: a compensation circuit B1 and a compensation circuit B2, wherein one end of the compensation circuit B1 is connected to the adjustment module, and the other end is connected to the control module; one end of the compensation circuit B2 is connected to the adjustment module, and the other end is connected to the control module; The control module includes a converter Z2, a converter Z3, a converter Z4 and a controller MCU; The compensation circuit B1 receives the integrated battery feedback voltage transmitted by the power amplifier P1 and compensates and regulates it, and then transmits the battery feedback voltage to the power amplifier P3 for integration with the reference voltage transmitted by the controller MCU; the compensation circuit B2 receives the integrated battery feedback current transmitted by the power amplifier P2 and compensates and regulates it, and then transmits the battery feedback current to the power amplifier P3 for integration with the reference current transmitted by the controller MCU.
2. A charge and discharge control circuit according to claim 1, characterized in that: It also includes a driving module, which is connected between the regulating module and the charging and discharging module and is used to switch the charging and discharging process of the charging and discharging module and adjust the second voltage according to the voltage control signal and current control signal of the regulating module.
3. A charge and discharge control circuit according to claim 2, characterized in that: The driving circuit includes a switch Q1, a switch Q2, an inductor L2, and a MOS driver M1. The switch Q1 is used to switch the charging and discharging process of the charging and discharging module; the switch Q2 is used to adjust the second voltage; the inductor L2 is used to store the first voltage transmitted by the regulating module; the MOS driver M1 is used to control the switching states of the switch Q1 and the switch Q2; the switch Q1 and the switch Q2 are connected to the MOS driver M1; the first end of the inductor L1 is connected to the switch Q2, and the second end is grounded.
4. A charge and discharge control circuit according to claim 3, characterized in that: The charge and discharge module includes a DC input terminal IN, an inductor L1, a sampling resistor Rcl, a capacitor C1, a sampling resistor Rs and a battery D1; the DC input terminal IN is used to provide the first voltage; the inductor L1 is used to store the first voltage or consume the second voltage; the sampling resistor Rcl is used to collect the voltage across the sampling resistor Rcl; the capacitor C1 is used to store the second voltage or consume the second voltage; the sampling resistor Rs is used to collect the voltage across the sampling resistor Rs; the battery D1 is used to store the second voltage or release the second voltage.
5. A charge and discharge control circuit according to claim 4, characterized in that: The DC input terminal IN is connected to the first terminal of the switch Q1; the first terminal of the inductor L1 is connected to the second terminal of the switch Q1; the second terminal of the inductor L1 is connected to the first terminal of the sampling resistor Rcl; the second terminal of the sampling resistor Rcl is connected to the first terminal of the capacitor C1; the second terminal of the capacitor C1 is grounded; the first terminal of the sampling resistor Rs is connected to the second terminal of the sampling resistor Rcl; the second terminal of the sampling resistor Rs is connected to the positive terminal of the battery D1; and the negative terminal of the battery D1 is grounded.
6. A charge and discharge control circuit according to claim 5, characterized in that: The modulation controller PWM is used to store data and transmit instructions; the power amplifier P1 is used to integrate and generate the battery feedback voltage; the power amplifier P2 is used to integrate and generate the battery feedback current; the power amplifier P3 is used to integrate the battery feedback voltage and the reference voltage to generate the voltage control signal; the power amplifier P4 is used to integrate the battery feedback current and the reference current to generate the current control signal; the converter Z1 is used to integrate the voltage control signal and the current control signal; the buffer F1 is used to buffer the signal; the voltage regulator W1 is used to stabilize the circuit; the clock generator S1 and the constant current source H1 are used to generate a timing signal; the power amplifier P5 is used to integrate the constant current source and the timing signal.
7. A charge and discharge control circuit according to claim 6, characterized in that: The input end of the power amplifier P1 is connected to the two ends of the battery D1, and the output end is connected to the input end of the power amplifier P3; the input end of the power amplifier P2 is connected to the sampling resistor Rs, and the output end is connected to the input end of the rate amplifier P4; the output end of the power amplifier P4 and the output end of the power amplifier P5 are connected to the converter Z1; the other end of the converter Z1 is connected to the buffer F1; the output end of the buffer F1 is connected to the modulation controller PWM; the clock generator S1 and the constant current source H1 are connected to the modulation controller PWM, the first end of the voltage regulator W1 is connected to the modulation controller PWM, and the second end is grounded.
8. A charge and discharge control circuit according to claim 1, characterized in that: The converter Z2 and the converter Z3 are used to convert digital signals into analog signals; the converter Z4 is used to convert analog signals into digital signals; and the controller MCU is used to receive digital signals and issue control instructions.
9. A charge and discharge control circuit according to claim 8, characterized in that: One end of the converter Z2 is connected to the power amplifier P3, and the other end is connected to the controller MCU; one end of the converter Z3 is connected to the power amplifier P4, and the other end is connected to the controller MCU; one end of the converter Z3 is connected to the compensation module, and the other end is connected to the controller MCU.
Citation Information
Patent Citations
Battery power supply circuit and method
CN104065119A
Intelligent buck-boost charging / discharging circuit and charging / discharging method thereof
CN105896646A
Charging and discharging control circuit
CN210225009U