Projects / Ideas / Simple Kalman filter lab

Simple Kalman filter lab

IntermediateTest & MeasurementIdeaReviewed
In short

How do you build a simple Kalman filter lab?

A distance sensor's jumpy readings are smoothed by a one-number Kalman filter that weighs each new reading against its own guess, with a knob that sets how much it trusts the sensor. Watch the output lag or jitter as you change the knob. A gentle first look at a famous idea. You need Arduino Nano, HC-SR04 Ultrasonic Sensor, Potentiometer 10 kΩ, SSD1306 OLED Display, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

Level
Intermediate
Time
About 90 min
Parts
6
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Smooth a jumpy reading with a simple Kalman filter.

How to build it

  1. Read the distance sensor
  2. Predict the next value from the last
  3. Blend in each reading by a trust factor
  4. Set the trust with a knob
  5. Compare raw and filtered values on the screen

Related projects

Common questions

What parts do I need for the simple Kalman filter lab?

Arduino Nano, HC-SR04 Ultrasonic Sensor, Potentiometer 10 kΩ, SSD1306 OLED Display, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the simple Kalman filter lab take to build?

About 90 minutes for a intermediate maker.