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

Low-Pass Filter for Temperature Drift

Figure 3-3 shows what the PIR signal looks like over time as the ambient temperature and the PIR sensor body temperature are fluctuating. There is no motion detect events here, just the signal drifting. A digital low-pass, moving average filter is applied in software to the collected data samples. Based on this moving average filter, the DACs are adjusted to compensate for this baseline trend over time and this removes most of the DC component of the signal. This allows you to achieve a higher dynamic range from the MSPM0's 12-bit ADC since the signal chain is actively being compensated for the ambient temperature, it keeps the signal centered within the ADC measurement range. The software can use both the ADC's reading and the current DAC compensation values to determine the absolute digital output code.

GUID-2A93D686-CABD-4DE4-AF1D-E885C748D1ED-low.pngFigure 3-3 PIR Sensor Signal Drift Over Time