Hello world!
I haven't gotten an Arduino yet, but I have asked Santa for a kit.
The project myself and a few others are looking to work on with the Arduino is a Light Saber sound card. In a nutshell, it will need to read an accelerometer and if there's a change over a certain amount in X amount of time (IE: Is it moving) it then plays a sound. With an even larger change, it plays a "Clash" sound and so on.
It will also be controlling, via PWM super high power LEDs. (3-10 watts or more) throgh an array of neat little 2A driver chips.
We think (hope) we can make an "Open Source Sound Card" (OSSC) for an equivalent price that folks can hack and modify to their hearts content, plus add in the ability to use sound banks and to fully color blend using high power RGBA LED's. The idea is to publish Open Source schematics/PCB layouts for a "Nano shield" that will house the Acc, PWM Driver, SD card etc. along with a set of starter sketches.
Current Sound card/LED driver boards for making custom Sabers start out over $100, and usually have one bank of sounds and only drive one single color LED up to 5W. You also can't program them much (There's one that's really pretty programmable but it's spendy and more important... never in stock, LOL.)
Anyway...PWM and Accelerometer stuff seems doable with Arduino, but the playing of audio files from a uSD card seems to be the biggest hurdle.
Ideally, we'd want to contantly loop one audio file (The Hum) and then trigger playback of a second audio file when certain thresholds are reached. (Swoosh1 SWOOOsh2 SWOOOOOSH3 CLASH1" and so on... without disrupting the playback of the hum sound.
I've been reading about using PWM outs to play audio files, but I get the impression that it's pretty processor intensive... if we try to play two separate audio tracks at once are we going to run in to problems where it has to stop doing anything else while the audio plays?
Could we play two audio files on a single PWM pin?
Maybe we could store the Hum sound on chip as part of the code (I saw an example of that) which would maybe loosen up the uSD card read to only one sound at a time?
The examples I've seen of the Arduino reading SD cards and playing audio were ONLY doing that so I couldn't get a feel for how much "processing power" was left over.
Any chance theres a combined SD audio/other stuff project that someone would be kind enough to direct me to?
I'm a little nervous about jumping in without knowing these are hurdles than can be overcome... well, other than that the Arduino is so cool I am getting one no matter what, LOL.
Thanks in advance for any input!
Troy