Find out which initial conditions are distinguishable
Model a translating stage over its usable travel by \(\dot x_1=x_2,\ \dot x_2=u\), with measured output \(y=x_1+n\). Here the input is an acceleration in the chosen position and time units. With zero noise and known input, two different initial positions give different initial readings. Two different initial velocities with the same position yield traces whose initial slopes differ. Formally the observability matrix stacks \(C=(1,0)\) above \(CA=(0,1)\), giving rank two. If only velocity were measured, a constant offset of initial position would remain invisible, whatever the command. Observability belongs to the chosen model and output together.
Run a copy of the plant and drive it with both the known command and a correction proportional to innovation \(y-\hat x_1\):
Define error as true minus estimated state. For a perfect model and noise-free measurement the error matrix has rows \((-l_1,1)\) and \((-l_2,0)\). Expanding the determinant of \(sI-(A-LC)\) gives \(s^2+l_1s+l_2\). Matching the standard oscillator denominator sets \(l_1=2\zeta\omega_o\) and \(l_2=\omega_o^2\). The units are inverse seconds and inverse seconds squared. A constant position innovation can therefore request corrections to both estimated velocity and acceleration. Stable poles guarantee decay of initial error for the ideal model. They do not specify how large the measurement error becomes when injected continually.
Follow one sensor tone all the way to the velocity estimate
Set the true state and command to zero and solve the two linear equations in the Laplace domain with zero initial condition. Eliminating estimated position gives the transfer of position noise to estimated velocity:
For slow variation it behaves like a differentiator, so a constant position offset ultimately produces zero spurious velocity. At high frequency the gain falls as \(l_2/\omega\), whereas differentiating raw data multiplies its amplitude by frequency. Noise near the observer bandwidth can nevertheless be strongly visible. With observer frequency 2 Hz, damping ratio 0.75 and a 10 Hz sensor oscillation of amplitude 0.03 mm, the predicted velocity ripple is about 0.075 mm/s. The stage moves at 0.40 mm/s in the example. Compare the late-time difference between clean and noisy traces with the predicted peak ripple. The initial position estimate is deliberately displaced to reveal transient convergence.
Background · What if successive position errors are correlated?
Estimate velocity as the difference between consecutive positions divided by the sample interval \(h\). Suppose each position error has variance \(\sigma^2\) and the correlation between successive errors is \(\rho\). The variance of the difference contains the covariance twice with a negative sign.
A constant sensor bias cancels exactly from this difference, although the reconstructed position can remain wrong. Independent 0.10 mm position errors sampled 0.01 s apart give a 14.1 mm/s velocity standard deviation. With the same marginal variance and correlation 0.9 it falls to 4.47 mm/s. A sensor data sheet reporting only RMS position noise leaves this prediction underdetermined.
Use the innovation as a diagnostic signal
If the true acceleration exceeds the commanded value by constant \(d\), the steady error equations yield
Raising the observer frequency reduces these model-error terms while passing more encoder noise at a fixed sufficiently high frequency. Adding a slowly evolving bias state is another modelling choice; its observability and process-noise assumptions need to be checked again. A near-zero innovation in a high-gain observer alone is weak evidence of correct velocity, since the algorithm was designed to force estimated position toward the sensor.
On the bench, estimate the encoder noise spectrum with the stage held stationary and the illumination and sampling electronics operating normally. During motion, compare estimated speed with an independently timed travel between two reference marks. An encoder fitted only by its own residual offers no independent absolute scale. If a motion command changes numerically from metres to millimetres, transform acceleration, position and initial estimates together. Pole locations have units of inverse time and do not depend on this uniform length conversion.
Check whether an apparent velocity ripple aliases from above the sampling band
Suppose the encoder is sampled at 100 Hz and its electronics pick up a 90 Hz sinusoid. At those sampling instants the measured sequence is indistinguishable from a ten-hertz sinusoid with suitable phase. A downstream digital observer cannot determine which analogue frequency generated the samples. Repeating with a different acquisition clock moves an alias while leaving a genuine ten-hertz process feature at its physical frequency. An analogue anti-alias filter can attenuate the high-frequency signal before sampling.
Compare this experiment with the frequency knob in the displayed model. The browser directly synthesises a known tone at the integration rate and therefore tests the observer frequency response in isolation. A measured disagreement on a real sampled encoder can reveal an upstream acquisition effect even when the observer discretisation is accurate.
Tutorial · Identify a constant offset and an acceleration mismatch
An encoder reads 0.20 mm high at rest. Separately, an unmodelled 0.20 mm/s squared acceleration acts on an otherwise perfect stage. Find steady errors for the two cases at the default observer setting.
Solve the steady error equations for each input
A sensor offset eventually places estimated position 0.20 mm above truth while the estimated velocity returns to zero. For the acceleration mismatch, \(l_2=157.91\) and \(l_1=18.85\) in the appropriate second-based units. The true position exceeds the estimate by 0.00127 mm and true velocity exceeds its estimate by 0.0239 mm/s. The persistent residual in the second case is tiny despite a clear velocity bias. Repeat the test while changing bandwidth to distinguish a bias in the sensor from a mismatch in acceleration.
Tutorial · Compare with numerical differentiation
With 1 ms sample separation, independent position errors have standard deviation 0.01 mm per reading. What standard deviation does a backward difference produce for velocity? Explain how this differs from the deterministic 10 Hz test.
Propagate the variance of the difference
Subtracting independent zero-mean errors adds their variances. Divide the resulting standard deviation by the time step to obtain
A 10 Hz interference tone has correlated neighbouring samples and a fixed phase evolution. Its output is predicted from sinusoidal frequency response, not from independence. Averaging a longer interval reduces random position-difference noise but measures a longer-time mean speed and responds more slowly to acceleration.
Tutorial · Check discrete implementation before increasing gain
A software observer updates by explicit Euler every 10 ms. If the continuous error poles are both minus 300 per second, what happens to an initial error? How could the implementation preserve the intended decay?
Map a continuous pole through the actual update
The scalar Euler factor is
its magnitude exceeds one, so errors grow while changing sign. Exact discretisation would map the pole to \(e^{-3}=0.0498\). A suitably faster sample interval, a correctly discretised observer, or a discrete observer designed directly for the sampled measurement can restore stability. These choices still depend on the actual measurement rate. Interpolating old encoder samples at a faster software clock does not create independent new position information.
Caltech · Åström and Murray, Output Feedback, observability and state estimation