A lithium battery detection system and control method based on DSP

Through the parallel full-bridge circuit and voltage and current double closed-loop control, the problem that the DSP control system cannot realize ultra-low voltage and high current detection is solved, the power level and stability of the lithium battery detection system are improved, and circuit abnormalities are avoided.

CN115793596BActive Publication Date: 2024-09-13TAN KAH KEE INNOVATION LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211338526.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2024-09-13
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

The existing DSP-controlled lithium battery detection system cannot realize ultra-low voltage and high current charge and discharge detection, and during high duty cycle boost and discharge, the MOS tube stress is too great, which can easily cause the inductor to be saturated or burnt out.

Method used

Using a parallel full-bridge circuit structure and a voltage and current double closed-loop control algorithm, the DSP control unit outputs different duty cycle signals and phase-shifted duty cycle signals to achieve ultra-low voltage and high current charge and discharge tests and reduce the time required for single-channel high-power discharge. The high duty cycle boost mode causes circuit abnormalities.

Benefits of technology

It improves the charge and discharge power level of the circuit, realizes ultra-low voltage and high current charge and discharge tests, reduces the stress on circuit components, and improves the stability and service life of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115793596B
    Figure CN115793596B
Patent Text Reader

Abstract

The present invention relates to the technical field of lithium battery charge and discharge detection, and in particular to a lithium battery detection system and control method based on DSP, the system comprising a DSP control unit, a power control unit, a voltage sampling module and a current sampling module; the power control unit comprises a first power circuit and a second power circuit connected in parallel; the DSP control unit comprises an AD acquisition module, a PI control module and a PWM module electrically connected; the AD acquisition module obtains the battery terminal voltage and the charge and discharge current through the voltage sampling module and the current sampling module and transmits them to the PI control module for PI calculation and then outputs a control signal; the PWM module performs pulse width modulation on the control signal and then outputs a duty cycle signal and a phase-shifted duty cycle signal to the first power circuit and the second power circuit. The above-mentioned setting method can realize ultra-low voltage and large current charge and discharge testing, improve the charge and discharge power level, and realize flexible adjustment and feedback of the loop while reducing the circuit cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lithium battery charge and discharge detection, and in particular to a lithium battery detection system and control method based on DSP. Background Art

[0002] Lithium batteries have the advantages of high energy density and long recharge cycles. High-power supercapacitors composed of lithium battery modules have become the preferred power source in the market for electric vehicles. Especially with the development of new energy technology, lithium battery power modules will have an increasingly large market.

[0003] In specific applications, lithium battery parameters are easily affected by charge and discharge rates, charge state, aging degree, etc. Therefore, in order to better study the application technology of lithium batteries, high-power test equipment for testing lithium batteries and simulating working conditions is essential.

[0004] Traditional lithium battery testing systems mainly use analog circuits to build power topologies. This method generally achieves constant current and constant voltage charging switching of lithium batteries through the internal integrated circuits of the driver chip and the hardware PI (Proportional Integral) loop. However, the disadvantages of hardware analog circuit control are that it has high requirements for power modules in large current charging and discharging tests, the analog control loop is difficult, the design cost is high, and the output regulation rate and controllability are poor.

[0005] At present, the existing high-power test equipment on the market generally adopts DSP (Digital Signal Processor) control scheme to achieve high-current charging and discharging. However, the existing DSP control is often relatively simple, and its circuit topology cannot achieve ultra-low voltage and high-current output. Specifically, a MOS tube (Metal-Oxide-Semiconductor Field-Effect Transistor) with a high duty cycle is used in the circuit to achieve the discharge function, which will cause the MOS tube to be overstressed and the inductor to be saturated, making it impossible to achieve ultra-low voltage and high-current charging and discharging detection. Especially in lithium battery discharge testing, a large duty cycle is often used to achieve high-multiple reverse boost discharge. The MOS tube needs to withstand a large peak voltage. The higher the boost multiple, the larger the duty cycle. The power tube has a very small freewheeling time, which will cause the inductor to be saturated or even burn out. Summary of the invention

[0006] In order to solve the problem that the lithium battery detection system based on DSP control in the above-mentioned prior art cannot realize ultra-low voltage and large current charging and discharging detection, the present invention provides a lithium battery detection system based on DSP, including a DSP control unit, a power control unit, a voltage sampling module and a current sampling module.

[0007] The power control unit includes a first power circuit and a second power circuit connected in parallel, wherein the first end of the parallel connection is electrically connected to the power input end, and the second end of the parallel connection is electrically connected to the power line of the battery end; the first power circuit and the second power circuit both include a full-bridge circuit composed of a plurality of field effect transistors.

[0008] The DSP control unit includes an AD acquisition module, a PI control module and a PWM module which are electrically connected in sequence; the AD acquisition module obtains the battery terminal voltage and the charge and discharge current through the voltage sampling module and the current sampling module respectively; the PI control module includes a voltage controller and a current controller for voltage and current dual closed-loop control, and the voltage controller and the current controller perform PI calculation based on the collected battery terminal voltage, the charge and discharge current, and the voltage given value and the current given value and then output a control signal; the PWM module is electrically connected to the power control unit to input the control signal and output a duty cycle signal to the first power circuit through pulse width modulation, and output a phase-shifted duty cycle signal to the second power circuit.

[0009] In one embodiment, the first power circuit includes a field effect transistor Q7, a field effect transistor Q11, a field effect transistor Q4, a field effect transistor Q10 and an inductor L3; the high voltage side of the half-bridge arm formed by the field effect transistor Q7 and the field effect transistor Q11 is connected to the positive electrode of the power input end, and the low voltage side of the half-bridge arm formed by the field effect transistor Q4 and the field effect transistor Q10 is connected to the negative electrode of the power input end; the gates of the field effect transistor Q7, the field effect transistor Q11, the field effect transistor Q4 and the field effect transistor Q10 are connected to the PWM module for inputting the duty cycle signal; the output end of the first power circuit is electrically connected to the power line of the battery end through the inductor L3;

