Introduction

When measuring real-world signals, noise is an unavoidable factor to consider. Noise comes in various forms, including white Gaussian noise, which maintains constant power across all frequencies. Given any noise background, the primary objective is to ensure that the signal of interest is significantly stronger than the surrounding noise. This relationship is quantified by the Signal-to-Noise ratio (SNR), a key metric that indicates how well a signal stands out against system noise.

SNR can be improved by decreasing the total noise power of a system, which is proportional to its noise floor and noise bandwidth, as shown in Equation 1. Assuming a narrow bandwidth, the single-sided noise power spectral density (PSD, denoted as \(N_0\)) is a measurement of the sum of all the noise sources, and is expected to be frequency independent. The noise bandwidth (\(BW_N\)) refers to the band of frequencies over which the noise floor contributes.

\(SNR = \frac{P_{signal}}{P_{noise}} = \frac{P_{signal}}{N_0 BW_N} \)

Results

The Moku Oscilloscope offers Precision mode, an acquisition mode that decreases noise power with noise bandwidth. A previous application note discusses how this is useful for low frequency signals but poses an issue for higher frequency signals with narrow bands, where the Oscilloscope bandwidth has to be wide enough to measure the signal, increasing noise power in the measured data.

A solution to avoiding an increase in SNR from higher noise power at high frequencies, is to down convert the signal. Down conversion consists of mixing, or multiplying, your signal by an oscillator with the frequency of interest and then applying a low pass filter to filter out any unwanted high frequency components. Down conversion shifts the frequency band of interest. The Moku Lock-in Amplifier is a specialized down-converter that shifts the frequency band of interest, as shown in Figure 1. The Lock-in Amplifier lowpass filter constrains the noise bandwidth and, consequently, limits noise power to increase SNR, as visually noted on the Lock-in Amplifier output plot on the right side of Figure 1. This SNR improvement technique is useful for applications such as spectroscopy, materials characterization, and laser stabilization, where signals need to be extracted from noise. In this application note, we use a Moku:Pro Lock-in Amplifier with an extremely narrow low pass filter to measure signals with µV amplitudes.

Figure 1: Signal down conversion and low pass filter

Experimental setup

Using Multi-Instrument Mode (Figure 2), an Arbitrary Waveform Generator and Waveform Generator were used in the first two slots to generate a phase-modulated signal. As shown in Figure 3, the Arbitrary Waveform Generator generated a step function that represents a series of symbols in Morse code: voltage levels of -1, 0, and 1 represent spaces, dots, and dashes, respectively. The full message, spelling “Moku,” was sent from the Arbitrary Waveform Generator into the Waveform Generator with a frequency of 30 mHz. The Waveform Generator had a 2 Vpp 10 MHz carrier signal that modulated its phase proportionally to the step function at a rate of +/- 90 degrees/V (Figure 4).

Figure 2: Multi-Instrument Mode setup. The Arbitrary Waveform Generator in slot 1 generates Morse step function to modulate a sine wave in the Waveform Generator in slot 2. The phase-modulated sine wave is sent to output 1 where it is externally attenuated and fed back into the Moku device via Input 1. The attenuated signal is routed to the main input of the Lock-in Amplifier and demodulated before being sent to be filtered in the Digital Filter Box in slot 4.
Figure 3: Step function representing Morse code message in the Arbitrary Waveform Generator settings. The step function was output with an amplitude of 2 Vpp at a frequency of 30 mHz.
Figure 4: Phase modulation settings in the Waveform Generator. A 10 MHz carrier frequency with a phase modulation depth of 90 degrees/volt. Input A (coming from the Arbitrary Waveform Generator) was set as the modulation source. The amplitude varied between measurements.

The phase modulated signal was routed through 4-6 cascaded 20 dB external attenuators and fed back into input 1 of the Moku:Pro. The Waveform Generator amplitude ranged from 250 mVpp to 1 Vpp, resulting in input signal amplitudes to the LIA between 250 nVpp and 100 µVpp.

