Square wave excitation for lock in amplifier?

In summary, square wave excitation for a lock-in amplifier involves using a square wave signal to modulate the input signal of the amplifier. This technique enhances the amplifier's ability to detect weak signals buried in noise by providing a clear reference frequency. The lock-in amplifier then demodulates the input signal at this reference frequency, allowing for phase-sensitive detection and improved signal-to-noise ratio. This method is particularly useful in applications such as spectroscopy and measurement of small signals in noisy environments.
  • #1
aagum_bae
5
1
TL;DR Summary
Square wave and square wave demodulates to DC why?
Why does square wave for both excitation and demodulation lead to demodulation at DC
While using one of the signals sine the signal gets demodulated to odd harmonics?

I'm unable to do the maths of Fourier expansion and multiplying and passing through low pass filter
 
Engineering news on Phys.org
  • #2
After the mixer, either case will give you DC (which could be 0) and all of the other AC mixer products. Normal use, i.e. what makes this a lock-in amplifier and not just a mixer, is the narrow LPF to extract only the DC component at the output.

You don't really need to know about fourier transforms for a basic understanding of this, but you do need to know about how mixers work.

Read through this explanation and ask about the parts you don't understand:
https://www.zhinst.com/americas/en/resources/principles-of-lock-in-detection#:~:text=A lock-in amplifier performs,pass filter to the result.
 
  • #3
Welcome to PF.
You could say, that the biggest odd harmonic, is the fundamental.
 
  • #4
DaveE said:
After the mixer, either case will give you DC (which could be 0) and all of the other AC mixer products. Normal use, i.e. what makes this a lock-in amplifier and not just a mixer, is the narrow LPF to extract only the DC component at the output.

You don't really need to know about fourier transforms for a basic understanding of this, but you do need to know about how mixers work.

Read through this explanation and ask about the parts you don't understand:
https://www.zhinst.com/americas/en/resources/principles-of-lock-in-detection#:~:text=A lock-in amplifier performs,pass filter to the result.
https://www.analog.com/en/analog-dialogue/articles/synchronous-detectors-facilitate-precision.html

Can you take a look at this please? This article suggests that using square wave for both lock in and excitation leads to demodulation at DC, while using sinewave for one of the wave leads to demodulation at odd harmonics
 
  • #5
If a square wave is used as the detection reference, then the harmonics of the square wave will also down-convert signals and noise present on the signal input to the mixer. That energy will be detected, and so be present on the output of the LPF. By using a clean sinewave as the reference, those unwanted spectral sources are rejected by the synchronous detector.

The modulation of the source can be done with a square wave, but the detection should be done with a clean sinewave.
 
  • Like
Likes aagum_bae and DaveE
  • #6
aagum_bae said:
https://www.analog.com/en/analog-dialogue/articles/synchronous-detectors-facilitate-precision.html

Can you take a look at this please? This article suggests that using square wave for both lock in and excitation leads to demodulation at DC, while using sinewave for one of the wave leads to demodulation at odd harmonics
OK, I skimmed it. Analog Devices is a great source of information for this sort of thing. You can assume they are correct.

Unfortunately, I don't fully understand your question. It sounds like you are confused about the basics.

If one input to the mixer is a pure sine wave, then only that corresponding frequency in the two inputs will contribute to the DC component. Any frequency component that appears at both mixer inputs will be converted to DC with the amplitude also being a function of their phase shift. I think this is explained well in both of the previous links.

A common low frequency precision implementation is to use a square wave as the mixer reference because that allows analog switches to create a mixer with a very accurate DC output. This is important for low signal levels. The downside is that odd harmonics are also converted down to DC. Systems like this will often use a synthesized sine wave excitation (the other mixer input) to reduce this problem. Other applications don't really care about the frequency selectivity of the system so that's not as necessary.
 
  • #7
DaveE said:
OK, I skimmed it. Analog Devices is a great source of information for this sort of thing. You can assume they are correct.

Unfortunately, I don't fully understand your question. It sounds like you are confused about the basics.

If one input to the mixer is a pure sine wave, then only that corresponding frequency in the two inputs will contribute to the DC component. Any frequency component that appears at both mixer inputs will be converted to DC with the amplitude also being a function of their phase shift. I think this is explained well in both of the previous links.

A common low frequency precision implementation is to use a square wave as the mixer reference because that allows analog switches to create a mixer with a very accurate DC output. This is important for low signal levels. The downside is that odd harmonics are also converted down to DC. Systems like this will often use a synthesized sine wave excitation (the other mixer input) to reduce this problem. Other applications don't really care about the frequency selectivity of the system so that's not as necessary.
Thanks a lot for your time, if you look at the figures in that link, one of them with both inputs as square wave and the other one with one of the input being a sine wave. Now when you look at the figures where one of the input is a sine wave you see the spectrum at odd harmonics, but when you look at the figure with both inputs as square wave you see the spectrum only at DC, why is that so?
 
  • #8
