COMPENSATING FOR CURRENT SPLITTING ERRORS IN A MEASUREMENT SYSTEM
20230144960 · 2023-05-11
Assignee
Inventors
- Anand Ilango (Austin, TX)
- Siddharth Maru (Austin, TX, US)
- Tejasvi Das (Austin, TX, US)
- John L. Melanson (Austin, TX)
Cpc classification
G01R27/16
PHYSICS
International classification
Abstract
A system may include amplifier circuitry configured to drive an electromagnetic load with a driving signal and a processing system communicatively coupled to the electromagnetic load and configured to compensate for current-sensing error of the processing system caused by feedback circuitry of the amplifier circuitry.
Claims
1. A system comprising: amplifier circuitry configured to drive an electromagnetic load with a driving signal; and a processing system communicatively coupled to the electromagnetic load and configured to compensate for current-sensing error of the processing system caused by feedback circuitry of the amplifier circuitry.
2. The system of claim 1, wherein the processing system is further configured to operate in a plurality of modes including: a driving mode in which the amplifier circuitry generates a human-perceptible driving signal to the electromagnetic load; and a load sensing mode of the system for sensing a physical quantity associated with the electromagnetic load in which the amplifier circuitry generates a pilot signal to the electromagnetic load and the physical quantity is based on a measured characteristic of the electromagnetic load in response to the pilot signal.
3. The system of claim 2, wherein the processing system is further configured to: during the driving mode, couple a first terminal of the electromagnetic load to a ground voltage; and during the load sensing mode: couple the first terminal to a current-sensing circuit having a sense resistor coupled between the first terminal and an electrical node driven to a common-mode voltage; and sense the physical quantity based on a voltage across the sense resistor.
4. The system of claim 3, wherein the processing system is further configured to: determine the current-sensing error at an electrical node of the system; and modify the common-mode voltage as a function of the current-sensing error.
5. The system of claim 2, wherein the processing system is further configured to compensate for current-sensing error of the processing system caused by feedback circuitry of the amplifier circuitry during the load sensing mode.
6. The system of claim 1, wherein the processing system is further configured to: estimate a split current flowing in the feedback circuitry based on a monitored voltage; and apply a compensation based on the split current to a measured current associated with the electromagnetic load to estimate a load current flowing through the electromagnetic load.
7. The system of claim 6, wherein the physical quantity is a complex impedance of the electromagnetic load and the processing system and further configured to estimate the complex impedance based on the monitored voltage and a combination of the measured current and the compensation.
8. The system of claim 7, wherein the processing system is further configured to: apply the compensation to the measured current in the time domain to generate the combination; transform the monitored voltage from the time domain to a frequency-domain voltage vector; transform the combination from the time domain to a frequency-domain current vector; and estimate the complex impedance based on the frequency-domain voltage vector and the frequency-domain current vector.
9. The system of claim 7, wherein the processing system is further configured to: transform the monitored voltage from the time domain to a frequency-domain voltage vector; transform the measured current from the time domain to a frequency-domain current vector; apply the compensation to the frequency-domain current vector in the frequency domain to generate the combination; and estimate the complex impedance based on the frequency-domain voltage vector and the combination.
10. The system of claim 1, wherein the processing system is further configured to: determine the current-sensing error; and supply a current corresponding to the current-sensing error to current-sensing circuitry of the processing system.
11. A method comprising: driving, with amplifier circuitry, an electromagnetic load with a driving signal; and compensating for current-sensing error of a processing system communicatively coupled to the electromagnetic load, wherein the current-sensing error is caused by feedback circuitry of the amplifier circuitry.
12. The method of claim 11, further comprising operating the processing system in a plurality of modes including: a driving mode in which the amplifier circuitry generates a human-perceptible driving signal to the electromagnetic load; and a load sensing mode of the system for sensing a physical quantity associated with the electromagnetic load in which the amplifier circuitry generates a pilot signal to the electromagnetic load and the physical quantity is based on a measured characteristic of the electromagnetic load in response to the pilot signal.
13. The method of claim 12, further comprising: during the driving mode, coupling a first terminal of the electromagnetic load to a ground voltage; and during the load sensing mode: coupling the first terminal to a current-sensing circuit having a sense resistor coupled between the first terminal and an electrical node driven to a common-mode voltage; and sensing the physical quantity based on a voltage across the sense resistor.
14. The method of claim 13, further comprising: determining the current-sensing error at an electrical node of the system; and modifying the common-mode voltage as a function of the current-sensing error.
15. The method of claim 12, further comprising compensating for current-sensing error of the processing system caused by feedback circuitry of the amplifier circuitry during the load sensing mode.
16. The method of claim 11, further comprising: estimating a split current flowing in the feedback circuitry based on a monitored voltage; and applying a compensation based on the split current to a measured current associated with the electromagnetic load to estimate a load current flowing through the electromagnetic load.
17. The method of claim 16, wherein the physical quantity is a complex impedance of the electromagnetic load and the method further comprises estimating the complex impedance based on the monitored voltage and a combination of the measured current and the compensation.
18. The method of claim 17, further comprising: applying the compensation to the measured current in the time domain to generate the combination; transforming the monitored voltage from the time domain to a frequency-domain voltage vector; transforming the combination from the time domain to a frequency-domain current vector; and estimating the complex impedance based on the frequency-domain voltage vector and the frequency-domain current vector.
19. The method of claim 17, further comprising: transforming the monitored voltage from the time domain to a frequency-domain voltage vector; transforming the measured current from the time domain to a frequency-domain current vector; applying the compensation to the frequency-domain current vector in the frequency domain to generate the combination; and estimating the complex impedance based on the frequency-domain voltage vector and the combination.
20. The method of claim 11, further comprising: determining the current-sensing error; and supplying a current corresponding to the current-sensing error to current-sensing circuitry of the processing system.
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]
[0022]
[0023]
[0024]
DETAILED DESCRIPTION
[0025] 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.
[0026] 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.
[0027] 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.
[0028] 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 may generally be an analog time varying voltage signal, for example, a time varying waveform.
[0029] To accurately sense displacement of an electromagnetic load, methods and systems of the present disclosure may determine an inductance of the electromagnetic load, and then convert the inductance to a position signal, as described in greater detail below. Further, to measure inductance of an electromagnetic load, methods and systems of the present disclosure may utilize either a phase measurement approach and/or a high-frequency pilot-tone driven approach, as also described in greater detail below.
[0030] To illustrate, an electromagnetic load may be driven by a driving signal V(t) to generate a sensed terminal voltage V.sub.T(t) across a coil of the electromagnetic load. Sensed terminal voltage V.sub.T(t) may be given by:
V.sub.T(t)=Z.sub.COILI(t)+V.sub.B(t)
wherein I(t) is a sensed current through the electromagnetic load, Z.sub.COIL is an impedance of the electromagnetic load, and V.sub.B(t) is the back-electromotive force (back-EMF) associated with the electromagnetic load.
[0031] As used herein, to “drive” an electromagnetic load means to generate and communicate a driving signal to the electromagnetic load to cause displacement of a movable mass of the electromagnetic load.
[0032] Because back-EMF voltage V.sub.B(t) may be proportional to velocity of the moving mass of the electromagnetic load, back-EMF voltage V.sub.B(t) may in turn provide an estimate of such velocity. Thus, velocity of the moving mass may be recovered from sensed terminal voltage V.sub.T(t) and sensed current I(t) provided that either: (a) sensed current I(t) is equal to zero, in which case V.sub.B(t)=V.sub.T(t); or (b) coil impedance Z.sub.COIL is known or is accurately estimated.
[0033] Position of the moving mass may be related to a coil inductance L.sub.COIL of the electromagnetic load. At high frequencies significantly above the bandwidth of the electromagnetic load, back-EMF voltage V.sub.B(t) may become negligible and inductance may dominate the coil impedance Z.sub.COIL. Sensed terminal voltage V.sub.T@HF(t) at high frequencies may be estimated by:
V.sub.T@HF(t)=Z.sub.COILI.sub.@HF(t)
Hence, at high frequencies, the position of the moving mass of the electromagnetic load may be recovered from sensed terminal voltage V.sub.T(t) and sensed current I(t) by: (a) estimating the coil impedance at high frequency as Z.sub.COIL@HF≅R.sub.@HFL.sub.@HF.Math.S, where R.sub.@HF is the resistive part of the coil impedance at high frequency, L.sub.@HF is the coil inductance at high frequency, and s is the Laplace transform; and (b) converting the measured inductance to a position signal. Velocity and/or position may be used to control vibration of the moving mass of the electromagnetic load.
[0034]
[0035] In operation, a signal generator 324 of a processing subsystem 305 of host device 300 may generate a raw transducer driving signal x′(t) (which, in some embodiments, may be a waveform signal, such as a haptic waveform signal or audio signal). Raw transducer driving signal x′(t) may be generated based on a desired playback waveform received by signal generator 324. In some embodiments, raw transducer driving signal x′(t) may comprise a differential pulse-width modulated (PWM) signal.
[0036] Raw transducer driving signal x′(t) may be received by waveform preprocessor 326 which, as described in greater detail below, may modify or otherwise convert raw transducer driving signal x′(t) in order to generate processed transducer driving signal x(t). For example, waveform preprocessor 326 may include a PWM modulator 328. PWM modulator 328 may include any suitable device, system, or apparatus configured to generate a single-ended PWM signal from raw transducer driving signal x′(t). For example, PWM modulator 328 may include a delta-sigma modulator comprising one or more integrator stages, a quantizer, and a conversion block configured to convert a differential signal into a single-ended signal. Accordingly, processed transducer driving signal x(t) may comprise a single-ended signal (e.g., a single-ended PWM signal) communicated to amplifier 306. Processed transducer driving signal x(t) may in turn be amplified by amplifier 306 to generate a driving signal V(t) for driving electromagnetic load 301 Amplifier 306 may comprise a single-ended Class-D output stage (e.g., one half of an H-bridge).
[0037] In operation, to estimate impedance Z.sub.COIL, impedance measurement subsystem 308 may measure impedance in any suitable manner, including without limitation using the approaches set forth in U.S. patent. applicaton Ser. No. 17/497,110 filed Oct. 8, 2021, which is incorporated in its entirety by reference herein. For example, processing subsystem 305 may drive a pilot signal to electromagnetic transducer 301, and a complex impedance Z.sub.COIL of electromagnetic load 301 may be estimated by measuring the amplitudes of and relative phases between a sensed terminal voltage V.sub.T(t) of electromagnetic load 301 and current I(t) flowing through electromagnetic load 301 that result from driving of the pilot signal
From the determination of complex impedance, coil inductance at high frequency L.sub.@HF may be estimated, from which a displacement of electromagnetic load 301 may also be estimated.
[0038] Accordingly, responsive to driving signal V(t), a sensed terminal voltage V.sub.T(t) of electromagnetic load 301 may be sensed by a terminal voltage sensing block 307 of processing subsystem 305, for example a volt-meter, and converted to a digital representation VSENSE by a first analog-to-digital converter (ADC) 303. As shown in
[0039] Similarly, sensed current I(t) may be converted to a digital representation ISENSE by a second ADC 304. Current 1(t) may be sensed across a shunt resistor 302 having resistance R.sub.s coupled to a terminal of electromagnetic load 301. As shown in
[0040] As shown in
[0041] One disadvantage of the architecture depicted in
wherein G.sub.PWM is a gain of PWM modulator 328, R.sub.f is the resistance of each of feedback resistors 316, and R.sub.i is an input resistance present at each input terminal of PWM modulator between PWM modulator 328 and signal generator 324, such input resistance not explicitly depicted in
[0042] A magnitude of such split current I.sub.SPLIT(t) may be minimized by increasing a resistance of feedback resistor 316. However, such an increase in resistance may increase measurement noise potentially requiring longer measurement times and additional filtering. Thus, a signal-dependent offset correction may be desirable. Examples of such signal-dependent offset corrections are described below in reference to
[0043]
[0044] As shown in
[0045] The values of PWM modulator gain G.sub.PWM, feedback resistance R.sub.f, and input resistance R.sub.i may be estimated a priori.
[0046] Discrete Fourier transforms (DFTs) 406, or other suitable mathematical transforms, may be applied to each of digital sensed voltage VSENSE and the compensated digital sensed current ISENSE′ to transform such signals from the time domain to the frequency domain. A divider block 408 may perform a complex mathematical division of the frequency-domain equivalent signals in order to estimate coil impedance Z.sub.COIL.
[0047]
[0048] Impedance measurement subsystem 308B may be similar in many respects to impedance measurement subsystem 308A, except that compensation in impedance measurement subsystem 308B is applied after conversion of digital sensed voltage VSENSE and digital sensed current ISENSE into the frequency domain. Accordingly, discrete Fourier transforms (DFTs) 406, or other suitable mathematical transforms, may be applied to each of digital sensed voltage VSENSE and the digital sensed current ISENSE to transform such signals from the time domain to the frequency domain.
[0049] A combiner 410 may add a frequency-domain correction vector to the frequency-domain equivalent sensed current to generate a compensated frequency-domain sensed current. Such correction vector may be estimated based on digital sensed voltage VSENSE.
[0050] A divider block 408 may perform a complex mathematical division of the frequency-domain equivalent signals in order to estimate coil impedance Z.sub.COIL.
[0051] In addition to or in lieu of compensation being performed digitally by impedance measurement system 308, as shown in
[0052] For example,
[0053] In the architecture shown in
[0054] To overcome this disadvantage, host device 300A may include a compensation circuit to compensate for such variance, wherein such compensation circuit may comprise a summing amplifier 502 with a first terminal coupled to ground voltage and a coupling capacitor 504 coupled between the summing node and a resistor divider comprising resistors 506 and 508, wherein the electrical node common to resistors 506 and 508 may be coupled to the second terminal of summing amplifier 502. This compensation circuit may vary common-mode voltage V.sub.CM itself by an amount equal to the alternating current variation of the summing node, effectively minimizing or eliminating alternating current voltage across the feedback resistor 316, thus effectively minimizing or eliminating measurement error due to split current I.sub.SPLIT(t). While
[0055]
[0056] As shown in
[0057] 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.
[0058] 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.
[0059] 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.
[0060] Unless otherwise specifically noted, articles depicted in the drawings are not necessarily drawn to scale.
[0061] 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.
[0062] 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.
[0063] 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.