23  Sensor Dynamics and Response Time

Choose Sampling and Filtering From How Sensors Actually Move

fundamentals
signal
processing
sensor

23.1 In 60 Seconds

A sensor does not jump to a new value the instant the world changes. It eases toward the new value at a speed set by its own physics. That delay, called the sensor’s dynamic response, decides what a measurement can actually capture. Choosing a sample rate or a filter without knowing how fast the sensor itself can move is how teams end up sampling a slow curve very fast, or trusting a fast sensor reading that the sensor never truly reached.

Phoebe the physics guide

Phoebe’s Why

This page’s exponential step response, \(value(t)=final\times(1-e^{-t/\tau})\), is not a sensor-specific curiosity – it is the general solution of any first-order system whose rate of approach toward a target is proportional to how far it still has to go, \(dx/dt=(x_{final}-x)/\tau\). A charging RC circuit obeys exactly this law with \(\tau=RC\); a thermal probe obeys it with \(\tau=R_{th}C_{th}\), thermal resistance times thermal capacitance, playing the same role electrical resistance and capacitance play in a circuit. That is why the same 63/95/99 percent milestones and the same \(f_{3dB}=1/(2\pi\tau)\) bandwidth formula this page already states apply unchanged to a thermometer, a pressure diaphragm, or a capacitor – they all share one governing equation.

The Derivation

The governing first-order ODE and its step solution – this page’s own formula, solved from the differential equation that produces it:

\[\frac{dx}{dt} = \frac{x_{final}-x}{\tau} \;\Longrightarrow\; x(t) = x_{final}\left(1-e^{-t/\tau}\right)\]

Taking the Laplace transform gives the frequency response of the same system, \(H(s)=1/(1+s\tau)\), whose magnitude falls to \(1/\sqrt2\) (the \(-3\) dB point) exactly where \(\omega\tau=1\):

\[|H(j\omega)| = \frac{1}{\sqrt{1+(\omega\tau)^2}} \;\Longrightarrow\; f_{3dB}=\frac{1}{2\pi\tau}\]

Because the sensor itself is band-limited to \(f_{3dB}\), the Nyquist criterion from the ADC Fundamentals chapter applies to the sensor’s own bandwidth, not just to the signal it is measuring:

\[f_s \geq 2f_{3dB} = \frac{1}{\pi\tau}\]

Worked Numbers: This Page’s Own 2-Second Thermistor

  • This page’s own worked example: \(\tau=2\) s gives \(f_{3dB}=1/(2\pi\times2)=0.0796\) Hz, confirming the page’s own “bandwidth below 0.1 Hz.”
  • The Nyquist floor for that sensor: \(f_s\geq2\times0.0796=0.159\) Hz, i.e. one sample every \(6.28\) s would already satisfy Nyquist for the sensor’s own bandwidth.
  • This page’s own “100 samples per second” choice, checked against that floor: \(100/0.159=628\times\) beyond the Nyquist minimum, or equivalently \(100\times2=200\) samples land inside every single time constant.
  • Honest finding: that is not wasted – a first-order system rolls off gradually rather than at a brick wall, so a few samples per time constant already describe the curve’s shape well; 200 samples per \(\tau\) only adds finely-spaced points on a curve the sensor has already fully determined, exactly matching this page’s own “records the same slow climb in finer detail” claim, now with the multiple attached.

23.2 Start With the Story

Start with a physical signal that is noisy, delayed, sampled, quantized, calibrated, filtered, packed, and finally sent as a number someone will trust. The core idea in Sensor Dynamics and Response Time is simple: signal processing is the bridge between the physical world and digital evidence, so every sampling, ADC, filter, and calibration choice changes the value that leaves the device. This page focuses that idea on Signal-processing sensor response time, time constants, damping, bandwidth, dynamic lag, sampling-rate choices. In everyday IoT, temperature drift, vibration spikes, audio snippets, and lab traces all become decisions only after their limits and uncertainty are made visible. Start simple: trace one measurement through the chain, keep the raw-to-processed evidence, and move advanced math into the deeper review only when the simple chain no longer explains the result.

23.3 Sensors Ease Toward the Truth

Drop a thermometer into a glass of cold water and it does not read the cold temperature immediately. It slides toward it over a few seconds, fast at first and then slowing as it gets close. That gradual approach is the sensor’s response, and almost every physical sensor has one: thermal mass, chemical diffusion, mechanical inertia, or filtering all slow the reaction to a change.

The important idea is that the sensor, not only the converter, sets how fast you can measure. A reading taken before the sensor has settled is a snapshot of the sensor catching up, not of the world. Sampling faster cannot recover detail the sensor was too slow to follow.

