I've been working to try to put together a sound card/LED controller for a light saber. The hilt inner diameter is 1.25", so that is my size limit. I've been trying to get stuff working with an Arduino pro mini 3.3v, a 6050 based IMU, and a couple alternatives for the sound. The 6050 IMU using the FreeIMU seems to work fine for what I want. But I've been struggling with sound. I tried a WTV020-sd-16p and could get it to play OK, but it looks like it can't do gapless playback - or at least no one has figured it out that I can find. I then got a WT588d. Unfortunatelyi I haven't figured this one out either. It looks like it requires an external programmer. Maybe it can be programmed via SPI, but the documentation is awful with bad translations. I want to be able to change the sounds of what is in there via usb or an SD card.
So I then happened upon the teensy audio library, and it looks perfect for what I want to do. Even if I could get one of the other boards working, the capability to mix sounds and do some audio processing is very attractive.
So I'm looking to ditch the arduino pro and get a teensy 3.1. But the teensy audio board is just a little too wide - around 1.5". So my first question is would the teensy 3.1 be enough itself to do what I need. I was looking to hook up an 8 ohm speaker with a 2W max (but I think 0.5-1.0 watts is fine). The audio would be mono. I can convert the files to ad4 or something if that helps. If I use the DAC output, I assumed I would need some sort of amp? I was looking at: https://www.sparkfun.com/products/11044. I think 12 bit audio should be good enough quality, although it would be nice to get to 16bit. Besides running the audio the board would also need to take in data from the 6DOF gyro (it has its own processor, so wouldn't need to crunch too many numbers), and then send PWM output to three channels for three different LEDs (with mosfet triggers to drive directly off the battery). The sound clips are short, but need to be switched out based on what is going on (swing, clash, blaster effect, etc).
If I can't get a soundboard with an SD card, but just use the teensy, I was thinking of getting http://www.pjrc.com/store/sd_adaptor.html.
Are there other options for sound boards that would fit inside 1.25"? Longer than that is OK, just not wider. Or will I be OK with just the teensy? I worry about having to juggle playing the sounds on top of all the other stuff the board will need to do.
So I then happened upon the teensy audio library, and it looks perfect for what I want to do. Even if I could get one of the other boards working, the capability to mix sounds and do some audio processing is very attractive.
So I'm looking to ditch the arduino pro and get a teensy 3.1. But the teensy audio board is just a little too wide - around 1.5". So my first question is would the teensy 3.1 be enough itself to do what I need. I was looking to hook up an 8 ohm speaker with a 2W max (but I think 0.5-1.0 watts is fine). The audio would be mono. I can convert the files to ad4 or something if that helps. If I use the DAC output, I assumed I would need some sort of amp? I was looking at: https://www.sparkfun.com/products/11044. I think 12 bit audio should be good enough quality, although it would be nice to get to 16bit. Besides running the audio the board would also need to take in data from the 6DOF gyro (it has its own processor, so wouldn't need to crunch too many numbers), and then send PWM output to three channels for three different LEDs (with mosfet triggers to drive directly off the battery). The sound clips are short, but need to be switched out based on what is going on (swing, clash, blaster effect, etc).
If I can't get a soundboard with an SD card, but just use the teensy, I was thinking of getting http://www.pjrc.com/store/sd_adaptor.html.
Are there other options for sound boards that would fit inside 1.25"? Longer than that is OK, just not wider. Or will I be OK with just the teensy? I worry about having to juggle playing the sounds on top of all the other stuff the board will need to do.