[0010] The second power circuit includes a field effect transistor Q22, a field effect transistor Q24, a field effect transistor Q21, a field effect transistor Q23 and an inductor L7; the high voltage side of the half-bridge arm formed by the field effect transistor Q22 and the field effect transistor Q24 is connected to the positive electrode of the power input end, and the low voltage side of the half-bridge arm formed by the field effect transistor Q21 and the field effect transistor Q23 is connected to the negative electrode of the power input end; the gates of the field effect transistor Q22, the field effect transistor Q24, the field effect transistor Q21 and the field effect transistor Q23 are connected to the PWM module for inputting the phase-shifted duty cycle signal; the output end of the second power circuit is electrically connected to the power line of the battery end through the inductor L7.

[0011] In one embodiment, the duty cycle signal value of the field effect transistor Q7 is equal to the duty cycle signal value output by the PI control module PI adjustment plus the duty cycle signal value of the field effect transistor Q4; the phase-shifted duty cycle signal value of the field effect transistor Q22 is equal to the phase-shifted duty cycle signal value output by the PI control module PI adjustment plus the phase-shifted duty cycle signal value of the field effect transistor Q21; the duty cycle signal value of the field effect transistor Q4 and the phase-shifted duty cycle signal value of the field effect transistor Q21 are both preset fixed values.

[0012] In one embodiment, the selection range of the preset fixed value is set to 15% to 25%.

[0013] In one embodiment, the duty cycle signal of the field effect tube Q7 is 2D, the phase shift duty cycle signal of the field effect tube Q22 is 2*(D+θ), 0<D<0.5; if the battery end is charged, the duty cycle signal of the field effect tube Q11 is 1-2D, the duty cycle signal of the field effect tube Q4 is D, the duty cycle signal of the field effect tube Q10 is 1-D, the phase shift duty cycle signal of the field effect tube Q24 is 1-2*(D+θ), and the phase shift duty cycle signal of the field effect tube Q21 is D+θ, the phase-shift duty cycle signal of the field effect tube Q23 is 1-(D+θ); if the battery end is discharged, the duty cycle signal of the field effect tube Q11 is 2D-1, the duty cycle signal of the field effect tube Q4 is 1-D, the duty cycle signal of the field effect tube Q10 is D, the phase-shift duty cycle signal of the field effect tube Q24 is 2*(D+θ)-1, the phase-shift duty cycle signal of the field effect tube Q21 is 1-(D+θ), and the phase-shift duty cycle signal of the field effect tube Q23 is D+θ.

[0014] In one embodiment, the control method of the voltage controller and the current controller of the voltage and current dual closed-loop control is: the voltage controller obtains a difference based on the collected battery terminal voltage and the voltage set value, and then outputs a current adjustment value after PI calculation, and the smaller value of the current adjustment value and the current set value is taken as the current input value; the current controller obtains a differential value based on the collected charging and discharging current and the current input value, and then outputs the control signal after PI calculation.

[0015] In one embodiment, it also includes a synchronous drive unit electrically connected between the power control unit and the power line of the battery end, and the synchronous drive unit includes at least one synchronous tube connected in series to the positive pole of the power line of the battery end; the synchronous drive unit also includes a charge and discharge protection circuit, and the gate of at least one of the synchronous tubes is electrically connected to the DSP control unit through the charge and discharge protection circuit, so as to perform overcurrent, overvoltage and reverse clamping protection on the lithium battery detection system.

[0016] In one embodiment, the current sampling module includes a sampling resistor connected in series between the power control unit and the power line of the battery end and a positive and negative current differential sampling circuit connected in parallel to the sampling resistor, so as to collect the charging and discharging current.

[0017] In one embodiment, the synchronous drive unit further includes a power relay circuit, which is connected in series to the power line of the battery terminal and is electrically connected to the DSP control unit to control the charging and discharging of the battery terminal to the power input terminal.

[0018] The present invention also provides a DSP-based lithium battery detection control method, which uses a DSP-based lithium battery detection system as described in the above embodiment, including the following control steps:

[0019] Starting the lithium battery detection system and determining whether the system is in operation;

[0020] If the system enters the running state, execute step a; if the system does not enter the running state, execute step b;

[0021] Step a, soft start the system, preset and load the duty cycle signal; then perform PI calculation through the voltage controller and the current controller, and output the duty cycle signal through the PWM module, so that the duty cycle signal value of the field effect tube Q7 is equal to the duty cycle signal value of the PI adjustment output plus the duty cycle signal value of the field effect tube Q4;

[0022] Next, it is determined whether the duty cycle signal value of the field effect tube Q4 is less than the preset fixed value. If so, the duty cycle signal value of the field effect tube Q4 is successively increased by the first preset value until the duty cycle signal value of the field effect tube Q4 is not less than the preset fixed value, that is, the process is terminated; if not, the process is terminated; the selection range of the first preset value is set to 0.01% to 0.002%;

[0023] Step b, execute PI clearing, and determine whether the current duty cycle signal value of the field effect tube Q7 is greater than 2D; if the current duty cycle signal value of the field effect tube Q7 is greater than 2D, the current duty cycle signal value of the field effect tube Q7 is successively reduced by the second preset value until the current duty cycle signal value of the field effect tube Q7 is equal to 2D, and then execute step c; if the current duty cycle signal value of the field effect tube Q7 is less than 2D, the current duty cycle signal value of the field effect tube Q7 is successively increased by the second preset value until the current duty cycle signal value of the field effect tube Q7 is equal to 2D, and then execute step c; if the current duty cycle signal value of the field effect tube Q7 is equal to 2D, directly execute step c; the selection range of the second preset value is set to 0.1% to 0.01%;

