BATTERY IMPEDANCE DETECTION

Information

  • Patent Application
  • 20190115762
  • Publication Number
    20190115762
  • Date Filed
    October 12, 2017
    6 years ago
  • Date Published
    April 18, 2019
    5 years ago
Abstract
A method is disclosed, which includes driving an alternating input current into a battery, measuring a voltage across the battery by a first measurement circuit to obtain a voltage measurement value, measuring a current through the battery by a second measurement circuit to obtain a current measurement value, and measuring a current through the battery using the first measurement circuit to obtain a further current measurement value. Further, the method includes calculating an impedance of the battery based on the current measurement value, the further current measurement value, and the voltage measurement value.
Description
TECHNICAL FIELD

This disclosure relates in general to detecting or measuring the impedance of a battery. In particular, this disclosure relates to a method and an electronic circuit for detecting the impedance of a battery.


BACKGROUND

The complex impedance of a battery, such as a lithium-ion (Li-ion) battery, may be used to obtain information on the status of the battery. This information may include a temperature, charging state or information on a deterioration, to name only a few. Obtaining this information based on the impedance makes use of the fact that the impedance varies as the frequency of a current driven into the battery or drawn from the battery varies. Measuring the temperature, for example, may include driving alternating currents with different frequencies into the battery, measuring the complex impedance of the battery at each of the different frequencies and detecting the temperature based on the complex impedance, more specifically, based on the imaginary part of the complex impedance obtained at the different frequencies.


Obtaining status information of the battery based on the impedance requires a reliable impedance measurement. There is therefore a need for reliably measuring the impedance of a battery.


SUMMARY

One example relates to a method. The method includes driving an alternating input current into a battery, measuring a voltage across the battery by a first measurement circuit to obtain a voltage measurement value, measuring a current through the battery by a second measurement circuit to obtain a current measurement value, and measuring a current through the battery using the first measurement circuit to obtain a further current measurement value. The method further includes calculating an impedance of the battery using the current measurement value, the further current measurement value, and the voltage measurement value.





BRIEF DESCRIPTION OF THE DRAWINGS

Examples are explained below with reference to the drawings. The drawings serve to illustrate certain principles, so that only aspects necessary for understanding these principles are illustrated. The drawings are not to scale. In the drawings the same reference characters denote like features.



FIG. 1 schematically illustrates an arrangement with a battery and an impedance detection circuit connected to the battery and configured to detect an impedance of the battery;



FIGS. 2A-2D show different examples of a battery;



FIG. 3 schematically illustrates how gain and phase of a filter that may be used in an impedance detection circuit may vary;



FIG. 4 is a flowchart that illustrates one example of a method for detecting the impedance of a battery;



FIG. 5 shows one example of an impedance detection circuit; and



FIG. 6 shows, in greater detail, one example of a measurement circuit included in the impedance detection circuit shown in FIG. 5.





DETAILED DESCRIPTION

In the following detailed description, reference is made to the accompanying drawings. The drawings form a part of the description and for the purpose of illustration show examples of how the invention may be used and implemented. It is to be understood that the features of the various embodiments described herein may be combined with each other, unless specifically noted otherwise.



FIG. 1 schematically illustrates an arrangement with a battery 1 and an impedance temperature detection circuit 10. The impedance detection circuit 10 is connected to a first battery node 11 and a second battery node 12 of the battery 1 and is configured to detect an impedance of the battery 1 in a way explained in further detail herein below.


The battery 1 is a lithium-ion (Li-ion) battery, for example. The battery 1 includes at least one battery cell. Some examples of how the battery 1 may be implemented are illustrated in FIGS. 2A to 2D. Referring to FIG. 2A, the battery 1 may include one battery cell 111 connected between the first battery node 11 and the second battery node 12. According to another example shown in FIG. 2B, the battery 1 includes a plurality of battery cells 111, 121, 1n1 connected in series between the first battery node 11 and the second battery node 12. According to another example shown in FIG. 2C, the battery 1 includes a plurality of battery cells 111, 112, 11m connected in parallel between the first battery node 11 and the second battery node 12. According to yet another example shown in FIG. 2D, the battery 1 includes a series circuit with two or more parallel circuits, wherein each of these parallel circuits includes two or more battery cells 111, 112, 11m, 1n1, 1n2, 1nm.


Basically, detecting a complex impedance Z(f) of the battery 1 by the impedance detection circuit 10 includes driving an alternating current i(t) via the battery nodes 11, 12 into the battery 1, measuring a voltage v(t) between the battery nodes 11, 12, measuring the current i(t) and calculating the impedance based on these measurements.


As used herein, an “alternating current” is a current that includes an alternating current component and that, additionally, may include a direct current (DC) offset. According to one example, the alternating current component is a sinusoidal current component. In the following, an alternating current with a sinusoidal current component is referred to as sinusoidal current. A sinusoidal input current i(t) is given by






i(t)=IDC+I0·sin(ω+φ0)   (1),


where I0 is an amplitude of the sinusoidal current component, ω=2π·f, with f being the frequency at which the impedance is to be measured, φ0 is a phase shift and IDC is the optional DC offset. As used herein, “driving a current into the battery” may include driving only a positive current that charges the battery, only a negative current that discharges the battery, or alternatingly a positive current and a negative current. If in the example given in equation (1) the DC offset IDC is zero (IDC=0), there are time periods when the current is positive so that the battery 1 is charged and time periods when the current is negative so that the battery is discharged, wherein over each period of the sinusoidal input current i(t) the charging state of the battery 1 does not change. According to another example, the DC offset Inc is different from zero and selected such that the input current is either only positive or only negative, wherein the current direction of the input current i(t) can be adjusted by selecting the sign (positive or negative) of the DC offset IDC.


