Square wave excitation for lock in amplifier?

  • #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

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

A square wave excitation refers to the use of a square wave signal to stimulate the system being measured by a lock-in amplifier. Unlike the more common sinusoidal excitation, a square wave consists of a series of sharp transitions between high and low states. This type of excitation can be useful for systems that respond well to transient or sudden changes in input.

How does square wave excitation affect the measurement accuracy of a lock-in amplifier?

Using square wave excitation can impact the measurement accuracy in several ways. While square waves can enhance the measurement of systems with nonlinear or switching behaviors, they also introduce higher harmonic frequencies due to their sharp transitions. These harmonics can complicate the signal analysis, potentially leading to measurement errors if not properly filtered or accounted for in the signal processing phase.

What are the advantages of using square wave excitation in a lock-in amplifier?

Square wave excitation offers several advantages, including the ability to provide more energy at specific frequencies and the capability to test the linearity of the system. Additionally, square waves can be more effective in detecting the presence of certain types of noise or interference that are less apparent with sinusoidal excitation.

Are there specific applications where square wave excitation is preferred?

Square wave excitation is particularly beneficial in applications involving digital or switching devices, such as semiconductor testing or digital communication systems. It is also preferred in applications where the response time of the system to sudden changes is critical, such as in some types of sensor testing or in materials science where the properties under abrupt stress or signal changes are studied.

How do I implement square wave excitation using a lock-in amplifier?

To implement square wave excitation using a lock-in amplifier, you typically need to configure the signal generator of the amplifier to produce a square wave at the desired frequency and amplitude. It's important to ensure that the amplifier's bandwidth is sufficient to handle the higher harmonic frequencies generated by the square wave. Additionally, you may need to adjust the phase and filter settings to optimize the detection and reduce noise impact from the higher harmonics.

Similar threads

Replies
38
Views
3K
  • Electrical Engineering
Replies
28
Views
3K
Replies
16
Views
1K
  • Electrical Engineering
Replies
29
Views
3K
  • Electrical Engineering
Replies
3
Views
1K
  • Electrical Engineering
Replies
8
Views
5K
  • Electrical Engineering
Replies
7
Views
1K
Replies
19
Views
2K
Replies
7
Views
3K
Replies
3
Views
4K
Back
Top