Method and apparatus for sampling and converting a signal
A signal conditioning circuit time share multiplexes anti-aliasing filters and an A/D converter. A plurality of first tier multiplexers each time share multiplex one of a plurality of antialiasing filters between a plurality of AC or baseband input signals from a plurality of sensors. A second tier multiplexer selects its inputs from the outputs of the first tier multiplexers. The output of the second tier multiplexer feeds a high speed A/D converter. Thus, the A/D converter is time share multiplexed by the second tier multiplexer. In this manner, a plurality of sensors can share a single A/D converter. After allowing a settling time for the multiplexers and antialiasing filters, a plurality of samples of the input signals are taken, such as for one period. The samples of each AC input signal are multiplied by a sine vector and a cosine vector. The product vectors are then each averaged and the root mean square of the two averages yields the magnitude of the input signal. Mechanical angle of the input signal can be determined based upon the sign of the sine and cosine product vector averages.
Latest Hamilton Sundstrand Corporation Patents:
- DIRECT CONTROLLED VARIABLE DISPLACEMENT PUMP FUEL SYSTEMS WITH LOW PRESSURE THERMAL RECIRCULATION PUMPING
- Multi-surface sealing for two-position valves
- Three way transfer valve for parallel electrohydraulic servo valve control of actuator
- Motor drive direct current link voltage measurement resolution improvement with fault detection
- Buck converters with light load function and logic
This application is a divisional application of U.S. application Ser. No. 11/496,789, filed on Aug. 1, 2006 now U.S. Pat. No. 7,432,836.
BACKGROUND OF THE INVENTIONThe present invention relates generally to a signal conditioning topology which is consistent with a methodology for converting multiple types of inputs including AC sensor signals to equivalent engineering units.
Although this invention is not limited to LVDTs or resolvers, these sensors will be used as examples to describe the operation and some of the benefits of the present invention. LVDTs and resolvers each generate a pair of AC sensor signals that together indicate position and/or angle. These AC sensor signals must be converted to their equivalent engineering units. The known signal conditioning methods includes separate anti-aliasing filter and demodulators for each of the AC sensor signals. This increases the cost, size and power consumption of the circuit. Additionally, any inherent variations or fluctuations between the circuits for a pair of AC sensor signals for a given sensor may introduce error into the angle calculation.
SUMMARY OF THE INVENTIONThe present invention provides a signal conditioning circuit in which anti-aliasing filters and an A/D converter are time share multiplexed. This reduces the size, cost and power consumption of the circuit.
A plurality of first tier multiplexers each time share multiplex an antialiasing filter between a plurality of input signals from a plurality of sensors. A second tier multiplexer selects its input from the outputs of the first tier multiplexers. The output of the second tier multiplexer feeds a sample and hold circuit, which is digitized by a high speed A/D converter. Thus, the A/D converter and the sample and hold circuit are time share multiplexed by the second tier multiplexer. In this manner, a plurality of sensors can share a single A/D converter. The number of sensors that can be used with a single A/D converter depends upon the speed of the A/D converter, the required update rate, filter settling times, and multiplexer settling times.
After allowing a settling time for the multiplexers and antialiasing filters, a plurality of samples of the input signals are taken (e.g. for one period). For AC signals, a sine vector and a cosine vector multiply the samples of each input signal. The product vectors are then each averaged and the root mean square of the two averages yields the vector magnitude of the input signal. Mechanical angle of the input signal is required for multiquadrant resolvers. It can be determined based upon the sign of the sine component of the sin β and cos β (β represents the resolver angle) vector averages.
Other advantages of the present invention will be readily appreciated as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings wherein:
A signal conditioner 10 for a plurality of input signals from a plurality of sensors 12, 14, 16 is shown in
A plurality of first tier multiplexers 20a-e each group a plurality of input signals into a shared antialiasing filter 22a-e. The plurality of input signals for any given first tier multiplexer 20a-e is preferably sufficiently similar such that a single antialiasing filter 22a-e can be used. For multiple AC input signals from a single sensor, for example five wire LVDTs 12 (E1 and E2) and resolvers 14 (A sine β and A cosine β windings), signals from the same sensor are fed through a common first tier multiplexer 20 and antialiasing filter 22. This is done so that any gain or frequency response variations caused by the first tier multiplexer 20 and antialiasing filter 22 would occur identically on the signals, and therefor the effects would cancel. This will result in a timing skew due to the non synchronism of the measurements (i.e. E1 and E2). However for the proposed system, and for most other systems, the time interval is sufficiently short so that the error introduced is small and can be ignored.
The number of sensors that can share a single first tier multiplexer 20a-e depends on the throughput requirement for the sensors and their respective conversion times. For LVDTs 12, for example, if the desired update rate was 10 msec and conversion takes 1 msec for E1 or E2, then five LVDTs 12 could be grouped into a common antialiasing filter 22a-e. However, if gain and test inputs are used as shown, then four LVDTs 12 could be grouped.
The second tier multiplexer 26 selects its inputs from the outputs of the first tier multiplexers 20. The output of the second tier multiplexer 26 feeds a sample and hold circuit 28. The output of the sample and hold circuit 28 is digitized by a high speed A/D converter 30. For example, the A/D converter 30 could provide a fourteen bit digitized output in two microseconds (500 kHz). The number of first tier multiplexers 20a-e (and/or optionally direct inputs from a single sensor and antialiasing filter) that can be handled by the second tier multiplexer 26 during the dwell time of the first tier multiplexers 20a-e, is dependant on the second tier multiplexer 26 settling time and the A/D converter 30 update rate. For example, if the first tier multiplexer 20 dwell time is 1 msec, the second tier multiplexer 26 settling time is 2 microseconds, and the conversion rate is 500 kHz, 250 conversions could be done. However, this does not necessarily mean that 250 signals can be converted each millisecond, since subsequent digital filtering of the A/D converter 30 output typically requires from 8 to 36 samples of input data. This reduces the signals converted per msec to be between 6 to 32 signals.
The A/D converter 30 output is provided to the controller, which in the example shown is a DSP 32. The controller could also be a gate array, general-purpose processor, etc. Software in the DSP 32 provides the digital filtering as well as the EUC conversion. Some of the details of this digital processing will be discussed in more detail below.
The AC sensors (LVDTs 12, resolvers 14 and other sensors 16) and the sample and hold circuit 28 are preferably all synchronously operated by the same sine wave generator 40 (or other clock). More specifically, the sampling frequency is preferably an integer multiple of the frequency of the AC sensors. As will be described later, opting to sample each of the AC input signals at a frequency that is twelve times the frequency of the AC input signals simplifies some calculations, and is therefore advantageous, although not required.
Assuming the A/D converter 30 is capable of converting at a 500 kHz rate, and the second tier multiplexer settling time is 2 microseconds, six input signals could be concurrently sampled in the 27.7 microseconds. The dwell time on the first tier multiplexer is dependant on the signal type antialiasing filter settling time, and the digital filtering required. For example for AC signals the filter settling time is approximately 0.165 msec, and a minimum of 12 samples of the signal are required for one complete cycle of the input wave. This makes the minimum dwell time 0.5 msec. Addition of recommended digital low pass filters increases this number of samples to typically 30, making the dwell time 1 msec. Using the above numbers six simultaneous waves could be converted every 0.5 msec or every 1 msec, without and with digital filtering respectively. Assuming the average update rate required for the AC signals was 10 msec, 120 or 60 (without and with digital filtering respectively) AC signals could be converted at this average rate by one A/D converter 30. In the example illustrated in
As mentioned above the settling time for each first tier multiplexer 20 and its associated antialiasing filter 22 must be accommodated before usable samples are obtained. This delay is to allow steady state conditions to be achieved before samples that will be used are taken. The delay is determined by the multiplexer delay and the antialiasing filter 22 settling time constant. The amount of filtering required is dependent on the expected magnitude of any potential input frequency which might alias a signal frequency within the signal conditioner pass band. The usable samples (in this example, twelve to thirty) of the AC input signal are then processed to determine the magnitude (and phase for four quadrant resolvers 14) of the AC input signal.
It will become clear in future discussions that the signal processing algorithm for the AC signals, implemented by the DSP 32 produces a bandpass filter centered around the frequency of the AC input signals. Depending upon the frequency of the input signal and the sample rate, an alias signal could be produced that is within the pass band of the bandpass filter. The antialiasing filters 22a-e are chosen to eliminate (or substantially reduce) the magnitude of input signals that could produce this aliased signal. The signal at 11× the excitation frequency is typically the worst case since it will produce an aliased signal precisely at 3 kHz. Higher frequency signal (e.g. 13×) can also produce beat notes. However, since an antialiasing filter is characteristically implemented by using a multiple pole low pass filter; if it is designed to adequately attenuate the lowest frequency that could produce an aliased signal, the filter will also take care of other higher frequency signals that could produce an undesired aliased signal. The specific antialiasing filter requirements would be based upon the magnitude of the potential aliased signal in a particular application, and the errors permitted for the signal conditioner
The antialiasing filters 22a-e provide a settling time that reduces the throughput of the signal conditioner 10, as has been described above, since the A/D converter 30 will not produce valid data until steady state has been reached. This effect can be mitigated if the throughput loss becomes significant by adjusting the timing of the first tier multiplexer 20 so that the second tier multiplexer 26 is sampling a different antialiasing filter 22a-e which has already settled while the antialiasing filter 22a-e in question is settling.
After the stabilized samples are collected, digital processing is performed. Two cases will be considered. The first case is where there is no requirement for digital low pass filtering. In this case the digitized AC input signal (e.g. the twelve post-settling samples) is sine wave synchronously demodulated by the DSP 32. This is done by multiplying the sampled input vector by the value of the sine and cosine vectors (at 30-degree increments) for one complete cycle. The sine and cosine synchronous demodulation allows even as well as odd harmonics to be eliminated in the processed digital signal. The output of the sine (and cosine) synchronous demodulator is summed to produce an output which is six times the peak sine wave input. (This is because the synchronous demodulation process produces an output that is ½ the input peak magnitude, and twelve samples are taken). Note both a sine and a cosine synchronous demodulation process is provided so that phase shift errors due to timing skew of the sampler and the sampled signal will not cause conversion errors. The resultant sine and cosine components are vector summed by the DSP 32 to produce the magnitude of the input wave. The update rate of this calculation is only 1/12 the input A/D rates however, so the DSP 32 burden is thereby reduced.
An example calculation is illustrated in
Choosing twelve samples per cycle simplifies the sine and cosine multiplication. All of the multiplication can be accomplished by binary shifts or are zero, except the sin 60 (120, 240, 300) or the cos of 30 (150, 210, 330) which equal SQRT3/2. This can be accurately approximated with shift and add operations, thereby eliminating the need for an ALU to provide the desired mathematical operations. Alternatively, the mathematical operations could be provided in an ALU or otherwise in the controller.
To better understand the mathematics behind this algorithm, the following general equations are provided:
A sin(f(t)sin(ωt)=A(½ cos(f(t(−ωt)−½ cos(f(t)+ωt)) (1)
A sin(f(t)cos(ωt)=A(½ sin(f(t(−ωt)+½ sin(f(t)+ωt)) (2)
Where f(t)=LVDT or Resolver input voltage
As can be seen, the multiplication yields sum and difference frequency outputs.
Evaluating the simplistic case where 2π* f(t) and ωt are identical, except for a phase shift (α) between the two, the above equations yield time invariant resolved outputs of the input magnitude A plus a sum frequency component.
A sin(f(t)+α)sin(ωt)=A(½ cos(α)−½ cos(f(t)+ωt)+α) (1)
A sin(f(t)+α)cos(ωt)=A(½ sin(α)+½ sin(f(t)+ωt)+α) (2)
The sine and cosine products are a function of the electrical phase relationship α between the LVDT 12 excitation and the E1 or E2 outputs. The sum frequency is removed by averaging the sampled outputs over precisely one period of the input signal for the non digitally filtered case as illustrated in
The characteristic Equation of the EUC conversion for a five wire LVDT is as follows:
Position=(LVDT Gain)*{(E1−E2)/(E1+E2)}+LVDT Bias
-
- Where LVDT Gain and LVDT Bias terms are LVDT characteristics provided by the manufacturer, and E1 and E2 are determined per
FIG. 4 .
- Where LVDT Gain and LVDT Bias terms are LVDT characteristics provided by the manufacturer, and E1 and E2 are determined per
As can be seen by the above equations, interface gain errors and LVDT excitation magnitude variations would cancel. (This fact allows small errors in antialiasing filter gain due to non-perfect settling to cancel as well, as has been mentioned previously).
A four-quadrant resolver 14 can also be converted. A single quadrant conversion is a subset of this logic, and is not covered in any detail. The algorithm for determining the magnitude of the A sin β or A cosine β, (where β is the resolver angle) windings is virtually identical to that logic used for calculating E1 and E2 for the LVDTs 12, with one exception. The A sin β or A cos β outputs must be properly signed, since the arctan function that is used to convert the ratio A sin β/A cos β to the angle β angle repeats itself over 360 degrees of travel This sign determining logic is as follows:
Sin component*A sin β=Sum (sin product 1 to 12)/6
Cos component*A sin β=Sum (cos product 1 to 12)/6
If Sin component*sin β>0, sign of A sin β=+, else sign of A sin β=−
Magnitude Sin β=SQRT((Sin component A sin β)2+(Cos component A sin β)2)
-
- Cos ω conversion is done in a similar manner.
This logic requires some rough time synchronization to be done in the starting point of the sine cosine table, and the excitation zero crossing. As phase shift occurs with imperfect time synchronization, the sensitivity of the sine component starts to diminish; however the zero crossing point is still maintained.
The EUC calculations as well as the octant logic are detailed in
The case of the AC conversion of E1 or E2 (or A sin β and A cos β for the resolver case) using digital filtering will next be considered. The flow chart and time domain responses will first be presented for comparison with the AC conversion without digital filtering. A comparison of the two cases will then be made in the frequency domain to illustrate the improvement in noise immunity afforded by the addition of the digital filter.
The low pass filter 22 (
The frequency response comparison for the AC conditioner, both with and without a digital filter, is illustrated in
A test signal is required, however, to verify the proper performance of the antialiasing filter for the AC conditioner. Assume the antialiasing filter is a 3-pole LP filter at 7 kHz. To properly test the attenuation characteristics of this filter, assume the test signal for the filter is set at 4 times the LVDT excitation frequency, or 12 kHz. The antialiasing filter defined should attenuate this test signal by approximately a factor of 5. However, if the digital processing of the AC conditioner were to remain unchanged, the interface would attenuate the test signal in this frequency range (see
Other filtering techniques such as a slew rate filter on the output can be effective in bounding the excursions of wild points. Basically the output is constrained to move only as much as the maximum slew rate of the devise would allow it to move. This type of filter is most effective when the sampling rate is high compared to the maximum slew rate, so that the maximum travel is constrained to a small value each dt.
Signal processing of DC (baseband) signals such as illustrated by 16 in
In accordance with the provisions of the patent statutes and jurisprudence, exemplary configurations described above are considered to represent a preferred embodiment of the invention. However, it should be noted that the invention can be practiced otherwise than as specifically illustrated and described without departing from its spirit or scope.
Claims
1. A method for converting a signal including the steps of:
- a) sampling a signal at a rate that is twelve times a frequency of the signal to generate a plurality of samples;
- b) multiplying the plurality of samples by a sine vector;
- c) multiplying the plurality of samples by a cosine vector; and
- d) determining a magnitude of the signal based upon said steps b) and c).
2. The method of claim 1 wherein said step d) further includes the step of calculating a root mean square of an average of the products from said step b) and an average of the products in said step c).
3. The method of claim 1 further including the step of calculating a sin component of the signal based upon a sum of the products of said step b).
4. The method of claim 1 further including the step of determining a mechanical angle of the signal based upon a sum of the products of said step b).
5. The method of claim 1 further including the steps of:
- e) averaging the products from said step b); and
- f) averaging the products from said step c).
6. The method of claim 1, further including the steps of:
- e) sending the signal to a sample and hold circuit, wherein the sample and hold circuit is in communication with both a multiplexer and an analog-to-digital (A/D) converter; and
- f) sampling the signal with the A/D converter to generate the plurality of samples.
7. A method for converting a signal including the steps of:
- a) sampling a signal to generate a plurality of samples;
- b) multiplying the plurality of samples by a sine vector;
- c) multiplying the plurality of samples by a cosine vector;
- d) filtering the products from said step b);
- e) filtering the products from said step c);
- f) averaging the products filtered in said step d);
- g) averaging the products filtered in said step e); and
- h) determining a magnitude of the signal based upon said steps f) and g).
8. The method of claim 7 wherein said steps d) and e) are performed with a digital low pass filter.
9. A method for converting a signal including the steps of:
- a) sampling a signal to generate a plurality of samples;
- b) multiplying the plurality of samples by a sine vector;
- c) multiplying the plurality of samples by a cosine vector;
- d) determining a magnitude of the signal based upon said steps b) and c);
- e) applying an antialiasing filter to the signal; and
- f) applying the antialiasing filter to a test signal.
10. The method of claim 9 further including the steps of:
- g) sampling the test signal to generate a plurality of test samples;
- h) multiplying the plurality of test samples by a test sine vector;
- i) multiplying the plurality of test samples by a test cosine vector;
- j) determining a magnitude of the test signal based upon said steps h) and i); and
- k) evaluating the magnitude of the test signal to determine proper operation of the antialiasing filter.
11. The method of claim 10 wherein the test signal has a frequency four times a frequency of the signal.
12. The method of claim 11 wherein the test signal is a square wave.
13. A signal converter comprising:
- a sampler generating a plurality of samples from a signal;
- an analog-to-digital (A/D) converter;
- a processor multiplying the plurality of samples by a sine vector, the processor multiplying the plurality of samples by a cosine vector, the processor determining a magnitude of the signal based upon the product of the samples and the sine vector and the product of the samples and the cosine vector, and the processor determining a mechanical angle of the signal based upon a sum of the products.
14. The signal converter of claim 13 wherein the processor calculates a root mean square of an average of the products of the sine vector and an average of the products of the cosine vector.
15. The signal converter of claim 13 wherein the sampler samples AC input signals at a rate that is twelve times a frequency of the AC input signals.
16. The signal converter of claim 15 wherein the multiplying the plurality of samples by the sine vector and the cosine vector is performed using a combination of binary shifts, adds, and zeroing operations.
17. The signal converter of claim 15 wherein the magnitude of the signal is determined over one complete cycle of the frequency of the AC input signals based upon twelve of the products of the samples and the sine vector and twelve of the products of the samples and the cosine vector selected from one of the AC input signals.
18. The signal converter of claim 13, wherein a sample and hold circuit is in communication with the A/D converter.
19. The signal converter of claim 18, wherein the sample and hold circuit is in communication with a plurality of multiplexers.
3516084 | June 1970 | Sacks, Jr. et al. |
3976869 | August 24, 1976 | Stella et al. |
4062005 | December 6, 1977 | Freed et al. |
4099245 | July 4, 1978 | Maysonett |
4542336 | September 17, 1985 | Powell |
4594540 | June 10, 1986 | Currie et al. |
4652821 | March 24, 1987 | Kreft |
5034743 | July 23, 1991 | Deppe et al. |
5134397 | July 28, 1992 | Eyerly et al. |
5168222 | December 1, 1992 | Volsin et al. |
5241268 | August 31, 1993 | Lee |
5260650 | November 9, 1993 | Schwesig et al. |
5600576 | February 4, 1997 | Broadwater et al. |
6014022 | January 11, 2000 | Demma et al. |
6084376 | July 4, 2000 | Piedl et al. |
6331759 | December 18, 2001 | Atmur |
7149654 | December 12, 2006 | Ramsdale et al. |
20040027118 | February 12, 2004 | Lenz et al. |
20040027263 | February 12, 2004 | Pailleur et al. |
Type: Grant
Filed: Aug 28, 2008
Date of Patent: Aug 10, 2010
Patent Publication Number: 20080316079
Assignee: Hamilton Sundstrand Corporation (Windsor Locks, CT)
Inventor: John E. Games (Granby, CT)
Primary Examiner: Khai M Nguyen
Attorney: Carlson, Gaskey & Olds
Application Number: 12/200,058
International Classification: H03M 1/48 (20060101);