uMP3 triggger Demo
By Vern Graner
------------------

This is a quick demo of the uMP3 being used to play sound effects for a prop
or haunt. It is designed to play an "ambient" loop of eery music until it detects
a trigger. At that point it jumps to that sound effect. Depending on how you 
configure the  program, you can have the triggered sound either stop when the 
trigger is released, or continue to play (ignoring other ttriggers) until it
concludes. Either way, when the triggers are released the system returns to the
ambient sound loop.

To build/test this project you will need:

 1) One Parallax Basic Stamp II
 2) A Basic Stamp carrier board (optional, depends on the stamp)
 2) The Parallax Basic Stamp Editor on a computer
 3) A Serial cable to download programs to the BSII
 3) One Rogue Robotics uMP3 player
 4) One SD/MMC memory card for uMP3
 5) Headphones or a small audio amplifier for the uMP3

The Basic Stamp should be connected to the uMP3 as follows:

Pin 2- connected to N.O. pushbutton to GND (pulled high)
Pin 3- connected to N.O. pushbutton to GND (pulled high)
Pin 4- connected to uMP3 "T" communication port
Pin 5- connected to uMP3 "R" communication port

To Use:

1. Connect a small resistor (~100k) between pin 2 and 5v+

2. Connect a small resistor (~100k) between pin 3 and 5v+

3. Connect a N.O. pushbutton between pin2 and GND.

4. Connect a N.O. pushbutton between pin2 and GND.

5. Connect Pin 4 on the stamp to the "T" connector on the uMP3.

6. Connect Pin 5 on the stamp to the "R" connector on the uMP3.

7. Make sure the uMP3 and the BSII are connected to a 5v supply with a common
   gnd between them

7. Load the following sound files onto the ROOT (i.e. not in a subdirectory)
   of your SD/MMC card:

     Dramatic-Cue-EndingHit-0.mp3
     Dramatic-Reveal-Horns1.mp3
     Dramatic-Cue-Fast-0.mp3
     Suspense-Queue-0.mp3

8. Load the uMP3-TriggerDemo2c.bs2 into your stamp editor.

9. READ the code and the comments! There is information on how to make sounds
   play only for the duration of the trigger or have stamp wait for a sound to
   finish before going back to the "ambient" loop.

10. Download the code to your stamp

Pressing either of the buttons should cause the system to "jump" to the
associated sound effect. Pressing both buttons gives a third sound effect.
Depending on the code, the sound will return to the "ambient" loop either
when you a) release the trigger button or b) when the sound is finished
playing. 

Any questions to vern@txis.com :)

Vern

http://www.spiderspreyground.com/ump3

-- 
Vern Graner CNE/CNA/SSE    | "If the network is down, then you're
Senior Systems Engineer    | obviously incompetent so why are we
Texas Information Services | paying you? Of course,if the network
http://www.txis.com        | is up, then we obviously don't need
Austin Office 512 328-8947 | you, so why are we paying you?" VLG


