A Novel FPGA-based LVDT Signal Conditioner: Kumardeb Banerjee, Bivas Dam, Kalyan Majumdar
A Novel FPGA-based LVDT Signal Conditioner: Kumardeb Banerjee, Bivas Dam, Kalyan Majumdar
A Novel FPGA-based LVDT Signal Conditioner: Kumardeb Banerjee, Bivas Dam, Kalyan Majumdar
Abstract — This paper presents a phase compensated novel synchronous demodulator [5]. The work in [6] reports a DSP-
signal conditioner for a linear variable differential transformer based implementation of a typical I/Q demodulator for LVDT
(LVDT) and its FPGA based implementation. The LVDT output signal conditioning. The scheme accommodates both 4-wire
signal is a double-sideband suppressed-carrier amplitude-
modulated (DSB-SC-AM) waveform, where the LVDT sinusoidal
and 5-wire LVDTs, is insensitive to sensor induced phase
excitation is the carrier signal and the LVDT core position is the errors, and its performance is comparable with the
modulating signal. The proposed signal conditioner locates the commercially available LVDT signal conditioner ICs.
carrier peaks in the LVDT output signal and provides a direct However, this scheme necessitates the use of high
digital demodulation of the same at the said instants. Since the performance floating point DSPs, and hence, may not be
carrier component at the sampling instants equals the carrier commercially viable for single channel LVDT signal
amplitude, a simple gain scaling converts the read data to the
LVDT core position measurement. The peak sensitive
conditioning. The DSP-based approach reported in [7] and the
demodulation is insensitive to sensor induced phase lag and does implementation of a multi-channel DSP-based Instrument for
not require external phase compensation network. This displacement measurement using differential variable
conditioner has better dynamic response than existing LVDT reluctance transducers (DVRT) reported in [8], both use
signal conditioners. Its overall error figures are also comparable spectral estimation technique to estimate sensor primary and
with those of the existing solutions. secondary amplitudes. The final position measurement is
Keywords: Linear variable differential transformer; signal obtained from ration of the two. However, spectral estimation
conditioner; FPGA based implementation; direct digital technique works with a large number of signal samples,
demodulation; peak sensitive demodulation. thereby compromising the system bandwidth. The work
reported in [9] uses a system-on-chip microcontroller
I. INTRODUCTION MSP43OF149 from Texas Instruments to build a precision
The LVDT is a displacement sensor that gives an accurate LVDT signal conditioner. However, driving the LVDT primary
measurement of position. Detailed description of an LVDT and winding with a square wave necessitates incorporation of
its operation can be found in [1-2]. Commercially available additional filter chains to suppress the higher harmonics.
LVDTs are either the 4-wire type or the 5-wire type and work It is also worth noting the salient features of the two
with a primary excitation that varies from a few kHz (iron commercially available monolithic LVDT signal conditioners -
core) to hundreds of kHz (ferrite core). AD598 and AD698 from Analog Devices. The AD598 and
AD698 employ the ratio-based method and their
There are two existing and well documented approaches implementation details are documented in their respective
for LVDT signal conditioning – the ratio-based method [3] and datasheets [10-11]. Both implementations generate a low
the synchronous demodulation method [4]. The ratio-based distortion primary excitation that varies from 20 Hz to 20 kHz,
method directly computes position as the ratio of the LVDT and generates a dc voltage proportional to the LVDT core
secondary output and input primary excitation. However, position. The AD598 works only with 5-wire LVDTs and is
ratio-based methods are inherently noisy and in case there is a insensitive to sensor induced phase errors. The AD698 can
sensor induced phase lag in the secondary differential work with both 4-wire and 5-wire LVDTs. However, it
waveform, the secondary to primary ratio does not give an requires external RC network to eliminate sensor induced
exact measure of position, and a phase correction becomes phase lag.
mandatory to produce the correct output. The strength of this
method is that the measurement is insensitive to the variations In this paper we propose a robust phase-compensated
in the amplitude of the primary excitation. LVDT signal conditioner that implements a modified
homodyne detector that carries out a phase compensated
The second approach applies the standard phase-sensitive synchronous demodulation of the LVDT secondary differential
demodulation technique to the LVDT secondary output, a output. The proposed scheme implements a direct digitization
double-sideband suppressed-carrier amplitude modulated of the DSB-SC-AM output at the carrier peaks, as seen in the
(DSB-SC-AM) waveform. Various well documented variants LVDT output signal. This makes the process insensitive to
of the synchronous demodulation technique are available but sensor induced phase lags and less hardware intensive than
the more popular variant is the in-phase/quadrature (I/Q) existing solutions. An FPGA-based prototype of the proposed
signal conditioner is also implemented and tested on a standard
test bench. The results show linearity and bandwidth figures
comparable with existing commercial solutions.
A. Principle of operation
The proposed LVDT signal conditioner implements a
modified version of the standard synchronous demodulator that
eliminates the necessity of implementing multipliers, low pass
filters (LPFs), and subsequent signal processing for the
extraction of the core position. The basic idea behind the
proposed demodulation scheme is based on a technique Fig. 1: Functional block diagram of the proposed LVDT signal conditioner.
reported in [12].
The proposed demodulation scheme implements a carrier The proposed LVDT signal conditioner first converts the
peak synchronous direct readout method. At any instant of LVDT output to an equivalent digital pulse train, the modulated
time, the LVDT secondary output, a DSB-SC-AM waveform is pulse train. As the primary excitation is available locally, a
the product of the instantaneous values of the carrier signal and carrier pulse train, coherent with the primary excitation, is
the modulating signal. If the waveform is read at the carrier generated. Both pulse trains are then passed through two
peaks, as seen in the modulated signal, the carrier component is identical digital noise filters (DNFs). The filters remove noise
simply its amplitude that can be removed by appropriate glitches from the pulse trains but add some time lag, Tf, to
scaling of the read data. Moreover, this readout mechanism each. Next, to ascertain the phase mismatch between the carrier
also eliminates the phase error that creeps in due to phase and the modulated pulse trains, it measures the time lags, Td1
mismatch between the carrier and the modulated signals. To and Td2, between the rising edge of the filtered carrier pulse
instrument this, one has to identify the carrier-peaks in the train and the subsequent rising and falling edges of the filtered
modulated signal, read the modulated signal at the said instants modulated pulse train, and computes Td, the minimum of Td1
and scale them properly to remove the carrier amplitude and Td2. In DSB-SC-AM waveforms, whenever the modulating
component. The final output is thus the modulating signal, read signal becomes negative, the carrier component in the
at the carrier-peaks in the modulated signal. modulated signal suffers a phase inversion. In such cases, for
the filtered modulated pulse train, the falling edge precedes the
However, the following features need to be embedded in rising edge. Therefore, finding the minimum between the two
the said demodulator to ensure an error-free peak synchronous time lags ensures a correct measure of the LVDT primary to
demodulation: secondary phase lag. It then generates a quadrature pulse train
• The LVDT secondary output is first converted to a with a period that equals Tc, the carrier signal time period, with
digital pulse train for subsequent signal conditioning rising edges delayed by (Td + Tc /4 – Tf) from the
by comparators with built-in hysteresis. High level corresponding rising edges of the filtered carrier pulse train. A
noise glitches present in the sensor output, however, delay of Td from the carrier rising edge finds the corresponding
generates short duration pulses at the output of the carrier edge in the LVDT output signal. A further delay of (Tc /4
comparator. These noise pulses may corrupt the peak- – Tf) finds the corresponding carrier peak, as seen in the LVDT
detection mechanism and hence must be filtered out. output signal. The LVDT output signal, if sampled and
digitized at the rising edges of the said quadrature pulse-train,
• The LVDT secondary output signal, read at the carrier gives a direct digital read-out of the LVDT core position with
peaks, needs to the scaled. Since the scaling factor is correct sign.
proportional to the amplitude of the primary
excitation, a tight tracking of the same is essential to B. Design Overview
maintain measurement accuracy and repeatability.
Fig. 1 illustrates a functional block diagram of the
• The proposed demodulator regenerates the primary proposed LVDT signal conditioner. The outer section consists
excitation from the modulated signal. Moreover, it of an analog front-end hardware necessary for sensor
requires a periodic updating of the process to track interfacing. The inner core is the block level implementation
any drift in the frequency of the same. If the LVDT of the proposed demodulator along with a serial interface for
core is at the null position, the secondary differential uploading the measurement data to a host processor. The
voltage is zero. Hence, if the peak detection process of sensor interface section consists of a digital to analog
the carrier, as seen in the modulated signal, is initiated converter (DAC) driven by SW, the output of the
at this time, it fails. A watch-dog mechanism is thus SW_GENERATOR block that uses direct digital synthesis
necessary that, during start-up, will start the said (DDS) technique [13] to implement a sinusoidal waveform.
process only after sensing a non-zero LVDT output The output of the DAC is the LVDT primary excitation signal.
and will hold the last period data if the same incident The SW is a 12-bit sine data in 2’s compliment form. The MSB
occurs during periodic updating of the same. of SW is buffered and taken out as CLKA, the carrier pulse
train. CLKA is coherent with the carrier signal, with its rising
data and loads the same on a 16-bit parallel-input serial-output
shift register, PISO_16. On receipt of sixteen serial clocks at
SCLK from the host processor, it outputs the 16-bit data,
serially, through SDO, to the host processor. Data bits are
shifted at every rising edge of SCLK, with the LSB transmitted
first. The serial clock frequency is decided by the host
processor; but from the design point of view, the maximum
permissible clock frequency is set to be 1 MHz.
Fig. 2: Functional block diagram of the PHASE_DELAY_LATCH
III. IMPLEMENTATION ISSUES
and falling edges matching exactly with the positive and This section documents a brief overview of the
implementation of the analog front-end hardware and the
negative zero crossing points of the carrier signal. A zero- mapping of the functional blocks of the inner core on the
crossing detector (ZCD) circuit converts the LVDT secondary target FPGA board.
output signal into modulated signal pulse train CLKB.
A functional block diagram of the A. Analog front-end hardware
PHASE_DELAY_LATCH, as presented in Fig. 2, shows the The sensor interface comprises of a low-distortion sine
sub-blocks that implement the aforesaid functionalities. Two wave generator to drive the LVDT primary winding and an
identical digital noise filters DNF1 and DNF2 remove noise ADC to read the secondary differential voltage. The sine wave
glitches from CLKA and CLKB, the incoming pulse trains and generator consists of a 12-bit full four quadrant multiplying
generate the filtered equivalents, viz. CLK1 and CLK2. Noise DAC, AD7541A driven by the FPGA-based DDS module.
glitches are very short duration spikes, with pulse widths Since the DAC provides a unipolar current output, a dual
negligible compared to that of the pulse train CLKA or CLKB. JFET-input op-amp IC, TL082 is used for current to voltage
The DNFs are designed to reject pulses of width below a conversion and level-shifting to generate a bipolar sinusoid of
preset time period, PD_FILT. The CNT_POS_EDGE block 5.0V peak-to-peak excursion. The VREF of the DAC is taken
starts a counter at the rising edge of CLK1, stops the same at from the on-chip VREF of the ADC. The ADC used in this setup
the rising edge of CLK2, and latches the same as DCNT1. The is a 12-bit SA-type ADC, AD574A that comes with an on-chip
CNT_NEG_EDGE block starts another counter at the rising stable 10.0V VREF (maximum 0.2% error and typical
edge of CLK1, stops the same at the subsequent falling edge of temperature coefficient of 15ppm/°C) which is available
CLK2, and latches the same as DCNT2. The WATCH_DOG externally and can drive up to 1.5 mA. As a single stable
block checks whether a valid rising edge and a falling edge of voltage reference source is used to drive both the DAC and
CLK2 occur prior to the next rising edge of CLK1. If yes, it ADC, any drift in the same will introduce changes in the DAC
latches the count values DCNT1 and DCNT2. If no, it clears and ADC outputs such that one nullifies the other. This, in
both the counters and restarts the delay count process from the effect, implements an auto correction mechanism that keeps the
next rising edge of CLK1. The MIN_COUNT block finds the scaling factor independent of the drifts in the carrier amplitude
minimum of DCNT1 and DCNT2, PD_FILT is subtracted due to changes in the reference voltage.
from it, and finally latched as DCNT. The ADC does not come with a SHA and hence a SHA unit
The CARRIER_PRD_GEN block counts the period of is implemented using the monolithic sample-and-hold IC,
CLK1 and latches the same as PD_CNT on an output latch. LF398. The input to the SHA is the LVDT secondary
The next block in the chain, QDR_PULSE_GEN, takes as its differential output and the sample-and-hold pulse comes as
inputs DCNT and PD_CNT to generate CLK3, a pulse train STB. The SHA output, SH0, is fed to the input of the ADC,
whose time period equals that of CLK2 but is in quadrature calibrated for a ± 5.0V bipolar input.
with CLK2. This is done by delaying the rising edges of CLK3 In addition to the ADC and DAC, the signal conditioner
by DCNT and a quarter of PD_CNT from those of CLK1. requires a ZCD unit for converting the LVDT secondary output
The final block, STB_GEN generates sampling pulses, to a pulse train. In this setup the ZCD unit is implemented
STB, whose falling edges coincide with the rising edges of using the monolithic comparator IC, LM311. Adequate
CLK3. STB drives a sample and hold amplifier, SHA. The on- hysteresis (≈150 mV) is provided in the ZCD unit for input
time of STB depends upon the acquisition time of the SHA and noise rejection. By design, the rising edges of the pulse train at
should be designed accordingly. The input to the SHA is the the ZCD output occur at the positive zero crossing points of
LVDT secondary output signal. The SHA output, SH0, is fed to the input analog waveform.
the input of a successive approximation (SA) type ADC, which
digitizes the LVDT secondary output signal at the carrier B. FPGA mapped blocks
peaks. Block RD_ADC_DATA generates the ADC handshake The inner core of the LVDT signal conditioner is designed
signal R/C~, reads the status signal EOC, and latches the and implemented on a MEMEC FPGA Evaluation Board that
converted data, DATA12, on an output latch. uses a Xilinx XC2S100 SPARTAN-II FPGA chip using the
Block SPI_SLAVE implements a 16-bit SPI slave channel, Xilinx PC-based ISE 9.1i Design Development System. The
a synchronous serial interface of the signal conditioner with system clock fCLK is derived from the on-board 25.0 MHz
the host processor. The module converts DATA12 to a 16-bit crystal and the I/O pins are made LVTTL compatible. The gate
TABLE I: GATE UTILIZATION OF THE DEVICE
ACKNOWLEDGMENT
The authors wish to thank the members of the Centre for
Embedded Systems in Instrumentation, Dept. of
Instrumentation & Electronics Engineering, Jadavpur
University for the facilities made available to them for
fabricating and testing the hardware setups.
REFERENCES
[1] G. Novacek, “Accurate linear measurement using LVDTs”, Circuit
Cellar Ink, issue 106, 1999, pp. 20–27.
Fig. 7: Frequency Response of the proposed LVDT signal conditioner [2] E.E. Herceg, “Handbook of Measurement and Control”, Schaevitz
Engineering, Pennsauken, New Jersey, 1986.
[3] R.K. Jurgen, “Automotive Electronics Handbook”, second ed., McGraw-
around 100 Hz and that for the DSP based COSTAS receiver is Hill, USA, 1999.
more than 250 Hz. [4] B.P. Lathi, “Modern Digital and Analog Communication Systems”,
For this test run, the LVDT emulator is used to generate a Oxford University Press Inc., New York, 1998, pp. 251-262.
DSB-SC-AM where the modulating signal (core position) is [5] C. Ziomek and P. Corredoura, “Digital I/Q Demodulator”, IEEE PAC
varied from 10 Hz to 400 Hz in steps of 10 Hz to simulate 95, SLAC, USA, 1995.
sinusoidal core motion. The proposed signal conditioner is [6] R.M. Ford, R.S. Weissbach and D.R. Loker, “A Novel DSP-based
driven by the LVDT emulator output and the magnitude and LVDT Signal Conditioner”, IEEE Transactions on Instrumentation &
phase of the demodulator output are measured and recorded to Measurement, vol. 50, 2001, pp. 768–773.
generate the frequency response as shown in Fig. 7. The input [7] D. Crescini, A. Flammini, D. Marioli, and A. Taroni, “Application of an
FFT-based algorithm to signal processing of LVDT position sensors,”
of the DAC, whose output is the analog demodulated IEEE Trans. Instrum. Meas., vol. 47, pp. 1119–1123, Oct. 1998.
waveform, is updated at a rate of 12.5 kHz. It thus behaves [8] A. Flammini, D. Marioli, E. Sisinni and A. Taroni, “A Multichannel
like a zero order hold circuit with a hold time of one sampling DSP-Based Instrument for Displacement Measurement Using
interval, i.e. 80 μsec. The reconstructed waveform, Differential Variable Reluctance Transducer”, IEEE Transactions on
conventionally obtained by joining the central points of the Instrumentation & Measurement, vol. 54, No. 1, 2005, pp. 178–183.
held values, thus shows an average delay of half the hold [9] Andrei Drumea, Alexandru Vasile, Mircea Comes and Marian Blejan,
time, i.e. 40 μsec. The phase lag at individual frequency points “System on Chip Signal Conditioner for LVDT Sensors”, Proceeding of
Electronics Systemintegration Technology Conference, Germany, 2006,
is, therefore, obtained by multiplying the average delay by the pp.629-634.
corresponding angular frequency. The system bandwidth, as is [10] Analog Devices, “LVDT Signal Conditioner”, AD598 Application Note,
obvious from the magnitude plot is well above 400 Hz. The 1989.
phase plot is a straight line plot, with a slope of –0.0144°/Hz, [11] Analog Devices, “Universal LVDT Signal Conditioner”, AD698
resulting in a phase lag of –5.76° at 400 Hz. The dynamic Application Note, 1995.
characteristics of the proposed LVDT signal conditioner is thus [12] B. Dam, K. Banerjee, K. Majumdar, R. Banerjee and D. Patranabis, “A
better than the existing monolithic and processor based Zero Phase-Lag Homodyne Demodulation Technique for Synchronous
Measurement Applications and its FPGA implementation”, Journal of
solutions. Circuits, Systems and Computers, vol. 14, issue: 4, 2005, pp. 771-791.
[13] E. Murphy and C. Slattery, “Direct Digital Synthesis (DDS) Controls
V. CONCLUSIONS Waveforms in Test, Measurement and Communications”, Analog
Dialogue, vol. 39, 2005.
A novel FPGA-based LVDT signal conditioner is designed
[14] Axiomatic Technologies Corporation, “LVDT Simulator”, Technical
and implemented. It implements a phase insensitive Datasheet #TD2503AX, 2009.
demodulator with direct digital readout of the demodulated
data at the carrier peaks of the modulated waveform. The