METHOD AND APPARATUS FOR MEASURING COMPLEX IMPEDANCE OF CELLS AND BATTERIES

Abstract: A periodic time-varying current with smallest period 1/f1 excites a cell/battery (10) and provides a timing reference. Linear circuitry (35, 55) produces two signals, one proportional to the excitation current, the other proportional to the responding time-varying voltage. These signals are processed with identical frequency-limiting filters (40, 60) to attenuate higher-order harmonics and noise. Using the timing reference for synchronization, a microprocessor/microcontroller (20) commands analog to digital converters (45, 65) to sample the frequency-limited current and voltage signals at equally-space times over a period and accepts the digitized samples as inputs. The digital samples are averaged over multiple periods and employed to calculate averaged Fourier coefficients of in-phase and quadrature components of frequency-limited current and voltage at frequency f1. By numerically combining these Fourier coefficients, the microprocessor/microcontroller (20) determines real and imaginary parts of the cell/battery's (10) complex impedance at frequency f1.

Description: METHOD AND APPARATUS FOR MEASURING COMPLEX IMPEDANCE OF CELLS AND BATTERIES BACKGROUND OF THE INVENTION Impedance is a complex quantity. As such, it has two components: either magnitude and phase, or real and imaginary parts (i.e., resistance and reactance) . These alternative forms of a complex quantity are equivalent. Both components of impedance of an electrochemical cell or battery are meaningful. One can gain insight into many properties such as cranking power, state-of-charge, percent capacity, temperature, and physical condition by analyzing measurements of complex impedance obtained at selected "spot" frequencies. Heretofore however, complex impedance could only be determined with bridges or expensive laboratory instruments that were poorly suited to measuring batteries in the field (e.g., E. illihnganz and Peter Rohner, "Battery Impedance", Electrical Engineering, 78, No. 9, pp. 922 - 925, September, 1959; see also David Robinson, "Electrochemical Impedance Spectroscopy in Battery Development and Testing", BATTERIES INTERNATIONAL, 31, pp. 59-63, April 1997) . R. S. Robinson, in PCT International Publication W093/22666, teaches a method for measuring complex impedance of batteries in service. However, the apparatus he discloses is an FFT-based commercial signal analyzer (HP 3562A) and the disclosed method uses existing battery currents as excitation -- currents that may not contain the frequency or frequencies desired. Devices for measuring battery impedance described in the patent literature have been generally limited to apparatus that actually determines only one quantity. For example, patent references can be found for field apparatus that purports to measure battery "impedance" (e.g., U.S. patent 4,697,134 to Burkum et al, U.S. patent 5,773,978 to Becker) and battery "resistance" (e.g., U.S. patent 3,753,094 to Furuishi, U.S. patent 3,676,770 to Sharaf et al , U.S. patent 5,047,722 to urst et al) . However, none of these patents disclose apparatus that measures two quantities. The present patent addresses this deficiency by disclosing a practical method, and its apparatus implementation, for accurately measuring real and imaginary parts of cell/battery impedance under actual field conditions -- conditions that often include a high degree of electrical noise. SUMMARY OF THE INVENTION A periodic time-varying current excites a cell/battery and provides a timing reference. This current excitation need not be sinusoidal but need only be periodic with its smallest period equal to 1/fι, where fi is the desired measurement frequency. Linear circuitry senses two signals, one proportional to the time-varying excitation current, the other proportional to the responding time-varying component of battery voltage. The two signals are processed with identical frequency-limiting filters to attenuate higher-order harmonics and noise. Using the timing reference for synchronization, a microprocessor or microcontroller commands analog to digital converters to sample the frequency-limited current and voltage signals at evenly spaced times over a period of the excitation and accepts the digitized samples as inputs. It then averages these samples over multiple periods and calculates averaged Fourier coefficients of in-phase and quadrature components of frequency-limited current and voltage at frequency fj.. Finally, the microprocessor/microcontroller combines the four averaged Fourier coefficients numerically to evaluate real and imaginary parts of the cell/battery's complex impedance at frequency f 1 . The disclosed method and apparatus are quite inexpensively implemented and give very accurate results under typical field conditions -- even under conditions of extreme electrical noise. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic representation of the basic elements employed to determine . complex impedance of a cell or battery in accordance with the present invention. FIG. 2a is a waveform plot of a simple excitation current i(t) of FIG. 1 showing a dc component I 0 and a sinusoidally-varying ac component ΔI k sin(2πf k t) . FIG. 2b is a waveform plot of the ac response v(t) showing a sinusoidally-varying ac component ΔV k sin(2πf k t + θ k ) . FIG. 2c is a plot of an alternative representation of v(t) showing a sinusoidally-varying ac component ΔV' k sin(2πf k t) that is in time-phase with the ac component of i(t) and a sinusoidally-varying ac component ΔV" k cos(2πf k t) that is 90 degrees out of time- phase with the ac component of i(t) . FIG. 3 is a schematic representation of a small-signal equivalent circuit model of a particular 12 -volt automotive battery rated 800 cold-cranking amps . FIG. 4a is a waveform plot of the current of the battery depicted in FIG. 3 when it is subjected to a two ampere load current that is periodically switched "on" and "off" at a 10 Hz rate. FIG. 4b is a waveform plot of the battery's time-varying voltage response to the current excitation depicted in FIG. 4a. FIG. 5a is a waveform plot of the time- varying signal at the output of a low-pass filter whose input signal is the waveform depicted in FIG. 4a. FIG. 5b is a waveform plot of the time- varying signal at the output of a low-pass filter whose input signal is the waveform depicted in FIG. 4b. FIG. 6a is a waveform plot of the time- varying signal at the output of a band-pass filter whose input signal is the waveform depicted in FIG. 4a. FIG. 6b is a waveform plot of the time- varying signal at the output of a band-pass filter whose input signal is the waveform depicted in FIG. 4b. FIG. 7 depicts a block diagram of a first embodiment of measuring apparatus in accordance with the present invention. FIG. 8 depicts a block diagram of a second embodiment of measuring apparatus in accordance with the present invention. FIG. 9 depicts a block diagram of a particular variation of the invention embodiments disclosed in FIGS. 7 and 8. FIG. 10 depicts a block diagram of another variation of the invention embodiments disclosed in FIGS. 7 and 8. FIG. 11 depicts a block diagram of still another variation of the invention embodiments disclosed in FIGS. 7 and 8. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Figure 1 discloses the basic elements employed to determine real and imaginary parts of complex impedance of an electrochemical cell or battery in accordance with the present invention. Current excitation and processing circuitry 5 excites a periodic time-varying current i(t) that is coupled to cell/battery 10 by current-coupling contacts A and B. A responding periodic time-varying voltage V 0 +v(t) across cell/battery 10 couples to voltage sensing and processing circuitry 15 through voltage-coupling contacts C and D. Current excitation and processing circuitry 5 and voltage sensing and processing circuitry 15 each communicate bilaterally with computation and control circuitry 20 via communication paths 25 and 30, respectively. Current excitation and processing circuitry 5 may comprise an oscillator or other active circuit that generates a periodic ac current signal. Alternatively, circuitry 5 may comprise circuitry for simply modulating the cell/battery's own dc discharge or charge current in a periodic manner. In its simplest form i(t) comprises a single sinusoidal ac component at the discrete frequency f k having amplitude ΔI k , along with a possible dc component I 0 . i(t) = I 0 + ΔI k sin(2πf k t) (1) This waveform is illustrated in FIG. 2a. In a more general case, i(t) comprises a composite multi- frequency signal, and the ac term in (1) represents a single sinusoidal component of i(t) at frequency fj.. The dc term I 0 need not be present. However, if present, positive I 0 corresponds to a modulated charging current and negative I 0 corresponds to a modulated discharging current according to the convention defined in FIG. 1. For small signals, the response to sinusoidal excitation is also sinusoidal at the same frequency. Thus, the cell/battery voltage under current excitation of the form of equation (1) can be written V 0 +v(t) where V 0 is the dc terminal voltage and v(t) is given by v(t) = ΔV k sin(2πf k t + θ k ) . (2) FIG. 2b illustrates this waveform. The ac response voltage v(t) has amplitude ΔV k and differs in time- phase from the ac component of i(t) by the phase angle θ k . In the more general case of multi-frequency excitation, equation (2) represents a single sinusoidal component of v(t) at frequency f k . An alternative representation of v(t) , illustrated in FIG. 2c, is v(t) = ΔV' k sin(2πf k t) + ΔV" k cos(2πf k t) (3) in which the ac response voltage has been divided into two sinusoidal components. One component, ΔV' k sin(2πf k t) , is in time-phase with the ac component of i(t) . The other, ΔV" k cos(2πf k t) , is in time- quadrature, or 90 degrees out of time-phase, with the ac component of i(t) . By using a well-known trigonometric identity, one can show that the two equivalent representations are related by ΔV' k = ΔV k cos(θ k ) (4) and ΔV" k = ΔV k sin(θ k ). (5) The complex impedance at frequency f is defined as ΔV Z(f k ) = R(f k )+jX(f k ): ■ + J- (6) ΔI„ ΔI, where j = v-ϊ . The real part of the complex impedance, R(f k ) = ΔV' k /ΔI k , is the battery's resistance at frequency f k . The imaginary part, X(f k ) = ΔV" k /ΔI k , is the battery's reactance at frequency f k . The discussion leading to equation (6) assumes that the ac current signal varies as sin(2πf k t) and therefore has zero phase. However, the definition of complex impedance can be easily extended to the more general case in which both current and voltage are shifted by an arbitrary phase angle Φ from a reference zero-phase signal, sin(2πf k t) . By analogy with equations (4) and (5) , one can write r k = ΔI k cos(Φ) (7) I" k = ΔI k sin(Φ) (8) V' k = ΔV k cos(Φ+θ k ) (9) V" k = ΔV k sin(Φ+θ k ) (10) in which F k and I" k are amplitudes of current components that are in time-phase and in time- quadrature, respectively, with the reference zero- phase signal; and V' k and V" k are amplitudes of voltage components that are in time-phase and in time-quadrature, respectively, with the reference zero-phase signal. The complex impedance is then written as the complex ratio Z(f k ) = R(f k )+ jX(f k ) V' k +J " k (11) Separating equation (11) into its real and imaginary parts leads to V' I' +V" I" R(f k ) = V k l k + V k l k τι2 , τιι2 (12 ) 1 ^ 1 k and V" I' -V I" X(f k ) = — ~ — r— - . (13 ) r 2 k +r k Equations (11) , (12) , and (13) are more general than equation (6) since they permit both i(t) and v(t) to be shifted in time-phase by an arbitrary angle Φ . However, .the definition of complex impedance, equation (6) , shows that Z(f k ) is independent of Φ. Thus, although phase shift Φ affects values of I' k , I" k , V' k and V" k , it has no effect on the determination of R(f k ) and X(f k ) as long as the phase shift is common to both i(t) and v(t) . As will be seen below, this fact is of fundamental importance to my invention. In the more general case of periodic excitation of the form i(t) = i(t +T), where T is the smallest period, the current is given by a Fourier series i(t) = I 0 + ∑{I sin(2πkf,t) + I" k cos^πkf^t)} (14) k=l in which fi = 1/T is the fundamental frequency of the excitation, and kfi = f k is the k th harmonic frequency. If, as will be assumed herein, the excitation waveform also has the half -period symmetry property {i(t)-I 0 } = -{i(t + T/2)-I β } (15) only odd harmonics (i.e., 1, 3, 5, ...) exist in equation (14) . According to the well-known theory of Fourier analysis, the quantities I' k and I" k are Fourier coefficients of the excitation current and are given by the integrals and I" k = ji(t)cos(2πkf 1 t)dt (17) T One sees from equation (14) however, that I' k and I" k also represent amplitudes of current components that are in time-phase and in time-quadrature, respectively, with a reference zero-phase signal at frequency f k = kf, . The timing of this reference signal, and hence the relative sizes of I' k and I" k , is determined arbitrarily by the point in the periodic waveform i(t) that is chosen to be t = 0 when evaluating equations (16) and (17) . For small signals, the voltage response to current excitation of the form of equation (14) is another Fourier series containing only odd harmonic terms . This ac voltage response is given by v(t) = ^{V , k sin(2πkf 1 t) + V" k cos(2πkf 1 t)} . (18 ) k=l The quantities V' k and V" k are Fourier coefficients of the response voltage and are given by the integrals V' k = -Jv(t)sin(2πkf 1 t)dt (19) and In addition, one sees from equation (18) that V' k and V" k , also represent amplitudes of voltage components that are in time-phase and in time-quadrature, respectively, with a reference zero-phase signal at frequency f k = kf, . Again, the timing of this reference signal, and hence the relative sizes of V' k and V" k , is determined arbitrarily by the point in the periodic waveform v(t) that is chosen to be t = 0 when evaluating equations (19) and (20) . The Fourier coefficient integrals, equations (16), (17), (19), and (20), can be approximated by well-known numerical techniques such as the Trapezoidal Rule. I have employed the Trapezoidal Rule to evaluate the four fundamental frequency Fourier coefficients I' j , I", , V, and V", in terms of M samples of i(t) and of v(t) obtained at equally spaced times over one period. The results of these calculations are disclosed below in equations (21) - (32) : M = 4: Samples taken at t=0; T/4; T/2; 3T/4. r, = 0.5{i(T/4)-i(3T/4)} (21) r, = 0.5{i(0)-i(T/2)} (22) V , , = 0.5{v(T/4)-v(3T/4)} (23) V" I = 0.5{v(0)-v(T/2)} (24) M = 8; Samples taken at t=0; T/8; T/4; 3T/8; T/2; 5T/8; 3T/4; 7T/8. r, = 0.17678{i(T/8)-i(5T/8) + i(3T/8)-i(7T/8)}+0.25{i(T/4)-i(3T/4)} (25) I", = 0.17678{i(T / 8) - i(5T / 8) - i(3T / 8) + i(7T / 8)} + 0.25{i(0) - i(T / 2)} (26) V', = 0.17678{v(T / 8) - v(5T / 8) + v(3T / 8) - v(7T / 8)} + 0.25{v(T / 4) - v(3T / 4)} (27) V π 1 = 0.17678{v(T/8)-v(5T/8)-v(3T/8) + v(7T/8)}+0.25{v(0)-v(T/2)} (28) M = 12; Samples taken at t=0; T/12; T/6; T/4; T/3; 5T/12; T/2; 7T/12 ; 2T/3; 3T/4; 5T/6; 11T/12. r, = 0.083333{i(T/12)-i(7T/12) + i(5T/12)-i(HT/12)} + 0.14434{i(T/6)-i(2T/3) + i(T/3)-i(5T/6)} + 0.16667{i(T/4)-i(3T/4)} (29) I ll , = 0.083333{i(T/6)-i(2T/3)-i(T/3) + i(5T/6)} + 0.14434{i(T/12)-i(7T/12)-i(5T/12) + i(llT/12)}+0.16667{i(0)-i(T/2)} (30) V , = 0.083333{v(T / 12) - v(7T / 12) + v(5T / 12) - v(l IT / 12)} + 0.14434{v(T/6)-v(2T/3) + v(T/3)-v(5T/6)} + 0.16667{v(T/4)-v(3T/4)} (31) V", = 0.083333{v(T/6)-v(2T/3)-v(T/3) + v(5T/6)} + 0.14434{v(T/12)-v(7T/12)-v(5T/12) + v(llT/12)} + 0.16667{v(0)-v(T/2)} (32) In evaluating I', , I", , V, and V", , any dc component of i(t) or v(t) cancels out due to the half- period symmetry of equation (15) . Furthermore, noise signals not correlated with sin(2πf,t) and cos(2πf,t) will, on average, make equal positive and negative contributions to the integrals and can therefore be removed by averaging the Fourier coefficients over multiple periods as follows: nT ( r ι). v =-^ Ji(t)sin(2πf 1 t)dt (33) o nT ( I "ι) v = ^j i (t)cos(2πf 1 t)dt (34) o where n is an integer number of periods. However, since the Trapezoidal Rule numerical evaluations of equations (21) -(32) express linear relationships, the 5 order of averaging and of summing can be interchanged . ( V, ι) av =( a ι v ( t ι) + a 2 v(t 2 )-) av =a 1 (v(t 1 )) av+ a 2 (v(t 2 )) av+ - (37) 10 Similar results apply to (V"^ , (l\) , and (r\) . Accordingly, time-averaged Fourier coefficients can be very conveniently evaluated by simply averaging the sampled values themselves over multiple periods and then applying the appropriate four equations from 15 equations (21) - (32) to the time-averaged data samples . Once the averaged Fourier coefficients have been determined, the real and imaginary parts of 20 complex impedance at the fundamental frequency fi follow by applying equations (12) and (13) with k=l . and Λ f Y * -P The point on the excitation and response waveforms chosen to be the t = 0 sampling point determines the phase reference and therefore affects the relative sizes of {l ) a , (l'\) av , (Y ) a and (V"^ . However, this arbitrary phase reference cancels out of equations (38) and (39) and therefore has little effect on the determination of R(f j ) and X(f) . As long as the i(t) and v(t) sampling times are equally spaced over a period and the t=0 point is common to both i(t) and v(t) samples, the placement of the sampling times within a period is relatively immaterial . My calculations have shown that the Trapezoidal Rule yields exact results if the Fourier series is appropriately terminated. For example, ' with M=4, I find that the Trapezoidal Rule gives exact results when the series is terminated after the first term. Accordingly, equations (21) -(24) are exact for pure sine wave excitation. However, when other frequencies are present in the excitation, the third (k=3) and higher order harmonics in the Fourier series will introduce error. My calculations have disclosed the following general rule: When fundamental frequency Fourier coefficients are evaluated from M samples taken at equally spaced times over a period, the lowest order term in the Fourier series to cause error is of order (M-l) . Thus, a third harmonic will cause error with M=4. With M=8, the third and fifth harmonics will have no effect but a seventh harmonic will introduce error. With M=12, error will only be introduced by the eleventh and higher-order harmonics. One sees that in order to obtain accurate results with a relatively small number of samples taken over a period, it is imperative that the higher-order harmonics be kept small. One way of ensuring that higher-order harmonics are small is by proper choice of the excitation waveform, i(t) . A pure sine wave is the best choice from a sampling point of view since exact results can then be obtained with only four samples taken per period. However, from a hardware point of view, pure sinusoidal excitation is not a very good choice since its implementation requires a distortion- free sine wave generator along with power- consuming linear amplification circuitry. A better choice of excitation from a hardware standpoint is a symmetrical square wave. This waveform can be easily generated by simply using an active device, such as a mosfet or a bipolar transistor, as a controlled switch -- turning the battery's load current, or its charging current, on and off with equal times spent in each state. Such a switched device dissipates virtually no power since it passes no current when it is in the "off" state and has nearly zero voltage across it when turned "on" . Furthermore, the Fourier coefficients of a symmetrical square wave are proportional to 1/k where k is the harmonic index. Thus, higher-order harmonics are diminished naturally when using symmetrical square wave excitation. A second way to improve accuracy is by using filters to attenuate higher-order harmonics. Such filters can be either of the low-pass type or of the band-pass type. Either type will attenuate higher-order harmonics and will thus increase measurement accuracy without requiring an increased number of samples per period. In addition, filters will also enhance noise immunity by rejecting out-of- band signals resulting from spurious currents flowing through the battery during measurement. From a noise immunity standpoint, a sharply tuned band-pass filter is generally superior to a simple low-pass filter. Normally, one might expect that attenuation and phase shift introduced by a filter in the signal path would cause large errors. This might be especially true if the filter were a sharply tuned band-pass filter since both its attenuation and its phase shift vary rapidly with frequency over a very narrow range. I have determined, however, that such errors can be avoided by introducing the same filter characteristic into both the i(t) signal path and the v(t) signal path. Then, although the filter's attenuation and phase shift affect measured values of ( r ι> av ' ( r 'ι) v ' C^ and < V "ι ' such influences cancel out of the values of R(f j ) and X(f,) determined from equations (38) and (39) . This novel approach is an important contribution of my invention. The following mathematical simulations will demonstrate the efficacy of my measuring method. Figure 3 is a schematic diagram representing a small- signal equivalent circuit model of a typical 12 -volt lead-acid storage battery. The element values disclosed in FIG. 3 were obtained from measurements performed on an actual automotive battery rated 800 cold-cranking amperes. Using well-known formulas, one can calculate the complex impedance of the circuit of FIG. 3 at any given frequency. This impedance was calculated at 10 Hz and found to be Z(10) = R(10)+ jX(10) = 7.276- J4.565 mΩ. Figure 4a discloses one period of a square- wave excitation current i(t) of the model of FIG. 3 resulting from periodically switching a 2 A load "on" and "off", with equal times spent in each state. The period T = 100 s corresponds to the fundamental frequency f = l/T = 10 Hz. Since "on" and "off" times are equal, the square wave is symmetrical and has an average or dc value of -1 A. The time-varying response voltage of the battery model to this current excitation is disclosed in FIG.4b. Figures 4a and 4b each disclose eight sampling times per period (M=8) . In order to illustrate the phase insensitivity of the measurements, the first sampling time at t=0 is intentionally displaced from the square-wave switchover point by 8.33 ms, a 30° phase shift at the fundamental frequency fi. The next seven sampling times then follow at 12.5 ms intervals, or every 45°. at the fundamental frequency. The four fundamental frequency Fourier coefficients (i', , (l π .) , (N\) an d (V",) , were calculated from the sampled values of i(t) and v(t) shown in FIGS. 4a and 4b by using equations (25) -(28). The results are- <I'ι>av = 1.203 A <I"ι>av = 0.507 A <V' 1 > av = 11.4 mV <V" 1 > av = -0.854 mV These four quantities were combined in equations (38) and (39) to yield the complex impedance Z(10) = R(10) + jX(10) = 7.794-J3.993 mΩ. One sees that real and imaginary parts of impedance determined from the i(t) and v(t) samples each differ by about 6% from the true values calculated directly from the equivalent circuit model. Such errors, although not large, are the result of the seventh, and higher-order, harmonics being present in i(t) and v(t) waveforms. Measurement accuracy could therefore be improved by increasing the number of samples taken per period. It could also be improved by filtering. Identical low-pass filter characteristics were next introduced into the i(t) and v(t) signal paths to attenuate the higher-order harmonics. Each filter characteristic was that of a simple, first-order, RC- type filter with cut-off frequency 10 Hz, the fundamental frequency of the excitation. Each low- pass filter therefore introduced 45° phase shift and 3 db attenuation at frequency fi . Current and voltage waveforms at the outputs of the low-pass filters, i'(t) and v'(t) , are illustrated in FIGS. 5a and 5b, respectively. The average value of the current is again seen to be -1 A confirming the fact that the low-pass filter passes the dc component without attenuation. The eight sampling times indicated in each figure are the same as those disclosed in FIGS 4a and 4b. The four fundamental frequency Fourier coefficients, i', , l" j , ( and (V" , were again calculated from the sampled current and voltage by using equations (25) -(28). The results are <I'ι> av = 0.868 A <I"ι>av = -0.213 A <V , ι>av = 5.236 mV <V"ι> av = -5.533 mV which are quite different from those determined from the unfiltered voltage and current. However, when combined in equations (38) and (39) these coefficients yield Z(10) = R(10) + jX(10) = 7.164- J4.618 mΩ whose real and imaginary parts now differ by only 1.3% and 0.6%, respectively, from the true values calculated directly from the equivalent circuit model. This large improvement in measurement accuracy dramatically illustrates the value of filtering i(t) and v(t) signals to remove higher-order harmonics prior to sampling the signals. The low-pass filter characteristics were next replaced with second-order band-pass filter characteristics having bandwidths 1 Hz (i.e., Q=10) . In order to illustrate the insensitivity of the measurements to tuning of the filters, the filters were intentionally "detuned" to 10.5 Hz, thus placing the fundamental frequency f x at the lower edge of the pass-band. Each filter therefore again introduced 45° phase shift and 3 dB attenuation at frequency fi. Current and voltage waveforms at the outputs of the band-pass filters, i'(t) and v'(t) , are illustrated in FIGS. 6a and 6b, respectively. These waveforms appear to be sinusoids, thus indicating that the higher-order harmonics have been largely removed. The average value of the current waveform is now zero since the band-pass filter totally rejects the dc level. The eight sampling times indicated in each figure are again those disclosed in FIGS 4a and 4b. Fourier coefficients, (l ) av , (V ) w , (V ) n and (V",)^ , were calculated from the sampled current and voltage by using equations (25) -(28). The results are <I'ι> av = 0.209 A <I"ι>av = 0.864 A <V' ! > av = 5.525 mV <V"ι> av = 5.283 mV which are quite different from those determined either from the unfiltered voltage and current or from the low-pass filtered voltage and current. However, combining these quantities in equations (38) and (39) yields Z(10) = R(10) + jX(10) = 7.268 - J4.553 mΩ. Real and imaginary parts now differ by only about 0.1% from the true values calculated directly from the equivalent circuit model. Again, the effectiveness of filtering i(t) and v(t) signals to remove higher- order harmonics before sampling has been dramatically illustrated. Figure 7 discloses a first embodiment of practical apparatus for measuring real and imaginary parts of complex impedance of cell/battery 10 according to the present invention. Current excitation and processing circuitry 5 of FIG. 1 comprises controlled switch 25, resistive load 30, differential voltage amplifier 35, current-signal filter 40, and analog to digital converter 45. Controlled switch 25 may comprise a mosfet, bipolar transistor, or other active device operated as a switch. Voltage sensing and processing circuitry 15 of FIG. 1 comprises coupling capacitor 50, voltage amplifier 55, voltage-signal filter 60, and analog to digital converter 65. Computation and control circuitry 20 of FIG. 1 simply comprises microprocessor/microcontroller 20. The apparatus of FIG. 7 generates a periodic time-varying current i(t) through cell/battery 10 as follows: Using its internal clock as a primary timing reference, microprocessor/microcontroller 20 periodically commands controlled switch 25 to switch "on" via command line 70. This command is asserted for one-half period and is initiated every other half-period thereby generating a symmetrical square- wave current i(t) through cell/battery 10 via contacts A and B, controlled switch 25, and resistive load 30. Figure 4a illustrates this waveform. Other techniques for generating a periodic excitation current under the timing control of microprocessor/microcontroller 20 will be apparent to one skilled in the art. An alternative would be for microprocessor/microcontroller 20 to periodically output appropriate digital words to digital-to-analog circuitry replacing controlled switch 25. In this fashion, virtually any periodic waveform, including a sine waveform, could be generated. However, as far as this embodiment of my invention is concerned, the features of importance are that the i(t) waveform be periodic, and that its timing be under the control of microprocessor/microcontroller 20. Differential voltage amplifier 35 senses the voltage developed across resistive load 30 and outputs a signal that is proportional to i(t) . This current signal passes through current-signal filter 40 which removes higher-order harmonics to produce a signal proportional to i'(t) , the frequency-limited representation of i(t) . Analog to digital converter 45 accepts the frequency-limited current signal as its input. Upon a "Strobe Data" command asserted by microprocessor/microcontroller 20 on command line 80, analog to digital converter 45 samples the instant value of i'(t) and converts this quantity to digital format. Microprocessor/microcontroller 20 subsequently inputs this digital i'(t) data via communication path 85. Voltage amplifier 55 senses the voltage across cell/battery 10 at contacts C and D through coupling capacitor 50, which removes the dc component V 0 . Accordingly, the output of voltage amplifier 55 is proportional to the ac response signal v(t) . Voltage-signal filter 60 processes this signal and yields an output signal proportional to the frequency-limited voltage v'(t) . The filter response characteristic of voltage-signal filter 60 is chosen to be identical to that of current-signal filter 40. Accordingly, as has been shown above, harmful effects resulting from the filters' attenuation and phase shift cancel out of the complex impedance determination . Filters 40 and 60 may be either low-pass filters or band-pass filters and can be either of the switched-capacitor type, or of a more conventional type. If filters 40 and 60 are of the switched- capacitor type, their common cut-off or center frequency is determined by microprocessor/microcontroller 20 by virtue of the frequency of the clock signal outputted on command line 75. If more conventional active or passive filters are employed, the cut-off or center frequency is fixed and command line 75 is eliminated. Analog to digital converter 65 accepts the frequency-limited voltage signal v'(t) as its input. Upon a "Strobe Data" command asserted by microprocessor/microcontroller 20 on command line 80, analog to digital converter 45 samples the instant value of v'(t) and converts this quantity to digital format. Microprocessor/microcontroller 20 subsequently inputs the digital v'(t) data via communication path 90. Microprocessor/microcontroller 20 asserts its "Strobe Data" line 80 at M equally spaced times between each successive time that it issues a command on line 70 to turn switch 25 "on" . This effectively synchronizes the data samples to the excitation waveform. The sampled values of i'(t) and v'(t) are inputted into microprocessor/microcontroller 20 on data paths 85 and 90, respectively, and averaged over as many periods as are necessary to remove noise. Once stable noise-free averages have been obtained, microprocessor/microcontroller 20 calculates averaged Fourier coefficients (l'.) av , (l".) av , (V',) av and (V^ by applying the appropriate four equations such as those disclosed in equations (21) -(32). It then calculates real and imaginary parts of impedance by applying equations (38) and (39) . The invention embodiment of FIG. 7 acquires i'(t) and v'(t) data samples simultaneously. One disadvantage of this embodiment, however, is that its accuracy is critically dependent upon having a close match between the characteristics of the filters inserted into the current-signal and voltage-signal paths. This requirement is particularly troublesome when the two filters are narrow band band-pass filters. Such filters are difficult to match since both attenuation and phase shift change rapidly within a narrow frequency range . Figure 8 discloses a second embodiment of the invention that solves this problem. Instead of using separate filters in the current and voltage signal paths, a single filter 105 serves both functions. Microprocessor/microcontroller 20 selects the appropriate signal path for the filter by means of commands issued to analog multiplexer 95 on command line 100. Since the same filter is employed in both signal paths, the requirement of close matching is satisfied automatically. This second embodiment of FIG. 8 functions exactly the same as the first embodiment of FIG. 7 except that microprocessor/microcontroller 20 now also issues commands on line 100, and the i'(t) and v'(t) data samples are acquired sequentially during different periods rather than being acquired simultaneously. Microprocessor/microcontroller 20 determines, under program control, the timing of the i(t) transitions and the timing of the acquisitions of the i'(t) and v'(t) data samples. If switched capacitor filters are employed in the current and voltage signal paths, microprocessor/microcontroller 20 also determines the filters' cut-off or center frequency. Accordingly, the apparatus when configured with switch-capacitor filters is completely software tunable and permits measuring complex impedance at any desired predetermined frequency over a wide range. However, when using filters having fixed response characteristics, the measurements will be limited to a more narrow frequency range. The circuit disclosed in FIG. 9 helps to ameliorate this disadvantage of conventional filters. Filter block 120 contains a plurality of conventional filters, each having a different cut-off or center frequency. Microprocessor/microcontroller 20 selects a desired one of these fixed filters by issuing an appropriate command to analog multiplexer 125 on command line 130. In the example illustrated in FIG. 9, four conventional filters are disclosed. Thus, under software control, this apparatus is capable of measuring complex impedance of cell/battery 10 at four widely separated spot frequencies. However, the number four was simply chosen as an example. In practice, any number of fixed filters could be employed. In all of the above embodiments, microprocessor/microcontroller 20 initiates the i(t) transitions and therefore naturally possesses the timing reference necessary for synchronizing the sampling times to the excitation waveform. An alternative way of accomplishing this objective is disclosed in FIG. 10. In this embodiment, the periodic current i(t) is generated externally to microprocessor/microcontroller 20 by a periodic signal source 135, which may comprise an actual function generator or may simply comprise the alternator of the battery's charging system. A timing reference is derived from i(t) by circuitry 140 that detects a particular periodically repeating point on the i(t) waveform. The resulting sequence of periodic timing pulses is communicated to microprocessor/microcontroller 20 on line 145 where it issues interrupts. A software routine servicing these interrupts initializes hardware or software timers to subsequently locate the M sampling times during each period. Thus, even though the excitation waveform is generated externally in the embodiment of FIG 10, microprocessor/microcontroller 20 still possesses sufficient information to synchronize the sampling times to the excitation waveform. A variation of this technique is disclosed in FIG. 11. In this figure, the battery is being charged from the ac mains by a battery charger comprising transformer 150 and rectifier 155. Circuitry 160 derives timing pulses from the ac power source by detecting zero crossings. A periodic sequence of timing pulses is again communicated to microprocessor/microcontroller 20 on line 145 where it issues interrupts. This invention variation permits measuring the battery's impedance at the power line frequency while it is being charged (or at twice this frequency with full-wave rectification) and takes advantage of the fact that my invention does not require the excitation to be sinusoidal -- only periodic . This completes the disclosure of my invention. The invention is very accurate, possesses high noise immunity, and is relatively inexpensive to implement. In summary, the steps leading to the evaluation of real and imaginary parts of complex impedance at frequency fi in accordance with my invention include one or more of the following: • Exciting the cell/battery with a periodic current i(t) that has a smallest period 1/fι and provides a timing reference. • Sensing an i(t) signal and a responsive v(t) signal. • Processing both signals with identical frequency- limiting filters to obtain i'(t) and v'(t) signals. • Synchronously sampling the i'(t) and v'(t) signals at M equally spaced times over a period and converting the samples to digital format. • Averaging the digital samples over multiple periods to remove noise. • Evaluating averaged Fourier coefficients l' j , (l"ι) / (N'ι) an( (V",) from the averaged samples. • Numerically combining the averaged Fourier coefficients to determine Z(f, ) = R(f,) + jX(f,) . The very high noise immunity of my invention permits measuring batteries while they are actually in use and results from two different factors. First, averaging the synchronously timed digital samples over multiple periods serves to cancel noise signals that are not correlated with sin(2πf,t) and cos(2πf.t) thus permitting small signals to be pulled out of considerable noise. Second, placing identical band- limiting filters in the i(t) and v(t) signal paths attenuates noise even before the signals are sampled. Either one of these two techniques could be employed separately without departing from the true spirit and scope of my invention. For example, one could make a crude approximation to "impedance" by simply detecting the peak or rms values of v(t) and i(t) and taking the ratio of detected values. If, however, this method were to employ the same band-limiting filter in both i(t) and v(t) signal paths, this crude approach would still fall within the purview of my invention. Similarly, one could simply leave out the filters and rely solely upon sampling/averaging to provide accuracy and noise immunity if the higher-order harmonics of the excitation waveform were sufficiently small. This variation would likewise fall within the purview of my invention. Furthermore, one could utilize my invention to evaluate only one of the two components of complex impedance or could express complex impedance in terms of magnitude and phase rather than real and imaginary parts. One could also take different numbers of samples M of the current signal and the voltage signal. Finally, signals having half-period symmetry (equation (15) ) and no dc component need only be sampled during alternate half- periods rather than over full-period intervals. Workers skilled in the art will recognize that these and other variations may be made in form and detail without departing from the true spirit and scope of my invention.

Claims: WHAT IS CLAIMED IS: 1. Apparatus for evaluating impedance of an electrochemical cell or battery at a discrete frequency comprising: current excitation circuitry adapted to be coupled to said cell or battery and adapted to pass a periodic current through said cell or battery, said periodic current characterized by a smallest period equal to the reciprocal of said discrete frequency; current sensing and processing circuitry coupled to said current excitation circuitry and adapted to provide a current signal in response to said periodic current; voltage sensing and processing circuitry coupled to said cell or battery and adapted to provide a voltage signal in response to a periodic voltage across said cell or battery; current sampling and converting circuitry coupled to said current sensing and processing circuitry and adapted to provide digital representations of sampled values of said current signal, said sampled values obtained at discrete current sampling times synchronized with said periodic current and uniformly distributed in time over half-period or full-period intervals of said smallest period of said periodic current; 5 voltage sampling and converting circuitry coupled to said voltage sensing and processing circuitry and adapted to provide digital representations of sampled values of said voltage signal, 10 said sampled values obtained at discrete voltage sampling times synchronized with said periodic current and uniformly distributed in time over half-period or full-period 15 intervals of said smallest period of said periodic current; and, computation and control circuitry coupled to said current excitation circuitry, to said current sampling and 20 converting circuitry, and to said voltage sampling and converting circuitry, said computation and control circuitry adapted to initiate said current sampling times, to 25 initiate said voltage sampling times, and to numerically combine said digital representations of said sampled values of said current signal and said digital representations of said sampled values of said voltage signal to evaluate said impedance. 2. Apparatus as in claim 1 wherein said current sensing and processing circuitry and said voltage sensing and processing circuitry include filtering circuitry adapted to process said current signal and said voltage signal with identical filter response functions . 3. Apparatus as in claim 2 wherein said filter response functions are low-pass filter response functions . 4. Apparatus as in claim 2 wherein said filter response functions are band-pass filter response functions . 5. Apparatus as in claim 1 wherein said computation and control circuitry is further adapted to initiate the timing of said periodic current and to identify said voltage sampling times and said current sampling times by measuring from a periodically repeating timing point of said periodic current . 6. Apparatus as in claim 5 wherein said current excitation circuitry includes a controlled switch and said computation and control circuitry initiates said timing of said periodic current by periodically turning said controlled switch on and off thereby periodically interrupting a current through said cell or battery. 7. Apparatus as in claim 1 wherein said current excitation circuitry includes function generating and timing circuitry adapted to spontaneously generate said periodic current and to communicate synchronous periodic timing pulses to said computation and control circuitry, said computation and control circuitry being adapted to identify said current sampling times and said voltage sampling times by measuring from said timing pulses. 8. Apparatus as in claim 7 wherein said function generating and timing circuitry includes an alternator for charging said cell or battery. 9. Apparatus as in claim 7 wherein said function generating and timing circuitry includes a transformer and rectifier for charging said cell or battery. 10. Apparatus as in claim 1 wherein said periodic current is a periodic square wave current . 11. Apparatus as in claim 1 wherein said periodic current is a periodic sine wave current. 12. Apparatus as in claim 1 wherein said computation and control circuitry is further adapted to average said digital representations of said sampled values of said current signal and said digital representations of said sampled values of said voltage signal to obtain averaged results, to numerically combine said averaged results to evaluate Fourier coefficients of components of said current signal and said voltage signal, and to numerically combine said Fourier coefficients to evaluate said impedance . 13. Apparatus for measuring impedance of an electrochemical cell or battery at a discrete frequency comprising: current excitation circuitry adapted to be coupled to said cell or battery and adapted to pass a periodic current through said cell or battery, said periodic current characterized by a smallest period equal to the reciprocal of said discrete frequency; current sensing circuitry coupled to said current excitation circuitry and adapted to produce a current signal proportional to said periodic current; voltage sensing circuitry coupled to said cell or battery and adapted to produce a voltage signal proportional to a periodic voltage developed across said cell or battery; filtering circuitry coupled to said current sensing circuitry and to said voltage sensing circuitry, said filtering circuitry characterized by a frequency response characteristic and adapted to provide a frequency-limited current signal in accordance with said frequency response characteristic and a frequency- limited voltage signal in accordance with the same said frequency response characteristic; and, evaluating circuitry coupled to said filtering circuitry and to said current excitation circuitry and adapted to provide values of said impedance of said electrochemical cell or battery in accordance with said frequency-limited current signal and said frequency- limited voltage signal. 14. Apparatus as in claim 13 wherein said evaluating circuitry comprises: sampling and converting circuitry coupled to said filtering circuitry and adapted to provide digital representations of sampled values of said frequency- limited current signal and of said frequency- limited voltage signal, said sampled values obtained at periodically repeating sampling times synchronized to said periodic current and uniformly distributed over half-period or full-period intervals of said smallest period of said periodic current; and, computation and control circuitry coupled to said current excitation circuitry and to said sampling and converting circuitry, said computation and control circuitry adapted to initiate said sampling times and to compute said impedance from said digital representations of said sampled values of said frequency-limited current signal and said frequency- limited voltage signal . 15. Apparatus as in claim 14 wherein said' computation and control circuitry is further adapted to initiate the timing of said periodic current and to identify said sampling times by measuring from a periodically repeating timing point of said periodic current . 16. Apparatus as in claim 15 wherein said current excitation circuitry includes a controlled switch, and said computation and control circuitry initiates said timing of said periodic current by periodically turning said controlled switch on and off thereby periodically interrupting a current through said cell or battery. 17. Apparatus as in claim 14 wherein said current excitation circuitry includes function generating and timing circuitry adapted to spontaneously generate said periodic current and to communicate periodic timing pulses to said computation and control circuitry in synchronism with said periodic current, said computation and control circuitry being adapted to identify said sampling times by measuring from said periodic timing pulses. 18. Apparatus as in claim 17 wherein said function generating and timing circuitry includes an alternator for charging said cell or battery. 19. Apparatus as in claim 17 wherein said function generating and timing circuitry includes a transformer and rectifier for charging said cell or battery. 20. Apparatus as in claim 13 wherein said frequency response characteristic is a low-pass frequency response characteristic. 21. Apparatus as in claim 13 wherein said frequency response characteristic is a band-pass frequency response characteristic. 22. Apparatus as in claim 13 wherein said filtering circuitry comprises a pair of matched filter circuits adapted to separately provide said frequency-limited current signal and said frequency- limited voltage signal. 23. Apparatus as in claim 13 wherein said filtering circuitry comprises a single filter circuit adapted to provide both said frequency-limited current signal and said frequency- limited voltage signal. 24. Apparatus as in claim 13 wherein said periodic current is a periodic square wave current. 25. Apparatus as in claim 13 wherein said periodic current is a periodic sine wave current. 26. Apparatus as in claim 14 wherein said computation and control circuitry is further adapted to average said digital representations of said sampled values of said frequency-limited current signal and said frequency-limited voltage signal to obtain averaged results, to numerically combine said averaged results to evaluate Fourier coefficients of in-phase and quadrature components of said frequency- limited current signal and said frequency-limited voltage signal, and to numerically combine said Fourier coefficients to determine said impedance of said electrochemical cell or battery. 27. A method for measuring impedance of an electrochemical cell or battery at a discrete frequency comprising the steps of: exciting said cell or battery with a periodic time-varying current characterized by a smallest period equal to the reciprocal of said discrete frequency; sensing a current signal proportional to said periodic time-varying current and a voltage signal proportional to a time-varying response voltage across said cell or battery; processing said current signal and said voltage signal with identical frequency response functions to obtain a frequency-limited current signal and a frequency-limited voltage signal; and, combining said frequency-limited current signal and said frequency-limited voltage signal to determine said impedance of said electrochemical cell or battery. 28. A method as in claim 27 wherein said step of combining said frequency- limited current signal and said frequency-limited voltage signal further comprises steps of : sampling said frequency- limited current signal and said frequency- limited voltage signal at uniformly spaced sampling times synchronized to said periodic time-varying current to obtain data samples and converting said data samples to digital format; and, computing said impedance at said discrete frequency from said data samples converted to said digital format. 29. A method according to claim 28 wherein said step of computing further comprises the steps of: averaging said samples converted to digital format over multiple periods to obtain averaged digital samples; evaluating Fourier coefficients of in-phase and quadrature components of said frequency-limited current signal and said frequency-limited voltage signal from said averaged digital samples; and, combining said Fourier coefficients numerically to determine said impedance at said discrete frequency. 30. A method as in claim 27 wherein said step of exciting said cell or battery with a periodic time-varying current comprises exciting said cell or battery with a periodic square-wave current. 31. A method as in claim 27 wherein said step of exciting said cell or battery with a periodic time-varying current comprises exciting said cell or battery with a periodic sinusoidal current. 32. A method as in claim 27 wherein said step of processing said current signal and said voltage signal comprises processing said current signal and said voltage signal simultaneously, and said step of sampling said frequency-limited current signal and said frequency-limited voltage signal comprises sampling said frequency-limited current signal and said frequency-limited voltage signal simultaneously. 33. A method as in claim 27 wherein said step of processing said current signal and said voltage signal comprises processing said current signal and said voltage signal sequentially, and said step of sampling said frequency-limited current signal and said frequency-limited voltage signal comprises sampling said frequency-limited current signal and said frequency-limited voltage signal sequentially. 34. A method according to claim 27 wherein said step of processing said current signal and said voltage signal with identical frequency response functions comprises processing said current signal and said voltage signal with identical low-pass frequency response functions. 35. A method according to claim 27 wherein said step of processing said current signal and said voltage signal with identical frequency response functions comprises processing said current signal and said voltage signal with identical band-pass frequency response functions. 36. A method for measuring impedance of an electrochemical cell or battery at a discrete frequency comprising the steps of : exciting said cell or battery with a periodic time-varying current characterized by a smallest period equal to the reciprocal of said discrete frequency; forming a current signal in accordance with said periodic time-varying current and a voltage signal in accordance with a time-varying response voltage across said cell or battery; sampling said current signal and said voltage signal at equally spaced times over a half-period or full-period interval of said periodic time-varying current and converting sampled values of said current signal and sampled values of said voltage signal to digital format; averaging said sampled values over multiple periods to obtain averaged sampled values; evaluating Fourier coefficients from said averaged sample values; and, numerically combining said Fourier coefficients to determine said impedance of said electrochemical cell or battery at said discrete frequency. 37. A method as in claim 36 wherein said step of forming said current signal and said voltage signal includes processing said current signal and said voltage signal with identical low-pass frequency response functions. 38. A method as in claim 36 wherein said step of forming said current signal and said voltage signal includes processing said current signal and said voltage signal with identical band-pass frequency response functions. 39. A method as in claim 36 wherein said step of exciting said cell or battery with a periodic time-varying current comprises exciting said cell or battery with a periodic square-wave current. 40. A method as in claim 36 wherein said step of exciting said cell or battery with a periodic time-varying current comprises exciting said cell or battery with a periodic sinusoidal current. 41. An apparatus for measuring impedance of an electrochemical cell or battery at a discrete frequency adapted for performing the steps according to claim 27. 42. An apparatus for measuring impedance of an electrochemical cell or battery at a discrete frequency adapted for performing the steps according to claim 36.

Inventors: CHAMPLIN KEITH S, CHAMPLIN, KEITH, S.
Applicants: CHAMPLIN KEITH S, CHAMPLIN, KEITH, S.
Application year: 1999
Main classification: H01M10
IPC codes: G01N27, G01R27, G01R31, H01M10, H02J7