Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Course2026
← Practical Robotics: Why Robots FailModule 02

02 | Sensor Filtering: Less Noise, More Delay? Tune an EMA

InstructorDr. Redmond R. Shamshiri
AffiliationAssistant Professor of Robotics · University of Southern Denmark (SDU)
Study time35 minutes
Watch & study

Lecture video

Open on YouTube ↗

Video unavailable here? Watch on YouTube. Captions and playback speed are available in the player.

Study companion. These editable notes, worked examples and exercises supplement the source material. They are not a verbatim video transcript or a reproduction of the book.

Study 02 | Sensor Filtering: Less Noise, More Delay? Tune an EMA. Use the accompanying model, numerical example and practical task to connect the topic to a measurable engineering result. Notes are original supplemental material, not a transcript.

Learning Objectives

  • Explain the role of sampling and low-pass filtering in the engineering system.
  • Calculate the worked quantity with consistent units.
  • Design a measurement that can reveal an implementation failure.

Study guide

Original companion notes. These notes support the topic of this lesson. They are not a transcript or a claim about the exact contents, hardware settings or examples in the video.

Lesson focus: 02 | Sensor Filtering: Less Noise, More Delay? Tune an EMA

Change one tuning parameter at a time and compare against the same reference input and load.

Sampling and low-pass filtering

A low-pass filter can reduce high-frequency noise while adding lag. Choose sample rate and filter bandwidth from the process dynamics; filtering cannot reconstruct information lost by aliasing before sampling.

Model, units and assumptions

\[y_k=\alpha x_k+(1-\alpha)y_{k-1},\qquad \alpha=1-e^{-T_s/\tau}\]

Ts is sample period and τ is desired first-order time constant. This α is obtained from a sampled first-order decay. The formula assumes regular sample intervals; variable intervals require updating α or using an appropriate time-aware method.

Worked engineering example

With Ts = 0.01 s and τ = 0.10 s, α ≈ 0.0952. A new sample contributes about 9.5% of the output update, so substantial smoothing comes with finite response time.

Practical task and evidence

Apply the following procedure to the topic of this lesson: 02 | Sensor Filtering: Less Noise, More Delay? Tune an EMA.

  • Record an unfiltered signal so processing choices remain reproducible.
  • Apply a step and a noisy steady signal to the same filter.
  • Measure both noise reduction and step-response delay.

Submit: a diagram or interface table, a short timestamped dataset, the calculation with units, and a paragraph explaining the largest observed limitation.

Check your understanding

Question. For α = 0.2, new input 10 and previous output 5, find the new output.

Show worked answer

6. Filtering reduces the immediate jump from 5 to 10 but delays the response.

Extension. Change one assumption in the model and explain which measurement would reveal that it no longer holds.

Summary

Sampling and low-pass filtering: keep units, assumptions and timing explicit. Check the numerical model against an independent observation before using it in a larger system.

Suggested Reading & Resources

  • Reading
    SciPy signal-processing reference

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