RESONANT TRACKING OF AN ELECTROMAGNETIC LOAD
20200314969 ยท 2020-10-01
Assignee
Inventors
Cpc classification
H02M7/48
ELECTRICITY
B06B1/045
PERFORMING OPERATIONS; TRANSPORTING
G08B6/00
PHYSICS
International classification
G08B6/00
PHYSICS
Abstract
A resonant frequency tracker for driving an electromagnetic load with a driving signal may include a signal generator configured to generate a waveform signal at a driving frequency for driving an electromagnetic load and control circuitry. The control circuitry may be configured to, during driving of the electromagnetic load by the waveform signal or a signal derived therefrom, receive a current signal representative of a current associated with the electromagnetic load and a second signal representative of a second quantity associated with the electromagnetic load, the second quantity comprising one of a voltage associated with the electromagnetic load or a back electromotive force of the electromagnetic load. The control circuitry may be further configured to calculate a phase difference between the current signal and the second signal, determine a frequency error of the waveform signal based on the phase difference, and control the driving frequency based on the frequency error.
Claims
1. A resonant frequency tracker for driving an electromagnetic load with a driving signal, the resonance-frequency tracker comprising: a signal generator configured to generate a waveform signal at a driving frequency for driving an electromagnetic load; and control circuitry configured to: during driving of the electromagnetic load by the waveform signal or a signal derived therefrom, receive: a current signal representative of a current associated with the electromagnetic load; and a second signal representative of a second quantity associated with the electromagnetic load, the second quantity comprising one of a voltage associated with the electromagnetic load or a back electromotive force of the electromagnetic load; calculate a phase difference between the current signal and the second signal; determine a frequency error of the waveform signal based on the phase difference; and control the driving frequency based on the frequency error.
2. The resonant frequency tracker of claim 1, wherein the electromagnetic load comprises a haptic transducer.
3. The resonant frequency tracker of claim 1, wherein the electromagnetic load comprises a linear resonant actuator.
4. The resonant frequency tracker of claim 1, wherein the control circuitry is configured to calculate the phase difference by: demodulating the current signal based on the drive frequency to determine a relative phase of the current signal; demodulating the second signal based on the drive frequency to determine a relative phase of the second signal; and calculating the phase difference to be a difference between the relative phase of the second signal and the relative phase of the current signal.
5. The resonant frequency tracker of claim 1, wherein: the second quantity is the back electromotive force of the electromagnetic load; and the control circuitry is further configured to estimate the back electromotive force based on the voltage associated with the electromagnetic load, the current associated with the electromagnetic load, and a coil impedance associated with the electromagnetic load.
6. The resonant frequency tracker of claim 1, wherein the control circuitry is configured to control the driving frequency in order to minimize the frequency error.
7. The resonant frequency tracker of claim 1, wherein the control circuitry is configured to control the driving frequency in order to minimize a difference between the frequency error and a predetermined frequency offset.
8. The resonant frequency tracker of claim 1, wherein the control circuity is further configured to determine a frequency error of the waveform signal based on estimates of an equivalent mass of the electromagnetic load and an impedance at resonance of the electromagnetic load.
9. The resonant frequency tracker of claim 1, wherein the control circuity is further configured to implement a closed loop control system having a loop filter in order to determine the frequency error.
10. The resonant frequency tracker of claim 9, wherein the control circuitry is further configured to provide an initial drive frequency as a first input to the loop filter to cause the loop filter at its initiation to generate the waveform signal having the drive frequency equal to the initial drive frequency.
11. The resonant frequency tracker of claim 1, wherein: the control circuitry is further configured to integrate the drive frequency to generate a driving phase for the waveform signal; and the signal generator is further configured to generate the waveform signal having the driving phase.
12. The resonant frequency tracker of claim 1, wherein: the control circuitry is further configured to modulate an amplitude of the driving signal independently of tracking of the resonance frequency of the electromagnetic load; and the signal generator is further configured to generate the waveform signal having the amplitude as modulated by the control circuitry.
13. A method comprising: generating a waveform signal at a driving frequency for driving an electromagnetic load; during driving of the electromagnetic load by the waveform signal or a signal derived therefrom, receiving: a current signal representative of a current associated with the electromagnetic load; and a second signal representative of a second quantity associated with the electromagnetic load, the second quantity comprising one of a voltage associated with the electromagnetic load or a back electromotive force of the electromagnetic load; calculating a phase difference between the current signal and the second signal; determining a frequency error of the waveform signal based on the phase difference; and controlling the driving frequency based on the frequency error.
14. The method of claim 13, wherein the electromagnetic load comprises a haptic transducer.
15. The method of claim 13, wherein the electromagnetic load comprises a linear resonant actuator.
16. The method of claim 13, further comprising calculating the phase difference by: demodulating the current signal based on the drive frequency to determine a relative phase of the current signal; demodulating the second signal based on the drive frequency to determine a relative phase of the second signal; and calculating the phase difference to be a difference between the relative phase of the second signal and the relative phase of the current signal.
17. The method of claim 13, wherein: the second quantity is the back electromotive force of the electromagnetic load; and the method further comprises estimating the back electromotive force based on the voltage associated with the electromagnetic load, the current associated with the electromagnetic load, and a coil impedance associated with the electromagnetic load.
18. The method of claim 13, further comprising controlling the driving frequency in order to minimize the frequency error.
19. The method of claim 13, further comprising controlling the driving frequency in order to minimize a difference between the frequency error and a predetermined frequency offset.
20. The method of claim 13, further comprising determining a frequency error of the waveform signal based on estimates of an equivalent mass of the electromagnetic load and an impedance at resonance of the electromagnetic load.
21. The resonant frequency tracker of claim 13, further comprising implementing a closed loop control system having a loop filter in order to determine the frequency error.
22. The method of claim 21, further comprising providing an initial drive frequency as a first input to the loop filter to cause the loop filter at its initiation to generate the waveform signal having the drive frequency equal to the initial drive frequency.
23. The method of claim 13, further comprising: integrating the drive frequency to generate a driving phase for the waveform signal; and generating the waveform signal having the driving phase.
24. The method of claim 13, wherein: further comprising modulating an amplitude of the driving signal independently of tracking of the resonance frequency of the electromagnetic load; and generating the waveform signal having the amplitude as modulated by the control circuitry.
25. A host device comprising: an electromagnetic load; and a resonant frequency tracker for driving the electromagnetic load with a driving signal, the resonance-frequency tracker comprising: a signal generator configured to generate a waveform signal at a driving frequency for driving an electromagnetic load; and control circuitry configured to: during driving of the electromagnetic load by the waveform signal or a signal derived therefrom, receive: a current signal representative of a current associated with the electromagnetic load; and a second signal representative of a second quantity associated with the electromagnetic load, the second quantity comprising one of a voltage associated with the electromagnetic load or a back electromotive force of the electromagnetic load; calculate a phase difference between the current signal and the second signal; determine a frequency error of the waveform signal based on the phase difference; and control the driving frequency based on the frequency error.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0017] A more complete understanding of the present embodiments and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:
[0018]
[0019]
[0020]
[0021]
DETAILED DESCRIPTION
[0022] 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.
[0023] Various electronic devices or smart devices may have transducers, speakers, and acoustic output transducers, for example any transducer for converting a suitable electrical driving signal into an acoustic output such as a sonic pressure wave or mechanical vibration. For example, many electronic devices may include one or more speakers or loudspeakers for sound generation, for example, for playback of audio content, voice communications and/or for providing audible notifications.
[0024] Such speakers or loudspeakers may comprise an electromagnetic actuator, for example a voice coil motor, which is mechanically coupled to a flexible diaphragm, for example a conventional loudspeaker cone, or which is mechanically coupled to a surface of a device, for example the glass screen of a mobile device. Some electronic devices may also include acoustic output transducers capable of generating ultrasonic waves, for example for use in proximity detection type applications and/or machine-to-machine communication.
[0025] Many electronic devices may additionally or alternatively include more specialized acoustic output transducers, for example, haptic transducers, tailored for generating vibrations for haptic control feedback or notifications to a user. Additionally or alternatively an electronic device may have a connector, e.g., a socket, for making a removable mating connection with a corresponding connector of an accessory apparatus and may be arranged to provide a driving signal to the connector so as to drive a transducer, of one or more of the types mentioned above, of the accessory apparatus when connected. Such an electronic device will thus comprise driving circuitry for driving the transducer of the host device or connected accessory with a suitable driving signal. For acoustic or haptic transducers, the driving signal will generally be an analog time varying voltage signal, for example, a time varying waveform.
[0026] As previously mentioned, driving a haptic transducer at resonance frequency may be useful for some types of haptic application.
[0027] Referring to
V.sub.B(t)=Bl.Math.u(t) (2)
[0028] Whether or not the driving signal V(t) is at the resonance frequency of the haptic transducer may be determined from a comparison between the back-EMF, V.sub.B(t) in the haptic transducer, and the terminal voltage, V.sub.T(t). For example, if the phase of V.sub.B(t) is lagging or leading the terminal voltage V.sub.T(t), the driving signal V(t) may be adjusted such that the phase of V.sub.B(t) is in line with the phase of V.sub.T(t).
[0029] In general, the back EMF voltage V.sub.B(t) may not be directly measured from outside of the haptic transducer. However, the terminal voltage V.sub.T(t) measured at the terminals of the haptic transducer, may be related to V.sub.B(t) by:
where the parameters are defined as described with reference to
[0030] The haptic transducer terminal voltage itself may only therefore approximate the back-EMF voltage V.sub.B(t) at times when the current I(t) has levels that are very close to zero, and when the driving voltage V(t) is also close to zero. In other words:
V.sub.T(t)V.sub.B(t)(4)
when
V(t).fwdarw.0, and (5)
I(t).fwdarw.0. (6)
[0031] From
V.sub.T(t)=V(t)Ro.Math.I(t)(7)
which further implies that, even at zero-crossings of the driving voltage V(t), the usually very small playback output impedance Ro of the amplifier may be short-circuiting the terminal and making the level of measurable terminal voltage V.sub.T(t) too low to be sensed accurately, as shown by:
V.sub.B(t)V.sub.T(t)=V(t)Ro.Math.I(t)0, if Ro1 (8)
[0032] This difficulty in sensing the terminal voltage V.sub.T(t) close to zero-crossings means that the amplifier may need to be switched into a high impedance mode Ro.fwdarw.0 quickly during zero-crossings of the driving signal (e.g., tri-stating its output);
[0033] otherwise, the level of terminal voltage V.sub.T(t)V.sub.B(t) may be too low to be sensed with acceptable accuracy.
[0034] Measuring the back-EMF voltage V.sub.B(t) across the terminals of the haptic transducer may therefore only allow for sensing of the back-EMF voltage V.sub.B(t) during zero-crossings of the terminal voltage. Furthermore, it may require extra amplifier hardware designs that switch the driving amplifier into a high-impedance mode during the zero-crossings, in order for the back-EMF voltage to be sensed with appropriate accuracy, because the voltage level across the terminals of the haptic transducer may be reduced if the impedance of the amplifier is not high enough.
[0035]
[0036] An electromagnetic load such as an LRA may be characterized by its impedance Z.sub.Lra as seen as the sum of a coil impedance Z.sub.coil and a mechanical impedance Z.sub.mech:
Z.sub.Lra=Z.sub.coil+Z.sub.mech (9)
[0037] Coil impedance Z.sub.coil may in turn comprise a direct current (DC) resistance Re in series with an inductance Le:
Z.sub.coil=Re+sLe (10)
[0038] Mechanical impedance Z.sub.mech may be defined by three parameters including a resistance at resonance R.sub.ES, an angular resonant frequency .sub.0 (e.g., .sub.0=2f.sub.0), and a quality factor q. Or equivalently, mechanical impedance Z.sub.mech may be defined by three parameters including the resistance at resonance R.sub.ES, a capacitance C.sub.MES representing an electrical capacitance representative of an equivalent moving mass M of the spring system of haptic transducer 301, and inductance L.sub.CES representative of a compliance C of the spring system. The relationship among these quantities may be given by the following equations, in which s is the Laplace transform variable:
[0039] At resonance, mechanical impedance Z.sub.mech may be reduced to resistance at resonance R.sub.ES and the total impedance Z.sub.Lra may equal the sum of resistance Re and resistance at resonance R.sub.ES. Thus, at resonance, a back-EMF V.sub.B(t) and current I(t) through haptic transducer 301 may be in phase, and if inductance Le is small, the current I(t) and terminal voltage V.sub.T(t) across the haptic transducer 301 may also be approximately in phase. If haptic transducer 301 is driven with a driving voltage v(t) near resonance (but not at resonance), the phase difference between terminal voltage V.sub.T(t) and current I(t) (or back-EMF V.sub.B(t) and current I(t)), may vary linearly with the frequency offset from resonance.
[0040] Such frequency offset or frequency error f.sub.err from resonance frequency error f.sub.0 may be related to a phase error .sub.err between back-EMF V.sub.B(t) and current I(t) by one of the following relationships:
[0041] In some instances, compliance C and resistance at resonance R.sub.ES may be estimated using offline testing and characterization. In addition, back-EMF voltage V.sub.B(t) may be estimated according to equation (3) which may be rearranged as:
[0042] The phases of current I(t), terminal voltage V.sub.T(t), or the estimate of back-EMF V.sub.B(t) may be estimated by demodulating these various signals, and a phase error .sub.err may be given as a difference between back-EMF V.sub.B(t) and current I(t). Using either of equations (12) or (13), phase error .sub.err may be converted into frequency error f.sub.err.
[0043] Thus, turning to the components shown in
[0044] Responsive to driving signal V(t), a sensed terminal voltage V.sub.T(t) of haptic transducer 301 may be converted to a digital representation by a first analog-to-digital converter (ADC) 303. Similarly, sensed current I(t) may be converted to a digital representation by a second ADC 304. Current I(t) may be sensed across a shunt resistor 302 having resistance Rs coupled to a terminal of haptic transducer 301. The terminal voltage V.sub.T(t) may be sensed by a terminal voltage sensing block 307, for example a volt meter.
[0045] As shown in
[0046] A first demodulator 310a may demodulate estimated back-EMF voltage V.sub.B(t) using a carrier with known frequency (e.g., a driving frequency f of driving signal V(t)) to obtain its phase .sub.V.sub.
[0047] As shown in
[0048] Turning again to
[0049] A combiner 316 may subtract a frequency offset f.sub.OFFSET (described in greater detail below) from frequency error f.sub.err to generate modified frequency error f.sub.err. Loop filter 318 may in turn perform loop filtering to generate a drive frequency f for haptic waveform signal x(t) towards resonance frequency f.sub.0 in order to minimize modified frequency error f.sub.err. An integrator 320 may integrate drive frequency f to produce a phase for haptic waveform signal x(t).
[0050] As also shown in
[0051] A signal generator 324 may generate haptic waveform signal x(t) based on drive frequency f, phase , and amplitude signal a (e.g., x(t)=a sin(2f+)).
[0052] When loop filter 318 has settled, drive frequency f generated by loop filter 318 may be used to derive an estimate of resonance frequency f.sub.0 which may be used for haptic generation and/or for diagnostic purposes. For example, as shown in
[0053] Accordingly, the systems and methods described above may provide for tracking of resonance frequency f.sub.0 using continuous phase estimation. Such continuous phase estimation enables continuous estimation of the difference between drive frequency and resonance frequency, and such frequency error may be used in a feedback loop to steer the drive frequency towards the resonance frequency. Advantageously, unlike traditional approaches, the systems and methods described herein do not constrain the drive duty-cycle of a haptic transducer. Furthermore, the systems and methods described herein may be less sensitive to noise and may achieve resonance tracking more efficiently than existing approaches that rely on zero crossing event detection.
[0054] As used herein, when two or more elements are referred to as coupled to one another, such term indicates that such two or more elements are in electronic communication or mechanical communication, as applicable, whether connected indirectly or directly, with or without intervening elements.
[0055] This disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Similarly, where appropriate, the appended claims encompass all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Moreover, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, or component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative. Accordingly, modifications, additions, or omissions may be made to the systems, apparatuses, and methods described herein without departing from the scope of the disclosure. For example, the components of the systems and apparatuses may be integrated or separated. Moreover, the operations of the systems and apparatuses disclosed herein may be performed by more, fewer, or other components and the methods described may include more, fewer, or other steps. Additionally, steps may be performed in any suitable order. As used in this document, each refers to each member of a set or each member of a subset of a set.
[0056] Although exemplary embodiments are illustrated in the figures and described below, the principles of the present disclosure may be implemented using any number of techniques, whether currently known or not. The present disclosure should in no way be limited to the exemplary implementations and techniques illustrated in the drawings and described above.
[0057] Unless otherwise specifically noted, articles depicted in the drawings are not necessarily drawn to scale.
[0058] All examples and conditional language recited herein are intended for pedagogical objects to aid the reader in understanding the disclosure and the concepts contributed by the inventor to furthering the art, and are construed as being without limitation to such specifically recited examples and conditions. Although embodiments of the present disclosure have been described in detail, it should be understood that various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the disclosure.
[0059] Although specific advantages have been enumerated above, various embodiments may include some, none, or all of the enumerated advantages. Additionally, other technical advantages may become readily apparent to one of ordinary skill in the art after review of the foregoing figures and description.
[0060] To aid the Patent Office and any readers of any patent issued on this application in interpreting the claims appended hereto, applicants wish to note that they do not intend any of the appended claims or claim elements to invoke 35 U.S.C. 112(f) unless the words means for or step for are explicitly used in the particular claim.