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

Traditional Motion Detection Signal Chain Design

Figure 1-4 illustrates the traditional PIR motion detector signal chain. The signal from the PIR sensor is fed through a series of gain band-pass filters, that usually include DC blocking caps, and then fed to a set of comparators for low and high side waveform detection, acting as a window comparator.

GUID-26CF6432-0A58-4A5B-9950-664DE7B15905-low.pngFigure 1-4 Traditional PIR Signal Chain

As mentioned in the introduction, this signal chain is fixed and limited. For the band-pass filters, the gain and cutoff frequencies are configured specifically for a particular detection range and motion speed. Typical cutoff frequencies are around .7 – 30Hz and overall signal gain may be as high as 1000x.

Another downside of this signal chain we found during our investigation, is that these DC filter caps actually end up being very large noise sources for the signal chain. Ceramic surface mount capacitors are usually made of barium titanate, which has a piezoelectric effect, meaning any noise or vibration actually generates small noise signals on the caps. Tantalum capacitors at such low frequencies can also introduce noise onto the signal. Coupling this noise with up to 1000x gain in the signal chain can return a very poor signal to noise ratio. In Figure 1-5, the signal from a PIR sensor was fed into the above signal chain and a capacitor free signal chain using the MSP430FR23355 in parallel. It is much easier to see the motion signal with the capacitor free circuit.

GUID-C2CB3671-A772-4749-B104-281693198E13-low.pngFigure 1-5 Traditional vs Capacitor-Free Signal Chain