SLAA351A April   2007  – November 2018 MSP430F2232 , MSP430F2232 , MSP430F2234 , MSP430F2234 , MSP430F2252 , MSP430F2252 , MSP430F2254 , MSP430F2254 , MSP430F2272 , MSP430F2272 , MSP430F2274 , MSP430F2274

 

  1.   A Simple Glass-Breakage Detector Using an MSP430™ MCU
    1.     Trademarks
    2. 1 Introduction
    3. 2 Hardware Description
      1. 2.1 Device Specifications
      2. 2.2 Power Supply
      3. 2.3 Microphone
      4. 2.4 LED and Buzzer Alert
      5. 2.5 Interface to CC1100 or CC2500 Devices
      6. 2.6 Operational Amplifiers (OAs)
      7. 2.7 Internal Very-Low-Power Oscillator (VLO)
      8. 2.8 JTAG Interface
      9. 2.9 Current Consumption
    4. 3 Software Description
      1. 3.1 Initialization Routine
      2. 3.2 Timer_A
      3. 3.3 ADC10
      4. 3.4 Signal Analysis
        1. 3.4.1 First Stage of Processing
          1. 3.4.1.1 Signal Averaging, Peak Detection, and Zero Crossings
          2. 3.4.1.2 High-Pass Filtering
        2. 3.4.2 Second Stage of Processing
          1. 3.4.2.1 Frequency Composition Ratio
          2. 3.4.2.2 Peak and Zero-Crossing Count
          3. 3.4.2.3 Glass-Breakage Detect
    5. 4 Hardware Schematic
    6. 5 Test Setup
    7. 6 References
  2.   Revision History

Current Consumption

The board is sourced by the two 1.5-V AAA batteries, which have a capacity of approximately 800 mAh. This gives a battery life of up to 416 days at 80-µA current consumption and up to 666 days at 50-µA current consumption. These figures are with the peripherals switched off when not in operation. The current consumption can be further reduced if the wake up is increased from the present interval of 2 ms. However, a longer interval increases the chances of missing a sound event. Figure 2 through Figure 4 are graphical representations of the current consumption for this board.

Figure 2 shows the current consumption profile when there is no activity. The device goes into active mode 1 (CPU at 8 MHz), denoted by AM1, for 37.5 µs once every 2 ms.

curr_consump_no_act_laa351.gifFigure 2. Current Consumption Profile During No Activity

Figure 3 shows the current consumption profile when there is activity detected on the microphone. The device goes into active mode 1 (CPU at 8 MHz) first for 37.5 µs and then, if the signal is a possible glass breakage, the CPU is configured to work at 12 MHz, denoted as AM2. Samples are accumulated for a period of 60 ms, and signal analysis (as described in Section 3.4) is done on every sample. If the signal is not a glass breakage, the device returns to LPM3 with Timer_A reconfigured.

curr_consump_mic_act_laa351.gifFigure 3. Current Consumption Profile During Activity on the Microphone

Figure 4 shows the current consumption profile when there is a glass breakage. This is a step further in comparison to Figure 3. If a decision is made in favor of a glass-breakage detection, the CPU continues in AM2, during which time the LED and buzzer are on for a period of three seconds. After this time, the device is reinitialized and returns to LPM3.

curr_consump_break_detect_laa351.gifFigure 4. Current Consumption Profile During Glass-Breakage Detection