Hello, I am trying to figure out how to get a wav file to play from a micro SD card on a seeed W5200 Ethernet shield, using the SD and TMRpcm libraries. It seemed to me like I should have just been able to use some of the example code from the TMRpcm library, changing the file name, and had it work. I have made sure that the SD card is formatted correctly. I converted the file from mp3 to wav using iTunes setting the sample rate to 8.00kHz, sample size to 8-bit and the channel to mono, just as instructed and copied it the the SD card. I have set the CS pin 10 as OUTPUT for the ethernet peripheral and set pin 4 as the chip select pin for the SD card. After all of this I still can't get the file to play. I thought maybe it was the TMRpcm library because I had an issue with importing it, but after I figured that out and put some debugging code (tmrpcm.isPlaying()) in to tell me in the serial monitor whether or not the song was playing, the library seemed to be working fine. Does anyone have any ideas??
#define SD_ChipSelectPin 4
tmrpcm.speakerPin = 9;
pinMode(9,OUTPUT); //speaker pin
int playing = tmrpcm.isPlaying();