SLAAEF6 September   2023 MSPM0L1105 , MSPM0L1106 , MSPM0L1306 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1PIR Design Description
    1. 1.1 PIR Sensor
    2. 1.2 PIR Signal Chain
      1. 1.2.1 Traditional Motion Detection Signal Chain Design
      2. 1.2.2 Capacitor-Free Signal Chain Design
  5. 2Hardware and Schematic
    1. 2.1 MSPM0L1306
    2. 2.2 MSPM0 PIR Boosterpack
      1. 2.2.1 Schematic
  6. 3Software
    1. 3.1 Software Architecture
    2. 3.2 Software Flow Chart
    3. 3.3 Data Processing
      1. 3.3.1 Digital Signal Conditioning
      2. 3.3.2 Low-Pass Filter for Temperature Drift
      3. 3.3.3 Spikes and Noise
      4. 3.3.4 Motion Detection Function
  7. 4Results
    1. 4.1 Power Profile and Current Consumption
    2. 4.2 Detection Performance
      1. 4.2.1 Distance: 5 meters (16.4 ft)
      2. 4.2.2 Distance: 9 meters (29.5 ft)
      3. 4.2.3 Distance: 10 meters (32.8 ft)
  8. 5Summary
  9. 6References

Spikes and Noise

If you zoom in on the data waveform, you will see that the signal is still quite noisy. The more noise that can be removed, the better the signal to noise ratio will be. The signal chain has already been improved to reduce the noise, but because you are sampling the signal with an ADC, it is possible to perform additional data processing on the signal. For the software, this noise is characterized as two different types: spikes and ripples.

GUID-7729081F-05BA-4D9D-847E-60E8DB5C2005-low.pngFigure 3-4 PIR Sensor Signal Zoomed In

Figure 3-5 shows two fairly large, random high-frequency spikes in the data. The samples are run though a “de-spiking” function that attempts to identify and remove these spikes and improve performance. This function basically looks at the last several samples captured in a window, and removes maximum and minimum values and therefore smoothing out any extreme "spikes" seen in the data.

GUID-C8CF35B1-EF99-4D15-8F09-E68AA8C86044-low.pngFigure 3-5 PIR Signal Spikes

Figure 3-6 shows ripples and white noise. There is a place holder for a“de-rippling” function, but the current example software has not implemented this. All the data below was captured without it.

GUID-917ACD98-3F84-445F-968B-F99F2C98A1E3-low.pngFigure 3-6 PIR Signal Ripples/Noise