Using a sinusoidal current as the alternating input current i(t) is only an example. Alternating currents with alternating current components that have a waveform different from a sinusoidal waveform may be used as well. Examples of these other types of waveforms include, but are not restricted to, a rectangular waveform, a triangular waveform, a sine square waveform, or the like.


When the input current i(t) is, for example, a sinusoidal current as given in equation (1) the voltage v(t) between the battery nodes 11, 12 is an alternating voltage as follows:






v(t)=V0+R1·IDC+Z0·I0·sin(ωt+φ0+φ))   (2),


where Z0 is the magnitude of a complex impedance of the battery 1, φ is a phase shift introduced by the complex impedance of the battery, and R1 represents the real part of the complex impedance. Further, V0 is an optional offset of the battery voltage v(t). This offset V0 represents a charging state of the battery 1, that is, V0 is the voltage that can be measured between the battery nodes 11, 12 when no input current (i(t)=0) is driven into the battery 1. In the frequency domain, the voltage v(t) and the current i(t) can be written as:






V(f)=Z0·I0·ej(φ0+φ)   (3a)






I(f)=IDC+I0·ejφ0   (3b).


If f=0, V(f) according to equation (3a) is given by V(f)=V0+R1·IDC. In the following, evaluating (measuring) the impedance Z(f) at a frequency different from zero will be explained, that is, f≠0. In this context, the term Z0·I0·ej(φ0+φ) in equation (3a) is referred to as the AC component VAC of the voltage V(f), and in equation (3b), I0·ejφ0 is referred to as AC component IAC(f) of the current I(f). In each of these formulae, f denotes an arbitrary frequency at which the impedance is to be measured. The complex impedance Z(f) of the battery at f≠0 is given by the quotient of these AC components, that is,










Z


(
f
)


=




V
AC



(
f
)




I
AC



(
f
)



=




Z
0

·

I
O

·

e

j


(

ϕ0
+
ϕ

)






I
0

·

e

j





ϕ0




=


Z
0

·


e

j





ϕ


.








(

4

a

)







This complex impedance may also be expressed as






Z(f)=Z0·e=Re{Z(f)}+j·Im{Z(f)}=Z0·cos φ+j·Z0·sin φ  (4b),


where Re{Z(f)} is the real part and Im{Z(f)} is the imaginary part of the complex battery impedance Z(f), and j is the imaginary unit. The real part Re{Z(f)} can also be referred to as resistance and the imaginary part Im{Z(f)} can also be referred to as reactance of the battery 1. The impedance Z(f) is dependent on the frequency f of the input current i(t), so that the magnitude Z0 and the phase y of the impedance Z(f) are also dependent on the frequency (are a function of the frequency), that is, Z0=Z0(f) and φ=φ(f).


Measurement circuits that are suitable to measure the voltage across the battery 1 and the current through the battery may introduce a phase shift and have a gain different from one so that the AC component of the voltage V(f) when measured by a first measurement circuit may be in the form of






V
AC(f)=A·e·Z0·I0·ej(φ0+φ)   (5a),


and the AC component of the current I(f) when measured by a second measurement circuit may be in the form of






I
AC(f)=B·e·I0·e4φ0   (5b),



4where A is the gain of the first measurement circuit, B is the gain of the second measurement circuit, a is the phase shift introduced by the first measurement circuit, and is the phase shift introduced by the second measurement circuit. If the first and second measurement circuits are identical, so that A=B and α=β, applying equation (4a) to the measurement values given in equations (5a) and (5b) results in the correct impedance Z(f). If however, the measurement circuits are not identical, the impedance obtained from the measurement values and applying equation (4a) includes a measurement error and is given as











Z


(
f
)


=




V
AC



(
f
)




I
AC



(
f
)



=



A
·

e

j





α


·

Z
0

·

I
O

·

e

j


(

ϕ0
+
ϕ

)





B
·

e

j





β


·

I
0

·

e

j





ϕ1




=


A
B




e

j


(

α
-
β

)



·

(


Z
0

·

e

j





ϕ



)






,









where






A
B



e

j


(

α
-
β

)








(
6
)







where A/B ej(α-β) represents the measurement error, where A/B is a gain introduced by the measurement circuits and β-β is a phase shift introduced by the measurement circuits.


Even if the first and second measurement circuits are designed identically, gain and phase may be different due to inevitable variations of components implemented in the measurement circuits. This is explained with reference to FIG. 3. FIG. 3 illustrates gain and phase of two different high pass filters over the frequency. High pass filters of this type may be implemented in the measurement circuits. These high pass filters are designed identically. Nevertheless, in this example, at the corner frequency fc, a difference between the gains is 2.6 dB and a difference between the phases is 18°.


There is therefore a need to precisely detect the impedance of a battery based on measuring the voltage across the battery 1 and the current through the battery 1 using two different measurement circuits. FIG. 4 illustrates a flowchart of a method suitable to precisely detect the battery impedance.