If you only need the intuition, this layer is enough: every sensor has a response time. Match your sampling and filtering to how fast the sensor can actually move, not to an idealized signal. A fast sample rate on a slow sensor records the same slow curve in finer detail.

The single most useful number is the response time, often summarized by a time constant: a slow sensor takes seconds to follow a step, while a fast one takes milliseconds. Knowing it tells you whether the sensor can see the events you care about at all.

For example, a refrigerated cabinet may use an NTC thermistor inside a stainless probe. When the door opens, warm air reaches the probe first, but the probe body and potting compound slow the bead. The logger can sample every 100 ms and still show a rounded climb. The design question is not whether the ADC can collect more points; it is whether the thermal assembly can follow the shortest door-open event the product must alarm on.

First-order sensor step response showing the true input step, delayed sensor output, one time constant near 63 percent, and three time constants near 95 percent.
A first-order sensor does not follow a step instantly: one time constant reaches about 63 percent of the change, and three time constants reaches about 95 percent.

The One-Minute View

Sensors lag change

A sudden input is followed gradually, not instantly. The lag is the sensor’s physics, not a software bug.

The sensor sets the ceiling

The fastest event a sensor can report is limited by its response time, regardless of how fast you sample.

Match sampling to the sensor

Pick a sample rate and filter from the sensor’s real response, so you neither miss events nor oversample a slow curve.

Beginner Examples

  • A slow temperature probe averaged over seconds is ideal for room comfort but useless for catching a fast thermal spike.
  • A fast pressure sensor can follow a sharp pulse, but only if the sampling keeps up with it.
  • Reporting a temperature one second after a step change may report the sensor mid-climb, not the true temperature.

Sensor Response Knowledge Check

If this gives you the idea, you can stop here. Continue to Practitioner when you need to match sampling and filtering to a specific sensor.

23.4 Apply It: Match Sampling to the Sensor

The practical job is to compare how fast the sensor can move against how fast the thing you measure actually changes, then choose a sample rate and filter that respect both. The sensor’s datasheet response time is the starting evidence.

Walkthrough: From Response Time to Sample Plan

  1. Find the response time. Read the sensor’s time constant or its time to reach 90 percent of a step from the datasheet or a bench test.
  2. Name the fastest real event. Decide the quickest change the application must capture, such as a thermal spike or a pressure pulse.
  3. Compare the two. If the event is faster than the sensor can follow, no sample rate will recover it; you need a faster sensor.
  4. Set the sample rate. If the sensor can follow the event, take several samples across the sensor’s response so the curve is well described.
  5. Account for lag and drift. Record the response delay, any hysteresis, and expected drift so validation does not mistake them for real change.

Worked Example: A Two-Second Thermistor

A thermistor has a time constant of about 2 seconds, so after a sudden temperature step it reaches roughly 95 percent of the change in about 6 seconds. Sampling it 100 times per second does not measure temperature faster; it records the same slow climb in fine detail. If the process being measured spikes and falls within half a second, this sensor physically cannot report the peak, and the fix is a faster sensor, not a faster ADC.

first-order step response: value(t) = final x (1 - e^(-t / tau))

The same time constant also sets the sensor’s usable bandwidth. A slow sensor is, in effect, a low-pass filter on the world.

-3 dB bandwidth: f_3dB = 1 / (2 x pi x tau)
Frequency-band diagram showing an event band, sensor bandwidth limit, useful sample plan, and wasted noise-only sampling beyond the sensor limit.
Sample plans should cover what the sensor can actually follow; beyond the sensor limit, extra samples mostly record lag or noise.

Dynamic Effects to Record

Effect
What It Is
Consequence
What to Capture
Response time
Delay before the reading reaches the new value.
Fast events are missed or under-reported.
Time constant or time to 90 percent.
Settling
Time to stay within a tolerance band.
Early reads include transient error.
Settling time at a stated tolerance.
Hysteresis
Reading depends on approach direction.
Up and down sweeps disagree.
Difference between rising and falling readings.
Drift
Slow change with constant input.
Calibration decays over time or temperature.
Drift rate and recalibration interval.
Response-time review record connecting event requirement, response test, bandwidth choice, filter-delay budget, and validation event.
A response-time review keeps the event requirement, response test, bandwidth choice, filter delay, and validation event in one release record.

Incremental Practice

Beginner

For a slow comfort-temperature sensor, justify why sampling once every few seconds preserves all the useful information.

Intermediate

Given a 1-second time constant, estimate how long until a step is roughly 95 percent complete, and set a sensible sample rate.

Advanced

For a sensor that overshoots a step before settling, decide whether to wait for settling or to filter the ringing, and justify the trade.

Oversampling Knowledge Check