[0024] Step c, judging whether the current duty cycle signal value of the field effect tube Q10 is greater than the first preset value; if so, the current duty cycle signal value of the field effect tube Q10 is successively reduced by the first preset value until the current duty cycle signal value of the field effect tube Q10 is not greater than the first preset value, and the process is terminated; if not, it is considered that the current duty cycle signal value of the field effect tube Q10 is 0, the PWM module is prohibited from outputting, and the process is terminated.

[0025] Based on the above, compared with the prior art, the DSP-based lithium battery detection system provided by the present invention realizes different duty cycle outputs by constructing two sets of full-bridge circuits in parallel and setting a voltage and current dual closed-loop control algorithm, and then realizes ultra-low voltage and large current charge and discharge tests, thereby improving the charge and discharge power level of the entire circuit, while ensuring the output power requirements and reducing the circuit abnormalities caused by the high duty cycle boost method during single-channel high-power discharge.

[0026] Other features and beneficial effects of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other beneficial effects of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The positional relationships described in the drawings in the following description are based on the directions in which the components are drawn in the diagrams, unless otherwise specified.

[0028] Figure 1A structural block diagram of a lithium battery detection system based on DSP control in an embodiment of the present invention;

[0029] Figure 2 A circuit schematic diagram of a power control unit and a synchronous drive unit provided by the present invention;

[0030] Figure 3 The voltage and current double closed-loop control principle diagram in the PI control module provided by the present invention;

[0031] Figure 4 A structural block diagram of a lithium battery detection system based on DSP control in an embodiment of the present invention;

[0032] Figure 5 A circuit schematic diagram of the positive and negative current differential sampling circuit provided by the present invention;

[0033] Figure 6 This is a flow chart of the steps of the DSP-based lithium battery detection control method provided by the present invention. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments; the technical features designed in different implementation modes of the present invention described below can be combined with each other as long as they do not conflict with each other; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0035] In the description of the present invention, it should be noted that all terms used in the present invention (including technical terms and scientific terms) have the same meanings as those generally understood by ordinary technicians in the field to which the present invention belongs, and cannot be understood as limiting the present invention; it should be further understood that the terms used in the present invention should be understood to have the same meanings as these terms in the context of this specification and in the relevant fields, and should not be understood in an idealized or overly formal sense, unless explicitly defined in the present invention.

[0036] In order to solve the above-mentioned shortcomings of the lithium battery detection system based on DSP control in the prior art that cannot realize ultra-low voltage and high current charge and discharge detection, please refer to Figure 1 The present invention provides a DSP-based lithium battery detection system which at least includes a DSP control unit, a power control unit, a voltage sampling module and a current sampling module.

[0037] The power control unit includes a first power circuit and a second power circuit connected in parallel, wherein the first end of the parallel connection is electrically connected to the power input end, and the second end of the parallel connection is electrically connected to the power line of the battery end; the first power circuit and the second power circuit both include a full-bridge circuit composed of a plurality of field effect transistors.

[0038] The DSP control unit includes an AD (Analogue to Digital) acquisition module, a PI control module and a PWM (Pulse Width Modulation) module which are electrically connected in sequence; the AD acquisition module obtains the battery terminal voltage and the charge and discharge current through the voltage sampling module and the current sampling module respectively; the PI control module includes a voltage controller and a current controller for voltage and current dual closed-loop control, and the voltage controller and the current controller perform PI calculation based on the collected battery terminal voltage, charge and discharge current and the voltage given value and the current given value and then output a control signal; the PWM module is electrically connected to the power control unit to input a control signal and output a duty cycle signal to the first power circuit through pulse width modulation, and output a phase-shifted duty cycle signal to the second power circuit.

[0039] It should be noted that the phase-shifted duty cycle signal is formed by causing the pulse to generate a phase shift according to a set phase shift angle based on the duty cycle signal, and can be specifically generated by adjusting the PWM module in the control loop.

[0040] Among them, the voltage sampling module is electrically connected to the sampling line of the battery end to collect the battery end voltage; the current sampling module is electrically connected to the power line of the battery end to collect the charging and discharging current. It should be noted that the specific voltage sampling module and current sampling module can be set according to the actual circuit requirements, which is a conventional technical means of those skilled in the art and will not be described in detail here.

[0041] Among them, the voltage controller and current controller of the voltage and current dual closed-loop control realize feedback through the two state quantities of battery terminal voltage and charge and discharge current, forming a dual closed-loop control mode; and use the mode of current inner loop controlling current and voltage outer loop controlling voltage to realize the loading of different duty cycle signals.

[0042] Among them, the AD acquisition module mainly includes an analog-to-digital converter, which is used to convert the acquired signal into a digital signal; the PWM module mainly includes a PWM pulse width modulator, which is used to perform pulse width modulation processing on the signal to adjust the corresponding duty cycle signal and phase-shift duty cycle signal.

[0043] Preferably, a rectifier and a filter circuit are connected in parallel between the power control unit and the power input terminal to rectify and filter the input voltage.

[0044] The DSP-based lithium battery detection system provided by the present invention can improve the power level of charging and discharging, output ultra-low voltage and high current, and realize ultra-low voltage and high current charging and discharging testing of supercapacitors by constructing a first power circuit and a second power circuit connected in parallel and performing PI calculation with a voltage controller and a current controller for voltage and current dual closed-loop control.

[0045] In a preferred embodiment, see Figure 2 The first power circuit includes a field effect transistor Q7, a field effect transistor Q11, a field effect transistor Q4, a field effect transistor Q10 and an inductor L3. The high voltage side of the half-bridge arm composed of the field effect transistor Q7 and the field effect transistor Q11 is connected to the positive electrode of the power input terminal, and the low voltage side of the half-bridge arm composed of the field effect transistor Q4 and the field effect transistor Q10 is connected to the negative electrode of the power input terminal. The gates of the field effect transistors Q7, Q11, Q4 and Q10 are connected to the PWM module for inputting a duty cycle signal. The output end of the first power circuit is electrically connected to the power line of the battery end through the inductor L3.

