Many electrical and electronic systems are powered by batteries. A battery gauge circuit may be provided in battery powered systems to estimate the charge remaining in the battery. Estimated battery charge information provided by the battery gauge circuit can be applied to control system power consumption or provided to a user.
In one example, a circuit includes a processing circuit. The processing circuit is configured to model a battery using a battery model. The battery model includes: a voltage terminal, an RC stage having a first resistor and a first capacitor in parallel, a second resistor, a second capacitor and a ground terminal. The second resistor is coupled between the voltage terminal and the RC stage. The RC stage is coupled between the second resistor and the second capacitor. The second capacitor is coupled between the RC stage and the ground terminal. The processing circuit is also configured to determine a first resistance of the first resistor based on a first ratio of the first resistance to a total battery resistance, determine a second resistance of the second resistor based on a second ratio of the second resistance to the total battery resistance, and determine the total battery resistance.
In another example, a method includes determining a first resistance of a first resistor of a battery model based on a first ratio of the first resistance to a total battery resistance. The first resistor is coupled between a voltage terminal of the battery model and an RC stage of the battery model. The method also includes determining a second resistance of a second resistor of the battery model based on a second ratio of the second resistance to the total battery resistance. The second resistor is coupled in parallel with a first capacitor in the RC stage and the RC stage is coupled between the first resistor and a second capacitor of the battery model. The method also includes determining a reference capacitance as a ratio of a maximum charge of the battery to an open circuit voltage of the battery, and determining a first capacitance of the first capacitor based on a third ratio of the first capacitance to the reference capacitance. The method further includes determining the total battery resistance as a root of a quadratic equation, and generating a signal representing power available in the battery based on the battery model.
In a further example, a system includes a battery and a battery gauge circuit coupled to the battery. The battery gauge circuit includes a processing circuit. The processing circuit is configured to model the battery using a battery model. The battery model includes a voltage terminal, an RC stage having a first resistor and a first capacitor in parallel, a second resistor, a second capacitor and a ground terminal. The second resistor is coupled between the voltage terminal and the RC stage. The RC stage is coupled between the second resistor and the second capacitor. The second capacitor is coupled between the RC stage and the ground terminal. The processing circuit is also configured to determine a first resistance of the first resistor based on a first ratio of the first resistance to a total battery resistance, and determine a second resistance of the second resistor based on a second ratio of the second resistance to the total battery resistance. The processing circuit is further configured to determine a reference capacitance as a ratio of a maximum charge of the battery to an open circuit voltage of the battery, determine a first capacitance of the first capacitor based on a third ratio of the first capacitance to the reference capacitance, and determine the total battery resistance as a root of a quadratic equation.
In some cases, circuit models approximate electrical device behavior. One such electrical device is a battery cell or group of battery cells, referred to herein as a battery for simplicity. In some cases, rechargeable batteries power various portable devices, such as laptop computers, mobile phones, power tools, and electric vehicles (EVs). The ability to predict battery behavior while the battery provides a current is useful to control and regulate power provided to such devices. A useful battery model accurately predicts voltage, current, and state-of-charge (SoC) while environmental conditions (e.g., temperature, pressure, humidity) vary, and the battery undergoes charging and discharging cycles.
Battery behavior, while providing a current to a load, depends on battery condition and environmental conditions. The battery condition can be characterized by its SoC, which refers to the level of available charge in the battery, and by its state-of-health (SoH), which refers to an amount (e.g., a percentage) of useful charge/discharge cycles remaining compared to the expected charge/discharge cycles that the battery is capable of.
Environmental conditions including temperature (T), pressure and humidity also impact battery behavior.
The resistor 104 is coupled between a voltage terminal 102 and the RC stage 106. The RC stage 106 is coupled between the resistor 104 and the RC stage 108. The RC stage 108 is coupled between the RC stage 106 and the RC stage 110. The RC stage 110 is coupled between the RC stage 108 and the capacitor 112. The capacitor 112 is coupled between the RC stage 110 and a ground terminal 114.
The series capacitor 112 represents a charge stored in the battery represented by the model 100. The series resistor 104 represents a high-frequency resistance of the battery represented by the model 100. Each RC stage represents a time constant for the variation of instantaneous voltage of the battery represented by the model 100.
For example, the model 200 lacks the RC stage 110 provided in the model 100. In the model 200, the resistance RS may include the resistance R3 of the resistor 124 in the model 100.
The battery gauge circuit 310 includes a multiplexer 312, analog-to-digital converters (ADCS) 314, 316, and 318, and a microcontroller 320. The multiplexer 312 selects the signals provided to the ADC 314 and the ADC 316 for digitization. The multiplexer 312 may select the voltage across one of the batteries of the battery pack 302 and/or the voltage across one of the temperature sensors to provide to the ADC 314 and the ADC 316 for digitization. The ADC 314 and the ADC 316 may be implemented as differential ADCS in some examples of the battery gauge circuit 310. Inputs of the multiplexer 312 are coupled to battery voltage and temperature sensor outputs of the battery pack 302. Outputs of the multiplexer 312 are coupled to inputs of the ADC 314 and the ADC 316. The ADC 314 and the ADC 316 digitize the signals received from the multiplexer 312 and provide the digital signals to the microcontroller 320. Some implementations of the battery gauge circuit 310 may include more or fewer ADCS for digitizing battery pack output signals than are shown in
The voltage (current sense signal) across the sense resistor 304 is proportional to the current flowing through the battery pack 302. The sense resistor 304 is coupled between the battery pack 302 and a ground terminal. An input of the ADC 318 is coupled to the sense resistor 304. An output of the ADC 318 is coupled to the microcontroller 320. The ADC 318 digitizes the current sense signal and provides the digitized signal to the microcontroller 320.
The microcontroller 320 executes instructions stored in a memory of the microcontroller 320 (e.g., a non-transient computer-readable medium) to model the batteries 303, 305, and 307 according to the model 100 or the model 200, and to determine various parameters of the batteries, such as SoC, SoH, and/or time until discharged. The microcontroller 320 determines the values of the parameters of the battery model based on the measurement signals provided by the ADCS and stored battery parameters. The stored battery parameters include values that remain relatively constant over the life of the battery. The values include ratios of model resistor resistance to total battery resistance, and ratios of model capacitor capacitance to a reference capacitance. The microcontroller 320 may determine the total battery resistance by solving an equation dependent on the measurement signals (provided by the ADCS 314, 316, 318) and stored battery parameters.
The microcontroller 320 may determine the reference capacitance based on the total charge storage capacity of a given battery. Some implementations of the battery gauge circuit 310 may include dedicated circuitry (an application specific circuit) that determine the parameters of the battery model, rather than, or in addition to, the microcontroller 320.
The battery gauge circuit 310 and the battery pack 302 may also be coupled to a load circuit (not shown) that is powered by the battery pack 302. For example, a load circuit coupled to the battery pack 302 may include a motor control circuit and electric motor.
Current consumed by the load circuit may be controlled based on the parameters of the batteries of the battery pack 302 determined by the battery gauge circuit 310 and communicated to the load circuit. Some battery gauge circuits may be unable to accurately model the battery parameters when used with a load circuit that draws a widely varying current from the battery pack 302 (e.g., a motor that intermittently draws a high load current). The battery gauge circuit 310 more accurately models batteries with pulsed load currents to provide more accurate SoC, SoH, discharge time estimates, and other battery parameters which allows for more precise control of the load circuit based on battery state information.
Table 1 shows examples of the various parameters applied in the microcontroller 320 to model the batteries.
βC
where:
Ck is capacitance C1, C2, or C3.
Cref is a reference capacitance (derivation of Cref is described herein).
RLF is the total resistance of the model 100:
R
LF
=R
s+Σk=13Rk (2)
wherein Rk is R1, R2, or R3.
The RC stage resistance ratio is:
The series resistance ratio is:
The stored parameters of Table 1 may be computed from RC circuit base battery models. The behavior of the battery at a known DoD is modeled by a battery model RC circuit, such as the model 100. The stored ratio parameters defined in equations (1) and (3) are computed from the battery model parameters. They are estimated from the measured terminal voltage in response to a known current drawn from the battery. Load currents used for battery characterization are often composed of a sequence of constant current pulses, or a sum of sinusoidally varying load currents with known frequencies. For the current pulse load current, the battery terminal voltage is measured during an interval between pulses. A non-linear least-squares parameter estimation algorithm may be used to determine the parameters of the RC circuit that best describes the battery behavior. For sinusoidally varying load currents, the battery impedance is computed at each excitation frequency. A non-linear least-squares parameter estimation algorithm may be used to determine the parameters of the RC circuit that best matches the measured impedance spectrum.
The temperature coefficients of the resistance parameters of the battery model, expressed by Rb,l and Rb,h, are determined from battery models measured at three different ambient temperatures. A representative set of values are Tlow=0° C., Tmid=25° C., and Thigh=50° C. The low and high temperature are given by the operating limits of the battery, and the central temperature is room temperature. The temperature variation of the resistance is modeled as exponential, as seen in Equations 20-23. The parameters Rbk,l and Rbk,h are computed to provide a best fit of the measured data at Tlow, Tmid, and Thigh, according to these models.
The thermal time constant and heating gain are determined from the battery temperature sensor 309-313 measurements made during a constant current pulse. They may be computed using a non-linear least-squares parameter estimation algorithm.
The RC stage resistance ratios and the series resistance ratio remain relatively constant (change very slowly) over the useful life of the battery. Additionally, the RC stage capacitance ratios remain relatively constant over useful the life of the battery.
The DoD circuit 410 provides a DoD value representing an amount of energy drained from the battery (e.g., as a percentage of the total battery energy storage capacity). The DoD circuit 410 may also provide a value of SoC as SoC=1−DoD. The DoD circuit 410 may determine DoD based on the maximum charge of the battery (charge stored when the battery is fully charged), which may be expressed as:
where:
Qpassed is current drawn from the battery over a time interval (e.g., t1 to t2); and ΔDoD is the difference in DoD with the open circuit voltage (OCV) at t1 and t2.
The DoD circuit 410 may update DoD as:
where ΔTsamp is the sampling interval.
Lookup tables 416 store the stored parameters listed in Table 1 and provide the stored parameters based on DoD received from the DoD circuit 410 and Temp(t).
A down sampling circuit 406 receives and down samples Vterm(t) to a sample rate defined by ΔTg. The down sampled Vterm(t) is denoted Vterm[n]. The averaging circuit 408 averages the down sampled voltage Vterm[n] over an interval defined by Ng.
The battery model circuit 412 determines the parameters of the model 100 or the model 200 (e.g., resistance and capacitance values, capacitor voltages) based on I[n], Temp(t), the stored parameters provided by the lookup tables 416, and the total resistance RLF of the battery model. The battery model circuit 412 may determine the series resistance Rs and the RC stage resistance Rk of the battery model according to equations (3) and (4). Given Rk, the battery model circuit 412 may update the voltages Vk across the RC stages as:
V
k
[n+1]=Vk[n]e−ΔT
where:
R
k
=R
LFγR
C
k
=C
k(DoD,T); and
eR
The battery model circuit 412 may also approximate Vk updates as:
where:
ΔTsamp is the ADC sampling interval; and
Ck are the RC stage capacitance values.
The battery model circuit 412 provides Vk estimates ({circumflex over (V)}k) to an averaging circuit 418. The averaging circuit 418 averages the {circumflex over (V)}k over an interval defined by Ng.
The averaging circuit 418 provides the average values to the resistance (RLF) estimation circuit 420. The RLF estimation circuit 420 applies the average Vterm[n] value received from the averaging circuit 408, Temp(t), the average I[n] value received from the averaging circuit 414, the average {circumflex over (V)}k values received from the averaging circuit 418, and various stored parameter value received from the lookup tables 416 to determine a value of total resistance (RLF) of the battery model. The RLF estimation circuit 420 may solve a quadratic equation to determine a value of RLF. The quadratic equation applied to determine RLF may be derived as follows.
Starting with the terminal voltage equation:
V
term
[n]=OCV[n]+Σk=13Vk[n]+Rsi[n] (12)
where Rs=RLFγR
Substituting in the RC stage capacitor voltage approximations of equation (10):
The RC stage resistances can be expressed in terms of RLF:
Both sides of equation (14) are multiplied by RLF to produce the quadratic equation used by the RLF estimation circuit 420 to determine RLF:
In some implementations of the RLF estimation circuit 420, the quadratic equation used to determine RLF (e.g., equation 15) may be modified to provide voltage sampling in the middle of a current sampling interval.
With the averaged voltage and current measurements provided in the processing circuitry 400, equation (15) may be expressed as:
where:
iavg is the output of the averaging circuit 414;
OCVavg is provided by the lookup tables 416;
Vterm.avg is provided by the averaging circuit 408; and
Vk.avg is provided by the averaging circuit 418.
The quadratic equation solved by the RLF estimation circuit 420 to determine RLF has two candidate roots {{circumflex over (R)}LF,1, {circumflex over (R)}LF,2}. The RLF estimation circuit 420 selects one of the two roots as RLF. In some examples, only one of the two roots is positive, in which case the RLF estimation circuit 420 selects the positive root to be RLF. In a case of two positive roots, the RLF estimation circuit 420 may select the root closest to a previous value of RLF (a previous RLF value produced by filtering) to be the new RLF value. In a case of two negative roots or two zero roots, the RLF estimation circuit 420 may discard both roots, and the value of RLF is not updated (a previously determined value of RLF is applied).
The RLF estimation circuit 420 provides the root value selected to be RLF to the outlier rejection circuit 422. The outlier rejection circuit 422 applies thresholds based on prior values of RLF determined over a selected time interval to identify and reject RLF values outside of a range of acceptable values. The RLF estimation circuit 420 may determine the maximum and minimum RLF thresholds defining the range of acceptable values as:
where: α>1.
The outlier rejection circuit 422 may replace values of RLF outside of the acceptable range with the threshold values. A value of RLF greater than the maximum RLF threshold may be replaced by the value of the maximum RLF threshold. A value of RLF less than the minimum RLF threshold may be replaced by the value of the minimum RLF threshold. In some examples, the RLF may not be updated if the candidate value is outside of the acceptable range.
The outlier rejection circuit 422 provides RLF values to the smoothing filter 424. The smoothing filter 424 may be implemented as an infinite impulse response (IIR) low-pass filter (e.g., 10 second time constant). The smoothing filter 424 provides filtered values of RLF to the battery model circuit 412 for use in determining the series and RC stage resistance values of the battery model. The smoothing filter 424 also provides the filtered values of RLF to a grid point interpolation circuit 426.
The grid point interpolation circuit 426 estimates parameters of a linear model for the battery resistance as a function of DoD. It is intended to reduce errors in the resistance estimate due to rapid changes in the load current. The grid points are a set of DoD values chosen to capture the behavior of the total battery resistance RLF. Generally, the total resistance changes more quickly as the battery nears fully discharged. To capture this effect, the DoD spacing between grid points is smaller for DoD above 80%. As the battery is discharged, the resistance estimates RLF(DoD) are computed and the DoD is tracked using a variety of methods. The behavior of the total resistance in the vicinity of a grid point denoted by DoD, is modeled as a linear function, e.g., RLF(DoD)≈RLF(DoDp)+m(DoD−DoDp), where m denotes the slope and RLF(DoDp) denotes the intercept of the line. The grid point interpolation circuit estimates the slope and intercept of a line modeling the total resistance as a function of DoD The estimates are generated from pairs of {circumflex over (R)}LF and the corresponding DoD, when DoD is in an interval near the grid point DoDp. When the value of DoD is outside the interval used for interpolation, the total resistance is estimated by interpolation between the intercept parameters for a pair of grid points, RLF(DoDp) and RLF(DoDp+1).
The resistance estimate generated by this interpolation can be combined with the resistance and capacitance ratio parameters to generate a battery model based on an RC equivalent circuit. The battery model can be used to predict the behavior of the battery in response to load currents. In gauging applications, the battery model based on the resistance estimates is used to predict when the maximum current that can be drawn while maintaining the battery terminal voltage above its minimum value, or the amount of time remaining until the battery terminal voltage reaches its minimum value when a known, periodic load current is drawn from the battery.
The battery model circuit 412 applies RLF provided by the smoothing filter 424 to determine the values of the resistors of the battery model. The battery model circuit 412 may determine the resistances as:
where:
γRx represents the ratio of the selected resistance (Rx) to the total resistance (RLF) of the battery at a selected temperature (e.g., 25° Celsius (C));
Rbx,low controls temperature-based adjustment of resistance responsive to measured temperature below a threshold (e.g., <25° C.); and
Rbx,high controls temperature-based adjustment of resistance responsive to measured temperature above a threshold (e.g., 25° C.);
In some implementations of the processing circuitry 400, the resistance ratios may be factored into gain and offset to reduce the storage needed.
γR
The lookup tables 416 may determine the capacitance values of the battery model based on a reference capacitance (Cref). The reference capacitance may be based on maximum battery charge (Qmax). the lookup tables 416 may determine Cref as:
The lookup tables 416 may determine the capacitances of the battery model as:
C
k(DoD,T)=βC
To reduce parameter storage, the ratio βck may be stored as gain and offset, and the product thereof applied to determine Ck.
βC
C
k(DOD,T)=βC
The lookup tables 416 may apply a linear interpolation between capacitance values to model temperature dependence.
In implementations of the processing circuitry 400 that apply the model 200, the resistors combined to form the resistor 104 (e.g., the resistors 104 and 124 of the model 100) have different temperature coefficients. To account for the different temperature coefficients, the lookup tables 416 may store separate temperature coefficients for the two resistors. The RLF estimation circuit 420 may determine the value of RLF for the model 200 using the two separate temperature coefficients based on equation (15) adjusted as:
where:
eR
eR
eR
In block 504, the battery gauge circuit 310 (e.g., the battery model circuit 412) determines the response (e.g., capacitor voltages) of the battery model based on the measurements received from block 502, and current model parameter estimates (e.g., current resistance and capacitance values).
In block 506, the battery gauge circuit 310 (e.g., the RLF estimation circuit 420) determines the coefficient values of the quadratic equation solved to determine the total resistance value of the battery model. The coefficient values may be determined based on the voltages provided by the battery model circuit 412, the measurements received from the block 502, and parameter values provided by the lookup tables 416.
In block 508, the battery gauge circuit 310 (e.g., the RLF estimation circuit 420) solves the quadratic equation (e.g., equation (15)) to determine the total resistance value (RLF) of the battery model.
In block 510, the battery gauge circuit 310 (e.g., the battery model circuit 412) applies RLF provided by the RLF estimation circuit 420 to determine updated values of the battery model parameters (e.g., resistance and capacitance values). For example, the battery model circuit 412 may solve equations (20)-(23) and (30) to determine the resistance and capacitance values.
In step 602, the battery gauge circuit 310 determines a value of reference capacitance. The battery gauge circuit 310 may determine the value of reference capacitance as a ratio of maximum charge to open circuit voltage of the battery. For example, the battery gauge circuit 310 may determine the value of reference capacitance according to equation (25) or equation (26).
In step 604, the battery gauge circuit 310 determines a value of total battery resistance as a root of quadratic equation. For example, the battery gauge circuit 310 may solve the equation (15), (16), (17), or (31) to determine the roots of the quadratic equation, and select one of the roots to be the total resistance of the battery model.
In step 606, the battery gauge circuit 310 determines resistance of the battery model series resistor (resistor 104) based on a ratio of the resistor 104 to the total resistance of the battery model. For example, the battery gauge circuit 310 may determine the resistance value of the resistor 104 according to equation (20).
In step 608, the battery gauge circuit 310 determines the resistances of the battery model RC stage resistors (resistors 116, 120, 124) based on ratios of the resistances to the total resistance of the battery model. For example, the battery gauge circuit 310 may determine the resistance values of the resistors 116, 120, 124 according to equations (21), (22), and (23).
In step 610, the battery gauge circuit 310 determines the capacitances of the battery model RC stage capacitors (capacitors 118, 122, 126) based on ratios of the capacitances to the reference capacitance determined in step 602. For example, the battery gauge circuit 310 may determine the resistance values of the capacitors 118, 122, 126 according to equation (27).
In step 612, the battery gauge circuit 310 generates a signal representing available energy of the battery (e.g., battery SoC) based on the battery model. A control circuit coupled to the battery gauge circuit 310 may receive and apply the signal to control the energy use of a load circuit. For example, the control circuit may cause the load circuit coupled to the battery to reduce energy consumption (e.g., operate in a reduced power state) based on the signal indicating that the available energy of the battery is below a threshold value.
Graph 806 shows percent error of the RLF of the battery determined by the battery gauge circuit 310 and of the RLF of the battery determined using the series resistor-capacitor battery model relative to the true RLF. The error of the RLF determined by the battery gauge circuit 310 is relatively low (e.g., less than 5%), while the error of the RLF determined using the series resistor-capacitor battery model ranges from about 20% to greater than 40%. Graph 808 is a magnified view of the percent error of the RLF of the battery determined by the battery gauge circuit 310 showing less than 5% error at all levels of battery charge.
In this description, the term “couple” may cover connections, communications, or signal paths that enable a functional relationship consistent with this description. For example, if device A generates a signal to control device B to perform an action: (a) in a first example, device A is coupled to device B by direct connection; or (b) in a second example, device A is coupled to device B through intervening component C if intervening component C does not alter the functional relationship between device A and device B, such that device B is controlled by device A via the control signal generated by device A.
Also, in this description, the recitation “based on” means “based at least in part on.” Therefore, if X is based on Y, then X may be a function of Y and any number of other factors.
A device that is “configured to” perform a task or function may be configured (e.g., programmed and/or hardwired) at a time of manufacturing by a manufacturer to perform the function and/or may be configurable (or reconfigurable) by a user after manufacturing to perform the function and/or other additional or alternative functions. The configuring may be through firmware and/or software programming of the device, through a construction and/or layout of hardware components and interconnections of the device, or a combination thereof.
As used herein, the terms “terminal,” “node,” “interconnection,” “pin,” and “lead” are used interchangeably. Unless specifically stated to the contrary, these terms are generally used to mean an interconnection between or a terminus of a device element, a circuit element, an integrated circuit, a device or other electronics or semiconductor component.
A circuit or device that is described herein as including certain components may instead be adapted to be coupled to those components to form the described circuitry or device. For example, a structure described as including one or more semiconductor elements (such as transistors), one or more passive elements (such as resistors, capacitors, and/or inductors), and/or one or more sources (such as voltage and/or current sources) may instead include only the semiconductor elements within a single physical device (e.g., a semiconductor die and/or integrated circuit (IC) package) and may be adapted to be coupled to at least some of the passive elements and/or the sources to form the described structure either at a time of manufacture or after a time of manufacture, for example, by an end-user and/or a third-party.
Circuits described herein are reconfigurable to include additional or different components to provide functionality at least partially similar to functionality available prior to the component replacement. Components shown as resistors, unless otherwise stated, are generally representative of any one or more elements coupled in series and/or parallel to provide an amount of impedance represented by the resistor shown. For example, a resistor or capacitor shown and described herein as a single component may instead be multiple resistors or capacitors, respectively, coupled in parallel between the same nodes.
For example, a resistor or capacitor shown and described herein as a single component may instead be multiple resistors or capacitors, respectively, coupled in series between the same two nodes as the single resistor or capacitor.
While certain elements of the described examples are included in an integrated circuit and other elements are external to the integrated circuit, in other example embodiments, additional or fewer features may be incorporated into the integrated circuit. In addition, some or all of the features illustrated as being external to the integrated circuit may be included in the integrated circuit and/or some features illustrated as being internal to the integrated circuit may be incorporated outside of the integrated. As used herein, the term “integrated circuit” means one or more circuits that are: (i) incorporated in/over a semiconductor substrate; (ii) incorporated in a single semiconductor package; (iii) incorporated into the same module; and/or (iv) incorporated in/on the same printed circuit board.
Uses of the phrase “ground” in the foregoing description include a chassis ground, an Earth ground, a floating ground, a virtual ground, a digital ground, a common ground, and/or any other form of ground connection applicable to, or suitable for, the teachings of this description. In this description, unless otherwise stated, “about,” “approximately” or “substantially” preceding a parameter means being within +/−10 percent of that parameter or, if the parameter is zero, a reasonable range of values around zero.
Modifications are possible in the described embodiments, and other embodiments are possible, within the scope of the claims.
This application claims priority to U.S. Provisional Application No. 63/408,424, filed Sep. 20, 2022, entitled “Dynamic Impedance Track Apparatus and Method for Battery Gauging with Variable Load Current,” which is hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
63408424 | Sep 2022 | US |