Referring to FIG. 4, the method includes driving an alternating current into the battery 1 (101). The alternating current may be an alternating current of any of the types explained herein above. With the current being driven into the battery, the method further includes measuring a voltage across the battery 1 using a first measurement circuit to obtain a voltage measurement value (102), and measuring the current through the battery 1 using a second measurement circuit to obtain a current measurement value. The voltage measurement value obtained by measuring the battery voltage using the first measurement circuit is referred to as first voltage measurement value in the following, and the current measurement value obtained by measuring the current into the battery using the second measurement circuit is referred to as second current measurement value in the following.


According to one example, the first voltage measurement value represents the alternating component of the voltage measured by the first measurement circuit across the battery 1, and the second current measurement value represents the alternating component of the current measured by the second measurement circuit. This first voltage measurement value is referred to as VAC_A(A) in the following and this second current measurement value is referred to as IAC(B) in the following. According to one example, the first voltage measurement value VAC(A) and the second current measurement value IAC(B) are measured at the same time. This first voltage measurement value and this second current measurement value, like other voltage and current measurement values explained below, are dependent on the frequency of the alternating current. This dependency on the frequency, however, is not indicated in the variables that represent the individual measurement values.


Referring to FIG. 4, the method further includes a further measurement cycle 104. This further measurement cycle includes measuring the current through the battery 1 using the first measurement circuit to obtain a further current measurement value, which is referred to as first current measurement value IAC(A) in the following. According to one example, this first current measurement value represents the alternating component of the current measured by the first measurement circuit in the further measurement cycle. The first current measurement IAC(A) value may be measured by the first measurement circuit before or after the first voltage measurement value VAC(A).


According to one example, the first current measurement circuit has a gain A and a phase shift α, and the second current measurement circuit has a gain B and a phase shift β, so that the first voltage measurement value VAC(A), the second current measurement IAC(B) and the first current measurement value IAC(A) are given as follows:






V
AC(A)=A·e·Z0·I0·ej(φ0+φ)   (7a)






I
AC(B)=·e·I0·ejφ0   (7b)






I
AC(A)=A·e·I0·ejφ0   (7c).


Referring to FIG. 4, the method further includes calculating the impedance of the battery 1 at least based on the (first) voltage measurement value VAC(A), the (second) current measurement value IAC(B) and the further (first) current measurement value IAC(A). According to one example, calculating the impedance includes calculating a gain and phase error introduced by the first and second measurement circuits based on the first and second current measurement values IAC(A), IAC(B). According to one example, calculating the gain and phase error includes calculating a quotient of the first and second current measurement values IAC(A), IAC(B), that is,










D
=




I
AC



(
A
)




I
AC



(
B
)



=


A
B



e

j


(

α
-
β

)






,




(
8
)







where D denotes the ratio of the complex gains of the first current measurement circuit and the second current measurement circuit. This ratio D represents the gain error and the phase error introduced by the two current measurement circuits. Calculating the impedance further includes calculating the quotient of the first voltage measurement value VAC(A) and the second current measurement IAC(B) value in order to obtain a preliminary impedance value ZE, which includes a gain and phase error, as follows:










Z
E

=




V
AC



(
A
)




I
AC



(
B
)



=



A
·

e

j





α


·

Z
0

·

I
O

·

e

j


(

ϕ0
+
ϕ

)





B
·

e

j





β


·

I
0

·

e

j





ϕ0




=


A
B




e

j


(

α
-
β

)



·

Z
0

·


e

j





ϕ


.









(
9
)







It can be seen that this preliminary impedance value ZE is the complex gain and phase error D multiplied with the complex impedance Z=Z0·e of the impedance. Thus, the method further includes obtaining the battery impedance by correcting the preliminary impedance value ZE using the complex gain and phase error D. In the example explained above, where the complex gain and phase error D is given by the quotient of the second current measurement value and the first current measurement value, correcting the preliminary impedance ZE includes dividing the preliminary impedance ZE by the complex gain and phase error as follows:









Z
=



Z
E

D

=




A
B




e

j


(

α
-
β

)



·

Z
0

·

e

j





ϕ






A
B



e

j


(

α
-
β

)





=


Z
0

·


e

j





ϕ


.








(
10
)







According to another example, the complex gain and phase error D is calculated by calculating the quotient of the second current measurement value IAC(B) and the first current measurement value IAC(A). In this case, the preliminary impedance value ZE is corrected by multiplying the preliminary impedance value ZE with the complex gain and phase error. D. As can be seen from equation (10), the battery impedance Z obtained by this method equals the battery impedance and is independent of gains and phases introduced by the measurement circuits.


Referring to the above, the first voltage measurement value VAC(A) and the second current measurement value IAC(B) may be obtained at the same time using the first and second current measurement circuits. This, however, is only an example. According to another example, the first and second current measurement values IAC(A), IAC(B) are obtained at the same time and the first voltage measurement VAC(A) value is obtained at another time before or after obtaining the first and second current measurement values IAC(A), IAC(B). Each of these methods is based on the assumption that the battery impedance does not change between the measurements.


According to another example, the method further includes measuring the voltage across the battery using the second measurement circuit in order to obtain a further voltage measurement value, which may represent the AC component of the voltage and is referred to as second voltage measurement circuit VAC(B) in the following. This second voltage measurement is given by:






V
AC(B)=B·e·Z0·I0·ej(φ0+φ)   (11),


where B denotes the gain and 0 denotes the phase shift introduced by the second measurement circuit. Calculating the impedance based on the first and second voltage measurement values VAC(A), VAC(B) and the first and second current measurement values IAC(A), IAC(B) includes calculating a first impedance Z1 based on the first voltage measurement value VAC(A) and the second current measurement value IAC(B) and a second impedance Z2 based on the second voltage measurement value VAC(B) and the first current measurement value IAC(A) as follows:










