All, for the life of me I can't get a wav. file to play using Uno with Micro SD Card Adapter. I think I'm getting the errors formatting the SD Card with wrong wav. file perhaps? Using FAT32, 16000Hz, Mono, 16-bit PCM
SD initialized properly with good read.
I have research all I could from forums but now I need to ask the pros. Yes, I suck at programming but this is how I learn, by you...
Here is my commands:
#include <SD.h>
#include <SPI.h>
#include <pcmRF.h>
#include <pcmConfig.h>
#include <TMRpcm.h>
#define SD_ChipSelectPin 4
TMRpcm tmrpcm;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
tmrpcm.speakerPin=9;
if(!SD.begin(SD_ChipSelectPin)){
Serial.println("SD fail");
return;
}
tmrpcm.setVolume(6);
tmrpcm.play("test.wav");
delay(1000);
return;
}e
ERROR CODES:
/Users/Eric/Documents/Arduino/sketch_jul25b/sketch_jul25b.ino: In function 'void setup()':
/Users/Eric/Documents/Arduino/sketch_jul25b/sketch_jul25b.ino:20:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
tmrpcm.play("test.wav");
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project See About the Installation & Troubleshooting category.
Runaway_P, thanks for advice, I been reading your other forum input. Very helpful. The DFPlayer seem very simple to set up and wire, any truth to that? I am just trying to add a stupid 30 second audio startup sound for a project. Seems to be the hardest thing to do with an SDCard aside from landing on the moon.