TIDUEZ4 May   2021

 

  1.   Description
  2.   Resources
  3.   Features
  4.   Applications
  5.   5
  6. 1System Description
  7. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Highlighted Products
      1. 2.2.1 SimpleLink MCU
        1. 2.2.1.1 CC3235MODS
        2. 2.2.1.2 CC1352R LaunchPad
          1. 2.2.1.2.1 CC1352R
      2. 2.2.2 Power
        1. 2.2.2.1 TPS63802
        2. 2.2.2.2 TPS63900
        3. 2.2.2.3 TPS62825
        4. 2.2.2.4 TPS7A03
        5. 2.2.2.5 TPS7A20
        6. 2.2.2.6 TPS62840
        7. 2.2.2.7 TPS22919
        8. 2.2.2.8 LM66100
      3. 2.2.3 Peripherals
        1. 2.2.3.1 OPT3004
        2. 2.2.3.2 DRV8837C
        3. 2.2.3.3 TPA2011
        4. 2.2.3.4 TLV61048
      4. 2.2.4 OmniVision Video Encoder OA7000
      5. 2.2.5 OmniVision Image Sensor SP2329
      6. 2.2.6 YTOT Lens Module
    3. 2.3 Design Considerations
      1. 2.3.1  Input Power: Battery and USB
      2. 2.3.2  Power Requirements
      3. 2.3.3  Camera Wake-up and Day or Night Sensing
        1. 2.3.3.1 PIR and MSP430 Based Motion Detection Design for Low Cost and High Performance
      4. 2.3.4  Battery Gauging
      5. 2.3.5  IR LED Illumination
      6. 2.3.6  IR Cut Filter
      7. 2.3.7  Audio
      8. 2.3.8  System Operation
      9. 2.3.9  Wi-Fi and Host Subsystem
      10. 2.3.10 Firmware Control
        1. 2.3.10.1 Application Flow
  8. 3Hardware, Software, Testing Requirements, and Test Results
    1. 3.1 Hardware
    2. 3.2 Software
    3. 3.3 Setup
      1. 3.3.1 Configuration Steps for Video over Wi-Fi
      2. 3.3.2 (Optional) Flash OA7000 With Latest Firmware or Stream Video Over USB
      3. 3.3.3 Audio Streaming
      4. 3.3.4 LPSTK-CC1352R Configuration Steps for Camera Module
    4. 3.4 Test Results
      1. 3.4.1 Power Supply Rails and Current Consumption
      2. 3.4.2 Battery Life Calculations
      3. 3.4.3 Video Streaming
      4. 3.4.4 IR LED Drive
  9. 4Design and Documentation Support
    1. 4.1 Design Files
      1. 4.1.1 Schematics
      2. 4.1.2 Bill of Materials
    2. 4.2 Software
    3. 4.3 Support Resources
    4. 4.4 References
    5. 4.5 Trademarks
  10. 5About the Author

PIR and MSP430 Based Motion Detection Design for Low Cost and High Performance

The signal from an analog PIR sensor contains a small AC component corresponding to motion superimposed on a DC offset which can vary across a wide range depending on operating conditions such as ambient temperature or illumination. This AC component needs to be extracted to detect motion and sufficient gain needs to be applied. A typical implementation of this signal chain may use classical active band-pass filters whose pass band is aligned to the frequency range corresponding to motion events (for example, 0.5 Hz to 10 Hz). However, the low-frequency nature of the signal necessitates the use of larger capacitors in the filter implementation, and in some cases these can act as noise sources (for example, due to the piezoelectric effect in ceramic capacitors or 1/f3 noise phenomenon in tantalum capacitors).

To limit the introduction of noise (which could lead to false triggering of the sensor), a more optimized signal chain topology is used as shown in Figure 2-21. It consists of two cascaded gain stages, each of which has an offset voltage that is dynamically controlled via a DAC. The first stage uses a non-inverting topology whose offset voltage is intended to track the DC offset of the PIR sensor. This is accomplished by sampling the amplifier output, computing the input-referenced voltage magnitude, and then controlling the DAC output based on a moving average of this signal. This allows for a large gain to be applied across the full DC bias range of the sensor without resulting in saturation of the amplifier output. Similarly, the second stage uses an inverting topology whose offset is varied to keep the output within the full-scale range of the sampling ADC. This extends the dynamic range of the sampling, allowing for higher gain to be applied and therefore more distant or minor motion events to be detected.

Although this signal chain uses multiple analog components and is more complex than conventional R/C-based filters, the high level of analog integration in Texas Instruments' MSP430FR235x family enables the full signal chain to be integrated into a single-chip solution. In doing so, additional flexibility is obtained in the gain-bandwidth of the signal chain (which can be controlled via firmware) as well as the processing applied to the PIR sensor output and the algorithms used to determine motion.

GUID-20210422-CA0I-QCXL-B4VZ-6FGBMQ6RLXX2-low.gif Figure 2-21 PIR and MSP430™ Based Motion Detection Design Block Diagram