Skip to content

Manufacturer Bare Metal Testing Procedure Sound Module

Aylr edited this page Aug 16, 2013 · 4 revisions

Manufacturer Bare Metal Testing Procedure Sound Module

Updated 08/10/2013 11:06

This is the procedure for testing Sound Module boards from the bare metal off the assembly line. This is not intended for normal users.

Things you'll need:

  • an AVRISP mkII programmer ($35)
  • a sound module
  • headphones or a speaker of some kind (desktop computer speakers or cheap car speakers)
  • an SD card
  • an FTDI programmer
  • a 12V power supply
  • a working installation of the Arduino IDE (from http://arduino.cc/en/Main/Software)
  • software libraries discussed below

Bootloader

Using Arudino IDE 1.0.2

  1. Plug in AVRISP mkII to ICSP header port on the Sound Module
  2. Plug in a 12V power supply to the Sound Module
  3. Tools > Board > Arudino Uno
  4. Tools > Programmer > AVRISP mkII
  5. Tools > Burn Bootloader (This should take 2-3 minutes)
  6. It should say "Done burning bootloader"
  7. Unplug the AVRISP mkII and set aside. All firmware updates from now on will occur though the FTDI cable

Firmware

Required Arduino libraries

Installation instructions are found here: http://arduino.cc/en/Guide/Libraries

  • our modified version of Adafruit's WaveHC library.
  • SD library (included in the IDE)

Sound Module Firmware & Installation

Again, using Arduino IDE 1.0.2

  1. Plug in FTDI cable to Sound Module and USB to computer
  2. Hook up a 12V power supply to the Sound Module using the screw terminals labeled "+V" and "GND"
  3. Download the example sounds folder from our github at https://github.com/Aylr/theHB
  4. Put all the contents of that folder (not the folder itself) onto the root directory of an empty, formatted SD card
  5. Insert that SD card into your Sound Module
  6. Download the latest firmware file sound_module.ino from https://github.com/Aylr/theHB
  7. Open the file sound_module.ino with the Arduino IDE
  8. Tools > Board > Arudino Uno
  9. Tools > Serial Port > Choose your serial port
  10. In the Arduino program: File > Upload. This compiles the firmware and updates your Sound Module.
  11. After 5-60 seconds of compiling, the Arduino program should say "uploading" and you should see Tx and Rx LEDs on your FTDI cable flash rapidly.(if your FTDI cable or adapter has such leds).
  12. After the flashing stops, you should see the message "Done uploading."

Quick LED Testing

  1. Ensure that NO SD card is in the SD slot.
  2. Power the Sound Module with a 12V power supply via the screw terminals labeled "+V" and "GND"
  3. You should see the power LED turn on (located on the left edge of the board by the power screw terminals.
  4. Open the Arudino > Tools > Serial Monitor. Set the baud rate to 9600. You should see the following:
    • "Hauntbox Sound Module. Free RAM: nnnn KB"
    • "SD failed."
  5. At this point you've verified that the serial connection is working and power LED are working.

Full SD/IO Testing

  1. Plug the Sound Module into your speaker (or headphones) using either the 3.5mm jack or screw terminals.
  2. Power the Sound Module with a 12V power supply via the screw terminals labeled "+V" and "GND"
  3. You should see the power LED turn on (located on the left edge of the board by the power screw terminals.
  4. Open the Arudino > Tools > Serial Monitor. Set the baud rate to 9600. You should see the following:
    • "Hauntbox Sound Module. Free RAM: nnnn KB"
    • "Setting up SD card..."
  5. At this point you should hear the ambient.wav file playing in a loop
  6. Carefully touch a jumper wire from the OC trigger (an active low input) screw terminal to a +5/12V terminal. This should trigger the alarm.wav file to play
  7. At this point you've verified:
    • SD card functions correctly
    • IO indicator LEDs function
    • Audio circuitry works
    • OC trigger works