[0046] When the battery is charging, the energy flows forward, and the field effect tube Q7 and the field effect tube Q11 are the positive voltage output circuit of the battery end. The positive half cycle of the field effect tube Q7 realizes the energy storage of the inductor L3, and the negative half cycle of the field effect tube Q11 maintains the inductor L3's inductance flow; the field effect tube Q4 and the field effect tube Q10 are the negative voltage output circuit of the battery end. The positive half cycle of the field effect tube Q4 realizes the energy storage of the inductor L3, and the negative half cycle of the field effect tube Q10 maintains the inductor L3's inductance flow. When the battery is discharging, the first power circuit reverses and boosts, and the energy flows from the battery end to the power input end.

[0047] The second power loop includes field effect tube Q22, field effect tube Q24, field effect tube Q21, field effect tube Q23 and inductor L7. The high voltage side of the half-bridge arm composed of field effect tube Q22 and field effect tube Q24 is connected to the positive pole of the power input end, and the low voltage side of the half-bridge arm composed of field effect tube Q21 and field effect tube Q23 is connected to the negative pole of the power input end. The gates of field effect tube Q22, field effect tube Q24, field effect tube Q21 and field effect tube Q23 are connected to the PWM module for inputting the phase shift duty cycle signal. The output end of the second power loop is electrically connected to the power line of the battery end through the inductor L7.

[0048] Similarly, when the battery is charging, the energy flows forward, and the field effect tube Q22 and field effect tube Q24 are the positive voltage output circuit of the battery end. The positive half cycle of field effect tube Q22 realizes the energy storage of inductor L7, and the negative half cycle of field effect tube Q24 maintains the inductance of inductor L7. Field effect tube Q21 and field effect tube Q23 are the negative voltage output circuit of the battery end. The positive half cycle of field effect tube Q21 realizes the energy storage of inductor L7, and the negative half cycle of field effect tube Q23 maintains the inductance of inductor L7. When the battery is discharging, the second power circuit reverses and boosts, and energy flows from the battery end to the power input end.

[0049] Through the above-mentioned setting of the first power circuit and the second power circuit, the positive and negative voltages output by the battery end can be superimposed, which can not only realize large-current charging and discharging with adjustable charging voltage and discharging voltage, but also realize the battery cell detection mode with ultra-low voltage close to 0V and large current at the output end, reduce the stress of circuit components and improve circuit performance.

[0050] Furthermore, in the half-bridge of the first power circuit and the second power circuit, if the duty cycle signal of the upper tube increases from the minimum value to the required preset value, at the moment of circuit startup, the duty cycle of the upper tube is very small, and the complementary duty cycle of the lower tube will be very large, which may cause the problem of energy backflow at the back end.

[0051] In order to solve the above problems, this embodiment adopts a control method of decreasing the duty cycle of the upper tube. In specific implementation, the duty cycle signal value of the field effect tube Q7 is equal to the duty cycle signal value output by the PI control module PI adjustment plus the duty cycle signal value of the field effect tube Q4; the phase-shifted duty cycle signal value of the field effect tube Q22 is equal to the phase-shifted duty cycle signal value output by the PI control module PI adjustment plus the phase-shifted duty cycle signal value of the field effect tube Q21; the duty cycle signal value of the field effect tube Q4 and the phase-shifted duty cycle signal value of the field effect tube Q21 are both preset fixed values. Preferably, the selection range of the preset fixed value is set to 15% to 25%. More preferably, the preset fixed value is 20%.

[0052] Through the above setting method, it can be ensured that the voltage at the output end is always a positive voltage on the high-voltage side of the half-bridge, and is always a negative voltage on the low-voltage side. The duty cycle of the field effect tube on the high-voltage side decreases, thereby avoiding the problem of energy backflow and improving the service life of the system.

[0053] In a preferred embodiment, the duty cycle signal of the field effect tube Q7 is set to 2D, 0<D<0.5. If the battery terminal is charged, the duty cycle signal of the field effect tube Q11 is 1-2D, the duty cycle signal of the field effect tube Q4 is D, and the duty cycle signal of the field effect tube Q10 is 1-D; if the battery terminal is discharged, the duty cycle signal of the field effect tube Q11 is 2D-1, the duty cycle signal of the field effect tube Q4 is 1-D, and the duty cycle signal of the field effect tube Q10 is D.

[0054] By adopting the above-mentioned setting method for the values ​​of each field effect tube in the first power circuit, when the battery is charged, the first power circuit is forward-stepped down, and energy flows from the power input end to the battery end. According to the energy calculation formula for forward step-down charging, the output voltage V of the first power circuit when the battery is charged can be calculated outa for:

[0055] V outa =2D·V ina -D.V ina =D·V ina

[0056] Among them, V outa The output voltage of the first power circuit when charging the battery, V ina is the input voltage of the first power circuit when the battery is charging, and D is the duty cycle signal value.

[0057] When the battery is discharged, the first power circuit reverses and boosts the voltage, and energy flows from the battery end to the power input end. According to the energy calculation formula of reverse boost discharge, the output voltage of the first power circuit when the battery is discharged can be calculated as V inb :

[0058]

[0059] Among them, V outb is the input voltage of the first power circuit when the battery is discharged, V ina is the output voltage of the first power circuit when the battery is charged, and D is the duty cycle signal value.

[0060] From this, we can see that the voltage boost multiple is equal to the superposition of the voltage boost of the two bridge circuits, which increases the voltage boost multiple. This method can reduce the stress of various components in the circuit and improve the stability of the discharge circuit.

