A charging system, charging control method, terminal and medium
By using the dual-ring competition algorithm and online battery internal resistance measurement in the charging system, the steady-state oscillation problem caused by changes in the battery internal resistance during the charging process is solved, and a stable and efficient charging process is achieved.
Patent Information
- Application Number
- CN202411154787.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-08-22
AI Technical Summary
In the prior art, due to changes in the internal resistance of the battery during charging, the charging closed-loop adjustment effect is poor, and steady-state oscillation and double-ring back and forth oscillation often occur, making it difficult to achieve stable charging.
Design a charging system, including a monitoring module and a charger, determine the charging current in real time through a dual-ring competition algorithm, combine the constant voltage ring and the constant current ring to achieve stable charging of the battery, and measure the internal resistance of the battery online for adaptive adjustment of closed-loop parameters. .
It realizes stable charging of the battery, reduces the complexity of the charger hardware, saves production costs, improves the adaptability and reliability of the system, and can dynamically prevent shock response.
Smart Images

Figure CN118677072B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery charging technology, and in particular to a charging system, a charging control method, a terminal and a medium. Background Art
[0002] In the battery charging process in the prior art, since the internal resistance of the battery changes during the charging process, this will affect the charging closed-loop regulation effect, easily leading to oscillation and regulation failure. In addition, the closed-loop regulation of the prior art mostly uses the PID algorithm. When the PID algorithm is used in a circuit with determined device parameters, the PID parameter bandwidth can be determined quickly by building a circuit simulation, and then several sets of PID parameters with good performance are debugged through experiments. However, due to the uncertain change characteristics of the internal resistance of the battery, it is difficult for the conventional PID algorithm to determine one or several sets of good parameters. Therefore, steady-state oscillation, double-loop back-and-forth oscillation and other poorly regulated situations often occur during the recharging process. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a charging system, a charging control method, a terminal and a medium, which can realize stable charging of a battery and can realize online measurement of the internal resistance of the battery.
[0004] In a first aspect, an embodiment of the present application provides a charging system, including a monitoring module, a charger and a battery;
[0005] The monitoring module includes a first constant pressure ring, a constant current ring, a collection unit and a calculation unit;
[0006] The charger comprises a second constant voltage ring and a current limiting ring;
[0007] The acquisition unit is connected to the battery and is used to obtain the charging voltage of the battery in real time, and the charging voltage is calculated by the calculation unit according to a preset calculation cycle after temperature compensation as the constant pressure loop closed loop target voltage of the first constant pressure loop;
[0008] The calculation unit is used to calculate the closed-loop target voltage of the charger according to a preset calculation rule in combination with the closed-loop target voltage of the constant voltage loop and the closed-loop target current of the constant current loop, and transmit the closed-loop target voltage of the charger to the second constant voltage loop;
[0009] The charger is used to obtain the output voltage of the charger according to the closed-loop target voltage of the charger and the current limiting target current of the current limiting loop of the charger, and to enable the charger to charge the battery based on the current output voltage;
[0010] The monitoring module is also used to determine the value of the charging current in real time during the charging process based on the dual-loop competition algorithm of the first constant voltage loop and the constant current loop, until the charging current is zero, and then send a charging completion instruction to the charger to stop charging.
[0011] In a second aspect, an embodiment of the present application provides a charging control method based on the above-mentioned charger system, including:
[0012] During the charging process, the charging voltage of the battery is obtained in real time, and the charging voltage is used as the constant voltage loop closed loop target voltage of the first constant voltage loop after temperature compensation calculation; wherein the charging voltage is obtained by subtracting the voltage drop between the charger and the battery from the output voltage of the charger;
[0013] Calculate the closed-loop target voltage of the charger according to the preset calculation rule in combination with the closed-loop target voltage of the constant voltage loop and the closed-loop target current of the constant current loop, and transmit the closed-loop target voltage of the charger to the second constant voltage loop, so that the charger obtains the output voltage of the charger according to the closed-loop target voltage of the charger and the current limiting target current of the current limiting loop of the charger, and enables the charger to charge the battery based on the current output voltage;
[0014] During the charging process, the value of the charging current is determined in real time based on the dual-loop competition algorithm of the first constant voltage loop and the constant current loop until the charging current is zero, and the charging is completed; wherein the charging current is determined according to the charging voltage, the charging current and the internal resistance of the battery.
[0015] In some embodiments, the method of calculating the closed-loop target voltage of the charger according to a preset calculation rule in combination with the closed-loop target voltage of the constant voltage loop and the closed-loop target current of the constant current loop includes:
[0016] Determine the constant voltage calculation result voltage of the current calculation cycle according to the constant voltage loop closed-loop target voltage of the current calculation cycle, the feedback voltage of the current calculation cycle, the constant voltage loop integral coefficient and the charger closed-loop target voltage of the previous calculation cycle; wherein the feedback voltage is equal to the charging voltage of the current calculation cycle;
[0017] Determine the constant current calculation result voltage of the current calculation cycle according to the closed-loop target current, the feedback current of the current calculation cycle, the battery internal resistance of the current calculation cycle, the constant current loop integral coefficient of the current calculation cycle and the charger closed-loop target voltage of the previous calculation cycle; wherein the feedback current is equal to the charging current of the current calculation cycle;
[0018] The closed-loop target voltage of the charger is determined according to the charging voltage of the current calculation cycle and the constant current calculation result voltage of the current calculation cycle.
[0019] In some embodiments, determining the constant voltage calculation result voltage of the current calculation cycle according to the constant voltage loop closed-loop target voltage of the current calculation cycle, the feedback voltage of the current calculation cycle, and the constant voltage loop integral coefficient includes:
[0020] Calculating a constant voltage error according to the constant voltage loop closed-loop target voltage of the current calculation cycle and the feedback voltage of the current calculation cycle;
[0021] The constant voltage calculation result voltage of the current calculation cycle is obtained by calculation according to the charger closed-loop target voltage of the previous calculation cycle, the constant voltage error and the constant voltage loop integral coefficient.
[0022] In some embodiments, the constant current calculation result voltage of the current calculation cycle is determined according to the closed-loop target current, the feedback current of the current calculation cycle, the battery internal resistance of the current calculation cycle, the constant current loop integral coefficient of the current calculation cycle, and the charger closed-loop target voltage of the previous calculation cycle, including:
[0023] Calculating a constant current error according to the closed-loop target current and the feedback current of a current calculation cycle;
[0024] The constant current calculation result voltage of the current calculation cycle is obtained according to the closed-loop target voltage of the charger in the previous calculation cycle, the constant current error and the constant current loop integral coefficient of the current calculation cycle; wherein the constant current loop integral coefficient of the current calculation cycle is the average value of the constant current loop integral coefficient of the previous calculation cycle and the battery internal resistance of the current calculation cycle.
[0025] In some embodiments, the charging current is a value obtained by subtracting the battery voltage from the charging voltage divided by the internal resistance of the battery.
[0026] In some embodiments, the dual-loop competition algorithm based on the first constant voltage loop and the constant current loop determines the value of the charging current in real time until the charging current is zero, including:
[0027] When charging starts, the charging current is kept equal to the charging constant current value through the constant current loop of the monitoring module;
[0028] Continuously charging the battery through the charger, so that the battery voltage gradually increases, thereby causing the charging voltage to gradually increase;
[0029] When the charging voltage reaches the full-charge voltage, switching to a constant voltage loop to keep the charging voltage equal to the full-charge voltage;
[0030] As the battery is continuously charged, the battery voltage continues to increase. When the battery voltage is equal to the charging voltage, the charging current is zero.
[0031] In some embodiments, the battery internal resistance of the current calculation cycle is obtained by the adjustment amount of the constant current calculation result voltage of the current fluctuation opportunity selected in the previous calculation cycle and the change amount of the feedback current of the current fluctuation opportunity selected in the current calculation cycle; wherein, the current fluctuation opportunity is a current fluctuation moment during the current fluctuation range of 0.1C~0.5C.
[0032] In a third aspect, an embodiment of the present application provides a terminal device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the above-mentioned charging control method.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed on a processor, implements the charging control method described above.
[0034] The embodiments of the present application have the following beneficial effects: the charging system of the present application, by setting up the monitoring module and the charger part separately, realizes the analog quantity acquisition of the battery and the dual-loop competition part in the monitoring module, thereby reducing the hardware complexity of the charger and saving the production cost of the charger. In addition, during the charging process of the battery, the present application can realize the adaptive adjustment of the closed-loop parameters of the charging system by measuring the internal resistance of the battery online in real time, thereby improving the adaptability and reliability of the system; in addition, in the charging control, the battery side output loop is used as the front stage, and the charger output loop is used as the back stage, thereby realizing the accurate and stable charging process, and can dynamically prevent shock response capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 A schematic structural diagram of a charging system according to an embodiment of the present application is shown;
[0037] Figure 2 An example diagram of the output topology of a charger according to an embodiment of the present application is shown;
[0038] Figure 3 A schematic diagram of a temperature compensation curve of an embodiment of the present application is shown;
[0039] Figure 4 A first flow chart of the charging control method according to an embodiment of the present application is shown;
[0040] Figure 5 A second flow chart of the charging control method according to an embodiment of the present application is shown;
[0041] Figure 6 A third flow chart of the charging control method according to an embodiment of the present application is shown;
[0042] Figure 7 A fourth flow chart of the charging control method according to an embodiment of the present application is shown;
[0043] Figure 8 A fifth flow chart of the charging control method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0045] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0046] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0047] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0048] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0049] In the prior art, since the internal resistance of the battery is constantly changing during the charging process, the closed-loop regulation of charging based on the existing PID algorithm often leads to poor regulation such as steady-state oscillation and double-loop back-and-forth oscillation, which in turn affects the stable charging of the battery.
[0050] The charging system is described below in conjunction with some specific embodiments.
[0051] Figure 1 A schematic diagram of the structure of the charging system of the embodiment of the present application is shown. Exemplarily, the charging system includes a monitoring module 100, a charger 200 and a battery 300; wherein one end of the monitoring module 100 is connected to the battery 300 to obtain analog quantities of the battery 300, wherein the analog quantities of the battery 300 obtained include but are not limited to information such as charging current, battery voltage, and temperature; and the other end of the monitoring module 100 is connected to the charger 200.
[0052] The monitoring module 100 includes a first constant voltage ring 110 , a constant current ring 120 , a collection unit 130 and a calculation unit 140 ; the charger 200 includes a second constant voltage ring 210 and a current limiting ring 220 .
[0053] The acquisition unit 130 of the monitoring module 100 is connected to the battery 300 and is used to acquire the analog quantity of the battery 300. Specifically, when the charger 200 is charging the battery 300, the acquisition unit 130 in the monitoring module 100 acquires the charging voltage of the battery 300 in real time, and uses the charging voltage as the constant voltage loop closed-loop target voltage of the first constant voltage loop 110 after temperature compensation calculation by the calculation unit according to a preset calculation cycle.
[0054] The calculation unit 140 is used to calculate the charger closed-loop target voltage according to a preset calculation rule in combination with the closed-loop target voltage of the constant voltage loop and the closed-loop target current of the constant current loop 120 , and transmit the charger closed-loop target voltage to the second constant voltage loop 210 .
[0055] The charger 200 is used to obtain the output voltage of the charger 200 according to the closed-loop target voltage of the charger and the current limiting target current of the current limiting loop 220 of the charger 200, and enable the charger 200 to charge the battery 300 based on the current output voltage.
[0056] In some specific embodiments, when the battery 300 needs to be charged, the monitoring module 100 obtains the initial battery voltage of the current battery 300, and then sends a charge start instruction to the charger 200. After receiving the charge start instruction, the charger 200 starts charging the battery 300, and the initial battery voltage is used as the charger closed-loop target voltage initially sent to the charger 200. Then, the charger 200 obtains the current output voltage of the charger 200 according to the charger closed-loop target voltage and the current limiting target current of the charger current limiting loop 220, and then starts charging the battery 300.
[0057] During the charging process, Figure 1 As shown, the acquisition unit 130 of the monitoring module 100 collects information such as the battery voltage, charging current, and temperature of the battery 300 in real time. During charging, when the charging voltage is greater than the battery voltage, the battery voltage collected by the acquisition module is not the voltage of the battery itself, but the charging voltage; wherein the charging voltage is the output voltage of the charger 200 minus the voltage drop between the charger 200 and the battery 300. The voltage drop is caused by, for example, Figure 2 The output topology diagram of the charger 200 shown in the figure may include electronic devices such as diodes between the charger 200 and the battery 300. After the acquisition unit 130 acquires the charging voltage, it calculates the closed-loop target voltage of the constant voltage loop 110 through temperature compensation; the closed-loop target current of the constant current loop 120 of the monitoring module is the charging constant current value given by the battery manufacturer, for example, it can be 40A. During the charging process, the smaller value of the competition result between the first constant voltage loop 110 and the constant current loop 120 of the monitoring module 100 is taken as the target voltage, and the target voltage is used as the closed-loop target voltage of the charger, and then transmitted to the second constant voltage loop through CAN communication; in addition to the second constant voltage loop 210, the charger 200 also includes a charger current limiting loop 220 and an actuator 230; in the normal power supply process, the closed-loop target current of the current limiting loop 220 is the maximum output power of the charger 200 at the maximum current of the current output of the charger 200. If the maximum power of the charger 200 is 20Kw and the output voltage is 110V, the maximum current at this time is 182A, and the closed-loop target current of the current limiting loop 220 is 182A; in the charger 200, the smaller value of the double-loop calculation result of the charger 200 is given to the actuator 230, and then the actuator 230 outputs it to the battery 300 and / or the load, such as Figure 2 In the topology diagram shown, BT± is the battery port, DC± is the load port, the load and battery are connected in parallel. Figure 2In the topological structure shown, the actuator 230 outputs voltage to the battery 300 and the load, and it may also be without a load. In the case of no load, the actuator 230 only outputs voltage to the battery 300 to charge the battery 300. It should be noted that the actuator 230 of the charger 200 is not limited in this application, and it can output voltage to charge the battery 300.
[0058] It should be noted that the formula for the output voltage of the second constant voltage loop 210 and the current limiting loop 220 of the charger is a PID adjustment incremental formula with the differential term removed; the input and output of the charger 200 are voltages, and the adjustment amount is the output duty cycle and the switching cycle, so the dual-loop calculation result of the charger 200 in this application adopts the PID algorithm. For the output duty cycle and the switching cycle u, the calculation result of the current cycle is the output duty cycle adjustment increment Δu[n], then the formula of Δu[n] is: Δu[n]=Kp*[e[n]-e[n-1]]+K*(e[n]+e[n-1]). Among them, Kp is the proportional link coefficient, Ki1 is the integral link coefficient, e[n] is the error in the current calculation cycle (closed-loop target-feedback), and e[n-1] is the error in the previous calculation cycle. Among them, the value range of the Kp and K parameters can be obtained through the simulation model, and then the Kp and K parameters are corrected through experiments to obtain the final Kp and K parameters.
[0059] The second constant voltage loop 210 and the current limiting loop 220 of the charger 200 are both calculated by the above-mentioned PID incremental method, wherein the purpose of the second constant voltage loop 210 is to adjust the output voltage to stabilize at the constant voltage target voltage, the target quantity is the constant voltage target voltage, the feedback quantity is the output voltage, the adjustment quantity is the output duty cycle and the switching period, and the calculation result is the output duty cycle and the switching period increment. The purpose of the current limiting loop 220 is to prevent the output current from being too large due to excessive output voltage regulation, the target quantity is the current limiting maximum output current, the feedback quantity is the output current, and the adjustment quantity is also the output duty cycle and the switching period. When the current is too large to reach the current limiting target current, the duty cycle and the switching period increment calculated by the current limiting loop 220 are less than the duty cycle and the switching period increment calculated by the second constant voltage loop, and the final result takes the minimum value of the dual loops, so the calculation result of the current limiting loop is used at this time to prevent the current from continuing to increase. When the charger 200 calculates the output voltage by adopting a dual-loop method, the second constant voltage loop 210 is used to stabilize the output to the second constant voltage loop target voltage, serving as the power change regulation core; the current limiting loop 220 is used to provide current limiting protection when the load is too large or the abnormal current increases, and its regulation result prevents the output voltage from rising to limit the current.
[0060] It should be noted that after the charging voltage is collected, the charging voltage is subjected to temperature compensation calculation. Usually, the temperature compensation curve of the battery 300 is obtained by the manufacturer of the battery 300. The obtained temperature compensation curve is as follows: Figure 3 As shown, it can be understood that Figure 3 This is merely exemplary, and different batteries 300 may have different temperature compensation curves.
[0061] The charging control of the charging system on the battery 300 is calculated and adjusted by the monitoring module 100, that is, during the charging process, based on the dual-loop competition algorithm of the first constant voltage loop 110 and the constant current loop 120, the value of the charging current is determined in real time until the charging current is zero, and the charging is completed.
[0062] In some specific implementations, the charging current of the battery 300 is the difference between the charging voltage and the battery voltage divided by the battery internal resistance, that is, the charging current=(charging voltage-battery voltage) / battery internal resistance.
[0063] like Figure 4 As shown, based on the dual-loop competition algorithm of the first constant voltage loop and the constant current loop, the value of the charging current is determined in real time until the charging current is zero, specifically including:
[0064] Step S410, when charging starts, the charging current is kept equal to the charging constant current value through the constant current loop of the monitoring module.
[0065] Step S420, continuously charging the battery through the charger, so that the battery voltage gradually increases, and thus the charging voltage gradually increases.
[0066] Step S430, when the charging voltage reaches the full-charge voltage, switch to the constant voltage loop to keep the charging voltage equal to the full-charge voltage.
[0067] Step S440: As the battery is continuously charged, the battery voltage continues to increase. When the battery voltage is equal to the charging voltage, the charging current is zero.
[0068] Specifically, during the charging process, the function of the constant current loop 120 of the monitoring module 100 is to keep the charging current equal to the charging constant current value, that is, the charging constant current value of the battery 300 given by the manufacturer of the battery 300. As the charger 200 continues to charge the battery 300, the battery voltage of the battery 300 gradually increases. The battery voltage is the voltage of the battery itself. Although the internal resistance of the battery will also change during the charging process, the amount of change is small. Therefore, the charging current tends to decrease at this time, but the constant current loop 120 of the monitoring module will maintain the constant current value unchanged, and the battery voltage gradually increases, so the charging voltage will increase. When the charging voltage reaches the battery voltage after temperature compensation calculation, that is, when it reaches the full-charge voltage, it is switched to the first constant voltage loop 110 control. At this time, the charging voltage is kept equal to the full-charge voltage. At this time, the battery voltage will still gradually increase, and the charging current will gradually decrease until the battery voltage is equal to the charging voltage. At this time, the charging current is equal to zero, and the charging is completed.
[0069] In this application, the basic idea of the dual-loop competition of the monitoring module 100 is to calculate the error between the feedback and the closed-loop target of the current calculation cycle respectively, and use the integral link of the PID control method to adjust the error to zero. Among them, the feedback current of the constant current loop 120 of the monitoring module is the charging current of the battery 300, and the closed-loop target current of the constant current loop 120 is the constant current value; the feedback voltage of the constant voltage loop of the monitoring module 100 is the charging voltage, and the constant voltage loop closed-loop target voltage of the constant voltage loop is the full-charge voltage after temperature compensation. According to the above charging current = (charging voltage-battery voltage) / battery internal resistance, the closed-loop target current of the constant current loop 120 can be regarded as a constant current dynamic target voltage = battery voltage + charging current * battery internal resistance. The meaning of this formula is that the constant current dynamic target voltage is the charging voltage when the charging current is equal to the battery constant current value under the battery voltage of the current calculation cycle; wherein, since the battery internal resistance changes with the charging process, the battery resistance needs to be measured online in this application.
[0070] In some embodiments, Figure 5 As shown, the closed-loop target voltage of the charger is calculated based on the preset calculation rules combined with the closed-loop target voltage of the constant voltage loop and the closed-loop target current of the constant current loop, including:
[0071] Step S210, determining the constant voltage calculation result voltage of the current calculation cycle according to the constant voltage loop closed-loop target voltage of the current calculation cycle, the feedback voltage of the current calculation cycle, the constant voltage loop integral coefficient and the charger closed-loop target voltage of the previous calculation cycle.
[0072] Among them, the feedback voltage is equal to the charging voltage of the current calculation cycle.
[0073] like Figure 6 As shown, step S210 includes:
[0074] Step S211, calculating a constant voltage error according to a constant voltage loop closed-loop target voltage of a current calculation cycle and a feedback voltage of a current calculation cycle.
[0075] Step S212, obtaining the constant voltage calculation result voltage of the current calculation cycle according to the charger closed-loop target voltage, the constant voltage error and the constant voltage loop integral coefficient of the previous calculation cycle.
[0076] In some embodiments, since the battery voltage, battery resistance, charging voltage, etc. will continue to change with the progress of charging during the process of charging the battery 300 by the charger 200, in order to ensure the accuracy of charging control in this application, the analog quantity of the battery 300 will be collected according to a preset period in the embodiment of the present application, and calculations will be performed in the monitoring module 100 based on the collected information, and the calculation results will be sent to the charger 200. Specifically, the calculation process of the constant voltage calculation result voltage of the current calculation cycle is as follows: first, the constant voltage error is calculated, and the calculation formula of the constant voltage error is: Err2(n)=Uaim(n)-Ufb(n), wherein Err2(n) is the constant voltage error, Uaim(n) is the constant voltage loop closed-loop target voltage of the current calculation cycle, and Ufb(n) is the feedback voltage of the current calculation cycle; after the constant voltage error is calculated, the constant voltage calculation result voltage of the current calculation cycle is calculated according to the charger closed-loop target voltage, constant voltage error and constant voltage loop integral coefficient of the previous calculation cycle, and the calculation formula is: U2(n)=U(n-1)+Err2(n)*Ki, wherein U2(n) is the constant voltage calculation result voltage of the current calculation cycle, U(n-1) is the charger closed-loop target voltage of the previous calculation cycle, and Ki is the constant voltage loop integral coefficient. Since the relationship between the adjustment amount and the feedback amount is basically equal in the constant voltage loop calculation process, the constant voltage loop integral coefficient can be set to 1.
[0077] Step S220, determining the constant current calculation result voltage of the current calculation cycle according to the closed-loop target current, the feedback current of the current calculation cycle, the battery internal resistance of the current calculation cycle, the constant current loop integral coefficient of the current calculation cycle and the charger closed-loop target voltage of the previous calculation cycle.
[0078] Among them, the feedback current is equal to the charging current of the current calculation cycle.
[0079] like Figure 7 As shown, step S220 includes:
[0080] Step S221, calculating the constant current error according to the closed-loop target current of the current calculation cycle and the feedback current of the current calculation cycle.
[0081] Step S222, the constant current calculation result voltage of the current calculation cycle is calculated based on the charger closed-loop target voltage of the previous calculation cycle, the constant current error and the constant current loop integral coefficient of the current calculation cycle.
[0082] In some embodiments, the constant current error is first calculated, and the calculation formula of the constant current error is: Err1(n) = Iaim(n) - Ifb(n), wherein Err1(n) is the constant current error, Iaim(n) is the closed-loop target current of the current calculation cycle, and Ifb(n) is the feedback current of the current calculation cycle; then the constant current calculation result voltage of the current calculation cycle is calculated, and the calculation formula of the constant current calculation result voltage of the current calculation cycle is: U1(n) = U(n-1) + Err1(n) * Ki(n), wherein U1(n) is the constant current calculation result voltage of the current calculation cycle, U(n-1) is the closed-loop target voltage of the charger in the previous calculation cycle, and Ki(n) is the constant current loop integral coefficient of the current calculation cycle; wherein the constant current loop integral coefficient of the current calculation cycle is the average value of the constant current loop integral coefficient of the previous calculation cycle and the battery internal resistance of the current calculation cycle, and the calculation formula is: Ki(n) = (Ki(n-1) + R(n)) / 2, where Ki(n) is the constant current loop integral coefficient of the current calculation cycle, Ki(n-1) is the constant current loop integral coefficient of the previous calculation cycle, and R(n) is the battery internal resistance of the current calculation cycle; where the battery internal resistance of the current calculation cycle is obtained by the voltage regulation amount of the constant current calculation result of the current fluctuation opportunity selected in the previous calculation cycle and the change amount of the feedback current of the current fluctuation opportunity selected in the current calculation cycle. The calculation formula of the battery internal resistance of the current calculation cycle is: R(n) =ΔU1(n-1) / ΔIfb(n), where ΔU1(n-1) is the voltage regulation amount of the constant current calculation result of the current fluctuation opportunity selected in the previous calculation cycle, and ΔIfb(n) is the change amount of the feedback current of the current fluctuation opportunity selected in the current calculation cycle.
[0083] Step S230, determining the closed-loop target voltage of the charger according to the charging voltage of the current calculation cycle and the constant current calculation result voltage of the current calculation cycle.
[0084] After calculating the constant voltage calculation result voltage of the current calculation cycle and the constant current calculation result voltage of the current calculation cycle, the smaller value of the constant voltage calculation result voltage of the current calculation cycle and the constant current calculation result voltage of the current calculation cycle is taken as the target closed-loop voltage output to the second constant voltage loop 210.
[0085] In order to obtain a more accurate battery internal resistance, it is necessary to obtain the battery current that fluctuates within the calculation cycle, and calculate the battery internal resistance of the current calculation cycle within the preset current fluctuation range. If the current fluctuation is too large, it is easily affected by the line inductance. If the current fluctuation range is small, it is not easy to measure. Therefore, under normal circumstances, the current fluctuation range of the battery 300 is between 0.1C and 0.5C. Therefore, within a calculation cycle, it is necessary to select a suitable current fluctuation time, and the current fluctuation time must meet the current fluctuation range (0.1 C~0.5C). At this current fluctuation time, the voltage adjustment amount of the constant current calculation result is quickly collected as the voltage change amount of the battery internal resistance calculation in the next calculation cycle. In addition, when calculating the battery resistance in the current calculation cycle, a suitable current fluctuation time is selected, and the change amount of the feedback current is quickly collected at this current fluctuation time as the current change amount of the battery resistance calculation in the current calculation cycle, and then the battery resistance of the current calculation cycle is calculated by the voltage change amount obtained in the previous calculation cycle and the current change amount obtained in the current calculation cycle.
[0086] In some embodiments, when calculating the battery resistance, after obtaining the voltage change and the current change, it is necessary to determine whether the voltage change is greater than a preset voltage value and whether the current change is greater than a preset current value. If so, the battery resistance of the current calculation cycle can be obtained through the currently obtained voltage change and current change. If the voltage change is less than or equal to the preset voltage value and / or the current change is less than or equal to the preset current value, the battery resistance is not calculated in the current cycle, and the battery resistance of the previous calculation cycle is used as the battery resistance of the current cycle. In this way, the fluctuation error when the adjustment change is extremely small can be filtered out.
[0087] The charging system of the present application is configured with the monitoring module 100 and the charger 200 being configured separately, so that the analog quantity acquisition and the dual-loop competition part of the battery 300 are both implemented in the monitoring module 100, thereby reducing the hardware complexity of the charger 200 and saving the manufacturing cost of the charger 200. In addition, during the charging process of the battery 300, the present application can realize the adaptive adjustment of the closed-loop parameters of the charging system by measuring the internal resistance of the battery online in real time, thereby improving the adaptability and reliability of the system; in addition, in the charging control, the battery side output loop is used as the front stage, and the charger 200 output loop is used as the back stage, thereby realizing the accurate and stable charging process, and having the dynamic anti-shock response capability.
[0088] In addition, in the prior art, when measuring the internal resistance of the battery 300, some precision instruments must be used. A constant current source is used to supply a certain fluctuating current to the component to be measured, and then the fluctuating voltage generated by the component to be measured is collected. If the changing voltage is too small, an operational amplifier circuit and other operations are required. The battery resistance measurement is difficult and requires a large amount of hardware facilities. However, in the present application, no additional hardware facilities are required, and the battery current and voltage generated during the charging control process of the charging system of the present application can be directly used to calculate the battery resistance in real time. In addition, the present application measures the internal resistance of the battery pack online during the battery charging process, so as to obtain battery health information more timely and accurately.
[0089] Figure 8 A schematic flow chart of a charging control method according to an embodiment of the present application is shown. Exemplarily, the charging control method comprises the following steps:
[0090] Step S100, during the charging process, the charging voltage of the battery is obtained in real time, and the charging voltage is used as the constant voltage loop closed loop target voltage of the first constant voltage loop after temperature compensation calculation.
[0091] The charging voltage is obtained by subtracting the voltage drop between the charger 200 and the battery 300 from the output voltage of the charger 200 .
[0092] Step S200, according to the preset calculation rules, combined with the closed-loop target voltage of the constant voltage loop and the closed-loop target current of the constant current loop, the closed-loop target voltage of the charger is calculated, and the closed-loop target voltage of the charger is transmitted to the second constant voltage loop, so that the charger obtains the output voltage of the charger according to the closed-loop target voltage of the charger and the current limiting target current of the current limiting loop of the charger, and the charger charges the battery based on the current output voltage.
[0093] During the charging process, based on the dual-loop competition algorithm of the first constant voltage loop 110 and the constant current loop 120, the value of the charging current is determined in real time until the charging current is zero, and the charging is completed; wherein the charging current is determined by the charging voltage, charging current and battery internal resistance.
[0094] It can be understood that the charging control method of the embodiment of the present application has been described in the charging system of the present embodiment, so it will not be repeated here.
[0095] The present application also provides a terminal device. Exemplarily, the terminal device includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the terminal device to execute the above-mentioned charging control method or the functions of each module in the above-mentioned charging system.
[0096] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application.
[0097] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.
[0098] The present application also provides a computer-readable storage medium for storing the computer program used in the above terminal device. For example, the computer-readable storage medium may include but is not limited to: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0099] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0100] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0101] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0102] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A charging system, characterized in that: Including monitoring module, charger and battery; The monitoring module includes a first constant pressure ring, a constant current ring, a collection unit and a calculation unit; The charger comprises a second constant voltage ring and a current limiting ring; The acquisition unit is connected to the battery and is used to obtain the charging voltage of the battery in real time, and the charging voltage is calculated by the calculation unit according to a preset calculation cycle after temperature compensation as the constant pressure loop closed loop target voltage of the first constant pressure loop; The calculation unit is used to calculate the closed-loop target voltage of the charger according to a preset calculation rule in combination with the closed-loop target voltage of the constant voltage loop and the closed-loop target current of the constant current loop, and transmit the closed-loop target voltage of the charger to the second constant voltage loop; The charger is used to obtain the output voltage of the charger according to the closed-loop target voltage of the charger and the current limiting target current of the current limiting loop of the charger, and to enable the charger to charge the battery based on the current output voltage; The monitoring module is further used to determine the value of the charging current in real time during the charging process based on the dual-loop competition algorithm of the first constant voltage loop and the constant current loop, until the charging current is zero, and then send a charging completion instruction to the charger to stop charging; The method of calculating the closed-loop target voltage of the charger according to a preset calculation rule in combination with the closed-loop target voltage of the constant voltage loop and the closed-loop target current of the constant current loop includes: Determine the constant voltage calculation result voltage of the current calculation cycle according to the constant voltage loop closed-loop target voltage of the current calculation cycle, the feedback voltage of the current calculation cycle, the constant voltage loop integral coefficient and the charger closed-loop target voltage of the previous calculation cycle; wherein the feedback voltage is equal to the charging voltage of the current calculation cycle; Determine the constant current calculation result voltage of the current calculation cycle according to the closed-loop target current, the feedback current of the current calculation cycle, the battery internal resistance of the current calculation cycle, the constant current loop integral coefficient of the current calculation cycle and the charger closed-loop target voltage of the previous calculation cycle; wherein the feedback current is equal to the charging current of the current calculation cycle; The closed-loop target voltage of the charger is determined according to the constant voltage calculation result voltage of the current calculation cycle and the constant current calculation result voltage of the current calculation cycle.
2. A charging control method, characterized in that: Applied to the charging system as claimed in claim 1, the method comprises: During the charging process, the charging voltage of the battery is obtained in real time, and the charging voltage is used as the constant voltage loop closed loop target voltage of the first constant voltage loop after temperature compensation calculation; wherein the charging voltage is obtained by subtracting the voltage drop between the charger and the battery from the output voltage of the charger; Calculate the closed-loop target voltage of the charger according to the preset calculation rule in combination with the closed-loop target voltage of the constant voltage loop and the closed-loop target current of the constant current loop, and transmit the closed-loop target voltage of the charger to the second constant voltage loop, so that the charger obtains the output voltage of the charger according to the closed-loop target voltage of the charger and the current limiting target current of the current limiting loop of the charger, and enables the charger to charge the battery based on the current output voltage; During the charging process, the value of the charging current is determined in real time based on the dual-loop competition algorithm of the first constant voltage loop and the constant current loop until the charging current is zero, and the charging is completed; wherein the charging current is determined according to the charging voltage, the charging current and the internal resistance of the battery.
3. The charging control method according to claim 2, characterized in that: Determining the constant voltage calculation result voltage of the current calculation cycle according to the constant voltage loop closed-loop target voltage of the current calculation cycle, the feedback voltage of the current calculation cycle and the constant voltage loop integral coefficient includes: Calculating a constant voltage error according to the constant voltage loop closed-loop target voltage of the current calculation cycle and the feedback voltage of the current calculation cycle; The constant voltage calculation result voltage of the current calculation cycle is obtained by calculation according to the charger closed-loop target voltage of the previous calculation cycle, the constant voltage error and the constant voltage loop integral coefficient.
4. The charging control method according to claim 2, characterized in that: The step of determining the constant current calculation result voltage of the current calculation cycle according to the closed-loop target current, the feedback current of the current calculation cycle, the battery internal resistance of the current calculation cycle, the constant current loop integral coefficient of the current calculation cycle, and the charger closed-loop target voltage of the previous calculation cycle includes: Calculating a constant current error according to the closed-loop target current and the feedback current of a current calculation cycle; The constant current calculation result voltage of the current calculation cycle is obtained according to the closed-loop target voltage of the charger in the previous calculation cycle, the constant current error and the constant current loop integral coefficient of the current calculation cycle; wherein the constant current loop integral coefficient of the current calculation cycle is the average value of the constant current loop integral coefficient of the previous calculation cycle and the battery internal resistance of the current calculation cycle.
5. The charging control method according to claim 2, characterized in that: The charging current is a value obtained by subtracting the battery voltage from the charging voltage divided by the internal resistance of the battery.
6. The charging control method according to claim 2, characterized in that: The dual-loop competition algorithm based on the first constant voltage loop and the constant current loop determines the value of the charging current in real time until the charging current is zero, including: When charging starts, the charging current is kept equal to the charging constant current value through the constant current loop of the monitoring module; Continuously charging the battery through the charger, so that the battery voltage gradually increases, thereby causing the charging voltage to gradually increase; When the charging voltage reaches the full-charge voltage, switching to a constant voltage loop to keep the charging voltage equal to the full-charge voltage; As the battery is continuously charged, the battery voltage continues to increase. When the battery voltage is equal to the charging voltage, the charging current is zero.
7. The charging control method according to claim 2, characterized in that: The battery internal resistance of the current calculation cycle is obtained by the adjustment amount of the constant current calculation result voltage of the current fluctuation opportunity selected in the previous calculation cycle and the change amount of the feedback current of the current fluctuation opportunity selected in the current calculation cycle; wherein, the current fluctuation opportunity is a current fluctuation moment during the current fluctuation range of 0.1C~0.5C.
8. A terminal device, characterized in that: The terminal device includes a processor and a memory, the memory stores a computer program, and the processor is used to execute the computer program to implement the charging control method according to any one of claims 2 to 7.
9. A computer-readable storage medium, characterized in that: A computer program is stored therein, and when the computer program is executed on a processor, the charging control method according to any one of claims 2 to 7 is implemented.
Citation Information
Patent Citations
Lithium ion battery pack charger based on controller area network (CAN) bus and charging control method
CN103208839A
DC / DC converter with harmonic injection function and control method
CN116345893A