Embodiments described herein relate to methods and apparatus for estimating a temperature of a transducer. In particular, the estimate of the temperature of the transducer may be utilized to adjust the input signal to the transducer.
Mobile platforms are continually demanding better performance from their transducers, such as louder audio and better sound quality from their sound systems and better haptics performance. The transducers (e.g., including but not limited to speakers and haptics) in these systems can be damaged when they are pushed to their limits. One common failure mode for over-driven transducers (e.g. speakers/haptics) is thermal damage. As an example, for speakers, if the voice coil exceeds a maximum temperature, the glues that hold the voice coil together and connect it to the diaphragm can melt and cause irreparable damage. Speaker protection algorithms are commonly used to drive the speaker to its maximum volume while ensuring it does not exceed its rated limits.
The input signal AIn comprising the pilot tone is routed to the amplifier 104 that drives the speaker. The amplifier 104 also provides a measurement of the speaker voltage, Vmon, and current, Imon. The Imon and Vmon signals may be used to determine a measured temperature, Tm, in temperature measure block 105 which may be used to control the amount of attenuation applied by the thermal limiter 101 to the input signal AIN.
As mentioned above, the pilot tone may be chosen at the frequency to ensure the calculation of the DC resistance is sufficiently accurate. In addition, the pilot tone may be selected to be as inaudible as possible, since it may add distortion to the outgoing audio. Typically, these constraints lead the designer to use a low frequency (e.g., <100 Hz), low level (e.g., <30 dB) pilot tone for speakers.
Market and industry trends are making it more difficult to design thermal protection algorithms that provide high quality output while protecting transducer. These difficulties may be understood by visualizing the temperature protection algorithm as a linearized control loop, as illustrated in
The design of the low pass filter used to estimate the temperature, in
Lower amplitudes are being requested to reduce the amount of direct or intermodulation distortion introduced by the pilot tone frequency. A lower amplitude pilot level also increases the usable excursion range of transducer, for example, leading to a potential increase in sound pressure level (SPL) or acceleration for a haptic transducer. However, lower amplitude pilot tones decrease the signal-to-noise ratio (SNR) of the measured temperature Tm. Such an SNR decrease may cause an effective increase in the Measurement Noise illustrated in
A demand for louder output levels and more dynamic range have driven a new generation of boosted amplifiers with increased voltage outputs. Such increased voltage outputs correlate to the speaker heating up faster, making the system more sensitive to delays from the low pass filter 302. The reason for the higher sensitivity to delays is that the higher system gain 304 in the forward path causes a reduction in phase margin.
There is also a demand for smaller integrated circuits. The size and cost of Analog-to-Digital converters (ADCs) can be reduced by reducing the requirements on their resolution. However, a lower resolution ADC will increase the measurement noise on the temperature estimate Tm.
According to some embodiments there is therefore provided a method, in a thermal model based estimator, for estimating a temperature of a transducer. The method comprises receiving a first signal wherein the first signal is representative of an impedance across the transducer; receiving an indication of a current across the transducer; determining an estimated thermal power based on the indication of the current and an estimated temperature signal, determining, based on the estimated thermal power, the estimated temperature signal using a thermal model of the transducer comprising states defined by a thermal state vector; comparing the first signal with a second signal derived from the estimated temperature signal; updating the thermal state vector of the thermal model based on the comparison; and outputting the estimated temperature signal.
A thermal model based estimator, for estimating a temperature of a transducer. The thermal model based estimator comprises a first input configured to receive a first signal wherein the first signal is representative of an impedance across the transducer; a second input configured to receive an indication of a current across the transducer; a determination block configured to determine an estimated thermal power based on the indication of the current and an estimated temperature signal, a thermal model block configured to determine, based on the estimated thermal power, the estimated temperature signal using a thermal model of the transducer comprising states defined by a thermal state vector; a comparison block configured to compare the first signal with a second signal derived from the estimated temperature signal, and update the thermal state vector of the thermal model based on the comparison; and an output configured to output the estimated temperature signal.
For a better understanding of the embodiments of the present disclosure, and to show how it may be put into effect, reference will now be made, by way of example only, to the accompanying drawings, in which:
The description below sets forth example embodiments according to this disclosure. Further example embodiments and implementations will be apparent to those having ordinary skill in the art. Further, those having ordinary skill in the art will recognize that various equivalent techniques may be applied in lieu of, or in conjunction with, the embodiment discussed below, and all such equivalents should be deemed as being encompassed by the present disclosure.
As previously discussed, there are difficulties in designing a low pass filter for the measured temperature that achieves both good noise immunity and an acceptable phase margin. Embodiments of the present disclosure provide systems and methods for estimating a temperature of a transducer. In particular, a thermal model based estimator is used, where a current state of the system, i.e. the system taking the input audio signal to the transducer, is estimated based on the values of previous states in the system. This estimate of a current state, for example the current value of the voltage across the transducer, or the current value of the temperature of the transducer, is compared to a measurement to adjust the thermal model and subsequently generates an output estimated temperature.
In step 501, the thermal model based estimator receives a first signal wherein the first signal is representative of an impedance across the transducer.
In some examples, the first signal comprises a measured temperature of the transducer Tm, which may be filtered by a first low pass filter as illustrated in
In some examples, the first signal comprises a measured voltage VMON across the transducer, which may be measured by an amplifier as illustrated in
In step 502, the thermal model based estimator receives an indication of a current across the transducer. The indication of the current, IMON across the transducer may be measured by an amplifier as illustrated in
In step 503, the thermal model based estimator determines an estimated thermal power Pthe based on the indication of the current IMON and an estimated temperature signal TE. The estimated temperature signal TE is the signal that is output by the thermal model based estimator as the estimated temperature. However, this current estimate of the temperature is also used to adjust the model in the generation of the next samples of the estimated temperature TE.
In step 504, the thermal model based estimator determines, based on the estimated thermal power Pthe, the estimated temperature signal TE using a thermal model of the transducer comprising states defined by a thermal state vector. The thermal state vector comprises the internal sates of a transducer thermal model which are configured to estimate the temperature of the transducer TE based on the estimated thermal power Pthe.
In step 505, the thermal model based estimator compares the first signal with a second signal derived from the estimated temperature signal TE. For example, in embodiments where the first signal comprises a measured temperature of the transducer, the second signal may comprise an output from a second low pass filter configured to filter the estimated temperature signal TE. In embodiments where the first signal comprises a measured voltage across the transducer, the second signal may comprise an estimate of the voltage Ve across the transducer, which may be estimated based on the indication of the current IMON and the estimated temperature signal TE.
In step 506, the thermal model based estimator updates the thermal state vector of the thermal model based on the comparison.
In step 507 the thermal model based estimator outputs the estimated temperature signal TE. It will be appreciated that the output estimated temperature signal may be input into a thermal limiter, such as the thermal limiter 101 of
A thermal model based estimator as described above with reference to
In some examples, the thermal model based estimator comprises a Kalman filter. The Kalman filter is a statistically optimal algorithm for generating a linear estimate of an unmeasurable signal, from a set of measured signals. It uses a system model to predict what the unmeasurable signal is, and then corrects that model based on the measured values.
Embodiments described herein provide a thermal model based estimator, and for example, a Kalman filter, which may be implemented to achieve an improved thermal limiter response that may be used to protect a transducer (e.g., speaker, haptic device, etc.). It will however be appreciated that the thermal model based estimator may be implemented in many other ways. For example, the thermal based estimator may alternatively be an observer, for example, a Leuenberger observer or a sliding mode observer. It will also be appreciated that the thermal model based estimator estimates an internal state of the system based on previous states of the system in order to generate an estimate temperature signal TE.
In this
The output of the thermal model based estimator 600 is an estimated temperature signal, TE.
The thermal model based estimator 600 uses internal thermal and system models to anticipate rapid temperature changes as well as to optimally filter out noise from the estimated temperature signal TE.
The thermal model based estimator 600 uses the estimated thermal power Pthe, a thermal model of the transducer 701 and a process for the measured temperature Tm to provide the estimated temperature signal TE. The top signal path of
The thermal model based estimator 600, which in this case is a Kalman filter, comprises thermal model 701 and a second low pass filter 702 that may mirror the speaker thermal response 301 and the first low pass filter 302 used to generate the measured temperature Tm.
The low pass filter 702 may operate as the estimated temperature process model for example as illustrated in
The estimated measured temperature is then compared to the measured temperature, Tm, to form an error signal, e. In other words, the estimated measured temperature (Tme) may be subtracted from the estimated measured temperature (Tm) to provide an error signal e.
The error signal e may then be used to adjust the states of the thermal state vector of the thermal model 701. The error signal e may also be used to adjust the states of a filter state vector, describing the second low pass filter 702. The error signal e represents the accuracy of the transducer thermal model and the second low pass filter in mirroring the speaker thermal response 301 and the first low pass filter 302 at the present time. As the first low pass filter 302 and second low pass filter 702 introduce the same delay (because they provide the same filtering), the aim is for the measured temperature and the estimated measured temperature to be the same. If this occurs, the output of the transducer thermal model 701 will be a good estimate of the actual temperature of the speaker without any delay.
Therefore, if the error signal e is large, the transducer thermal model 701 in the thermal model based estimator 600 may be inaccurate and may be corrected. The transducer thermal model 701 may be corrected by multiplying the error e by a set of gains Ki to generate correction factors, and these correction factors may be added to the internal states of a thermal state vector describing the transducer thermal model 701. Equivalently, the second filtering block 702 may also be an inaccurate model, and similarly the correction factors may be added to the internal states of the filter state vector describing the second filtering block 702.
This internal feedback process is constantly working to reduce the error signal e and keeps the Kalman filter's internal models in good alignment with the real system. The estimated temperature signal TE is output from the transducer thermal model 701 and used by the thermal limiter 303. As the transducer thermal model 701 introduces minimal delay (especially compared to the temperature measurement block illustrated in
The transducer thermal model 701 used in
The transducer thermal model 701 is driven by the estimated thermal power Pthe into the transducer (e.g., speaker, haptic, etc.). The thermal power into the transducer may not be directly measured. Instead, it may be estimated as:
Pthe=IMON2Re(TE)
where Re is the estimated transducer resistance as a function of the estimated temperature signal TE, and IMON is the measured current. In
In the following, it is shown how the Kalman filter 600 from
Equation (1) shows the state update equation for the thermal model and low pass filter:
xi+1=F·xi+B·Pthei+Ki·(Tmi−Tmei)
where the “i” variable represents the current time index. The total state vector,
contains the thermal state vector xth and the filter state vector xLPF. The model is driven by the estimated input power Pthei, which is calculated in the previous step. The states are updated according to the F and B matrices where
The F and B matrices are partitioned into the thermal model components Fth and Bth, and low pass filter component FLPF. The Fc matrix connects the thermal model states to the low pass filter. The Kalman gain Ki multiplies the error between the measured temperature Tmi and the Kalman filter's estimate of the measured temperature Tmei. The estimate of the measured temperature Tmei may be calculated from the current state using the following equation:
Tmet=[0HLPF]·xi
H=[0HLPF]
The estimated thermal power Pthei may be calculated from:
TEi=[Hth0]·xi
Rei=[TEi−T0]=R0α+Rc
where TEi is the current value of the estimated temperature signal, R0 is the calibration resistance of the transducer, T0 is the calibration temperature of the transducer, α is the temperature coefficient of the transducer, Rei is the current estimate of the resistance of the transducer, and IMON is the measured transducer current from the amplifier.
In the above equations Fth, Bth and Hth along with the thermal state vector xth, all are elements of the thermal state space model, which may be derived from any suitable thermal model. Similarly, FLPF, HLPF and the filter state vector xLPF comprise the state space model of the second low pass filter 702. In both cases, these models are sub-matrices of suitable dimension and may be derived using standard system modelling techniques. The Kalman filter coefficients may be calculated based on a Kalman gain update. For example:
Ki=F·Pi·H*·(R0+H·Pi·H*)−1
Pi+1=F·Pi·F*+G·Q·G*−Ki·(R0+H·Pi·H*)·Ki*;
where the F and H matrices are defined above. The G, Q, and Rv matrices may be chosen by the designer to model the noise in the system. The Pi matrix is the state covariance matrix, and its initial value P0 may also be suitably chosen by the designer. These equations only illustrate one form of the Kalman gain update equation. Other forms may have precision or computational advantages in different situations. Also, the Ki vector of Kalman gains may change over time. The Kalman Filter coefficients may be calculated offline, and the resulting Kalman values stored in memory. Alternatively, the equations may be implemented online to save memory at the cost of computational complexity.
In this example, the temperature measurement block may not be needed. The thermal model based estimator 902 operates directly on low pass filtered versions of the measured current IMON and measured voltage VMON signals to form the estimated temperature signal TE. In other words, the first signal comprises the measured voltage signal VMON or a low pass filtered version of the measured voltage signal VMON.
By removing the temperature measurement block, the overall algorithm may be simplified. Additionally, there is no need to model the low pass filter effects of the temperature measurement block in the thermal model based estimator 902. This simplification lowers the order of the thermal model based estimator 902 and simplifies the calculations.
However, a low pass filter 901 may still be needed to filter IMON and VMON to filter out frequencies where transducer impedance is larger than the estimated transducer resistance Re. Without the low pass filters, signal content at higher frequencies may cause errors in the adaptation of the estimated transducer resistance Re. If necessary, the effects of these low pass filters may be modelled in the thermal model based estimator 902 (not shown in figure), but the cut-off frequency in the low pass filter 901 may be high enough that this may be unnecessary. The thermal model based estimator 902 (e.g., such as a Kalman Filter) uses the low pass filtered voltage and the low pass filtered current to provide the estimated temperature signal TE.
Similarly to
Similar to
The voltage estimator 903 therefore takes the estimated coil resistance Re(TE) and multiples it by the measure current signal IMON to form an estimate of voltage Ve.
The estimated voltage Ve may then be compared to the measured voltage VMON. In other words, the estimated voltage Ve may be subtracted from the measured voltage output from the low pass filter 901 to generate an error signal, e.
The error signal e may then be used to adjust the state of the thermal state vector of the thermal model 701. In this example, the Kalman filter may be acting more like a recursive least squares estimator (RLS) of the estimated transducer resistance Re rather than a filter on the measured temperature Tm, as was the case in
The mathematical implementation of the Kalman filter 902 may be similar to the earlier equations but involves lower order terms because the low pass filter is not required. The state update equation may be written as:
xi+1=[Fth]·[xth]+[Bth]·Pthei+Ki·(VMONi−Vei)
where, VMONi is the measured voltage and Vei is the Kalman filter estimate of the voltage given by:
Vei=[f(IMONi)]·xi+g(IMONi),
Hi=[f(IMONi)]
where IMONi is the measured current, and the functions f(IMONi) and g(IMONi) apply the appropriate linear transformation to state vector xi to extract the estimated resistance Re and multiply it by IMON.
The estimated thermal power Pthei may be calculated as described above. The Kalman filter coefficients may also be calculated as described above. In this case, Hi varies with time, and therefore, the Kalman gains may be calculated online.
Also, in general, and applicable to all embodiments above, the thermal model based estimator may comprise one of the following: Kalman filter, Leuenberger observer, and sliding mode observer, and the error signal may be used in one of the following methods: Kalman filter methodology, Leuenberger observer methodology, and sliding mode observer methodology.
The thermal model based estimator 1100 comprises a first input 1101 configured to receive a first signal S1 wherein the first signal is representative of an impedance across the transducer. The thermal model based estimator 1100 further comprises a second input 1102 configured to receive an indication of a current across the transducer.
A determination block 1103 is configured to determine an estimated thermal power Pthe based on the indication of the current IMON and an estimated temperature signal TE.
A thermal model block 1104 is configured to determine, based on the estimated thermal power, the estimated temperature signal TE using a thermal model of the transducer comprising states defined by a thermal state vector.
A comparison block 1105 is configured to compare the first signal St with a second signal S2 derived from the estimated temperature signal TE, and update the thermal state vector of the thermal model based on the comparison. The second signal S2 may be derived from the estimated temperature signal TE by a processing block 1106.
The thermal model based estimator then further comprises an output 1106 configured to output the estimated temperature signal. Small pilot tone levels, large amplifier gains, and low resolution ADCs make it difficult to design a thermal protection control loop with adequate noise rejection and ample phase margin. Embodiments disclosed herein make use of a thermal model based estimator, for example a Kalman filter, to alleviate these performance issues. The thermal model based estimator may use a model of the thermal system and a model of any applied low pass filtering in the system to provide a low latency, low noise estimate of the coil temperature in a statistically optimal way.
It should be understood-especially by those having ordinary skill in the art with the benefit of this disclosure that the various operations described herein, particularly in connection with the figures, may be implemented by other circuitry or other hardware components. The order in which each operation of a given method is performed may be changed, and various elements of the systems illustrated herein may be added, reordered, combined, omitted, modified, etc. It is intended that this disclosure embrace all such modifications and changes and, accordingly, the above description should be regarded in an illustrative rather than a restrictive sense. Similarly, although this disclosure makes reference to specific embodiments, certain modifications and changes can be made to those embodiments without departing from the scope and coverage of this disclosure. Moreover, any benefits, advantages, or solutions to problems that are described herein with regard to specific embodiments are not intended to be construed as a critical, required, or essential feature or element.
Further embodiments likewise, with the benefit of this disclosure, will be apparent to those having ordinary skill in the art, and such embodiments should be deemed as being encompassed herein.
Number | Name | Date | Kind |
---|---|---|---|
20090257599 | Sand Jensen | Oct 2009 | A1 |
20110194705 | Gautama | Aug 2011 | A1 |
20140169571 | Polleros | Jun 2014 | A1 |
20150304772 | Risberg | Oct 2015 | A1 |
20170026767 | Macours | Jan 2017 | A1 |
Entry |
---|
Nise, Norman S., Control Systems Engineering, Second Edition, Menlo Park: Addison-Wesley Publishing Company, 1995 pp. 594-596. |
Number | Date | Country | |
---|---|---|---|
20190110145 A1 | Apr 2019 | US |
Number | Date | Country | |
---|---|---|---|
62569769 | Oct 2017 | US |