Z





1

=




V
AC



(
A
)




I
AC



(
B
)



=



A
·

e

j





α


·

Z
0

·

I
O

·

e

j


(

ϕ0
+
ϕ

)





B
·

e

j





β


·

I
0

·

e

j





ϕ0




=


A
B




e

j


(

α
-
β

)



·

Z
0

·

e

j





ϕ










(

12

a

)







Z





2

=




V
AC



(
B
)




I
AC



(
A
)



=



B
·

e

j





β


·

Z
0

·

I
O

·

e

j


(

ϕ0
+
ϕ

)





A
·

e

j





β


·

I
0

·

e

j





ϕ0




=


B
A




e

j


(

β
-
α

)



·

Z
0

·


e

j





ϕ


.









(

12

b

)







The method further includes calculating the product Z1.Z2 of the first and second impedance Z1, Z2 and calculating the square root of the product in order to obtain the battery impedance Z, that is,









Z
=



Z






1
·
Z






2


=




(


A
B




e

j


(

α
-
β

)



·

Z
0

·

e

j





ϕ




)

·

(


B
A




e

j


(

β
-
α

)



·

Z
0

·

e

j





ϕ




)



=




Z
0
2

·

e

j





2

ϕ




=


Z
0

·


e

j





ϕ


.









(
13
)







It can be seen from equation (13) that the square root of the product of the first impedance Z1 and the second impedance Z2 represents the battery impedance and is independent of gain and phase errors introduced by the first and second measurement circuits.


According to another example, calculating the battery impedance Z based on the first and the second impedance Z1, Z2 includes calculating a mean value of the first and second impedances as follows:










Z
=




Z





1

+

Z





2


2

=




Re


{

Z





1

}


+

Re


{

Z





2

}



2

+

j




Im


{

Z





1

}


+

Im


{

Z





2

}



2










or




(

14

a

)







Z
=




Z
01

+

Z
02


2

·

e


j


(

ϕ1
+
ϕ2

)




/


2




,





where






Z
01







(

which





equals







A
B

·

Z
0



)






(

14

b

)







denotes the magnitude of the first impedance Z1, Z02






(

which





equals







B
A

·

Z
0



)




denotes the magnitude of the second impedance, φ1 (which equals α-β+φ) denotes the phase of the first impedance Z1, and φ2 (which equals β-α+φ) denotes the phase of the second impedance Z2. The complex impedance calculated in this way, however, may include a small residual gain and phase error introduced by the measurement circuits.



FIG. 5 shows one example of an impedance detection circuit 10 configured to detect the battery impedance based on the method illustrated in FIG. 4. Referring to FIG. 5, the impedance detection circuit 10 includes a current sensor 3 connected in series with the battery 1. According to one example, the current sensor 3 includes a shunt resistor with a resistance R3. In this case, a voltage vs(t) across the current sensor 3 is given by R3·i(t), wherein i(t) is the current driven into the battery 1 by the impedance detection circuit 10. The impedance detection circuit 10 further includes a first measurement circuit 2A and a second measurement circuit 2B and a crossover switch 4 coupled between the battery 1 and the current sensor 3, on one side, and the first measurement circuit 2A and the second measurement circuit 2B, on the other side. The crossover switch 4 is controlled by a control and calculation circuit 5 and is configured to selectively couple the battery 1 with the first measurement circuit 2A or the second measurement circuit 2B and the current sensor 3 with the first measurement circuit 2A or the second measurement circuit 2B, wherein, at one time, only one of the battery 1 and the current sensor 3 is coupled to one of the measurement circuits 2A, 2B. In FIG. 5, sA(t) denotes an input signal of the first measurement circuit 2A, and sB(t) denotes an input signal of the second measurement circuit 2B. Dependent on a switching state of the cross over switch 4, the input signal sA(t) of the first measurement circuit 2A either equals the voltage v(t) across the battery 1 or the voltage vS(t) across the current sensor 3 and the input signal s2B(t) of the second measurement circuit 2 either equals the voltage v(t) across the battery 1 or the voltage vS(t) across the current sensor 3. Each of the first measurement circuit 2A and the second measurement circuit 2B is configured to generate a measurement value MA, MB based on its input signal sA(t), sB(t). According to one example, each of the measurement values MA, MB represents the AC component of the respective input signal sA(t), sB(t).


In the impedance detection circuit 10 shown in FIG. 5, the voltage across the battery 1 can be measured by the first measurement circuit 2A when the crossover switch 4 connects the first measurement circuit 2A with the battery 1, the current can be measured by the first measurement circuit 2A when the crossover switch 4 connects the first measurement circuit 2A with the current sensor 3, the voltage across the battery 1 can be measured by the second measurement circuit 2B when the crossover switch 4 connects the second measurement circuit 2B with the battery 1, and the current through the battery 1 can be measured by the second measurement circuit 2B when the crossover switch 4 connects the second measurement circuit 2B with the current sensor 3. A voltage measurement value obtained by measuring the battery voltage using the first measurement circuit 2A is referred to as first voltage measurement value in the following, a voltage measurement value obtained by measuring the battery voltage using the second measurement circuit 2B is referred to as second voltage measurement value in the following, a current measurement value obtained by measuring the voltage across the current sensor 3 using the first measurement circuit 2A is referred to as first current measurement value in the following, and a current measurement value obtained by measuring the voltage across the current sensor 3 using the second measurement circuit 2B is referred to as second current measurement value in the following. Thus, the measurement value MA output by the first measurement circuit 2A is the first voltage measurement value, when the first measurement circuit 2A is coupled to the battery 1, and the first current measurement value, when the first measurement circuit 2A is coupled to the current sensor 3. Equivalently, the measurement value MB output by the second measurement circuit 2B is the second voltage measurement value, when the second measurement circuit 2B is coupled to the battery 1, and the second current measurement value, when the second measurement circuit 2B is coupled to the current sensor 3. The first voltage measurement value and the first current measurement value are given by