[0061] Similarly, the phase-shift duty cycle signal of the field effect tube Q22 is set to 2*(D+θ), 0<D<0.5. If the battery terminal is charged, the phase-shift duty cycle signal of the field effect tube Q24 is set to 1-2*(D+θ), the phase-shift duty cycle signal of the field effect tube Q21 is set to D+θ, and the phase-shift duty cycle signal of the field effect tube Q23 is set to 1-(D+θ); if the battery terminal is discharged, the phase-shift duty cycle signal of the field effect tube Q24 is set to 2*(D+θ)-1, the phase-shift duty cycle signal of the field effect tube Q21 is set to 1-(D+θ), and the phase-shift duty cycle signal of the field effect tube Q23 is set to D+θ.

[0062] Similarly, the calculation process of the charging and discharging output terminal voltage of the second power circuit can refer to the calculation process of the output terminal voltage of the first power circuit, which will not be described in detail here.

[0063] By setting different duty cycle signal values ​​and phase-shifted duty cycle signal values ​​for each field effect transistor in the first power circuit and the second power circuit, the duty cycle signal values ​​and phase-shifted duty cycle signal values ​​between the high-voltage side field effect transistor and the low-voltage side field effect transistor in the half-bridge are complementary, which can achieve the output power level doubling effect, enhance the circuit load capacity, and reduce the circuit abnormality of the high duty cycle boost mode during single-channel high-power discharge while ensuring the output power demand.

[0064] In traditional DSP control, the system only has a feedback voltage loop, which is simple in design and can ensure the accuracy of output voltage regulation. However, when the system input voltage fluctuates, component parameters and load changes occur, the disturbance will cause changes in various electrical variables in the system. The single voltage loop only plays a regulatory role after the output voltage changes, lagging behind the above disturbances. Therefore, in the transient process, the single voltage loop control may cause large voltage fluctuations in the system, causing system instability. Furthermore, even if the designed circuit is a second-order system, since it is only controlled by a single voltage loop, there are problems of poor stability and delay.

[0065] Therefore, in order to solve the above problems, this embodiment adopts voltage and current dual closed-loop control, that is, current closed-loop feedback control is added on the basis of the voltage loop, the current is controlled by the current inner loop, and the voltage is controlled by the voltage outer loop. Specifically, the control method of the voltage controller and the current controller of the voltage and current dual closed-loop control is: the voltage controller compares the collected battery terminal voltage with the voltage set value to obtain the difference, and then outputs the current adjustment value after PI calculation, and the smaller value of the current adjustment value and the current set value is taken as the current input value, and the current controller compares the collected charge and discharge current with the current input value to obtain the differential value, and then outputs the control signal after PI calculation.

[0066] The following is an explanation of the PI control principle in combination with the first power loop and the second power loop. Figure 3, the battery terminal voltage V0 and the charge and discharge current I fed back from the battery terminal to the first power circuit L1 , the charge and discharge current I fed back from the battery end to the second power circuit L2 As feedback quantity. Voltage given value V ref The difference between the battery terminal voltage V0 and the current regulation value is calculated by the voltage controller PI. The current regulation value is equal to the current given value I ref Take the smaller value as the current input value I cr , current input value I cr It is divided into two input values, one of which is the charge and discharge current I L1 The differential value is obtained by comparison and the control signal V is obtained after the PI calculation of the current controller. ca1 , the other is connected with the charge and discharge current I L2 The differential value is obtained by comparison and the control signal V is obtained after the PI calculation of the current controller. ca2 Among them, the control signal V ca1 After the pulse width modulation of the PWM pulse width modulator, the duty cycle signal d1 is obtained and transmitted to the first power circuit. ca2 After pulse width modulation by the PWM pulse width modulator, a duty cycle signal d is obtained, and then a phase-shifted duty cycle signal d2 is generated through phase shift processing and transmitted to the second power circuit.

[0067] Furthermore, the PI calculation adopts an incremental PI control algorithm, that is, a dual-loop control algorithm of a constant pressure loop incremental PI and a constant current loop incremental PI. The specific algorithm formula is as follows:

[0068] Assume that the integral sum of the difference e(t) of k sampling periods can be expressed as:

[0069]

[0070] Among them, e(t) is the sampling difference function, is the sum of the sampling differences over k periods, is the summation function.

[0071] Then the output value u(k-1) of the k-1th beat is expressed as:

[0072]

[0073] The increment Δu(k) of each beat is expressed as:

[0074] Δu(k)=u(k)-u(k-1)=K p ·[e(k)-e(k-1)]+K i ·T sam ·e(k)

[0075] The incremental algorithm only needs to calculate the previous output value and increment to calculate the current new output value. Therefore, the output value u(k) of the kth beat is expressed as:

[0076] u(k)=u(k-1)+Δu(k)=u(k-1)+K p ·[e(k)-e(k-1)]+K i ·T sam ·e(k)

[0077] Among them, u(k-1) is the output value of the k-1th beat, Δu(k) is the increment of each beat, u(k) is the output value of the kth beat, K p is the proportionality coefficient of PI, K i is the integral coefficient of PI, e(k-1) is the difference of the k-1th beat, and e(k) is the difference of the kth beat.

[0078] Preferably, see Figure 4 , and also includes a synchronous drive unit electrically connected between the power control unit and the power line at the battery end, the synchronous drive unit includes at least one synchronous tube connected in series to the positive electrode of the power line at the battery end; the synchronous drive unit also includes a charge and discharge protection circuit, and the gate of at least one synchronous tube is electrically connected to the DSP control unit through the charge and discharge protection circuit, so as to perform over-current, over-voltage and reverse clamping protection on the lithium battery detection system.

