SLAAE30 July   2021 MSP430FR2355

 

  1.   Abstract
  2.   Trademarks
  3. 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
  4. 2Software
    1. 2.1 Software Architecture
    2. 2.2 Software Flow Chart
    3. 2.3 Power Profile
    4. 2.4 Data Processing
      1. 2.4.1 Digital Signal Conditioning
      2. 2.4.2 Low-Pass Filter for Temperature Drift
      3. 2.4.3 Spikes and Noise
      4. 2.4.4 Motion Detection Function
  5. 3Hardware and Schematic
    1. 3.1 MSP430FR2355
    2. 3.2 Schematic
  6. 4Results
    1. 4.1 Distance: 15 ft (4.5 m)
    2. 4.2 Distance: 22.5 ft (6.9 m)
    3. 4.3 Distance: 36.5 ft (11.1 m)
  7. 5Summary
  8. 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-41595822-B0D7-4015-869A-9F36B42A24C1-low.png Figure 2-5 PIR Sensor Signal Zoomed In

Figure 2-6 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-CB45F95F-1407-433C-A239-19D3CC0009AD-low.png Figure 2-6 PIR Signal Spikes

Figure 2-7 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-331A1D7A-F08A-43B7-B282-4FE43AC04664-low.png Figure 2-7 PIR Signal Ripples/Noise