Other
versions of this page: |
||||||
PC-Based Digital Lock-In Detection of Small Signals in the Presence of NoisePhilip Kromer, Ralph Robinett, Roger
Bengtson, Charles Hays2 AbstractSeveral interesting experiments in the advanced laboratory require an accurate measurement of a slowly varying, extremely small voltage. Lock-in detection is a powerful technique to recover such a signal, even in the presence of broadband noise whose magnitude is several times greater than the signal itself. We have implemented a versatile, low-cost digital lock-in analyzer completely in software. No specialized hardware is required beyond a general-purpose data acquisition board and a low-noise amplifier, yet the detector has a sensitivity of 20 nV and negligible offset drift. Since all signal processing takes place on the computer, students can display the waveform as a time series or power spectrum as it progresses through the instrument, which makes it an extremely useful teaching tool. We describe the implementation of the lock-in detector and describe its use in a measurement of the resistance of a superconductor as it undergoes its superconducting transition. Its versatility, resolution, and teaching utility make this tool excellently suited to the advanced laboratory. IntroductionWe have implemented a PC-based digital lock-in analyzer (LIA) completely in software1. It is both a powerful measurement device and a useful tool for teaching the basics of lock-in detection. We use the LIA to measure the resistance of a superconductor as it undergoes its superconducting transition, but it is a versatile device. It may be applied to any experiments which requires detection of a small (less than a microvolt), slowly varying (stable over several seconds) voltage that is in response to an externally applied voltage:
Measuring small signalsIt is difficult to measure such a small signal for several reasons 5, 6, 7. Measurement systems suffer from offset and drift several effects (common-mode error, thermoelectric offsets, internal offsets, and rectification of noise) will add or subtract to the signal level you measure, and these offsets will vary with temperature and time. These errors may be mitigated but not eliminated. Small signals will also be contaminated by noise. The experiment should be set up to minimize the effects of noise as far as possible, and to eliminate those noise sources (such as ground loops and electromagnetic interference) which may be eliminated. However, there are other sources of noise (such as Johnson noise, 1/f noise, and shot noise) which are due to fundamental processes and may not be eliminated. Since some of these noise sources have a 1/f spectrum the noise amplitude increases as the frequency goes to zero their effect will be worst at DC. If, however, we were able to move the signal of interest away from DC if the quantity appeared as a periodic signal at some other frequency several benefits would result. Offset and drift would no longer be a concern, as long as they did not introduce a significant common-mode error. We could choose a frequency high enough to avoid 1/f noise, yet low enough to be "quasi-static" (to not materially affect the phenomena under study), and which is far from any significant noise source. Since our signal would be stable in frequency and phase, it will be easy to distinguish from noise. Application: Resistance of a Superconductor |
| For example, these concerns have
consistently plagued our experiment to measure resistance versus temperature for a Y1Ba2Cu3O7-x
sample15 as it
undergoes its superconducting transition 13,14. We use the four-point
configuration shown in Figure 1. A constant current is applied at points A and D,
and the resulting voltage drop appears across B and C. A "T"-type
thermocouple measures the temperature. (It is important to use a "four-point"
technique different contacts to apply the current than to measure the voltage
since the contact resistance is typically several ohms, much more than even the
room temperature resistance of the sample). Our sample shows a room temperature resistance near 20 mW. An applied current of 10 mA gives a voltage drop, at room temperature, of 200 mV. In order to be convincingly "super-" conducting, we would like to observe the resistance drop by several orders of magnitude. This means we must measure a voltage less than 200 nV in the superconducting state.
|
|
| Unfortunately, the large
temperature difference (300 K) between the sample and the amplifier cause thermoelectric
offsets, and the student must carefully null the amplifier before beginning the lab. (It
is also unconvincing to depend on carefully zeroing the amplifier after all, this
only means that you are as "superconducting" as your shorting terminator.)
Furthermore, the amplifier we use gives 1 mV of input noise at DC. Our solution is to modulate the applied current and use lock-in detection. We apply a 37 Hz, 10 mA current across points A and D (Figure 1). The resistive voltage drop will show up across B and C, at 37 Hz and in phase with the applied current. The lock-in analyzer extracts only that component of the signal. It discards offset errors, 1/f noise, and thermoelectric effects; only that portion of the broadband noise near 37 Hz survives, yielding a remarkable improvement in sensitivity. Overview of Lock-In DetectionA lock-in detector takes a periodic
reference signal and a noisy input signal and uses a phase-sensitive detector (PSD)
to extract only that part of the output signal whose frequency and phase match the
reference10. To see how
the phase sensitive detector works, consider a reference signal, Sref,
which is a pure sine wave with frequency wref: |
|
| The program is written in National
Instruments LabView, version 5.0. LabView is a visual high-level programming language for
data acquisition, analysis, and simulation. "Coding" a LabView program involves
laying out a data flow diagram. For example, the figure at the right shows the section of
our LIA program in which the lock-in is performed. The only hardware required is a high-gain low noise amplifier16 and a general-purpose
DAQ card17. The DAQ
card must have three analog inputs (temperature, applied current, and voltage) and one
analog output (the reference signal) with at least 12 bits of resolution and a 20 kHz
sampling rate. We used a National Instruments PCI-MIO-16E-44 multifunction I/O board,
which worked excellently, although we recommend a board with 16- or 24-bit resolution for
demanding applications. |
![]() |
| Each loop also updates
several graphs that display, in real time, the status of the system and the detector. For
example, at right is the "airline cockpit" view of the program, used for
development and debugging. It shows (clockwise from top right) the input and applied
waveforms; their power spectrum; the multiplied and multiplied-filtered signals; the
resistivity versus time, versus temperature, and log resistivity versus temperature. A student performing this experiment would only need to see the resistivity versus temperature graphs. However, when introducing students to the lock-in analyzer, it is extremely useful to display the waveform as it proceeds through the program, and even more so to display its spectrum. The student can directly observe the effects of broadband or line noise, and can see the LIA filter their contributions from the input. This visualization is impossible to perform with a "black box" commercial unit. |
![]() |
The program then repeats the main loop. This process continues until the user requests the program to stop, at which point the program stops the output generation and the acquisition, performs housekeeping such as closing its data file, and exits. |
|
ResultsThe main graph in Figure 6 shows a data set recorded as the sample warmed up from approximately 80 to 200 K. The applied current was 10 mA at 37 Hz, and the output filter was set at 0.5 Hz. Each point in the graph is the average over four cycles (0.108 s) of the lock-in output. The inset graph shows the initial portion of the transition on an expanded y-axis. One can clearly observe the transition at 115 K. The transition is not sharp: this is a general characteristic of high-transition temperature superconductors. Above the transition, we can see that the resistance increases linearly with temperature. Below the transition, we find that the resistance is 0 ± 0.02 microohms. The noise appears to be smaller between 90 and 100 K because the thermoelectric offset disappears, then reappears in this region; this reduces the noise somewhat. |
![]() |
ConclusionsThe lock-in analyzer we have described is a versatile tool. Although we have specifically discussed a superconductivity experiment, it would be straightforward to adapt the LIA to any small signal that may be periodically modulated. It is also low-cost in the sense that the equipment required (computer, DAQ board, and amplifier) is readily available and is used for many different experiments. The program not only replaces the lock-in amplifier but also handles the thermocouple calibration and records and charts the data. It is quite sensitive, and its sensitivity can be further improved with an appropriately expensive input amplifier and ADC. Its primary advantage over a commercial unit, however, is as a teaching tool. The ability to display both time series and frequency spectrum displays of the signal to have an arbitrary number of spectrum analyzers and oscilloscopes connected to the signal path is of great utility. Furthermore, LabView has powerful simulation capabilities: it can not only implement the LIA but also can simulate the entire experiment. In fact, in order to acquaint our students with LabView and lock-in detection, we give each student a partial simulation to complete before lab. That is, we can not only place a lock-in analyzer on every PC in our lab, we can give each student one to take home! These features make the PC-based digital lock-in analyzer an excellent tool for the junior- or senior-level physics lab. References
Sources of, and defenses against, noise:
Lock-in detection:
Superconductivity:
|
|