Abstract
A method and apparatus to compensate for distortion of a waveform due to the skin effect in a current shunt. The method includes modeling the complex impedance of the shunt as component complex impedances. By designing a filter corresponding to the component complex impedances, the distortion of a waveform across the shunt may be reversed to provide an accurate replica of the undistorted waveform.
Claims
1. A method for use with a current shunt, the shunt having a complex impedance, wherein the complex impedance produces frequency-dependent effects upon a voltage waveform across the shunt when passing an electric current through the shunt, the method comprising: modeling the complex impedance of the shunt as a summation of at least two component complex impedances associated with parallel paths through the shunt, thereby creating a shunt model; designing a physical electronic filter corresponding to the shunt model to reverse the frequency-dependent effects of the complex impedance of the shunt on the voltage waveform; physically connecting the filter to the shunt by an electrical connection, thereby applying the filter to the frequency-dependent voltage waveform, wherein the frequency-dependent voltage waveform is transformed into a linear function of the passing current; and reading the transformed value of the passing current.
2. The method of claim 1, wherein the step of modeling the complex impedance of the shunt further comprises: modeling the parallel paths through the shunt as a parallel connection of at least two branches, each branch comprising a series connection of an inductor having a value of inductance and a resistor having a value of resistance; and assigning a numerical value to the value of inductance and a numerical value to the value of resistance for each branch of the shunt model.
3. The method of claim 2, wherein the physical electronic filter corresponding to the shunt model is an analog filter, and the step of designing a physical electronic filter further comprises connecting a plurality of parallel-connected pairs of components in series, each parallel-connected pair of components comprising a compensating capacitor having a value of compensating capacitance and a compensating resistor having a value of compensating resistance.
4. The method of claim 3, wherein the step of designing a physical electronic filter further comprises calculating a value of compensating resistance in order to provide a specific value of conductance and a value of a compensating capacitance.
5. The method of claim 1, wherein the physical electronic filter corresponding to the shunt model further comprises a voltage-to-current converter.
6. The method of claim 1, wherein the physical electronic filter corresponding to the shunt model is a digital filter, and the step of designing a physical electronic filter further comprises: defining a system transfer function of the digital filter as a summation of at least two component transfer functions, each associated with a component value of complex impedance; defining the at least two component transfer functions as functions of a complex variable in the analog domain; and converting the at least two transfer functions defined as functions of a complex variable in the analog domain into functions of a complex variable in the digital domain.
7. The method of claim 6, further comprising sampling the voltage waveform across the shunt over at least two sampling periods at a defined sampling rate, thereby producing sampled signal data.
8. The method of claim 7, wherein the step of applying the filter to the frequency-dependent voltage waveform further comprises: providing the sampled signal data as values for use with the functions of a complex variable in the digital domain; and solving the functions of a complex variable in the digital domain for the at least two component transfer functions for the defined sampling rate.
9. The method of claim 8, further comprising an antialiasing filter connected between the shunt and the filter, wherein the antialiasing filter rejects frequency components at very high frequencies.
10. The method of claim 6, wherein the digital filter is executed in a software program, and the step of designing a physical electronic filter further comprises implementing the software program in an embedded controller.
11. (canceled)
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The present invention will now be described with reference to several drawings, of which:
[0019] FIG. 1 is an example of a model of complex impedances through a shunt.
[0020] FIG. 2A shows an example of a PWM generator.
[0021] FIG. 2B shows graphs of input signals and an output PWM signal.
[0022] FIG. 3A shows an example of a PWM generator connected to a motor.
[0023] FIG. 3B shows graphs of a motor output voltage and associated motor current driven by a PWM signal.
[0024] FIG. 4A is an example of a PWM generator driving a motor which delivers a current to a shunt as modeled by a method according to the invention.
[0025] FIG. 4B shows a graph of a motor current delivered to a shunt and a graph of a distored voltage waveform across the shunt due to the skin effect.
[0026] FIG. 5A is an example of a shunt model and associated complex impedances for designing a compensating filter.
[0027] FIG. 5B is an example of a compensating filter according to an aspect of the invention.
[0028] FIG. 6 is an example of a PWM generator driving a motor which delivers a current to a shunt model and correction of the distorted waveform by a method according to the invention.
[0029] FIG. 7A is a diagram of a system in which a motor current passes through a shunt and the resulting distorted voltage waveform is corrected by application of a filter according to the invention.
[0030] FIG. 7B shows graphs of a waveform of a motor current, a waveform of a voltage measurement across a shunt, and a waveform of the voltage across the shunt, corrected by a method according to the invention.
[0031] FIG. 8 is an example of a digital filter according to an aspect of the invention applied to correct distortion of a sampled signal of a voltage waveform across a shunt.
[0032] FIG. 9 shows a process to model a component transfer function representing one parallel path through a shunt which distorts a sampled signal of a voltage waveform.
[0033] FIG. 10 is a graph comparing the magnitude of the frequency response of a digital filter according to the invention with the magnitude of the frequency response of an analog filter according to the invention.
[0034] FIG. 11 is a graph comparing the phase of the frequency response of a digital filter according to the invention with the phase of the frequency response of an analog filter according to the invention.
[0035] FIG. 12 shows an example of a digital filter system including an antialiasing filter according to an aspect of the invention.
DETAILED DESCRIPTION OF THE DRAWINGS
[0036] A model of complex impedances through a shunt is illustrated in FIG. 1. The model is composed of parallel-connected branches of series-connected resistors and inductors to represent complex impedances of paths through the shunt. The model of FIG. 1 does not include values for the resistors and inductors, but instead demonstrates a framework for modeling the shunt using as many resistor and inductor pairings as required to model a subject shunt, from R1 and L1 through RN and LN. A current enters the shunt at connection point 100 and exits the shunt at connection point 110. A distorted waveform of a voltage across the shunt results.
[0037] FIG. 2A shows a schematic diagram of an example PWM generator 200 used to provide a signal to a motor. An input signal 211 and a sawtooth signal 212 are provided to a comparator 213 and PWM output 216 is generated, with like numerals used throughout the drawings. Graphs of these signals are illustrated in FIG. 2B, with input signal 211 denoted V11, sawtooth signal 212 denoted V12 and PWM output 216 denoted V16. Connection of the PWM generator 200 with a motor 310 is shown in FIG. 3A. Graphs of resulting motor voltage 370 and the motor current 380 delivered to a shunt are shown in FIG. 3B. The complex impedance of the shunt due to the presence of the skin effect is modeled according to an aspect of the invention and shown connected to the motor in FIG. 4A. PWM generator 200 is connected to an input of motor 410 and the current of the motor is connected to a shunt model 415. As noted earlier, the shunt model 415 is composed of parallel-connected branches of series-connected resistors and inductors to represent the complex impedance of the shunt. Once the motor current 480 passes through the shunt model 415, the voltage waveform 490 becomes highly distorted, as shown in the graphs of FIG. 4B.
[0038] As an example, the modeled resistors and inductors of the parallel paths through the shunt model 515 are assigned values, as shown in FIG. 5A. Each parallel path through the shunt is modeled as a series connection of a resistor, R3-R7, with an inductor L2-L6. As mentioned above, design of a compensating filter begins with following the principles of electrical duality, that is, if the admittance (denoted as Y) of the shunt is the sum of the admittances of a parallel combination of series-connected resistance and inductance combinations, then the impedance (denoted as Z) of the filter can be the sum of the impedances of a series combination of parallel-connected conductance and capacitance combinations, provided that the two are linked so that the shunt admittance and the filter impedance are connected in such a way that the product of the two appears in the resulting transfer function. Resistor values for use in the compensating filter are thus calculated and chosen to provide conductance equal to the value of the resistance in the shunt model, and capacitances have values equal to the corresponding inductances in the shunt model.
[0039] A compensating filter according to an aspect of the invention may be constructed for the modeled shunt 515 of FIG. 5A. Such a compensating filter 525 is shown in FIG. 5B, with values of resistors R9-R13 and capacitors C1-C5 chosen to compensate for the values of complex impedance in the model of FIG. 5A as explained above. Once constructed, as shown in FIG. 6, the compensating filter 625 may be applied to the voltage from the motor 610. A high-input-impedance voltage-to-current converter may be used to drive the filter. A diagram of this application of the compensating filter to the shunt voltage is shown in FIG. 7A. PWM 700 provides a signal to motor 710 and a motor current 711 enters shunt 715. Compensating filter 725 is applied to a distorted waveform of voltage across the shunt 715. FIG. 7B shows graphs of the motor current waveform 730, the distorted shunt voltage waveform 740 and the corrected shunt voltage waveform 750. As seen in these graphs, the distortion of the shunt voltage waveform 740 due to the skin effect in the shunt is completely compensated by application of a filter according to the invention.
[0040] FIG. 8 shows a system 800 containing a digital compensating filter 825 according to an aspect of the invention. Such a digital filter may be executed in software and implemented in an embedded controller. The digital compensating filter 825 receives as input a sampled voltage signal from sampler 840 at a sampling rate of T. As discussed above, the transfer function of the digital filter may also be modeled as a sum of component transfer functions of parallel paths through the shunt 815. An example of such a model is shown in FIG. 9. Compensating digital filter 900 is represented by a parallel connection of component transfer functions H.sub.1-H.sub.N, as described above. Each path in the sum corresponds to one of the impedances of the resistor-capacitor parallel combinations in compensating filter 625, for example. As shown above, each component transfer function may be defined as follows:
[00008]
by rearranging of terms.
[0041] Applying these definitions to each component transfer function of the model in design detail 950 shows that
[00009]
similar to the analog compensating filter described above.
[0042] Using the inductor and resistor values of the 5.sup.th-order shunt model of FIG. 5A and a sampling period of T=2 s, values for a.sub.n and b.sub.n were obtained for the shunt model and digital compensating filter. FIG. 10 shows results for the magnitude of the frequency response 1020 of the digital compensating filter compared with results for the magnitude of the frequency response 1010 of the analog compensating filter. FIG. 11 similarly shows results for the phase of the frequency response 1120 of the digital compensating filter compared with results for the phase of the frequency response 1110 of the analog compensating filter.
[0043] The alert reader will recognize that the digital compensating filter begins to deviate from the analog compensating filter at higher frequencies. To address potential problems such as aliasing at higher frequencies, an analog antialiasing filter may also be included in the design of the digital compensating filter. FIG. 12 shows a system 1200 containing a digital compensating filter 1225 according to an aspect of the invention. The digital compensating filter 1225 receives as input a sampled voltage signal from a sampler 1240 at a sampling rate of T. Sampler 1240 receives a voltage signal from shunt 1215 through antialiasing filter 1255.
[0044] It will be appreciated that one skilled in the art of electrical filter design, electrical hardware and software could devise additional obvious improvements and variations upon the invention described and claimed herein. All such obvious improvements and variants are intended to be encompassed by the claims which follow.
[0045] What has been described is a method for use with a current shunt, the shunt having a complex impedance, wherein the complex impedance produces frequency-dependent effects upon a voltage waveform across the shunt when passing an electric current through the shunt, the method comprising: modeling the complex impedance of the shunt as a summation of at least two component complex impedances associated with parallel paths through the shunt, thereby creating a shunt model; designing a physical electronic filter corresponding to the shunt model to reverse the frequency-dependent effects of the complex impedance of the shunt on the voltage waveform; physically connecting the filter to the shunt by an electrical connection, thereby applying the filter to the frequency-dependent voltage waveform, wherein the frequency-dependent voltage waveform is transformed into a linear function of the passing current; and reading the transformed value of the passing current.
[0046] Also described is an electrical filter apparatus, comprising: a plurality of parallel-connected pairs of components in series, each parallel-connected pair of components comprising: a compensating capacitor having a value of compensating capacitance and a compensating resistor having a value of compensating resistance, wherein the values of compensating resistance are calculated to provide a specific value of conductance and the values of compensating capacitance are calculated to provide a specific value of capacitance; wherein an input of the electrical filter apparatus is connected to an output of a first electrical circuit element.