SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By kappajunior
#199393
Dear Sparkfun community,

We want to play files (wav-format) through an SD card with a papa soundie player shield. We have used an Arduino Uno in order to upload the code onto the papa soundie ATmega328p. Even though the power is connected, the code is uploaded properly and the connection between the speaker(yes it has an independent power outlet) and the shield is working, still it won´t play the files we have uploaded onto the SD card. Some easy test files have worked (in the same file format), which leads us to believe that the length of the sound file is a significant in our problem. We even managed to play a file that we previously had tested the SD card with, that wasn´t even on there any longer!

Does anyone have any helpful advice for how to deal with this issue? Our project is due this upcoming Monday and we are desperate for any help we can get! :o
User avatar
By darrellg
#199397
There are many ways to create a wav file. Be sure to note the requirements listed at https://learn.sparkfun.com/tutorials/pa ... okup-guide
Quick Note about using WAV: The VS1000 developer library contains a simple WAV decoder, which is included in the firmware on the Papa Soundie. Currently the WAV decoder supports 8-bit ulaw, 8-bit linear PCM, and 16-bit linear PCM formats.
Some audio editors default to the 24-bit PCM format. The hookup guide doesn't specify sample rate, but the safest, most compatible rate is probably 44.1KHz.
User avatar
By darrellg
#199399
Stereo vs. mono could be an issue as well. The best thing to do is to check the test files and match their format in your production files.
By kappajunior
#199400
darrellg wrote: Thu Jun 07, 2018 10:59 am Stereo vs. mono could be an issue as well. The best thing to do is to check the test files and match their format in your production files.
Do you know how to match the formats? They were recorded using a phone and therefore in mp3 format. Stereo and mono should not be an issue according to the DAC´s specifications.
By kappajunior
#199416
Thanks for the replies. It still doesn’t work. Maybe it’s because of the length or size of the sound files? Doesn anyone know if there’s limitations for these factors?