Skip to main content
Sandbox Physics

IN13 · Keep the rhythm

Lock-In Amplifier

How can a periodic signal smaller than the noise still be measured? A lock-in multiplies the input by a known rhythm, then averages. A signal in step leaves a steady component; rapidly changing noise tends to cancel. Longer averaging narrows the noise band but delays changes. Interference at the same rhythm remains.

Turn the reference dial and follow two filtered channels. Compare waiting times on the same noisy capture, then try beats and coherent interference.

Interactive modelLock-In Amplifier

Simulated ADC observations

Two averages from the same noisy samples

In-phase output2.60 mV2.60\,\mathrm{mV}
Quadrature output1.50 mV1.50\,\mathrm{mV}
Output magnitude3.00 mV3.00\,\mathrm{mV}
Output phase at record end30.0∘30.0^{\circ}

Bandwidth, calibration and saved metadata

The current controls preview a new setup. Saved traces retain their original phase, clock, range, filter, seed and independently acquired standard. X and Y are instantaneous filtered RMS-scaled components at the last sample. A detuned component keeps rotating; this phase is not a fixed recovered signal phase. The average magnitude of noise is positive. Last-second scatter includes drift and beats and is not a confidence interval.

H(z)=(1−a1−az−1)p,a=e−1/(fsτ)H(z)=\left(\frac{1-a}{1-az^{-1}}\right)^p,\quad a=e^{-1/(f_s\tau)}
Model and primary source

A teaching instrument with an 18-bit symmetric ADC at 1024 samples/s, a fixed gain and delay, and ideal recorded quadrature references. Each low-pass pole uses the exact held-input RC recursion from zero initial state. This is not an SR850 firmware emulation. All plotted samples are retained observations; no synchronous notch filter, PLL dynamics, source loading, analog anti-alias circuit or commercial accuracy is modeled. Deterministic tones stay below Nyquist; sampled white noise is defined within that band. A scalar phase calibration is valid at its saved reference frequency; detuned tones retain the additional delay at their offset. Coherent same-frequency interference adds to the target and cannot be separated by this reference alone. Wire pulses encode instantaneous voltage; their speed is schematic.

SRS SR850 manual, Rev. 2.0 (01/2009), pp. 3-1–3-3, 3-11–3-12, 3-19–3-20, 3-27–3-28

Physics tutorial

A reference turns an oscillation into a slow voltage

BackgroundThe pickup sends a small periodic voltage mixed with broadband noise. Two multipliers compare it with a known reference and its quarter-cycle companion.

Why it mattersIncreasing gain amplifies noise too. Choosing a narrow band around the reference can reveal the periodic component.

Start with the essentials

Focus question
How can a periodic signal smaller than the noise still be measured?
One-sentence intuition
A component in step with the reference leaves a steady product that survives averaging.

Core mathematical model

RMS-scaled quadratures

X=Vrmscos⁡(ϕs−ϕr),Y=Vrmssin⁡(ϕs−ϕr)X=V_{\rm rms}\cos(\phi_s-\phi_r),\qquad Y=V_{\rm rms}\sin(\phi_s-\phi_r)

For a settled same-frequency sinusoid, the cosine reference and negative-sine reference produce two signed components. A leading signal gives positive quadrature.

Each sampled low-pass stage

yn=ayn−1+(1−a)un,a=e−1/(fsτ)y_n=ay_{n-1}+(1-a)u_n,\qquad a=e^{-1/(f_s\tau)}

The sample rate and time constant determine the pole. Several identical stages reduce noise further and take longer to respond.

Discrete noise bandwidth

BENBW=fs2∑n=0∞hn2B_{\rm ENBW}=\frac{f_s}{2}\sum_{n=0}^{\infty}h_n^2

The impulse response of the actual sampled filter determines its one-sided noise bandwidth. This differs from its half-power frequency.

Common difficulties

Averaging limits

Typical misconceptionLonger averaging removes every unwanted signal.

Better mental modelIt attenuates components away from the reference. A coherent component at the same frequency remains, and genuine changes are delayed.

Magnitude bias

Typical misconceptionA positive magnitude proves a periodic signal.

Better mental modelMagnitude is nonnegative, so noise gives a positive average too. Compare signed quadratures and their stability.

Run the experiment

  1. 01

    Turn the physical reference knob

    Drag the green phase knob, then save a capture.

    What to observe: The components rotate between the two channels. Their combined magnitude stays nearly fixed for a clean same-frequency input.
  2. 02

    Compare the same noisy input

    Choose Buried signal and inspect the solid and dashed outputs.

    What to observe: The dashed curves use a shorter time constant on the identical raw samples. They react faster and fluctuate more.
  3. 03

    Detune the signal

    Choose A slow beat.

    What to observe: The output rotates continuously. Its final phase describes one recorded instant, not a fixed source phase.
  4. 04

    Check the limits

    Compare Coherent impostor and Noise alone.

    What to observe: A coherent interferer survives averaging. Noise alone also has a positive average magnitude.
  5. 05

    Recalibrate a new range

    Change input range, acquire the known standard, then save a new capture.

    What to observe: The new acquisition freezes that separate standard. Older records and exports retain their original calibration.

Related experiments and articles

How physics instruments measure · Reading path

How physics instruments measure

Articles on this path that use this experiment, followed by the other experiments they suggest.

  1. ArticleHow a lock-in amplifier finds a signal buried in noise
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy