I am looking to be able to play a small mp3 file using the arduino uno and sparkfun mp3 shield.
I went through the basic hook up tutorial located at MP3 Player Shield Hookup - SparkFun Learn. I was able to play my mp3 files using the code in the tutorial here by typing in the 001-009 in the serial monitor, so the speaker, microSD and mp3 shield work.
I currently have the most basic set up of the arduino uno, mp3 shield, speaker, and power supply hooked up. The code I am using is below.
#include <SPI.h>
#include <SdFat.h>
#include <SdFatUtil.h>
#include <SFEMP3Shield.h>
SdFat sd;
SFEMP3Shield MP3player;
void setup() {
MP3player.begin();
MP3player.setVolume(5,5);
}
void loop() {
MP3player.playTrack(1);
delay(4000);
}
The file name is track001.mp3 and is 192kbps. I have no errors, but I am just not able to hear anything through this set up. Any help would be greatly appreciated.
Thanks.