1. Field
The disclosed concept pertains generally to filters and, more particularly, to filters for removing a fundamental frequency from an analog signal, such as, for example, a motor current. The disclosed concept also pertains to methods of removing a fundamental frequency from an analog signal. The disclosed concept further pertains to systems for removing a fundamental frequency from an analog signal.
2. Background Information
In many situations, current components indicative of system faults are of a much smaller magnitude than the magnitude of a line frequency component. When implemented on low-cost digital signal processors, the performance of fault detection algorithms is significantly impaired by the loss of resolution of such current components after the analog-to-digital conversion (ADC) process. This problem can be alleviated by removing the line frequency component prior to ADC and by utilizing the full dynamic range of the ADC for the current components indicative of system faults. Known conventional techniques involving the removal of sinusoidal components often utilize notch filters set at the particular frequency of interest. However, these notch filters, in addition to canceling the desired frequency component, often remove or attenuate signal components of interest that are sufficiently close to the desired frequency. This is primarily due to the fact that the supply frequency from the utility can vary from the nominal value (e.g., without limitation, 50 Hz; 60 Hz). The conventional filters also cannot be used in applications where variable frequency motor drives are employed.
There is room for improvement in filters for removing a fundamental frequency from an analog signal.
There is also room for improvement in methods of removing a fundamental frequency from an analog signal.
There is further room for improvement in systems for removing a fundamental frequency from an analog signal.
These needs and others are met by embodiments of the disclosed concept, which provide a high-resolution, fundamental frequency cancellation apparatus and method.
In accordance with one aspect of the disclosed concept, a system comprises: a first powered apparatus including a first analog signal having a fundamental frequency; and a second apparatus structured to provide load diagnostics or power quality assessment of the first powered apparatus from a second digital signal, the second apparatus comprising: an input structured to input the first analog signal, an output structured to output the second digital signal, a processor, an adaptive filter routine executed by the processor, a digital-to-analog converter comprising an input and an output, and an analog-to-digital converter comprising an input and an output, wherein the adaptive filter routine is structured to output a third digital signal as a function of the second digital signal and a plurality of adaptive weights, wherein the digital-to-analog converter is structured to input the third digital signal and output a fourth analog signal representative of an estimate of a fundamental frequency component of the first analog signal, and wherein the analog-to-digital converter is structured to input a fifth analog signal, which is a difference between the first analog signal and the fourth analog signal, and output the second digital signal representative of the first analog signal with the fundamental frequency component removed.
The second apparatus may be a fundamental frequency cancellation apparatus; and the adaptive filter routine may be structured to cancel the fundamental frequency from the first analog signal without corrupting spectral content proximate the fundamental frequency.
The first powered apparatus may be a motor; the fundamental frequency may be a line frequency; and the first analog signal may be supply current to the motor.
The first powered apparatus may receive power; the fundamental frequency may be a line frequency; the first analog signal may be supply current to the first powered apparatus; and the second apparatus may be a power sensing apparatus structured to sense power from the supply current to the first powered apparatus.
The function may be a gain value times a difference between the first analog signal and the fourth analog signal.
As another aspect of the disclosed concept, a method of canceling a fundamental frequency from an analog signal comprises: inputting a first analog signal from a powered apparatus; outputting a second digital signal; employing a digital-to-analog converter comprising an input and an output; employing an analog-to-digital converter comprising an input and an output; outputting a third digital signal from an adaptive filter as a function of the second digital signal and a plurality of adaptive weights; inputting the third digital signal to and outputting a fourth analog signal representative of an estimate of a fundamental frequency component of the first analog signal from the digital-to-analog converter; inputting a fifth analog signal to the analog-to-digital converter and outputting from the analog-to-digital converter the second digital signal representative of the first analog signal with the fundamental frequency component removed; providing the fifth analog signal as a function of a difference between the first analog signal and the fourth analog signal; and providing load diagnostics or power quality assessment of the powered apparatus from the second digital signal.
As another aspect of the disclosed concept, a system comprises: a first apparatus including a first analog signal having a fundamental frequency; and a second apparatus comprising: an input structured to input the first analog signal, an output structured to output a second digital signal, a processor, a routine executed by the processor, a digital-to-analog converter (DAC) comprising an input, an output and a delay between the input and the output of the digital-to-analog converter, and an analog-to-digital converter (ADC) comprising an input, an output and a delay between the input and the output of the analog-to-digital converter, wherein the digital-to-analog converter is structured to input a third digital signal and output a fourth analog signal representative of an estimate of a fundamental frequency component of the first analog signal, wherein the analog-to-digital converter is structured to input a fifth analog signal and output the second digital signal representative of the first analog signal with the fundamental frequency component removed, wherein the routine is structured to provide the third digital signal being y(n)=ws(n)*sin(ωon)+wc(n)*cos(ωon), wherein the routine is further structured to provide a first adaptive weight being ws(n)=ws(n−1)+μcIF(n−1)xs(n−Δ−1), wherein the routine is further structured to provide a second adaptive weight being wc(n)=wc(n−1)+μcIF(n−1)xc(n−Δ−1), wherein ωo is frequency of the fundamental frequency component, wherein n is an integer representative of a sample number, wherein μc is a positive constant, wherein IF(n−1) is the second digital signal for the sample number represented by n−1, wherein xs(n−Δ−1)=sin(ωo(n−Δ−1)), wherein xc(n−Δ−1)=cos(ωo(n−Δ−1)), wherein Δ is a sum of the delay of the analog-to-digital converter and the delay of the digital-to-analog converter, and wherein the routine is further structured to provide the fifth analog signal being a function of a difference between the first analog signal and the fourth analog signal.
As another aspect of the disclosed concept, a fundamental frequency cancellation filter comprises: a processor comprising: an input structured to input a first analog signal, an output structured to output a second digital signal, a routine, a digital-to-analog converter comprising an input, an output and a delay between the input and the output of the digital-to-analog converter, and an analog-to-digital converter comprising an input, an output and a delay between the input and the output of the analog-to-digital converter, the digital-to-analog converter is structured to input a third digital signal and output a fourth analog signal representative of an estimate of a fundamental frequency component of the first analog signal, wherein the analog-to-digital converter is structured to input a fifth analog signal and output the second digital signal representative of the first analog signal with the fundamental frequency component removed, wherein the routine is structured to provide the third digital signal being y(n)=ws(n)*sin(ωon)+wc(n)*cos(ωon), wherein the routine is further structured to provide a first adaptive weight being ws(n)=ws(n−1)+μcIF(n−1)xs(n−Δ−1), wherein the routine is further structured to provide a second adaptive weight being wc(n)=wc(n−1)+μcIF(n−1)xc(n−Δ−1), wherein ωo is frequency of the fundamental frequency component, wherein n is an integer representative of a sample number, wherein μc is a positive constant, wherein IF(n−1) is the second digital signal for the sample number represented by n−1, wherein xs(n−Δ−1)=sin(ωo(n−Δ−1)), wherein xc(n−Δ−1)=cos(ωo(n−Δ−1)), wherein Δ is a sum of the delay of the analog-to-digital converter and the delay of the digital-to-analog converter, and wherein the routine is further structured to provide the fifth analog signal being a function of a difference between the first analog signal and the fourth analog signal.
The routine may be further structured to scale xs(n) by the first adaptive weight and to scale xc(n) by the second adaptive weight to provide the third digital signal.
As another aspect of the disclosed concept, a method cancels a fundamental frequency from an analog signal. The method comprises: inputting a first analog signal; outputting a second digital signal; employing a digital-to-analog converter comprising an input and an output; employing an analog-to-digital converter comprising an input and an output; inputting a third digital signal to and outputting a fourth analog signal representative of an estimate of a fundamental frequency component of the first analog signal from the digital-to-analog converter; inputting a fifth analog signal to the analog-to-digital converter and outputting from the analog-to-digital converter the second digital signal representative of the first analog signal with the fundamental frequency component removed; providing a first adaptive filter weight, ws(n), and a second adaptive filter weight, wc(n); providing a first digital sine signal, xs(n)=sin(ωon), and a second digital cosine signal, xc(n)=cos(ωon); providing the third digital signal being y(n)=ws(n)*sin(ωon)+wc(n)*cos(ωon); employing ωo as frequency of the fundamental frequency component; employing n as an integer representative of a sample number; and providing the fifth analog signal as a function of a difference between the first analog signal and the fourth analog signal.
The method may further comprise providing an optimum value of the first adaptive filter weight as being ws*=(A/GDAC(ωo))cos(θA−θDAC(ωo)); providing an optimum value of the second adaptive filter weight as being wc*=(A/GDAC(ωo))sin(θA−θDAC(ωo)); employing A=GDAC(ωo)√{square root over ([(wc*)2+(ws*)2])}{square root over ([(wc*)2+(ws*)2])}; employing θA=tan−1(wc*/ws*)+θDAC(ωo); employing GDAC(ωo) as magnitude of a transfer function of the digital-to-analog converter at the frequency of the fundamental frequency component; and employing θDAC(ωo) as phase of the transfer function of the digital-to-analog converter at the frequency of the fundamental frequency component.
A full understanding of the disclosed concept can be gained from the following description of the preferred embodiments when read in conjunction with the accompanying drawings in which:
As employed herein, the term “number” shall mean one or an integer greater than one (i.e., a plurality).
As employed herein, the term “processor” means a programmable analog and/or digital device that can store, retrieve, and process data; a computer; a workstation; a personal computer; a digital signal processor (DSP); a microprocessor; a microcontroller; a microcomputer; a central processing unit; a mainframe computer; a mini-computer; a server; a networked processor; or any suitable processing device or apparatus.
The disclosed concept is described in association with an adaptive filter implemented by a digital signal processor (DSP) to remove a line frequency of a line current from a motor supply current of a motor, although the disclosed concept is applicable to a wide range of processors to remove a fundamental frequency of an analog signal of a wide range of apparatus.
Referring to
The noise-free sinusoidal signals 24,26 are typically unavailable and can be generated on the example DSP 22 (
xs(n)=[sin(ωo)]xc(n−1)+[cos(ωo)]xs(n−1),
and
xc(n)=[cos(ωo)]xc(n−1)−[sin(ωo)]xs(n−1).
The recursive generation employs the initial conditions:
xs(−1)=−sin(ωo),
and
xc(−1)=cos(ωo).
The basic operation of the adaptive filter 2 is as follows. The inputs 24,26 are scaled by the respective adaptive weights 4,6 and are combined to form the signal y(n) 28 as shown by Equation 1.
y(n)=ws(n)*sin(ωon)+wc(n)*cos(ωon) (Eq. 1)
The signal y(n) 28 is converted by the DAC 20 providing the analog signal, Ioest(t) 18, that is an estimate of the fundamental frequency component of analog signal I(t) 16, which can be, for example and without limitation, a motor supply current. The estimate Ioest(t) 18 is subtracted from the analog signal I(t) 16 to produce an example current signal 30 with the fundamental frequency component removed. This example current signal 30, which can be amplified by the gain function (G) 12, is digitized by the ADC 10 to produce a digital output signal IF(n) 32, and which can be further processed by the DSP 22 (
The cancellation of the fundamental frequency component occurs when the filter weights 4,6 are set such that the filter output, y(n) 28, consists of a sinusoid with magnitude and phase exactly equal to magnitude and phase of the fundamental frequency component of analog signal I(t) 16. The weight values resulting in optimal cancellation are derived as follows. The fundamental frequency component, Io(t), of the example analog signal I(t) 16 is defined by Equation 2.
Io(t)=A sin(ωot+θA) (Eq. 2)
wherein:
A is a constant;
θA is phase.
Using Equation 1, the estimated fundamental frequency component Ioest(t) 18 is given by Equation 2.
Ioest(t)=GDAC(ωo)ws(t)sin(ωot+θDAC(ωo))+GDAC(ωo)wc(t)cos(ωot+θDAC(ωo)) (Eq. 3)
wherein:
GDAC(ωo) and θDAC(ωo) are the respective magnitude and phase of the DAC transfer function at frequency, ω=ωo,
ws(t) is the time domain equivalent of the digital domain adaptive weight ws(n) 4, and
wc(t) is the time domain equivalent of the digital domain adaptive weight wc(n) 6.
In Equations 1 and 3, the optimum weight values are adjusted to their optimum values using a filtered least-mean-square (Filtered-X LMS as is defined, below, after Equation 5) algorithm, and simplified in some of the following equations. In a typical setup, the input to the LMS algorithm (Equations 4A and 4B, below) is labeled ‘x’ and “filtered-x” refers to the fact that you need to filter the input, or ‘x’, before using it to update the adaptive weights. In Equations 2 and 3, the discrete time index, n, is replaced by the continuous time variable, t, since these components are after the DAC 20 and, therefore, are analog signals.
If the fundamental frequency component Io(t) of the example supply current is represented in the equivalent form:
Io(t)=A sin([ωot+θDAC(ωo)]+[θA−θDAC(ωo)]),
then by using trigonometric identities it can be expressed as:
Io(t)=A cos(θA−θDAC(ωo))sin(ωot+θDAC(ωo))+A sin(θA−θDAC(ωo))cos(ωot+θDAC(ωo)).
Therefore, applying Equation 3, the optimum weight values resulting in cancellation of the fundamental frequency component Io(t) are:
ws*=(A/GDAC(ωo))cos(θA−θDAC(ωo)),
and
wc*=(A/GDAC(ωo))sin(θA−θDAC(ωo)).
The magnitude and phase can be represented directly in terms of the filter weights 4,6 by:
A=GDAC(ωo)√{square root over ([(wc*)2+(ws*)2])}{square root over ([(wc*)2+(ws*)2])},
and
θA=tan−1(wc*/ws*)+θDAC(ωo).
Since the magnitude and phase of Io(t) are not known and may vary over time, the filter weights 4,6 can be adapted according to a conventional least-mean-square (LMS) algorithm. The LMS algorithm is a stochastic gradient-based algorithm where the updated value of the filter weights 4,6 at time n+1 are computed using the recursive relations:
ws(n+1)=ws(n)+(½)μ[−∂J(n)/∂ws(n)] (Eq. 4A)
wc(n+1)=wc(n)+(½)μ[−∂J(n)/∂wc(n)](Eq. 4B)
wherein:
μ is a positive step-size constant that controls the size of the incremental correction applied to the weight at each iteration;
J(n) is the squared-error signal at time n given by J(n)=|IF(n)|2; and
∂J(n)/∂ws(n) and ∂J(n)/∂wc(n) are the partial derivatives of the squared-error signal J(n) with respect to the filter weight ws(n) and wc(n), respectively.
The update rule for the filter weight, ws, is derived as follows. First, IF(n) 32 can be expressed using Equations 2 and 3 as follows:
wherein:
GADC(ωo) and θADC(ωo) are the respective magnitude and phase of the transfer function of ADC 10 at frequency ω=ωo.
The partial derivative of J(n) with respect to ws(n) equals
Therefore, the update rule for ws(n) 4 is given by Equation 5.
ws(n+1)=ws(n)+μGADC(ωo)GDAC(ωo)IF(n)sin(ωon+θDAC(ωo)+θADC(ωo)) (Eq. 5)
The weight update rule of Equation 5 is a version of the LMS algorithm that compensates for transfer functions present in the output path of the adaptive filter 2. A conventional Filtered-X LMS adaptive algorithm can be expressed as:
ws(n+1)=ws(n)+μIF(n)xfs(n)
wherein:
xfs(n) is equal to the filter input xs(n) 24 filtered by an estimate of the combined transfer function of DAC 20 and ADC 10.
In the frequency domain, xfs(ω) is given by:
xfs(ω)=H(ω)xs(ω),
wherein:
H(ω)≈DAC(ω)ADC(ω),
DAC(ω) is the transfer function of the DAC 20 in the frequency domain, and
ADC(ω) is the transfer function of the ADC 10 in the frequency domain.
In a similar manner, the update rule for the second weight 6 is given by:
wc(n+1)=wc(n)+μIF(n)xfc(n)
wherein:
xfc(ω)=H(ω)xc(ω).
The weight adaptation process is illustrated in
Taking advantage of the uniform response of the transfer functions of the DAC 20 and the ADC 10, however, one can make an important simplification to the adaptation algorithm. Assuming that the DAC 20 and the ADC 10 have uniform gain and linear phase over the frequency band of interest or:
DAC(ω)≈GDACe−jαω;
and
ADC(ω)≈GADCe−βω,
and
creating a new step-size parameter, μc=μGADCGDAC, the update rule for ws(n) (Equation 5) can be simplified as:
ws(n+1)=ws(n)+μcIF(n)sin(ωo(n−[α+β])),
or
ws(n+1)=ws(n)+μcIF(n)xs(n−Δ),
wherein:
Δ=α+β represents the total delay through the ADC 10 and the DAC 20, and
α and β represent the delay through the DAC 20 and the ADC 10, respectively.
A similar update rule can be applied to wc(n) 6:
wc(n+1)=wc(n)+μcIF(n)xc(n−Δ).
The block diagram of a simplified adaptive filter 2′ is shown in
The value of Δ can be determined using the frequency response specifications of the DAC 20 and the ADC 10. The theoretical range of the step-size parameter μc resulting in the convergence of the algorithm to the optimum weights ws* and wc* is known and is given by:
0<μc<4/(GDACGADC)
The disclosed concept can be applied to a wide range of applications, such as for example and without limitation, the second apparatus 44 can be a fundamental frequency cancellation apparatus or a power sensing module for the first apparatus 42, which can be, for example and without limitation, a motor powered by a power line having a line frequency.
Although a technique for updating the adaptive weights 4,6 is disclosed, an alternative, known recursive least squares (RLS) algorithm can be employed.
Although a technique for the adaptive filter 2 is disclosed, this, alternatively, could also be implemented using a known Kalman filter.
Alternative estimation techniques for the unknown H analog domain transfer function (not shown) could also be employed. The disclosed concept simplifies the problem by modeling this transfer function with a simple delay line as was discussed, above, in connection with symbol z−Δ34 of
The disclosed adaptive filters 2,2′ can be employed, for example, to ensure that a motor current representation employed for motor current signature analysis is of suitable high fidelity. This is achieved by removing the fundamental frequency component of the example motor current (e.g., without limitation, motor current at 50 Hz; 60 Hz; 400 Hz; any suitable system frequency) and applying a suitable gain (G) 12 to the residual signal prior to the input 56 of the ADC 10 to minimize quantization error. Since this process is adaptive, relatively large and relatively small deviations from the nominal system frequency can be removed as well.
The disclosed adaptive filters 2,2′ improve signal acquisition (e.g., increase resolution and/or decrease quantization noise) by nulling a fundamental line frequency component prior to analog to digital conversion for use in, for example, motor/load diagnostic applications. These adaptive filters 2,2′ null out a single frequency (the fundamental component of the line frequency), track and null the fundamental component in the presence of small frequency changes (e.g., less than about 1 Hz) in applications where a load, such as a motor, is connected directly to a power line, and/or track and null the fundamental component in the presence of relatively large frequency changes (e.g., about 20 Hz to about 400 Hz) in applications where the motor is variable frequency AC drive (VFD) driven.
The disclosed concept provides efficient fundamental frequency cancellation filters 2,2′ based on estimated frequency (e.g., estimated line frequency) Ioest(t) 18 that can precisely cancel, for example, the line frequency from a supply current without corrupting the spectral content proximate that line frequency.
The disclosed concept can be employed in any motor or other load diagnostics or power quality assessment of an electrical system application, where it is advantageous to remove a single, dominant frequency component that obscures a number of signals of interest. In this manner, the example second apparatus 44 can readily provide known load diagnostics or known power quality assessment of the first powered apparatus 42 by making advantageous use of the second digital signal 32 (IF(n)), which does not include a fundamental frequency component.
Although the DSP 22 and the example routine 50 are disclosed, the functions of the filters 2,2′ can be implemented by a wide range of hardware and/or software components. For example and without limitation, the ADC 10 and the DAC 20 can be part of or separate from the DSP 22 or another suitable processor. Although the example routine 50 can provide the various signals 24,26,28, functions 8,12,14,34, and weights 4,6, those can be implemented by a wide range of hardware and/or software components.
For example, the disclosed concept can be applied to a motor wellness system. This provides the ability to increase the resolution of ADC conversion by eliminating the fundamental component of the line current and applying a gain to the residual signal (where the motor wellness information is contained) prior to analog to digital conversion. Also, the ability to track relatively small changes in the power supply frequency in directly connected systems or track relatively large frequency changes are of benefit when used with a VFD.
While specific embodiments of the disclosed concept have been described in detail, it will be appreciated by those skilled in the art that various modifications and alternatives to those details could be developed in light of the overall teachings of the disclosure. Accordingly, the particular arrangements disclosed are meant to be illustrative only and not limiting as to the scope of the disclosed concept which is to be given the full breadth of the claims appended and any and all equivalents thereof.
Number | Name | Date | Kind |
---|---|---|---|
4349889 | van den Elzen et al. | Sep 1982 | A |
5869945 | Ha et al. | Feb 1999 | A |
5956373 | Goldston et al. | Sep 1999 | A |
6980609 | Ahn | Dec 2005 | B1 |
7397212 | Turner | Jul 2008 | B2 |
20030155922 | Royle et al. | Aug 2003 | A1 |
Number | Date | Country |
---|---|---|
8033318 | Feb 1996 | JP |
Entry |
---|
Integrated Circuits—PCF8591—8-bit A/D and D/A converter, Jan. 27, 2003, Philips Semiconductors, 1-28. |
Widrow, B. et al., “Adaptive Signal Processing”, ISBN 0-13-004029-0, 1985, pp. 15-20 and 99-103. |
Proakis, John G. et al., “Digital Signal Processing—Principles, Algorithms, and Applications”, Third Edition, Prentice Hall, Inc., 1996, 29 pp. (i, ii; 748-74). |
Haykin, Simon, “Adaptive Filter Theory”, Third Edition, Prentice Hall, Inc., 1996, 11 pp. (i, ii and 377-85). |
Number | Date | Country | |
---|---|---|---|
20120011183 A1 | Jan 2012 | US |