Sensors & Signal Processing

signal filtering (low-pass)

Signal filtering means reshaping a sensor's stream of numbers to keep the part you want and suppress the part you don't. The most common kind in robotics is the low-pass filter, whose name says exactly what it does: it lets low frequencies (the slow, meaningful trend) pass through while holding back high frequencies (the fast, jittery noise riding on top). Picture a robot driving over gravel: its true heading drifts gently, but the raw compass reading also shakes rapidly from every bump. A low-pass filter calms that shake so the robot follows the smooth underlying direction instead of flinching at each pebble.

The simplest version is just a running blend: each new output is mostly the previous smoothed value plus a small pinch of the latest raw reading, so sudden spikes get diluted while steady trends survive. This is closely related to a moving average, and it works because genuine signals usually change slowly whereas noise flips back and forth quickly. The catch is a tradeoff every roboticist learns: the harder you smooth, the cleaner the number but the more it lags behind reality, like watching the world through a slightly delayed window. Filter too gently and noise leaks through; filter too aggressively and the robot reacts late. Choosing where to draw that line, the cutoff frequency, is the everyday art of filtering, and richer techniques like the Kalman filter extend the same idea using a model of how the robot actually moves.

An accelerometer on a walking robot reads about 9.8 buried under fast spikes from each footfall; a low-pass filter blends successive readings so the controller sees the steady gravity vector instead of the foot-strike chatter.

A low-pass filter keeps the slow gravity trend and removes the fast footstep spikes.

Heavier smoothing means cleaner numbers but more lag; the cutoff frequency sets where "slow signal" ends and "fast noise" begins.

Also called
low-pass filtersmoothing低通滤波器低通濾波器平滑