[0079] Preferably, please continue to see Figure 2 The synchronous drive unit includes a synchronous tube Q8 and a synchronous tube Q9 connected in series. The design of the synchronous tube Q8 and the synchronous tube Q9 can ensure that the charging and discharging power voltage matches the battery terminal voltage and is turned on, and then the connection between the battery terminal and the power input terminal is controlled. This can not only avoid the voltage of the front-end power loop generating a back-flow of the battery current at the rear end to cause a short circuit during loading, but also avoid inaccurate measurement of the lithium battery charging and discharging capacity caused by the back-flow of current, thereby greatly extending the service life of the lithium battery.

[0080] Preferably, the charge and discharge protection circuit may include an electrically connected clamping circuit, an overvoltage protection circuit, a comparison circuit, and a synchronous drive circuit, wherein the output end of the synchronous drive circuit is electrically connected to the synchronous tube Q8 and the synchronous tube Q9 through the overvoltage protection circuit, and is used to drive the synchronous tube Q8 and the synchronous tube Q9 to conduct without overvoltage; the input end of the synchronous drive circuit is connected to the comparison circuit through the clamping circuit, and the comparison circuit is connected to the battery end, and is used to realize the battery reverse connection protection. The above-mentioned setting method of the charge and discharge protection circuit can quickly turn off the output enable in the case of abnormal circuit or battery, so as to protect the battery and the circuit of the entire detection system.

[0081] It should be noted that the specific circuit elements of the clamping circuit, the overvoltage protection circuit, the comparison circuit and the synchronous drive circuit can be designed by those skilled in the art according to their functions, and will not be elaborated herein.

[0082] In one embodiment, the current sampling module includes a sampling resistor connected in series between the power control unit and the power line of the battery end and a positive and negative current differential sampling circuit connected in parallel to the sampling resistor, so as to collect the charge and discharge current of the battery end.

[0083] In specific implementation, the positive and negative current differential sampling circuit includes a differential operational amplifier IC1 and a number of resistors and capacitors. Among them, the positive input terminal of the differential operational amplifier IC1 is connected to the positive terminal of the sampling resistor through the resistor R4, and the positive input terminal of the differential operational amplifier IC1 is also grounded through the parallel resistor R6 and capacitor C4; the negative input terminal of the differential operational amplifier IC1 is connected to the negative terminal of the sampling resistor through the resistor R3; the negative input terminal of the differential operational amplifier IC1 is also electrically connected to the differential resistor R7 through the parallel resistor R1 and capacitor C1, and the differential resistor R7 is also connected in parallel between the input terminal and the output terminal of the differential operational amplifier IC1; the other output terminal of the differential operational amplifier IC1 is connected to the AD acquisition module of the DSP control unit. For details, please refer to Figure 5 As shown, the bias voltage mathematical model of the positive and negative current differential sampling circuit can be derived based on the operational amplifier virtual short and virtual open model, and then the charging and discharging current of the battery end can be obtained.

[0084] In one embodiment, see Figure 4 , the synchronous drive unit also includes a power relay circuit, which is connected in series to the power line of the battery end and is electrically connected to the DSP control unit to control the charging and discharging of the battery end to the power input end. Specifically, the power relay circuit includes an electrically connected power relay and a control current amplifier circuit, wherein the control current amplifier circuit amplifies the driving signal sent by the DSP control unit and transmits it to the power relay, and the power relay controls the battery to charge and discharge the synchronous tube and the power input end. The above-mentioned use of relays to control the power current output can effectively prevent the BMS (Battery Management System) protection board of the detection system from being falsely triggered, and avoid the leakage current from being detected by the BMS protection board and causing the problem of no voltage. The specific circuit connection method can adopt the conventional relay control circuit in the field, which will not be elaborated here.

[0085] See also Figure 6 The present invention also provides a DSP-based lithium battery detection control method, which uses a DSP-based lithium battery detection system as described in the above embodiment, and includes the following control steps:

[0086] Start the lithium battery detection system and determine whether the system is in operation.

[0087] If the system enters the running state, execute step a; if the system does not enter the running state, execute step b.

[0088] Step a, the system is soft-started, and the duty cycle signal is preset and loaded; then the duty cycle signal is output through the PWM module after PI calculation through the voltage controller and the current controller, and the duty cycle signal value of the field effect tube Q7 is made equal to the duty cycle signal value output by the PI control module PI adjustment plus the duty cycle signal value of the field effect tube Q4.

[0089] Next, determine whether the duty cycle signal value of the field effect tube Q4 is less than the preset fixed value. If so, the duty cycle signal value of the field effect tube Q4 is increased by the first preset value in sequence until the duty cycle signal value of the field effect tube Q4 is not less than the preset fixed value, that is, the process is terminated; if not, the process is terminated; the selection range of the first preset value is set to 0.01% to 0.002%; preferably, the first preset value is set to 0.005%.

[0090] Step b, execute PI clearing, and determine whether the current duty cycle signal value of the field effect tube Q7 is greater than 2D; if the current duty cycle signal value of the field effect tube Q7 is greater than 2D, the current duty cycle signal value of the field effect tube Q7 is successively decreased by the second preset value until the current duty cycle signal value of the field effect tube Q7 is equal to 2D, and then step c is executed; if the current duty cycle signal value of the field effect tube Q7 is less than 2D, the current duty cycle signal value of the field effect tube Q7 is successively increased by the second preset value until the current duty cycle signal value of the field effect tube Q7 is equal to 2D, and then step c is executed; if the current duty cycle signal value of the field effect tube Q7 is equal to 2D, then step c is directly executed; the selection range of the second preset value is set to 0.1% to 0.01%; preferably, the second preset value is set to 0.05%.