The Lock-in Amplifier was configured to mix the input signal with a 10 MHz local oscillator, as shown in Figure 5. The low pass filter was set with the minimum possible cutoff frequency (700 mHz). The output was set to “Θ”, which is the signal phase. The demodulated output of the Lock-in Amplifier was sent into the Digital Filter Box, where a 200 mHz 8th order lowpass Bessel filter was applied (Figure 6), to further denoise the signal. The Digital Filter Box output was recorded for 400 seconds per measurement, to ensure at least 10 message cycles were recorded. The Lock-in Amplifier configuration can be seen below in Figure 5. All device setup and measurements were carried out with the Moku Application Programming Interface (API). The Python API script can be downloaded here.

Figure 5: Lock-in Amplifier setup. A local oscillator with 10 MHz frequency, 2nd order lowpass filter with a 700 mHz cutoff frequency, and polar conversion with 25 µVpp range.
Figure 6: Digital Filter Box settings to apply an 8th order low pass Bessel filter with a 200 mHz cutoff frequency.

Results

Using a MATLAB post-processing script, which can be downloaded here, a single period of the output was plotted and divided equally into 14 time-segments, corresponding to the 14 Morse characters shown in the Arbitrary Waveform Generator equation editor (a-n) in Figure 3. The resulting demodulated and filtered phase output was plotted for each input signal amplitude in Figure 7. The signal value at the midpoint time of each segment was measured as shown in Figure 8. Using threshold values, the following ranges were used to correspond to each Morse character: dash (voltage > 83.5 mV), dot (83.5 mV > voltage > -83.5 mV), space (voltage < -83.5 mV). These values were chosen based on the expected range of the demodulated output signal (0.5 Vpp). The top third values of this range were used for denoting dashes, the middle third for dots, and the bottom third for spaces. Using these threshold values and the Lock-in Amplifier output signal, the Morse code outputs: “– — -.- ..-” which translates to “Moku”.

Figure 7a: Demodulated message signal for each signal amplitude.
Figure 7b: Demodulated message signal for amplitudes up to 5 µV.
Figure 8: Single demodulated message divided into 14 segments for 14 Morse characters. The modulated input signal had an amplitude of 10 µV. The midpoint value of each segment is plotted with a black horizontal line. The corresponding Morse message is “– — -.- ..-”.
Figure 9: Averaged error of midpoint values across all segments and measurements (n=10) for each signal amplitude.

From Figures 7 and 9, it is apparent that input amplitudes < 5 µVpp have higher error (> 1%) in the measured midpoint values in each segment of the Morse message signal. The right plots in Figures 7 and 9 show a demodulated signal and averaged error across the midpoint values, respectively. The averaged error values in Figure 9 compare the midpoint values with the expected values (0.25 V for dash, 0 V for dot, and -0.25 V for space) across 10 different message cycles. When using the threshold values for each symbol mentioned above, nearly all input amplitudes were able to correctly output the Morse message “Moku”. The lower amplitudes (< 5 µVpp) had high noise levels and attenuation causing the midpoint values to be far off from the expected values.

Summary

In this application note, we demonstrated the Lock-in Amplifier’s ability to detect and decipher signals on the microvolt scale. Using a phase-modulated signal on the output of the Moku:Pro, the Lock-in Amplifier was able to recover the phase of the attenuated signal when the signal amplitude was as low as 250 nVpp. While the error of the segment midpoint values begins to increase with signal amplitudes < 5 µVpp, it is worth noting that only 1 point is being compared in each segment. As the 10 measurements for each amplitude were taken sequentially with 0 dead time in between measurements, the data processing technique to divide up the measurements could affect which value is selected as the midpoint. Additionally, the Bessel filter applied can cause sharp edges to soften, causing values closer to segment edges to deviate from the expected mean value. We also noted that ADC crosstalk between the inputs and outputs of the same device and the use of external attenuators can affect the signal on the input. Nonetheless, Moku:Pro was able to demodulate signals with amplitudes of several microvolts and accurately decipher encoded Morse characters. Moku:Pro’s high-bandwidth input analog resolution is ~0.4 mV, however we demonstrated that the Lock-in Amplifier can significantly reduce noise bandwidth with a low cut-off frequency and achieve a high enough resolution to detect signal amplitudes beyond this limit.

Download application note

Try Moku in demo mode

You can download the Moku: app for macOS and Windows here.


Get answers to FAQs

Find questions and answers about devices and instruments in our Knowledge Base.


Connect with Moku users

Join the user forum to request a new feature, share support tips and connect with our global user community.