aagum_bae said:
Thanks a lot for your time, if you look at the figures in that link, one of them with both inputs as square wave and the other one with one of the input being a sine wave. Now when you look at the figures where one of the input is a sine wave you see the spectrum at odd harmonics, but when you look at the figure with both inputs as square wave you see the spectrum only at DC, why is that so?
Because for the square waves each of the mixer inputs has the same (multiple) harmonic frequencies, so each harmonic is mixed with itself (modified by the system under test) and thus contributes to some of the DC output.

If one of the inputs is a sine wave, then only that specific frequency in the other input can be mixed down to DC.

Maybe reading a bit about mixers would help you too.
 
Last edited:
  • #9
Baluncore said:
present on the signal input to the mixer. That energy will be detected, and so be present on the output of the LPF. By using a clean sinewave as the reference, those unwanted spectral sources are rejected by the synchronous detector.
DaveE said:
Because for the square waves each of the mixer inputs has the same (multiple) harmonic frequencies, so each harmonic is mixed with itself (modified by the system under test) and thus contributes to some of the DC output.

If one of the inputs is a sine wave, then only that specific frequency in the other input can be mixed down to DC.

Maybe reading a bit about mixers would help you too.
Here is my problem:
1700374247242.png


this is the equation at the LPF of the LIA, when multiplying a sine wave and a square wave, setting
1700374317018.png

the equation reduces to
1700374343463.png


after integration we get
1700374363363.png


which means
1700374377599.png


which means for an impure sinewave with harmonics or some noise at harmonics will get demodulated, but not to the fundamental frequency, this results in the combed filter effect as shown by
1700374517472.png


My question is when mutliplying two sqaure wave why does the analog devices website show that everything gets demodulated to fundamental DC? When the surae wave itself is composed of infinte sine waves I would expect multiplication of two sqaure waves to also give demodulated output at non zero frequencies.
 
  • #10
There is zero chance I'm going to review the math. You'd have to pay me for that. But...
aagum_bae said:
I would expect multiplication of two sqaure waves to also give demodulated output at non zero frequencies.
Yes, exactly. The mixer does that too.

But a lock-in amplifier has a low pass filter that (ideally) rejects everything that isn't DC. If you put two frequencies ##f_1## and ##f_2## into a balanced mixer, the output is at ##f_1 + f_2## and at ##f_1 - f_2##. Then you reject anything that isn't DC, so we only care about the signals where ##f_1 = f_2##.

If there are multiple frequencies in the inputs then each one mixes with the others. So if you mix frequencies ##f_1 + 3f_1## with ##f_2 + 3f_2##, you get mixer outputs at all of the combinations ##f_1 + f_2##, ##f_1 - f_2##, ##f_1 + 3f_2##, ##f_1 - 3f_2##, ##3f_1 + f_2##, ##3f_1 - f_2##, ##3f_1 + 3f_2##, ##3f_1 - 3f_2##, etc. The ones that subtract to 0 (DC), get through the LPF.
 
  • Like
Likes aagum_bae
  • #11
Thanks a lot, I finally understand T_T
 
  • Like
Likes DaveE

FAQ: Square wave excitation for lock in amplifier?

What is square wave excitation in the context of a lock-in amplifier?

Square wave excitation refers to the use of a square wave signal as the reference input for a lock-in amplifier. This type of excitation signal alternates between two levels, typically high and low, at a consistent frequency. The lock-in amplifier uses this reference to demodulate the input signal and extract the component that is in phase with the reference signal, thereby improving the signal-to-noise ratio.

Why would one use square wave excitation instead of a sine wave for a lock-in amplifier?

Square wave excitation is often used because it is easier to generate and can provide a stronger harmonic content compared to a sine wave. This can be particularly useful when the signal of interest has a broad frequency spectrum or when the system under study responds better to the sharp transitions of a square wave. Additionally, square waves can be more effective in driving certain types of loads or sensors.

How does square wave excitation affect the harmonic content in a lock-in amplifier measurement?

Square wave excitation introduces a series of odd harmonics (3rd, 5th, 7th, etc.) in addition to the fundamental frequency. This can be advantageous or disadvantageous depending on the application. The lock-in amplifier can be set to detect the fundamental frequency or any of the harmonics, allowing for flexibility in measurements. However, the presence of harmonics can also complicate the signal analysis if not properly accounted for.

Can a lock-in amplifier filter out the harmonics introduced by square wave excitation?

Yes, a lock-in amplifier can filter out the harmonics introduced by square wave excitation. By tuning the reference frequency and using appropriate filters, the lock-in amplifier can isolate the desired harmonic (usually the fundamental frequency) and reject the others. This selective filtering is one of the key advantages of using a lock-in amplifier for signal detection.

What are the potential drawbacks of using square wave excitation for lock-in amplifier measurements?

One potential drawback of using square wave excitation is the introduction of higher harmonics, which can interfere with the measurement if not properly filtered. Additionally, the sharp transitions of a square wave can cause ringing or overshoot in certain systems, potentially distorting the signal. Careful consideration and setup are required to ensure that the square wave excitation does not introduce unwanted artifacts into the measurement.

Similar threads

Replies
5
Views
1K
Replies
29
Views
4K
Replies
7
Views
2K
Replies
4
Views
2K
Replies
10
Views
8K
Back
Top