Phase-Sensitive Detection (Lock-In) for Ultra-Low SNR Signals
← Back to: Active Filters & Signal Conditioning
A lock-in amplifier extracts a weak signal by coherently correlating it with a known reference phase/frequency, so uncorrelated noise and slow drift average down with integration time. When a stable reference (or modulation) exists, it typically beats “just filtering” by delivering a more reliable amplitude and phase at very low SNR.
H2-1 · What a lock-in is (and when it beats “just filtering”)
Core idea Phase-sensitive detection (lock-in) extracts a signal by coherent projection onto a known reference: the input is multiplied by a reference at f0, then low-pass filtered (integrated) so only the reference-coherent component remains. This is fundamentally different from “making a filter narrower”.
When it excels A lock-in approach is most effective when a stable reference exists and the signal can be moved (modulated) to a chosen frequency region.
- Very low SNR where broadband noise dominates and simple band-limiting cannot isolate the signal.
- Strong 1/f drift or slowly varying background that contaminates near-DC measurements; modulation shifts the signal away from the drift region.
- In-band interferers near the signal frequency where “just filtering” fails to separate coherent signal from non-coherent content.
- Acceptable response latency: longer integration improves sensitivity, but slows tracking of real changes.
Practical domains: optical absorption/fluorescence modulation, electrochemical impedance methods with reference excitation, ultrasound/ToF with gated reference, and any measurement that can provide a clean timing/phase anchor.
Hard boundaries Lock-in is not a universal noise reducer. Performance collapses when the coherence anchor is weak or when front-end linearity is violated.
- Unstable reference or uncontrolled phase drift → coherent gain is reduced (or randomized), and readings become fragile.
- Non-modulatable signals with no reliable reference → the method becomes “just a narrowband receiver” with fewer benefits.
- Overload / saturation anywhere before demodulation → coherent information is distorted; averaging may converge to a stable but wrong value.
- Fast transient events requiring rapid response → integration cannot be extended enough to gain sensitivity.
Decision shortcut Use the table below to quickly determine whether lock-in is the right tool before investing in implementation detail.
| Use lock-in when… | Avoid lock-in when… |
|---|---|
| A stable reference exists (from excitation/modulation or synchronized recovery). | No stable reference can be maintained (phase wander dominates measurement error). |
| The signal can be modulated to a selected f0 away from drift and clutter. | The signal cannot be modulated and shares coherence with dominant interferers. |
| Noise is broadband or non-coherent relative to the reference (averaging works). | Interferers are coherent with the same reference phase (cannot be separated by PSD). |
| Latency is acceptable so integration time can trade speed for sensitivity. | Fast response is mandatory (integration time cannot be increased enough). |
| Front-end remains linear across expected backgrounds and bursts. | Frequent overload occurs before demodulation (results converge to biased estimates). |
H2-2 · Core principle: synchronous multiplication + low-pass (math but practical)
Intuition Lock-in works because multiplication with a reference turns the desired component at f0 into a near-DC term, while everything not coherent with the reference becomes a rapidly varying term that is removed by low-pass integration.
- After mixing, the signal “moves” from ω0 to 0 Hz (or a small residual beat if frequencies are mismatched).
- The low-pass / integrator rejects the 2f0 product term and reduces broadband noise by time averaging.
- Integration time improves sensitivity but increases settling time; this trade-off is quantified later via ENBW.
Minimum math The following model is enough to predict the two main behaviors: phase sensitivity and coherent averaging.
The key result is the cos(φ) term: a single-phase lock-in directly converts phase error into amplitude error. This is why phase definition and tracking must be treated as a first-class design variable.
Why I/Q demod is the default A two-channel lock-in measures both projections so amplitude becomes robust to phase drift.
- Single-phase output can collapse when φ moves toward ±90°.
- I/Q keeps amplitude stable as long as coherence remains; phase can be measured rather than guessed.
- Many “unstable readings” in the field are actually phase alignment problems misdiagnosed as noise.
Coherent integration (what averaging really does) Integration is not only filtering; it is a coherence test over time.
- Coherent component (aligned with r(t)) accumulates with the same sign across the integration window.
- Non-coherent noise has random sign relative to r(t), so it partially cancels, pushing the mean toward zero.
- The practical “knob” is the effective noise bandwidth of the low-pass / integrator: narrower ENBW lowers output noise but slows response.
This chapter establishes the foundation; subsequent sections quantify ENBW vs settling time, and map common failure signatures (e.g., noise floor not improving with longer integration) to concrete root causes.
H2-3 · End-to-end architecture: where phase is created, lost, and corrected
Goal A lock-in measurement is only as stable as its phase reference definition. The practical job is to make phase a traceable budget: define a zero-phase point, identify where delay is introduced, and choose correction points that remain stable across modes and temperature.
Typical signal chain The end-to-end path below is the minimum set of blocks that determine phase and coherence. Detailed implementations (PGA/TIA/filters/clamps) are intentionally kept out of scope.
- Excitation / modulation → defines the reference anchor at f0.
- DUT / sensor → adds physical latency and frequency-dependent phase shift.
- Front-end amplification (keep linear) → adds group delay and can destroy coherence if overloaded.
- Demodulation (analog mixer or ADC + digital mixing) → projects onto the reference phase.
- Low-pass / integration → sets ENBW and the settling time of the reported value.
- Outputs → I/Q, amplitude, and phase relative to the defined zero-phase point.
Phase error map Most “unstable readings” are phase-budget problems. The list below turns phase into actionable segments.
| Segment | Delay / phase term | Typical field symptom | How to measure quickly | Preferred correction point |
|---|---|---|---|---|
| Excitation → DUT | Δtphys, φphys(f) | Phase varies with f0; amplitude appears “frequency dependent” | Sweep f0, track φ(f); compare to expected propagation | Keep as “true phase”; do not over-correct unless a fixed offset is known |
| DUT → AFE | Δtpath | Changing cable length shifts measured phase; I/Q rotates | Swap known cable lengths; observe Δφ = 2πf0Δt | Digital delay or reference phase offset (stable, repeatable) |
| Analog chain | τg (group delay) | Phase drifts with gain/state; Q cannot be nulled across modes | Measure φ at two gain settings; check consistency vs temperature | Prefer digital compensation; avoid analog-only phase trims for wideband |
| Sampling / DSP | Δtsamp, ΔtDSP | Fixed phase offset after firmware changes or filter mode changes | Loopback tone; compare measured φ before/after mode switch | Digital phase rotation / delay align per mode (table-based calibration) |
| Reference generation | Δtref, φref, jitter | Noise floor rises; Q shows random wander even at long integration | Observe I/Q variance vs integration; correlate with clock/reference quality | Improve reference stability; keep correction in the reference domain (NCO/phase offset) |
In practice, the most stable correction is applied in the reference / digital domain (NCO phase offset, I/Q rotation, or digital delay alignment), because it stays repeatable across temperature and avoids analog tolerance drift.
Phase control points A robust architecture identifies where phase is defined and where it is adjusted.
- Zero-phase definition point: typically the excitation/modulation output or a synchronized timing edge.
- Correction point: phase offset (reference rotation), I/Q rotation, or digital delay alignment.
- Calibration point: loopback injection or known stimulus used to measure a fixed offset per mode.
H2-4 · Reference generation & phase control: DDS/PLL/zero-cross + quadrature
Key message A reference is not “just the right frequency”. It is a phase anchor. Reference stability determines whether demodulation collapses into bias, drift, or noise-floor inflation.
Reference sources Three practical reference paths cover most instruments and embedded AFEs.
- Internal DDS / NCO: programmable frequency and phase; easiest I/Q generation; ideal for multi-frequency and auto-cal systems.
- Sync from excitation: derived from the same modulator/driver clock; maximizes coherence and minimizes long-term phase ambiguity.
- Recovered reference (PLL): phase-locked from a sensed signal when the excitation is not directly available; requires careful lock strategy.
A robust rule is: prefer same-source synchronization when available; use DDS/NCO when flexibility and calibration are required; rely on recovered PLL reference only when necessary and treat its bandwidth/lock behavior as a primary design variable.
Quadrature generation (I/Q) I/Q accuracy depends on how the 90° relationship is formed and maintained across frequency and temperature.
- Digital quadrature (NCO/DDS): precise by construction; errors mainly track clock quality and numeric implementation.
- Analog 90° network: simple, but typically narrowband; quadrature error rises as frequency shifts.
- Digital Hilbert approach: supports wider bandwidth but introduces filter delay and edge behavior that must be managed.
Quadrature amplitude/phase mismatch usually shows up as Q not nulling, amplitude bias, and reduced image/harmonic rejection.
Auto-phase control Phase alignment can be implemented as either a one-time scan or a continuous servo, depending on drift dynamics.
- Phase sweep (open-loop): scan phase offset to maximize I and minimize Q; excellent for production bring-up and periodic calibration.
- Phase servo (closed-loop): estimate phase error from I/Q and continuously adjust the reference phase so Q→0 (or I→max); best for slow drift and cable changes.
Reference jitter and phase noise can translate directly into output noise-floor inflation; later sections quantify this effect and show how to diagnose it from I/Q statistics.
H2-5 · Demodulator choices: chopper vs analog multiplier vs digital mixing
Why it matters The demodulator defines how out-of-band energy and implementation non-idealities turn into DC/low-frequency error. The “best” choice is the one that preserves coherent gain while keeping harmonic folding, distortion, and drift manageable for the target bandwidth and dynamic range.
Three practical implementations
- Chopper / square-wave mixer (±1): simplest, predictable gain, but odd-harmonic folding must be managed.
- Analog multiplier (true multiplier): cleaner sinusoidal mixing model, but limited by linearity, noise, and offset drift.
- Digital mixing (ADC + NCO): most flexible (I/Q, phase rotation, multi-tone), but sensitive to ADC range and sampling clock quality.
Selection matrix Use these criteria to pick the demod path that fails least in the real system.
| Demod type | Gain & calibration | Linearity / dynamic range | Harmonic folding risk | Drift / offset susceptibility | Flexibility & complexity |
|---|---|---|---|---|---|
| Chopper / square-wave | Clear coherent gain; simple scaling; stable if switching is controlled | Often robust, but switching artifacts can corrupt small signals | High: odd harmonics (3f₀, 5f₀…) can downconvert interference | Switch charge injection can create DC bias if not filtered/isolated | Low BOM / simple; I/Q needs extra paths or time-multiplexing |
| Analog multiplier | Gain depends on multiplier transfer; may need trimming across temp | Limited: large backgrounds can push nonlinearity → DC bias | Lower harmonic folding than square-wave for sinusoidal reference | Multiplier offsets and drift can dominate low-level measurements | Moderate complexity; careful biasing and headroom management |
| Digital mixing | Exact numeric scaling; easy per-mode calibration tables | ADC-limited: headroom, INL/DNL, clipping, and intermod matter | Controlled by digital filtering; risk shifts to aliasing and spur planning | Low analog drift in mixer; clock/phase noise can raise the floor | Highest flexibility: native I/Q, auto-phase, multi-tone DDC |
Practical rule: if the environment has strong broadband or harmonic-rich interference, avoid designs where that energy can fold into DC unchecked. If the system needs mode switching, auto-phase, or multi-frequency operation, digital mixing usually simplifies long-term maintainability.
Minimum “don’t get burned” checks
- Square-wave mixing: confirm what lives near 3f₀/5f₀; band-limit or choose f₀ to avoid known spur families.
- Analog multiplier: prove linear headroom under worst-case background; check DC offset drift vs temperature and supply.
- Digital mixing: keep ADC out of compression; validate clock/PLL phase noise impact using I/Q variance at long integration.
H2-6 · Low-pass / time constant design: ENBW, settling time, and what “τ” really buys you
Core trade-off The output low-pass is not “just an RC”. It is the main knob that converts coherent gain into a practical reading by trading noise bandwidth (ENBW) against settling time. Bigger τ usually lowers noise, but it also slows response and can hide drift or mode-change offsets.
Engineering meaning (minimal math) Use ENBW to predict how much noise remains after integration.
For a 1st-order low-pass: ENBW ≈ (π/2) · fc ≈ 1 / (4 τ)
Output noise (RMS) scales approximately with √ENBW for white-noise-dominated regions.
ENBW (equivalent noise bandwidth) is the “noise area” of the filter. Two filters with the same -3 dB corner can have different ENBW and very different settling behavior.
Quick sizing workflow (4 steps) A practical method that avoids over-tuning and makes verification straightforward.
- Set modulation frequency f₀ to move the signal away from 1/f drift and away from known interference families (and their harmonics).
- Set target settling / update time Tsettle (define the tolerance band, e.g., “within ±x%”).
- Pick τ (or fc) to meet settling: a 1st-order filter reaches ~99% in about 4–5 τ (use as a first-cut, then verify).
- Check noise using ENBW: if noise is too high, reduce ENBW (increase τ or order) and re-check Tsettle.
Verification checklist Prove the chosen τ behaves under real mode switching and drift conditions.
- Step test: apply an amplitude or phase step; measure time to enter the tolerance band (Tsettle definition must be explicit).
- Long-hold statistics: hold a stable input and track I/Q variance vs τ; if variance stops improving, drift or reference noise is dominating.
- Mode-change test: switch gain/decimation/filter mode and confirm that offsets and phase alignment are either preserved or re-calibrated.
H2-7 · Frequency planning: pick modulation f0 to dodge 1/f, mains, microphonics, and aliasing
Goal A good modulation frequency f0 moves the signal away from low-frequency drift (1/f) while avoiding mains harmonics, mechanical microphonics, and switching/clock spur families. For sampled systems, f0 must also cooperate with fs to avoid leakage and alias-driven “false stability”.
Step 1 — define the feasible band
- Sensor/DUT response: keep f0 inside the linear response band (amplitude and phase must remain predictable).
- Front-end bandwidth/headroom: ensure the AFE does not add large phase shift or distortion at f0.
- Power & update rate: higher f0 can demand higher sampling/compute; ensure the chosen τ and Tsettle still meet the update target.
Step 2 — apply the “avoid list” Keep margins; these sources drift and move in the field.
- Mains: avoid 50/60 Hz and 2×/3×/… harmonics; keep extra margin because the grid frequency wanders.
- Microphonics: avoid mechanical resonances and rotating equipment frequencies (fans/pumps) and their multiples.
- Switching & clocks: avoid fSW families, beat notes, and known digital clock/EMI peaks in the platform.
- Square-wave reference note: if using chopper/square mixing, also check 3f0, 5f0 regions to prevent odd-harmonic folding into DC.
Step 3 — sampling-aware planning (when an ADC is involved)
- Coherent averaging: set integration windows to contain an integer number of periods so energy stays in-bin and leakage is reduced.
- Useful planning rule: choose an integration time Tint = M / f0 (M is an integer) and ensure the sampling pipeline preserves this windowing.
- Alias safety: treat fs/2 and any post-decimation Nyquist boundaries as “no-go” zones for strong interference that can fold to f0.
Multi-tone or sweep lock-in stays practical when every candidate tone is filtered by the same avoid list and each tone gets enough time to settle (per the τ strategy).
Field-ready “frequency dodge checklist”
| Interference family | What to avoid | Keep margin for | Quick verification |
|---|---|---|---|
| 1/f drift | Very low f0 where baseline drift dominates | Temperature drift, bias wander | Increase f0 and check if τ-scaling improves |
| Mains | 50/60 Hz and harmonics (100/120/150/180…) | Grid frequency wander, coupling paths | Move f0 away by a safe offset; re-check spur level |
| Microphonics | Known mechanical peaks and multiples | Mounting changes, vibration spectrum shifts | Tap/drive vibration; observe if output spur rises |
| Switching/clock | fSW families and platform clock harmonics | Load-dependent fSW modulation, beats | Change load; look for spurs moving with fSW |
| ADC alias | Strong energy near Nyquist boundaries | Decimation changes, sample-rate drift | Change fs/decimation; check if “noise” relocates |
H2-8 · Noise & error budget: what limits ultimate sensitivity (and how to diagnose it)
Core idea Ultimate sensitivity is limited by a mix of random noise (falls with √ENBW), deterministic bias/leakage (may not improve with τ), and discrete spurs (2f/3f ripple and fold-down artifacts). A useful budget separates these three behaviors before tuning.
Source groups (by output pathway)
- Front-end noise: input voltage/current noise shaped by source impedance → mixed to baseband → integrated by ENBW.
- Reference timing noise: phase noise/jitter in reference or sampling clock → increases demod uncertainty, especially for higher f0.
- Mixer non-idealities: multiplier noise/offset drift, chopper injection, and DC leakage paths.
- ADC & quantization: quantization + INL spurs + headroom limits; aliasing turns out-of-band into in-band error.
- Feedthrough/interference: reference coupling, crosstalk, and environmental spur families that fold to DC.
Symptom → likely cause → fastest verification Use this mapping before redesigning anything.
| Field symptom | Likely root cause | What τ does | Fast verification action |
|---|---|---|---|
| Noise floor stops improving when τ increases | Drift, DC leakage, non-coherent interference, or reference feedthrough dominating | May not fall with √ENBW; can “lock in” bias | Change f0; short/terminate input; rotate phase; compare I/Q variance |
| Q is not near zero / I-Q cross-coupling | Quadrature error, phase misalignment, delay compensation mismatch, mode-switch delay | Integration hides transients but preserves misalignment | Auto-phase or sweep phase; verify delay terms; check after mode changes |
| 2f or 3f ripple at output | Square-wave harmonic folding, insufficient post-mix filtering, switching injection | May reduce broadband noise but keep ripple visible | Switch to sinusoidal reference; move f0; band-limit input; inspect 3f0 region |
| Stable offset even with no signal | Mixer offset drift, DC leakage path, or reference leakage to signal path | Often unchanged with τ | Disable modulation; disconnect reference; measure offset vs temperature |
| Noise rises with input amplitude | Compression, intermod, or ADC headroom violation | τ cannot fix distortion-driven noise | Reduce gain / input level; watch harmonics/spurs; verify ADC margin |
Budget table (what sets the ceiling)
| Budget item | Output manifestation | τ scaling | Most effective knob | Fast test |
|---|---|---|---|---|
| AFE input noise | Random baseband noise | Falls with √ENBW | Gain placement, bandwidth limiting, source impedance control | Short input, compare to expected √ENBW trend |
| Reference phase noise / jitter | Noise floor that may not track τ as expected | Can dominate at higher f0 | Reference quality, clock tree, coherent timing | Swap reference/clock source; observe I/Q variance change |
| Mixer offset / drift | DC bias, slow wander | Often weakly affected | Offset calibration, thermal control, leakage reduction | Input off, watch baseline vs temperature |
| ADC range / nonlinearity | Spurs, intermod, “noise” that rises with level | τ does not fix | Headroom, anti-alias filtering, gain staging | Reduce amplitude, check spur collapse |
| Feedthrough / interference | Discrete ripple (2f/3f), folded-down spurs | May remain visible | Shielding, routing, reference isolation, spur-aware f0 choice | Move f0 and watch spur relocate or vanish |
H2-9 · Interferers & distortion: harmonic mixing, overload recovery, and reference leakage
Why outputs look “stable but wrong” The hardest lock-in failures are not random noise—they are folded-down spurs, nonlinear recovery, or reference leakage creating a signal-like baseband component that survives the low-pass/integration.
1) Harmonic mixing (square-wave/chopper reference)
- Square reference ≠ single tone: it carries strong odd harmonics (3f0, 5f0…), opening extra fold-down paths.
- How “DC appears”: an interferer near 3f0±Δ (or 5f0±Δ) mixes down to Δ (near DC), then the LPF/integrator preserves it.
- Practical mitigation: prefer sinusoidal reference when possible; always vet 3f0/5f0 regions in frequency planning; reduce out-of-band energy before mixing (system-level requirement).
2) Overload & recovery (coherence loss)
- Saturation destroys coherent information: once the AFE/ADC/mixer clips, I/Q no longer represents true amplitude/phase.
- “Stable but wrong” signature: changing τ only changes response speed, while the bias/error remains.
- Engineering requirement: guarantee headroom under worst interferers and ensure fast overload recovery (measurable as recovery time to linear region).
3) Reference leakage (fake signal)
- Leakage paths: capacitive coupling, shared return/ground bounce, and power/EMI coupling can inject reference energy into the signal chain.
- Tell-tale evidence: a “signal” remains when the sensor is disconnected/terminated, and it tracks changes in reference amplitude/phase.
- Fast isolation actions: disconnect/terminate input, move f0, and vary reference amplitude/phase to see if output follows.
Fast triage mapping (what to do first)
| Observed symptom | Most likely mechanism | What changes when τ increases | Fastest verification action |
|---|---|---|---|
| Offset/ripple persists even with long τ | Fold-down spur or leakage | Broadband noise drops; spur/bias stays | Move f0; check 3f0/5f0 regions; disconnect input |
| Error rises when input amplitude increases | Overload/nonlinearity | τ does not fix distortion | Reduce gain/amplitude; observe spur collapse |
| Output follows reference changes | Reference leakage | Often unchanged | Vary reference amplitude/phase; terminate input |
| 2f/3f ripple at baseband | Harmonic mixing / injection | Ripple remains visible | Switch to sinusoidal reference; re-plan f0 |
H2-10 · Implementation patterns: analog lock-in AFE vs digital lock-in DSP (and hybrids)
Decision focus Choosing analog, digital, or hybrid lock-in is mostly about latency, power, interferer robustness, and the required output contract (DC amplitude, |A|&φ, or I/Q stream).
When analog wins
- Ultra-low latency: minimum compute and buffering; useful when control loops need rapid updates.
- Low power: avoids high-rate ADC + heavy DSP in always-on sensing.
- Simple measurement contract: DC amplitude (or slow phase) is enough, and the environment is well-controlled.
When digital wins
- Multi-tone / sweep: NCO-based I/Q mixing enables multiple f0 points and flexible windowing.
- Calibration & observability: easy to correct quadrature error, delay, and gain/phase imbalance with software hooks.
- Richer outputs: stable |A|&φ and raw I/Q streams for upper-layer estimation and compensation.
Hybrids (two practical patterns)
- Analog downconvert → low-rate ADC: front-end reduces sampling pressure while keeping the DSP flexible at baseband.
- Digital demod + analog protection: analog stage enforces headroom (anti-overload) while DSP handles I/Q, multi-tone, and calibration.
Hybrids are not a compromise—they place each “hard risk” in the domain that controls it best (interferers/overload in analog, alignment/calibration in digital).
Selection matrix (quick engineering view)
| Pattern | Latency | Power | Interferer robustness | Calibration & repeatability | Multi-tone / sweep | Typical output contract |
|---|---|---|---|---|---|---|
| Analog lock-in AFE | Best | Best | Good if headroom is guaranteed | Moderate (depends on trims) | Limited | DC amplitude, sometimes slow phase |
| Digital lock-in DSP | Good to moderate | Moderate to high | Strong when alias/linearity are managed | Best (software correction) | Best | |A|&φ, and/or I/Q stream |
| Hybrid | Good | Good | Best field behavior (protect + calibrate) | High | High | DC, |A|&φ, or I/Q (per interface) |
Output contract (define it early)
- DC amplitude: simplest integration into control/monitoring; phase information is not delivered.
- |A| and phase φ: best for material/sensor systems where delay and dispersion matter.
- I/Q stream: best for advanced estimation, multi-tone, drift compensation, and post-processing.
H2-11 · Calibration & validation checklist: prove it works, then keep it working
Engineering outcome A lock-in is “done” only when calibration is repeatable, validation is measurable, and field self-test can detect drift, leakage, and loss of orthogonality before results become “stable but wrong”.
This chapter provides a three-stage checklist (R&D → Production → Field) plus acceptance metrics and an example calibration BOM with concrete part numbers.
Calibration items (what must be calibrated)
- Gain calibration: map known input amplitude → measured output amplitude; store slope/offset per range and per modulation frequency f0.
- Phase zero definition: define the system “0°” point (reference phase origin) and record the required delay/phase compensation at that point.
- I/Q orthogonality & gain mismatch: measure quadrature error and I/Q amplitude imbalance; constrain Q residual under an I-only stimulus.
- Offset & drift: measure output bias with terminated input; track time/temperature drift to separate true signal from leakage/drift.
- Reference accuracy: verify reference frequency error and amplitude stability; reference jitter/phase noise can directly raise the demodulated noise floor.
R&D / Lab validation (prove the physics + chain correctness)
- Linearity check: verify |A| scales linearly across the intended dynamic range (before overload); record the knee point.
- Phase-zero capture: use a coherent stimulus; sweep phase and locate max-I / min-Q; record the required phase/delay correction.
- Quadrature isolation: apply I-only stimulus; verify Q residual stays under threshold (cross-talk limit).
- τ-slope validation: increase τ by ×10 and confirm the RMS noise decreases close to the expected trend for white-noise-limited behavior.
- Interferer injection: place a strong tone near 3f0/5f0 regions (if square reference is used) and confirm fold-down does not dominate the baseband.
- Overload recovery: force short clipping; measure recovery time back to linear/valid output region.
Production / Manufacturing (fast pass/fail + traceability)
- Loopback injection: inject a known amplitude/phase and verify |A| and φ are within limits; store per-unit calibration coefficients.
- Phase sweep peak: scan phase; peak location must fall within a defined window (detects gross delay/reference polarity errors).
- Spot-frequency check: test f0 and one offset point (f0±Δ) to validate out-of-band rejection behavior at production level.
- Two-τ sanity: measure noise at τ1 and τ2; confirm the ratio matches the expected trend (detects leakage/drift dominance).
- IQ cross-talk gate: fail if Q residual exceeds threshold under I-only stimulus.
- Terminated offset limit: fail if terminated-input output bias exceeds threshold (detects leakage and bad grounding paths).
Field / Self-test (keep it working over time)
- Boot check with internal reference: run a short loopback sequence and compare against stored baseline; record delta(|A|, φ).
- Auto-phase alignment: periodic max-I/min-Q search; log the correction amount as an aging/temperature indicator.
- Noise-floor trend: at fixed τ, track noise RMS; alert if noise stops improving with τ or drifts upward unexpectedly.
- Reference health: monitor reference amplitude/frequency; flag deviations that correlate with demodulated noise floor rise.
- Sensor connectivity check: detect “fake signal” risk by comparing terminated/expected signatures against normal operation signatures.
Recommended logs: f0, τ, ref source mode, phase correction, |A|, φ, I/Q residual, noise RMS, overload flags, terminated-offset.
Acceptance metrics (example targets)
| Metric | Test condition | Example pass target | What failure often means |
|---|---|---|---|
| Noise vs τ slope | Increase τ by ×10 at fixed f0; terminated input | Noise RMS improves ~2.5–4× (≈ −8 to −12 dB per decade) | Leakage/drift dominates, or non-coherent interference folded into baseband |
| I/Q cross-talk | I-only stimulus (known φ), stable reference | Q/I < 1% (≈ −40 dBc) after calibration | Quadrature error, delay mismatch, phase-zero not aligned |
| Terminated output bias | Input terminated/shorted per design | < 0.1% FS (or per application budget) | Reference leakage, DC offsets, ground coupling issues |
| Recovery time | Forced overload event, then return to nominal | Return to valid error band within a defined window (e.g., < 5–50 ms) | Front-end saturation/recovery too slow; coherence loss persists |
| Drift vs temperature | Controlled temperature step or ambient drift | Amplitude/phase drift within budget (e.g., < 50–200 ppm/°C) | Reference drift, gain drift, leakage sensitivity to temperature |
Targets must match the system’s noise/error budget; the table provides practical ranges used for engineering gates.
Example calibration BOM (concrete part numbers)
Use cases: internal loopback injection, reference generation/monitoring, switchable calibration paths, and coefficient storage.
| Function | Example parts (material numbers) | Why used in lock-in calibration / validation |
|---|---|---|
| Precision DAC for loopback injection | ADI AD5686R, TI DAC8568, ADI LTC2668 | Generates known amplitude stimulus for gain/phase validation; internal reference options simplify fixtures. |
| Direct Digital Synthesis (DDS) reference | ADI AD9833 (low-cost), ADI AD9959 (multi-channel), ADI AD9910 (high performance) | Accurate f0 generation; supports phase sweep and coherent tests; enables repeatable “phase-zero” alignment. |
| Low-jitter clock / PLL / jitter cleaner | Silicon Labs Si5341, TI LMK04828, ADI ADF4351 | Improves reference/ADC clock integrity; reduces demodulated noise floor contribution from jitter/phase noise. |
| Precision voltage reference | ADI ADR4550, TI REF5050, ADI ADR4525 | Stabilizes DAC/ADC full-scale and calibration injection amplitude across temperature and time. |
| Analog multiplier (true multiplier) | ADI AD835, ADI AD633 | Analog lock-in demod core option; useful for analog-path validation and comparing against DSP demod. |
| Phase-sensitive detector IC | ADI AD630 | Classic synchronous demod solution; supports controlled tests of chopper-style PSD behavior. |
| Low-noise / zero-drift op-amp (front-end + LPF) | TI OPA188, TI OPA333, ADI ADA4522-2 | Reduces offset/drift so terminated-output bias is meaningful; stabilizes baseband LPF/integration stage. |
| Fully differential amplifier (FDA) for ADC drive | TI THS4551, ADI ADA4940-1 | Improves common-mode control and linearity; useful when validating I/Q under differential ADC inputs. |
| High-resolution ADC (baseband / low-speed) | TI ADS127L01, ADI AD7768-1, TI ADS131M04 | Captures baseband I/Q with high dynamic range; enables τ-slope validation without quantization domination. |
| Analog switch / mux for calibration routing | ADI ADG1208, ADI ADG704, TI TMUX1136 | Routes loopback/terminated inputs; supports production fixtures and field self-test without rewiring. |
| Digital potentiometer for trim / gain set | ADI AD5290, ADI AD5144A, Microchip MCP4551 | Enables controlled gain/offset trims; helpful for repeatable production calibration knobs. |
| EEPROM / NVM for coefficients | Microchip 24LC256, Microchip AT24C256 | Stores per-unit calibration (gain, phase-zero, IQ correction) and field baseline signatures. |
| Precision temperature sensor (for drift logging) | TI TMP117, Maxim MAX31875 | Correlates drift and noise-floor changes with temperature; supports field diagnostics and acceptance gates. |
| Clock generator (simple coherent source) | Silicon Labs Si5351A | Low-cost multi-output clocking for coherent sampling experiments and production test clocks (when suitable). |
Part numbers are examples, not a mandate. Selection should match required f0 range, noise floor, dynamic range under interferers, and calibration strategy.
H2-12 · FAQs (Lock-In / Phase-Sensitive Detection)
Short, field-oriented answers that map back to the main chapters for deeper context.
1Lock-in vs narrow band-pass filter—what’s the real difference, and when is filtering enough?
A band-pass filter only rejects out-of-band energy. A lock-in performs coherent correlation against a phase reference, so uncorrelated noise (even inside the passband) averages down with integration time. Filtering is often enough when the signal already has good SNR, the interference is mostly out-of-band, or a stable reference/modulation is not available.
2Why does single-phase demodulation read “smaller/unstable”, and how does I/Q fix it?
Single-phase demodulation measures the in-phase projection only, so amplitude scales with cos(Δφ). Any phase drift (sensor delay, path delay, clock slip) turns into amplitude error and apparent instability. I/Q demod measures both projections and reconstructs amplitude and phase as |A|=√(I²+Q²), φ=atan2(Q,I), making the result robust to phase offsets.
3What is the most reliable way to get the reference phase—DDS, PLL, or synchronized from excitation?
The most reliable reference is usually derived from the same excitation clock/path to maximize coherence. A DDS (e.g., AD9833 AD9959 AD9910) is ideal for precise frequency/phase sweeps. A PLL (e.g., Si5341 LMK04828) is useful when tracking or cleaning clocks, but its phase noise and lock behavior can limit sensitivity.
4How is auto-phase done in practice, and when does it fail in the field?
Auto-phase is commonly implemented by sweeping reference phase and selecting the maximum I (or minimum Q), or by estimating phase via atan2(Q,I) and closing a slow correction loop. It fails when SNR is too low per update window, when strong interferers fold into baseband, when reference jitter raises the noise floor, or after overload events that destroy coherence. Tight gating and a validated loopback help.
5Why can a square-wave (chopper) reference move “weird” interference to DC, and how to avoid it?
A square-wave reference contains strong odd harmonics (3f0, 5f0, …). Interferers near these harmonics can mix down into DC/low-frequency, creating a false “signal” after the low-pass. Avoidance strategies include using a sinusoidal reference, filtering/attenuating harmonic bands, planning f0 to keep 3f0 regions clean, or using digital NCO mixing with controlled spurs. Analog PSD options include AD630; true multipliers include AD835.
6Does a larger τ always mean “more sensitive”? Why can response become unusably slow?
Larger τ (lower cutoff) reduces ENBW and averages down random noise, so sensitivity improves only when the output is white-noise-limited and coherent. The trade-off is settling time: the output may take many τ to reach a valid value after changes, making control/measurement too slow. If drift, leakage, or coherent spurs dominate, increasing τ stops helping and only adds latency.
7If the noise floor does not improve with τ, what are the three most common root causes?
Three common causes are: (1) drift/offset/leakage dominating the baseband (τ cannot average it down), (2) non-coherent interferers or harmonic fold-down producing a spur-like “noise” that survives integration, and (3) I/Q misalignment (quadrature error or delay mismatch) leaving residual components. Quick triage: terminate input, shift f0, and change reference amplitude/waveform to see if the output tracks the reference.
8How to choose modulation frequency f0 to dodge 50/60 Hz, 1/f, microphonics, and switchers?
Pick f0 above the 1/f-dominated region and away from mains fundamentals and harmonics. Avoid dominant mechanical/environmental tones (microphonics) and switching supply fundamentals plus sidebands. In sampled systems, choose f0 with a clean relationship to fs to enable coherent integration over an integer number of cycles, reducing scalloping and leakage. Keep 3f0/5f0 regions clean if square references are used.
9In digital lock-in, how does sampling-clock jitter become output noise?
Sampling jitter is timing error; it converts input slope into amplitude/phase uncertainty. After digital mixing and low-pass, this appears as an elevated baseband noise floor and limits how much τ can improve sensitivity. The effect worsens with higher input frequency content and larger amplitude. Mitigations include a low-jitter clock source/cleaner (e.g., Si5341), limiting analog bandwidth before ADC, and ensuring coherent sampling where possible.
10Reference leakage can create a “fake signal”. What layout/grounding triggers it most often?
Common triggers include capacitive coupling from reference traces into high-impedance input nodes, parallel routing between ref and signal paths, shared return currents causing ground bounce, and digital edge currents coupling into the analog front end. A key symptom is a non-zero output with the input terminated that scales with reference amplitude/phase. Mitigate by physical separation, controlled return paths, shielding/guarding, and symmetric differential routing where applicable.
11Analog lock-in vs digital lock-in—what is the practical engineering boundary?
Analog lock-in is favored for ultra-low power, very low latency, and simple DC outputs without a high-speed ADC; classic PSD/multiplier parts include AD630 and AD835. Digital lock-in is favored when flexibility is needed (I/Q, multi-tone, programmable τ, robust calibration and diagnostics), typically using an ADC plus NCO/DSP. Hybrids are common: analog conditioning/limit, then digital demod and calibration.
12How to validate a lock-in chain in production quickly? What is the minimal self-test set?
A minimal set is: (1) loopback inject a known amplitude/phase, (2) phase sweep to locate the peak/max-I point, (3) two-τ noise ratio check to confirm averaging behavior, (4) I/Q cross-talk gate (Q/I threshold), and (5) terminated-input offset limit. Store coefficients in an EEPROM such as 24LC256; route test paths via mux/switches like ADG1208; log temperature with TMP117 for drift correlation.