M
A
=V
AC(A)=A·e·Z0·I0·ej(φ0+0)   (15a)






M
A
=R3·IAC(A)=R3·A·e·I0·ejφ0   (15b),


where R3 denotes the resistance of the shunt resistor included in the current sensor 3. The second voltage measurement value and the second current measurement value are given by






M
B
=V
AC(B)=B·e·Z0·I0·ej(φ0+φ)   (16a)






M
B
=R3·IAC(B)=R3·B·e·I0·e1jφ0   (16b).


Just for the purpose of illustration, it is assumed that the first voltage measurement value and the second current measurement value are measured at the same time and the first current measurement value and the second voltage measurement value are measured at the same time. The control and calculation circuit 5 receives the measurement values from the first and second measurement circuits 2A, 2B and calculates the impedance based on one of the methods explained herein above. It should be noted in this regard, that, for calculating the impedance, the first and second current measurement values and one of the first and second voltage measurement values is sufficient. Thus, the control and calculation circuit may only process the first and second current measurement values and one of the first and second voltage measurement values. Further, referring to equations (14b) and (15b), the first and second current measurement values output by the first and second measurement circuits 2A, 2B represent the AC components of the current through the battery multiplied with the resistance R3 of the shunt resistor. In this example, the control and calculation circuit 5 may divide the current measurement values received by the first and second measurement circuits 2A, 2B by the resistance R3 before processing the at least one voltage measurement value and the first and second current measurement values in accordance with any of the methods explained with reference to FIG. 4.


Referring to FIG. 5, the impedance detection circuit 10 further includes a current source 6 configured to generate the alternating current i(t). This current source 6 is controlled by the control and calculation circuit 5 using a signal S6. In particular, this signal S6 adjusts a frequency of the current generated by the current source 6.



FIG. 6 shows one example of one of the first and second measurement circuits 2A, 2B. In FIG. 6, reference numeral 2 denotes any one of the two measurement circuits 2A, 2B, s(t) denotes the input signal received by the respective measurement circuit 2A, 2B and M represents the measurement value output by the respective measurement circuit 2A, 2B. Each of the first and second measurement circuits 2A, 2B may be implemented in accordance with FIG. 6. FIG. 6 shows a block diagram of the measurement circuit 2. Besides the measurement circuit 2, the current source 6 and the control and calculation circuit 5 are also illustrated in FIG. 6. It should be noted that this block diagram illustrates functional blocks of one measurement circuit 2, the current source 6, and the control and calculation circuit 5 rather than a specific implementation. These functional blocks can be implemented in various ways. According to one example, these functional blocks are implemented using dedicated circuitry, such as analog circuits, digital circuits or analog and digital circuits. According to another example, the impedance detection circuit 10 is implemented using hardware and software. For example, the impedance detection circuit 10 includes a microcontroller and software running on the microcontroller.


Referring to FIG. 6, the current source 6 includes a DC current source 61 configured to provide a direct current with a current level I0. A modulator 62 connected downstream the DC current source 61 is configured to modulate the current I0 provided by the DC current source 61 with a first alternating signal s1(ωt). Optionally, the DC offset he is added to an output signal of the modulator 62 by an optional adder 68. The current i(t) driven into the battery 1 (not shown in FIG. 6) is available at an output of the modulator 62 or an output of the adder 68. In general, this current i(t) is given by






i(t)=iDC+I0·s1(ωt)   (17).


According to one example, the first alternating signal s1(107 t) is a sinusoidal signal, so that the input current i(t) is given by equation (1). This, however, is only an example. Other alternating signal waveforms such as a rectangular waveform may be used as well. The first alternating signal s1(ωt) is generated by a modulation signal generator 63 in accordance with a frequency signal S6 provided by the control and calculation circuit 5. The frequency signal S6 defines the frequency of the alternating signal s1(ωt) provided by the modulation signal generator 63.


Referring to FIG. 6, the measurement circuit 2 further includes a measurement unit 24 coupled to the input of the measurement circuit 2. The measurement unit is configured to receive the input signal s(t) and output a measurement signal m(t).


Referring to FIG. 6, a first low pass filter 261 is connected downstream the first demodulator 25I, and a second low pass filter 26Q is connected downstream the second demodulator 25Q. The first demodulator 25I receives a second alternating signal s2(ωt) and the second demodulator 25Q receives a third alternating signal s2(ωt). The second and third alternating signals s2(ωt), s3(ωt) are selected such that there is a phase shift of π/2 (=90°) between these signals. The second alternating signal s2(ωt) may be in phase with the first alternating signal s1(ωt). This, however, is not mandatory. If there is a phase shift between the first signal s1(ωt) and the second signal s2(ωt) such phase shift can be considered as part of the phase shift introduced by the measurement circuit. According to one example, the second alternating signal s2(ωt) and the third alternating signal s3(ωt) have a sinusoidal waveform so that, for example, s2(ωt)=sin(ωt) and s3(ωt)=cos(ωt). In this case, output signals s25I(t), s25Q(t) of the demodulators 25I, 25Q are as follows:






s25I(t)=m(f, ts2(ωt)=m(f, t)·sin(ωt)   (18a)






s25Q(t)=m(f, ts3(ωt)=m(f, t)·cos(ωt)   (18b).


If, for example, the input current i(t) is a sinusoidal current and the input signal s(t) represents the voltage v(t) across the battery 1 as given by equation (2), the demodulator output signals s25I(t), s25Q(t) are






s25I(t)=[V0+R1·IDC+Z0·I0·sin(ωt+φ0+φ+γ)]·sin(ωt)   (19a)






s25Q(t)=C·[V0+R1·IDC+Z0·I0·sin(ωt+φ0+φ+γ)]·cos(cωt)   (19b),


where C denotes the gain introduced by the measurement unit 24 and y represents a phase shift introduced by the measurement unit. It can be assumed that the gain and phase shift introduced by measurement circuit 2 is mainly introduced by the measurement unit 24, so that γ=α and C=A if the measurement circuit 2 is the first measurement circuit 2A and γ=β and C=B if the measurement circuit is the second measurement circuit 2B.


The low pass filters 26I, 26Q are configured to filter signal components with a frequency cot and higher. Output signals s26I(t), s26Q(t), which are also referred to as inphase component VI and quadrature component VQ in the following, of these low pass filters 26I, 26Q are then given by






s26I(t)=·Z0·I0·cos(φ0+φ+γ)   (20a)






s26Q(t)=C·Z0·I0·sin(φ0+φ+γ)   (20b),


which are the real part and the imaginary part of C·e·Z0·I0·ej(φ0+φ), which is the first voltage measurement value if C=A and γ=α or the second voltage measurement value if C=B and γ=β. Equivalently, if the input signal represents the voltage across the shunt resistor, the low pass filter output signal s26Ii(t), s26Q(t) are given by






s26I(t)=R3·C·I0·cos(φ0+γ)   (21a)






s26Q(t)=R3·C·I0·sin(φ0+γ)   (21b),


which are the real part and the imaginary part of R3·C·e·I0·ej(φ0+φ), which is R3 times the first current measurement value if C=A and γ=α or R3 times the second current measurement value if C=B and γ=β.


The following examples may illustrate one or more aspects of the disclosure.


Example 1: A method, including: driving an alternating input current into a battery; measuring a voltage across the battery by a first measurement circuit to obtain a voltage measurement value; measuring a current through the battery by a second measurement circuit to obtain a current measurement value; measuring a current through the battery using the first measurement circuit to obtain a further current measurement value; and calculating an impedance of the battery based on the current measurement value, the further current measurement value, and the voltage measurement value.


Example 2: The method of example 1, wherein obtaining the voltage measurement value and the current measurement value includes measuring the voltage across the battery by the first measurement circuit and the current through the battery by the second measurement circuit at a same time.


Example 3: The method of example 2, wherein obtaining the further current measurement value includes measuring the current through the battery by the second measurement circuit before or after obtaining the voltage measurement value and the current measurement value.


Example 4: The method of any combination of examples 1 to 3, wherein obtaining the current measurement value and the further current measurement value includes measuring the current through the battery by the first measurement circuit and the current through the battery by the second measurement circuit at a same time.


Example 5: The method of example 4, wherein obtaining the voltage measurement value includes measuring the voltage across the battery by the first measurement circuit before or after obtaining the current measurement value and the further current measurement value.


Example 6: The method of any combination of examples 1 to 5, wherein calculating the impedance of the battery includes: calculating a preliminary impedance based on the voltage measurement value and the current measurement value; calculating a gain and phase error based on the current measurement value and the further current measurement value; and calculating the impedance based on the preliminary impedance and the calculated gain and phase error.


Example 7: The method of example 6, wherein calculating the preliminary impedance includes calculating a quotient of the voltage measurement value and the current measurement value, and wherein calculating the gain and phase error includes calculating a quotient of the current measurement value and the further current measurement value.


Example 8: The method of any combination of examples 1 to 7, further including: measuring the voltage across the battery by a second measurement circuit to obtain a further voltage measurement value.


Example 9: The method of example 8, wherein calculating the impedance of the battery includes: calculating a first impedance based on the voltage measurement value and the current measurement value; calculating a second impedance based on the further voltage measurement value and the further current measurement value; and calculating the impedance based on the first impedance and the second impedance.


Example 10: The method of example 9, wherein calculating the impedance based on the first impedance and the second impedance includes: calculating a product of the first impedance and the second impedance; and calculating a square root of the product.


Example 11: The method of any combination of examples 9 and 10, wherein calculating the impedance based on the first impedance and the second impedance includes calculating a mean based on the first impedance and the second impedance.


Example 12: The method of example 11, wherein calculating the mean includes calculating a mean of real parts of the first impedance and the second impedance and calculating a mean of imaginary parts of the first impedance and the second impedance.


Example 13: The method of any combination of examples 11 and 12, wherein calculating the mean includes calculating a mean of magnitudes of the first impedance and the second impedance and a mean of phases of the first impedance and the second impedance.


Example 14: An electronic circuit, including: a first input configured to be coupled to a battery; a second input configured to be coupled to a current sensor; a first measurement circuit; a second measurement circuit; a crossover switch coupled to the first input, the second input, the first measurement circuit and the second measurement circuit and configured to selectively connect the first measurement circuit with one of the first input and the second input and the second measurement circuit with one of the first input and the second input; a control and calculation circuit configured to control the crossover switch and calculate an impedance of the battery based on measurement values received from the first measurement circuit and the second measurement circuit.


Example 15: The electronic circuit of example 14, wherein the measurement values include a voltage measurement value received from the first measurement circuit, a current measurement value received from the second measurement circuit, and a further current measurement value received from the first measurement circuit.


Example 16: The electronic circuit of example 15, wherein the control and calculation circuit is configured, in a first measurement cycle, to control the crossover switch such that the first measurement circuit is coupled to the first input and the second measurement circuit is coupled to the second input, to receive the voltage measurement value from the first measurement circuit, and to receive the current measurement value from the second measurement circuit, in a second measurement cycle, to control the crossover switch such that the first measurement circuit is coupled to the second input, and to receive the further current measurement value from the first measurement circuit.


Example 17: The electronic circuit of example 16, wherein the second measurement cycle is before or after the first measurement cycle.


Example 18: The electronic circuit of any combination of examples 15 to 17, wherein the control and calculation circuit is configured, in a first measurement cycle, to control the crossover switch such that the first measurement circuit is coupled to the second input and the second measurement circuit is coupled to the second input, to receive the current measurement value from the second measurement circuit, and to receive the further current measurement value from the first measurement circuit, in a second measurement cycle, to control the crossover switch such that the first measurement circuit is coupled to the first input, and to receive the voltage measurement value from the first measurement circuit.


Example 19: The electronic circuit of example 18, wherein the second measurement cycle is before or after the first measurement cycle.


Example 20: The electronic circuit of any combination of examples 15 to 19, wherein the control and calculation circuit being configured to calculate the impedance of the battery includes the control and calculation circuit being configured: to calculate a preliminary impedance based on the voltage measurement value and the current measurement value; to calculate a gain and phase error based on the current measurement value and the further current measurement value; and to calculate the impedance based on the preliminary impedance and the calculated gain and phase error.


Example 21: The electronic circuit of example 20, wherein the control and calculation circuit being configured to calculate the preliminary impedance includes the control and calculation circuit being configured to calculate a quotient of the voltage measurement value and the current measurement value, and wherein the control and calculation circuit being configured to calculate the gain and phase error includes the control and calculation circuit being configured to calculate a quotient of the current measurement value and the further current measurement value.


Example 22: The electronic circuit of any combination of examples 15 to 21, wherein the control and calculation circuit is further configured, in the second measurement cycle, to control the crossover switch such that the second measurement circuit is coupled to the first input, and to receive a further voltage measurement value from the second measurement circuit.


Example 23: The electronic circuit of example 22, wherein the control and calculation circuit being configured to calculate the impedance includes the control and calculation circuit being configured: to calculate a first impedance based on the voltage measurement value and the current measurement value; to calculate a second impedance based on the further voltage measurement value and the further current measurement value; and to calculate the impedance based on the first impedance and the second impedance.


Example 24: The method of example 23, wherein the control and calculation circuit being configured to calculate the impedance based on the first impedance and the second impedance includes the control and calculation circuit being configured: to calculate a product of the first impedance and the second impedance; and


to calculate a square root of the product.


Example 25: The method of any combination of examples 23 and 24, wherein the control and calculation circuit being configured to calculate the impedance based on the first impedance and the second impedance comprises the control and calculation circuit being configured to calculate a mean based on the first impedance and the second impedance.


Spatially relative terms such as “under,” “below,” “lower,” “over,” “upper” and the like, are used for ease of description to explain the positioning of one element relative to a second element. These terms are intended to encompass different orientations of the device in addition to different orientations than those depicted in the figures. Further, terms such as “first,” “second” and the like, are also used to describe various elements, regions, sections, etc. and are also not intended to be limiting. Like terms refer to like elements throughout the description.


As used herein, the terms “having,” “containing,” “including,” “comprising” and the like are open ended terms that indicate the presence of stated elements or features, but do not preclude additional elements or features. The articles “a,” “an” and “the” are intended to include the plural as well as the singular, unless the context clearly indicates otherwise.


With the above range of variations and applications in mind, it should be understood that the present invention is not limited by the foregoing description, nor is it limited by the accompanying drawings. Instead, the present invention is limited only by the following claims and their legal equivalents.

Claims
  • 1. A method, comprising: driving an alternating input current into a battery;measuring a voltage across the battery by a first measurement circuit to obtain a voltage measurement value;measuring a current through the battery by a second measurement circuit to obtain a current measurement value;measuring a current through the battery using the first measurement circuit to obtain a further current measurement value; andcalculating an impedance of the battery based on the current measurement value, the further current measurement value, and the voltage measurement value.
  • 2. The method of claim 1, wherein obtaining the voltage measurement value and the current measurement value comprises measuring the voltage across the battery by the first measurement circuit and the current through the battery by the second measurement circuit at a same time.
  • 3. The method of claim 2, wherein obtaining the further current measurement value comprises measuring the current through the battery by the second measurement circuit before or after obtaining the voltage measurement value and the current measurement value.
  • 4. The method of claim 1, wherein obtaining the current measurement value and the further current measurement value comprises measuring the current through the battery by the first measurement circuit and the current through the battery by the second measurement circuit at a same time.
  • 5. The method of claim 4, wherein obtaining the voltage measurement value comprises measuring the voltage across the battery by the first measurement circuit before or after obtaining the current measurement value and the further current measurement value.
  • 6. The method of claim 1, wherein calculating the impedance of the battery comprises: calculating a preliminary impedance based on the voltage measurement value and the current measurement value;calculating a gain and phase error based on the current measurement value and the further current measurement value; andcalculating the impedance based on the preliminary impedance and the calculated gain and phase error.
  • 7. The method of claim 6, wherein calculating the preliminary impedance comprises calculating a quotient of the voltage measurement value and the current measurement value, andwherein calculating the gain and phase error comprises calculating a quotient of the current measurement value and the further current measurement value.
  • 8. The method of claim 1, further comprising: measuring the voltage across the battery by a second measurement circuit to obtain a further voltage measurement value.
  • 9. The method of claim 8, wherein calculating the impedance of the battery comprises: calculating a first impedance based on the voltage measurement value and the current measurement value;calculating a second impedance based on the further voltage measurement value and the further current measurement value; andcalculating the impedance based on the first impedance and the second impedance.
  • 10. The method of claim 9, wherein calculating the impedance based on the first impedance and the second impedance comprises: calculating a product of the first impedance and the second impedance; andcalculating a square root of the product.
  • 11. The method of claim 9, wherein calculating the impedance based on the first impedance and the second impedance comprises calculating a mean based on the first impedance and the second impedance.
  • 12. The method of claim 11, wherein calculating the mean comprises calculating a mean of real parts of the first impedance and the second impedance and calculating a mean of imaginary parts of the first impedance and the second impedance.
  • 13. The method of claim 11, wherein calculating the mean comprises calculating a mean of magnitudes of the first impedance and the second impedance and a mean of phases of the first impedance and the second impedance.
  • 14. An electronic circuit, comprising: a first input configured to be coupled to a battery;a second input configured to be coupled to a current sensor;a first measurement circuit;a second measurement circuit;a crossover switch coupled to the first input, the second input, the first measurement circuit and the second measurement circuit and configured to selectively connect the first measurement circuit with one of the first input and the second input and the second measurement circuit with one of the first input and the second input;a control and calculation circuit configured to control the crossover switch and calculate an impedance of the battery based on measurement values received from the first measurement circuit and the second measurement circuit.
  • 15. The electronic circuit of claim 14, wherein the measurement values comprise a voltage measurement value received from the first measurement circuit, a current measurement value received from the second measurement circuit, and a further current measurement value received from the first measurement circuit.
  • 16. The electronic circuit of claim 15, wherein the control and calculation circuit is configured, in a first measurement cycle, to control the crossover switch such that the first measurement circuit is coupled to the first input and the second measurement circuit is coupled to the second input, to receive the voltage measurement value from the first measurement circuit, and to receive the current measurement value from the second measurement circuit,in a second measurement cycle, to control the crossover switch such that the first measurement circuit is coupled to the second input, and to receive the further current measurement value from the first measurement circuit.
  • 17. The electronic circuit of claim 16, wherein the second measurement cycle is before or after the first measurement cycle.
  • 18. The electronic circuit of claim 15, wherein the control and calculation circuit is configured, in a first measurement cycle, to control the crossover switch such that the first measurement circuit is coupled to the second input and the second measurement circuit is coupled to the second input, to receive the current measurement value from the second measurement circuit, and to receive the further current measurement value from the first measurement circuit,in a second measurement cycle, to control the crossover switch such that the first measurement circuit is coupled to the first input, and to receive the voltage measurement value from the first measurement circuit.
  • 19. The electronic circuit of claim 18, wherein the second measurement cycle is before or after the first measurement cycle.
  • 20. The electronic circuit of claim 15, wherein the control and calculation circuit being configured to calculate the impedance of the battery comprises the control and calculation circuit being configured: to calculate a preliminary impedance based on the voltage measurement value and the current measurement value;to calculate a gain and phase error based on the current measurement value and the further current measurement value; andto calculate the impedance based on the preliminary impedance and the calculated gain and phase error.
  • 21. The electronic circuit of claim 20, wherein the control and calculation circuit being configured to calculate the preliminary impedance comprises the control and calculation circuit being configured to calculate a quotient of the voltage measurement value and the current measurement value, andwherein the control and calculation circuit being configured to calculate the gain and phase error comprises the control and calculation circuit being configured to calculate a quotient of the current measurement value and the further current measurement value.
  • 22. The electronic circuit of claim 15, wherein the control and calculation circuit is further configured, in the second measurement cycle, to control the crossover switch such that the second measurement circuit is coupled to the first input, and to receive a further voltage measurement value from the second measurement circuit.
  • 23. The electronic circuit of claim 22, wherein the control and calculation circuit being configured to calculate the impedance comprises the control and calculation circuit being configured: to calculate a first impedance based on the voltage measurement value and the current measurement value;to calculate a second impedance based on the further voltage measurement value and the further current measurement value; andto calculate the impedance based on the first impedance and the second impedance.
  • 24. The method of claim 23, wherein the control and calculation circuit being configured to calculate the impedance based on the first impedance and the second impedance comprises the control and calculation circuit being configured: to calculate a product of the first impedance and the second impedance; andto calculate a square root of the product.
  • 25. The method of claim 23, wherein the control and calculation circuit being configured to calculate the impedance based on the first impedance and the second impedance comprises the control and calculation circuit being configured to calculate a mean based on the first impedance and the second impedance.