University of Glasgow · FACULTY OF PHYSICS

PHYS5044 Chap.11 Lock-in Detection and PID Feedback Control

- one subject, every graph, every model, every mark
6 Chapters4-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 11 of 12 · PHYS5044

Lock-in Detection and PID Feedback Control

Lock-in Detection and PID Feedback Control joins two ideas that both rely on comparing a measurement with a reference. The lock-in half starts from the problem of slow signals sitting in 1/f noise and drift.

By modulating the quantity at a chosen frequency, multiplying the sensor output by a reference at that frequency and low-pass filtering the product, the instrument returns a steady level proportional to the signal amplitude times the cosine of the phase error, while noise at other frequencies averages away.

The filter time constant sets the trade: a longer average narrows the bandwidth and lowers the noise, but each reading takes longer to settle. The control half models a sensor platform as a damped mass on a spring, writes its transfer function with s standing for jω, and closes a loop around it. Proportional gain acts like an extra spring, raising the natural frequency but leaving an offset from the setpoint.

Integral action removes that offset, derivative action damps the swing, and too much proportional or integral gain pushes the loop towards instability. Sketching the resulting step responses is a core exam skill.

In this chapter

What this chapter covers

  • 01

    Why modulation moves a signal away from 1/f noise

  • 02

    Multiplier, reference and low-pass filter in a lock-in

  • 03

    Phase error and the cosine factor

  • 04

    Time constant, bandwidth and settling time

  • 05

    Closed-loop transfer function of a mass on a spring

  • 06

    What P, I and D each do to a step response

Worked example · free

Follow a signal and a nearby noise tone through the lock-in multiplier and filter

Q [5 marks]. Marks shown were set for practice and do not come from the official University paper. The lock-in figure shows a modulated source, a noisy sensor, a multiplier fed by a phase-shifted reference, and a low-pass filter. Describe what the multiplier produces from the wanted signal and from a noise component 3 Hz away from the reference frequency, say which of these the filter passes, and explain what happens to the output if the phase shifter is 90 degrees wrong and if the time constant is lengthened. These marks are a study aid written by AskSia and are not the University's official allocation.
The upper row carries the measured signal from a modulated source through the noisy sensor into a multiplier and a low-pass filter; the lower row supplies a phaThe upper row carries the measured signal from a modulated source through the noisy sensor into a multiplier and a low-pass filter; the lower row supplies a phase-adjusted reference, and the DC output scales with the signal amplitude and the cosine of the phase error.modulated sourcesensor and noisemultiplierlow-pass filterreferencephase shifterDC output½·AS·AR·cos φchopped at f
The upper row carries the measured signal from a modulated source through the noisy sensor into a multiplier and a low-pass filter; the lower row supplies a phase-adjusted reference, and the DC output scales with the signal amplitude and the cosine of the phase error.
  • 1The source drive also feeds the reference, so the wanted signal arrives at exactly the reference frequency f.
  • 1Multiplying the wanted signal by the reference gives a steady term plus a term at 2f; the noise component 3 Hz away gives terms at 3 Hz and at 2f + 3 Hz.
  • 1The low-pass filter keeps the steady term and strongly weakens the 2f terms; the 3 Hz beat is reduced only if the filter bandwidth is well below 3 Hz.
  • 1At a 90 degree phase error the steady term carries cos 90° = 0, so the output reads zero even with a strong signal present.
  • 1A longer time constant narrows the bandwidth, so less noise survives, but the output settles more slowly after any change.
Only the steady product term survives the filter; noise close to f leaks through as a slow beat unless the bandwidth is narrower than the offset, a 90 degree error zeroes the reading, and a longer time constant buys lower noise at the cost of settling time.
Sia tip — Ask of every component: after multiplying by the reference, what frequency is it now, and is that inside the filter bandwidth?
Glossary

Key terms

Lock-in amplifier
An instrument that multiplies a signal by a reference at the modulation frequency and filters the product to a steady level.
Reference signal
The periodic waveform, taken from the modulation drive, that the lock-in multiplies with the measured signal.
Time constant
A measure of how long the output filter averages; the effective bandwidth is roughly its inverse.
Steady-state error
The offset that remains between the setpoint and the settled output under purely proportional control.
Derivative gain
Feedback proportional to the rate of change, which adds damping and calms oscillation in a loop.
FAQ

Lock-in Detection and PID Feedback Control FAQ

Why modulate a slow signal instead of measuring it directly?

Slow signals share their frequency range with drift and 1/f noise, which are hard to filter away. Modulating moves the information to a frequency where the noise is close to white and lower, and the lock-in then recovers it with a narrow filter centred on that frequency.

What sets the noise at the lock-in output?

The noise density near the modulation frequency and the bandwidth of the output filter. That bandwidth is roughly the inverse of the time constant, so a longer time constant lowers the RMS noise in proportion to its square root, while settling takes proportionally longer.

Why does phase matter for a lock-in reading?

The steady output is proportional to the cosine of the phase difference between signal and reference. Any uncorrected delay in cables or amplifiers therefore shrinks the reading, and at ninety degrees it vanishes. Adjust the phase until the output peaks before recording values.

Why does proportional control leave an offset?

The controller only pushes when there is an error, so at equilibrium some error must remain to supply the force that balances the spring. Raising the gain shrinks that offset but stiffens and speeds up the loop, and integral action is the usual way to remove it entirely.

Which PID terms make a loop less stable?

Proportional and integral action both tend to push a loop towards oscillation as their gains rise, because they make it respond harder and later. Derivative action responds to the rate of change, so it adds damping and tends to stabilise the response.

Study strategy

Exam move

Redraw the lock-in chain from memory and label, at each arrow, which frequencies are present. Then work the time constant problem both ways: from a given time constant to an SNR, and from a target SNR back to the time constant and the settling wait.

For control, write the equation of motion for a damped mass on a spring, form its transfer function, and close a loop with proportional gain to see the new natural frequency and the offset. Finally sketch three step responses on one set of axes, open loop, proportional and PID, and check each against the features: ringing frequency, final value and damping.

Timed sketching is worth practising because the sketch is often where marks are lost, and label both axes with values each time.

Working through Lock-in Detection and PID Feedback Control in PHYS5044? Sia is AskSia’s AI Physics tutor — ask any PHYS5044 Lock-in Detection and PID Feedback Control question and get a clear, step-by-step explanation grounded in how PHYS5044 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 26 of your subjects at University of Glasgow, plus 1,000+ more Bibles across the AskSia library.
Sia - your PHYS5044 tutor, unlimited, worked the way the exam marks it
The full 4-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works