[0091] Step c, determine whether the current duty cycle signal value of the field effect tube Q10 is greater than the first preset value; if so, the current duty cycle signal value of the field effect tube Q10 is decreased by the first preset value in sequence until the field effect tube Q10 is not greater than the first preset value, and the process is terminated; if not, it is considered that the current duty cycle signal value of the field effect tube Q10 is 0, the PWM module is prohibited from outputting, and the process is terminated.

[0092] Similarly, the control method for the second power circuit is the same as the control method for the first power circuit. Specifically, step a also includes: making the phase-shift duty cycle signal value of the field effect tube Q22 equal to the phase-shift duty cycle signal value output by the PI control module PI adjustment plus the phase-shift duty cycle signal value of the field effect tube Q21.

[0093] Next, determine whether the phase-shift duty cycle signal value of the field effect tube Q21 is less than the preset fixed value. If so, the phase-shift duty cycle signal value of the field effect tube Q21 is increased by the first preset value in sequence until the phase-shift duty cycle signal value of the field effect tube Q21 is not less than the preset fixed value, that is, the process is terminated; if not, the process is terminated.

[0094] Step b also includes: determining whether the current phase-shift duty cycle signal value of the field effect tube Q22 is greater than 2*(D+θ); if the current phase-shift duty cycle signal value of the field effect tube Q22 is greater than 2*(D+θ), the current phase-shift duty cycle signal value of the field effect tube Q22 is successively decreased by a second preset value until the current phase-shift duty cycle signal value of the field effect tube Q22 is equal to 2*(D+θ), and then step c is executed; if the current phase-shift duty cycle signal value of the field effect tube Q22 is less than 2*(D+θ), the current phase-shift duty cycle signal value of the field effect tube Q22 is successively increased by a second preset value until the current phase-shift duty cycle signal value of the field effect tube Q22 is equal to 2*(D+θ), and then step c is executed; if the current phase-shift duty cycle signal value of the field effect tube Q22 is equal to 2*(D+θ), step c is directly executed.

[0095] Step c also includes: judging whether the current phase-shift duty cycle signal value of the field effect tube Q23 is greater than the first preset value; if so, the current phase-shift duty cycle signal value of the field effect tube Q23 is decreased by the first preset value in sequence until the current phase-shift duty cycle signal value of the field effect tube Q23 is not greater than the first preset value, and the process is terminated; if not, it is considered that the current phase-shift duty cycle signal value of the field effect tube Q23 is 0, the PWM module is prohibited from outputting, and the process is terminated.

[0096] By using the corresponding digital PI control algorithm to replace the traditional analog PI control method, the circuit cost can be reduced while the loop can be flexibly adjusted and fed back. At the same time, combined with the parallel power circuit structure, supercapacitor charge and discharge detection and ultra-low voltage high-power charge and discharge detection with an output close to zero volts can be realized, reducing the heating of the battery cell and ensuring the corresponding test requirements.

[0097] In addition, those skilled in the art should understand that, although there are many problems in the prior art, each embodiment or technical solution of the present invention can be improved in only one or several aspects, without having to solve all the technical problems listed in the prior art or background technology at the same time. Those skilled in the art should understand that the content not mentioned in a claim should not be used as a limitation on the claim.

[0098] Although the terms such as DSP control unit, power control unit, voltage sampling module, current sampling module, first power circuit, second power circuit, AD acquisition module, PI control module, PWM module, voltage controller, current controller, synchronous drive unit, positive and negative current differential sampling circuit, power relay circuit, charge and discharge protection circuit, etc. are used more frequently in this article, the possibility of using other terms is not excluded. These terms are used only to more conveniently describe and explain the essence of the present invention; interpreting them as any additional restrictions is contrary to the spirit of the present invention; the terms "first", "second", etc. (if any) in the description and claims of the embodiments of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A lithium battery detection system based on DSP, characterized in that: It includes a DSP control unit, a power control unit, a voltage sampling module and a current sampling module; The power control unit comprises a first power circuit and a second power circuit connected in parallel, wherein the first end of the parallel connection is electrically connected to the power input end, and the second end of the parallel connection is electrically connected to the power line of the battery end; the first power circuit and the second power circuit both comprise a full-bridge circuit composed of a plurality of field effect transistors; The DSP control unit includes an AD acquisition module, a PI control module and a PWM module which are electrically connected in sequence; the AD acquisition module obtains the battery terminal voltage and the charge and discharge current through the voltage sampling module and the current sampling module respectively; the PI control module includes a voltage controller and a current controller for voltage and current dual closed-loop control, and the voltage controller and the current controller perform PI calculation according to the collected battery terminal voltage, the charge and discharge current, and the voltage given value and the current given value and then output a control signal; the PWM module is electrically connected to the power control unit to input the control signal and output a duty cycle signal to the first power circuit through pulse width modulation, and output a phase-shifted duty cycle signal to the second power circuit; The first power circuit includes a field effect transistor Q7, a field effect transistor Q11, a field effect transistor Q4, a field effect transistor Q10 and an inductor L3; the high voltage side of the half-bridge arm formed by the field effect transistor Q7 and the field effect transistor Q11 is connected to the positive electrode of the power input end, and the low voltage side of the half-bridge arm formed by the field effect transistor Q4 and the field effect transistor Q10 is connected to the negative electrode of the power input end; the gates of the field effect transistor Q7, the field effect transistor Q11, the field effect transistor Q4 and the field effect transistor Q10 are connected to the PWM module for inputting the duty cycle signal; the output end of the first power circuit is electrically connected to the power line of the battery end through the inductor L3; The second power circuit includes a field effect tube Q22, a field effect tube Q24, a field effect tube Q21, a field effect tube Q23 and an inductor L7; the high voltage side of the half-bridge arm formed by the field effect tube Q22 and the field effect tube Q24 is connected to the positive electrode of the power input end, and the low voltage side of the half-bridge arm formed by the field effect tube Q21 and the field effect tube Q23 is connected to the negative electrode of the power input end; the gates of the field effect tube Q22, the field effect tube Q24, the field effect tube Q21 and the field effect tube Q23 are connected to the PWM module for inputting the phase-shifted duty cycle signal; the output end of the second power circuit is electrically connected to the power line of the battery end through the inductor L7; The duty cycle signal value of the field effect tube Q7 is equal to the duty cycle signal value output by the PI control module PI adjustment plus the duty cycle signal value of the field effect tube Q4; The phase-shift duty cycle signal value of the field effect tube Q22 is equal to the phase-shift duty cycle signal value output by the PI control module PI adjustment plus the phase-shift duty cycle signal value of the field effect tube Q21; the duty cycle signal value of the field effect tube Q4 and the phase-shift duty cycle signal value of the field effect tube Q21 are both preset fixed values.

