- Netduino Forums
- → Viewing Profile: Topics: Chad
The Netduino forums have been replaced by new forums at community.wildernesslabs.co.
This site has been preserved for archival purposes only
and the ability to make new accounts or posts has been turned off.
Community Stats
- Group Members
- Active Posts 16
- Profile Views 8751
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
Topics I've Started
So how does the SD card stuff work anyway?
14 August 2011 - 10:09 PM
I have been trying to get a VB1053 (an MP3 decoder) to play an MP3 file I'm loading off of an SD card on a Netduino (not the Plus). And while it "works" I get an audible clicking sound during playback that I'm guessing is because I'm talking to both the SD card and the VM1053 of the same SPI bus. Even when I try to make everything happen sequentially, (read bytes from SD card, play bytes, read more, play more, etc.) I get the same audio glitch. No matter what I set my buffer size to, the glitch is exactly the same, meaning if I buffer 1k or 20k it's exactly the same.
So, I'm just guessing, but it seems to me the StorageDevice's buffer is being filled asynchronously by the Netduino, and it's cutting into the SPI causing the glitch. Could this be true? Any other ideas/suggestions of what to do next?
I should note, I'm very very new at working with microcontrollers.
Thanks for any help,
Chad
CurrentCulture
15 May 2011 - 03:31 AM
How do you set the CurrentCulture on the Netduino?
Thanks,
Chad
Audio playback ideas
09 May 2011 - 08:32 PM
For a project I’m working on I need to coordinate playing audio with running a motor. I can put the audio file in any format (mp3, wma, wav, etc.). I have a good handle on driving the motor, and have a proto type working. I’m not sure what a good approach to playing the audio file would be. I have a regular Netduino that I tried hooking up to an adafruit wave shield. I can get the SD card to read correctly, but can’t drive the DAC chip on it. The way I understand it, even though the DAC has an SPI interface, I would need to send 16 bits, wait, send 16 more bits, wait, etc. but on the correct frequency with the recorded wav file, so something like 22000 times a second. I believe the Netduino is only able to do this something like 1000 – 2000 times a second. If I wired up to the built in SPI on the Netduino, I don’t know how I would get the playback synchronized correctly. So, I’m looking for some ideas for playing audio with the Netduino.
Thanks,
Chad
- Netduino Forums
- → Viewing Profile: Topics: Chad
- Privacy Policy