Is anyone out there using the hardware/firmware reference platform for the TI MSP430-GBD (Glass Breakage Detector) ? I've bought a few of these and they do not work reliably at all. Any feedback would be appreciated. Here is my issue(s) including details, finding, observations, and comments ... (Seems like there are some hardware issues)
Working on a project that is looking to evaluate the TI MSP430 GBD (Glass Breakage Detector) hardware reference platform. Bought 2 from Europe and 1 from a US source. Both are sourced from the European hardware vendor. I have not been successful in being able to make this hardware/firmware evaluation platform work reliably. In fact, I only had this working at one time and have not been able to duplicate that result since then and I've been trying a lot !
Having troubles making the system operate as desired. I actually had the GBD working via the LED Blinking and Buzzer sound enabled both simultaneously after the Glass-Break.wav sound file was used. The audio file was played via headphones from a PC into the TI MSP430 GBD microphone. During one instance for a short period of time (a few minutes only) the system functioned as desired through multiple sequential detections using the Glass-Break.wav example audio file at 22.050 kHz 8-bit resolution. I have have not been able to duplicate this result since then and I have tried a lot! The file Glass-Break.wav has the following attributes described at the end of this verbiage describing the issue I'm having along with details, observations, and comments.
There are three example projects that are as follows:
- Blinking LED
- Buzzer Sound
- Robust GBD (Glass Breakage Detection)
The projects are compiled with the IAR Embbeded WorkBench for MSP430 Kickstart Edition version 7.10.4
My for the evaluation of this TI MSP430 GBD platform my observations, comments, and results are as follows:
- The example Buzzer application does not work correctly with an audible Buzzer (tone) sound. Measured the frequency of the interrupt and it was about 83 kHz instead of the comment that states 8.3 kHz which is off by an order of magnitude. I modified the code in main.c as follows (red line commented out and blue line added) in order to get the frequency around 8.3 kHz and have an audible Buzzer Beep (tone) sound output from the hardware buzzer. Note that the output tone is at a frequency of about 4.1 kHz (high pitch).
--snip
// 2.1. Timer_A
// =============
TACTL = 0x0004; // Timer_A clear
TACCTL0 = 0x0010; // Timer_A Capture/compare interrupt enable
//TACCR0 = 0x000F; // Set TACCR0 value: 1MHz / 8 = 125kHz; 125kHz / 15 = 8.33kHz
TACCR0 = 0x012c;
TACTL = 0x02D0; // Selected: SMCLK, divider 1/8, Up mode
--snip
- With a 3.0 VDC Lithium CR2032 Coin Battery I can only load code to the MSP430 but I do not get any Blinking LED or Buzzer sounds with the example LED and Buzzer example applications. Also, the GBD application does not work either as you would expect if the LED and Buzzer apps do not work.
- I saw elsewhere that two AA 1.5 VDC batteries were used but I did not setup and try this as there is a coin battery socket on the provided hardware and no socket for two AA 1.5VDC batteries.
- With a DC Lab Power Supply the system does not work at 3.0 VDC as I cannot load code into the MSP430 device.
- With a DC Lab Power Supply the system loads and runs code at 3.6 VDC. In this case the Blinking LED and Buzzer (with my modification) applications work and the GBD application runs as well. I have verified by adding code to toggle GPIOs on the interrupts to verify that the GBD application is truly running while monitoring the GPIO signals toggling on a digital oscilloscope.
Description of Glass-Break.wav example audio file that worked at one time but mostly does not work at all in my setup
--snip
$ ls -la Glass-Break.wav
-rw-rw-r-- 1 xxx xxx 43760 Nov 9 2007 Glass-Break.wav
$ md5sum Glass-Break.wav
93732e6c9846f2449f709a06004753a9 Glass-Break.wav
$ shntool info Glass-Break.wav
-------------------------------------------------------------------------------
File name: Glass-Break.wav
Handled by: wav format module
Length: 0:01.983
WAVE format: 0x0001 (Microsoft PCM)
Channels: 1
Bits/sample: 8
Samples/sec: 22050
Average bytes/sec: 22050
Rate (calculated): 22050
Block align: 1
Header size: 44 bytes
Data size: 43716 bytes
Chunk size: 43752 bytes
Total size (chunk size + 8): 43760 bytes
Actual file size: 43760
File is compressed: no
Compression ratio: 1.0000
CD-quality properties:
CD quality: no
Cut on sector boundary: n/a
Sector misalignment: n/a
Long enough to be burned: n/a
WAVE properties:
Non-canonical header: no
Extra RIFF chunks: no
Possible problems:
File contains ID3v2 tag: no
Data chunk block-aligned: yes
Inconsistent header: no
File probably truncated: no
Junk appended to file: no
Odd data size has pad byte: n/a
$
--snip