PHYS5044 Chap.11 Lock-in Detection and PID Feedback Control
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.
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
- 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.
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.
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.
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.