If you can match a sample plan to a sensor’s response, you can stop here. Continue to Under the Hood for the response math and the failure modes behind it.

23.5 Under the Hood: Response Math and Failure Modes

Most sensor responses are well described as first-order or second-order systems. The math turns a vague “it is slow” into specific numbers for delay, bandwidth, overshoot, and settling.

First-Order Response and Its Constants

A first-order sensor following a step approaches the final value exponentially. The fraction completed depends only on how many time constants have passed:

value(t) = final x (1 - e^(-t / tau))
  • After 1 time constant, about 63 percent of the change is complete.
  • After 3 time constants, about 95 percent is complete.
  • After 5 time constants, about 99 percent is complete.

This is why response is often quoted as a time to reach 90 percent, which is about 2.3 time constants, and why “settled” usually means several time constants have elapsed.

Bandwidth Is the Same Fact in Frequency

A slow time constant is a low-pass filter on the input. The half-power bandwidth follows directly:

f_3dB = 1 / (2 x pi x tau)

A 2-second time constant corresponds to a bandwidth below 0.1 Hz, so such a sensor cannot represent a signal that changes several times per second. Sampling faster than this bandwidth allows still produces correlated, lagging samples rather than new information.

Second-Order Behavior: Damping

Sensors with mass and restoring force can overshoot. Their settling depends on damping:

  • Underdamped: fast rise but overshoot and ringing before settling.
  • Critically damped: the fastest approach with no overshoot.
  • Overdamped: no overshoot but a slow approach.

An early reading from an underdamped sensor can be higher or lower than the true value, so settling time, not only rise time, governs when a reading is trustworthy.

Sensor dynamic response types to a sudden step input: an ideal instantaneous response, a first-order exponential response with finite rise time, and a second-order response combining rise and settling including underdamped oscillation, with key parameters such as rise time, settling time, overshoot, damping ratio, and natural frequency.
Damping changes which reading is trustworthy: the fastest rise may overshoot, while a slower response may settle without ringing.

Hysteresis and Drift Are Separate Errors

Hysteresis means the reading depends on whether the input is rising or falling, so a value approached from below differs from the same value approached from above. Drift means the output slowly changes with constant input, due to aging or temperature, which is why calibration has a finite useful life. Neither is captured by response time, and both must be measured separately.

Symptom
Likely Cause
Evidence to Collect
First Fix to Try
Peaks look too low
Sensor too slow for the event (dynamic lag).
Compare event duration with the time constant.
Use a faster sensor or accept averaged values.
Early reads unstable
Reading taken before settling.
Settling time at the required tolerance.
Wait several time constants before reading.
Up and down disagree
Hysteresis in the sensor.
Rising versus falling sweep at the same input.
Record direction and characterize the offset.
Slow baseline shift
Drift over time or temperature.
Long capture at constant input.
Schedule recalibration or compensate the drift.

Common Pitfalls

  1. Oversampling a slow sensor. A high sample rate cannot add detail the sensor was too slow to capture.
  2. Reading before settling. Early samples include transient or overshoot error, not the true value.
  3. Confusing resolution with speed. More bits do not make a slow sensor follow a fast event.
  4. Ignoring hysteresis and drift. Both produce errors that response time alone never reveals.

Sensor Bandwidth Knowledge Check

At this depth, sensor dynamics are the real bandwidth limit of a measurement. Characterize the response time, convert it to a bandwidth, respect settling and damping, and measure hysteresis and drift separately, so the sample plan fits the sensor’s physics rather than an idealized signal.

23.6 Summary

  • Every physical sensor eases toward a new value over time; that response time, not the ADC, sets the fastest event it can capture.
  • A first-order sensor completes about 63 percent of a step in one time constant, 95 percent in three, and 99 percent in five.
  • The time constant is also a bandwidth: f_3dB equals 1 divided by 2 pi tau, so a slow sensor is a low-pass filter on the world.
  • Sampling faster than the sensor’s bandwidth adds correlated, lagging points rather than new information.
  • Second-order sensors can overshoot, so settling time, not only rise time, decides when a reading is trustworthy.
  • Hysteresis and drift are separate errors that response time does not reveal and must be measured on their own.
Key Takeaway

A measurement can only be as fast as the sensor that makes it. Characterize the response time, turn it into a bandwidth, and choose sampling and filtering from the sensor’s real dynamics, not from an idealized signal.

23.7 See Also

ADC Sampling Fundamentals

Connect the sensor's bandwidth to sample-rate and anti-alias decisions at the converter.

Quantization and Digital Filtering

Choose resolution and filters that suit how the sensor actually moves.

Signal Processing Essentials

See where response time fits in the full sensor-to-evidence pipeline.