FILTERING NOISE

Real-time filtering of noise out of sensor data​

Filtering noise out of sensor data is an important first step while working with any real-time system. Here we use MATLAB to filter noise out of 3-axis accelerometer data in real-time. Both Exponential Moving Average (EMA, low pass, Infinite Impulse Response - IIR) and Simple Moving Average (SMA, Finite Impulse Response - FIR) filters are shown. The accelerometer is connected to Matlab using the Arduino UNO board.

Threshold Crossing

Often times, one needs to detect when a sensor signal crosses a certain threshold level. Here we use MATLAB to detect threshold crossing for 3-axis accelerometer data. Using the 3-case approach described in this video, one can use detect threshold crossing for any sensor signal. One can use raw or filtered sensor signal. The accelerometer is connected to Matlab using the Arduino UNO board.