2. The DSP-based lithium battery detection system according to claim 1 is characterized in that: The selection range of the preset fixed value is set to 15%~25%.

3. The DSP-based lithium battery detection system according to claim 1 is characterized in that: Assume that the duty cycle signal of the field effect tube Q7 is 2D, the phase shift duty cycle signal of the field effect tube Q22 is 2*(D+θ), 0<D<0.5; If the battery is charged, the duty cycle signal of the field effect tube Q11 is 1-2D, the duty cycle signal of the field effect tube Q4 is D, the duty cycle signal of the field effect tube Q10 is 1-D, the phase shift duty cycle signal of the field effect tube Q24 is 1-2*(D+θ), the phase shift duty cycle signal of the field effect tube Q21 is D+θ, and the phase shift duty cycle signal of the field effect tube Q23 is 1-(D+θ); If the battery end is discharged, the duty cycle signal of the field effect tube Q11 is 2D-1, the duty cycle signal of the field effect tube Q4 is 1-D, the duty cycle signal of the field effect tube Q10 is D, the phase-shifted duty cycle signal of the field effect tube Q24 is 2*(D+θ)-1, the phase-shifted duty cycle signal of the field effect tube Q21 is 1-(D+θ), and the phase-shifted duty cycle signal of the field effect tube Q23 is D+θ.

4. The DSP-based lithium battery detection system according to claim 1 is characterized in that: The control method of the voltage controller and the current controller of the voltage-current dual closed-loop control is: the voltage controller obtains a difference by comparing the collected battery terminal voltage with the voltage set value, and then outputs a current adjustment value after PI calculation, and the smaller value of the current adjustment value and the current set value is taken as the current input value; the current controller obtains a differential value by comparing the collected charging and discharging current with the current input value, and then outputs the control signal after PI calculation.

5. The DSP-based lithium battery detection system according to claim 1 is characterized in that: It also includes a synchronous drive unit electrically connected between the power control unit and the power line of the battery end, and the synchronous drive unit includes at least one synchronous tube connected in series to the positive pole of the power line of the battery end; the synchronous drive unit also includes a charge and discharge protection circuit, and the gate of at least one of the synchronous tubes is electrically connected to the DSP control unit through the charge and discharge protection circuit, so as to perform over-current, over-voltage and reverse clamping protection on the lithium battery detection system.

6. The DSP-based lithium battery detection system according to claim 5, characterized in that: The current sampling module includes a sampling resistor connected in series between the power control unit and the power line of the battery end and a positive and negative current differential sampling circuit connected in parallel to the sampling resistor, so as to collect the charge and discharge current.

7. The DSP-based lithium battery detection system according to claim 5, characterized in that: The synchronous drive unit also includes a power relay circuit, which is connected in series to the power line of the battery end and is electrically connected to the DSP control unit to control the charging and discharging of the battery end to the power input end.

8. A lithium battery detection and control method based on DSP, characterized in that: A lithium battery detection system based on DSP as described in any one of claims 1 to 7 is adopted, comprising the following control steps: Starting the lithium battery detection system and determining whether the system is in operation; If the system enters the running state, execute step a; if the system does not enter the running state, execute step b; Step a, soft start the system, preset and load the duty cycle signal; then perform PI calculation through the voltage controller and the current controller, and output the duty cycle signal through the PWM module, so that the duty cycle signal value of the field effect tube Q7 is equal to the duty cycle signal value of the PI adjustment output plus the duty cycle signal value of the field effect tube Q4; Next, it is determined whether the duty cycle signal value of the field effect tube Q4 is less than the preset fixed value. If so, the duty cycle signal value of the field effect tube Q4 is successively increased by the first preset value until the duty cycle signal value of the field effect tube Q4 is not less than the preset fixed value, that is, the process is terminated; if not, the process is terminated; the selection range of the first preset value is set to 0.01%~0.002%; Step b, execute PI clearing, and determine whether the current duty cycle signal value of the field effect tube Q7 is greater than 2D; if the current duty cycle signal value of the field effect tube Q7 is greater than 2D, the current duty cycle signal value of the field effect tube Q7 is successively decreased by the second preset value until the current duty cycle signal value of the field effect tube Q7 is equal to 2D, and then execute step c; if the current duty cycle signal value of the field effect tube Q7 is less than 2D, the current duty cycle signal value of the field effect tube Q7 is successively increased by the second preset value until the current duty cycle signal value of the field effect tube Q7 is equal to 2D, and then execute step c; if the current duty cycle signal value of the field effect tube Q7 is equal to 2D, directly execute step c; the selection range of the second preset value is set to 0.1%~0.01%; Step c, judging whether the current duty cycle signal value of the field effect tube Q10 is greater than the first preset value; if so, the current duty cycle signal value of the field effect tube Q10 is successively reduced by the first preset value until the current duty cycle signal value of the field effect tube Q10 is not greater than the first preset value, and the process is terminated; if not, it is considered that the current duty cycle signal value of the field effect tube Q10 is 0, the PWM module is prohibited from outputting, and the process is terminated.