-
You Reply: For those following along.. the problem was not in my software. The DFPlayer I had had bad serial lines. I just swapped mine out with a new one (same code) and it worked fine.
Also.. just a tip. don't use the serial lines while it's playing or you'll interrupt the DFPLayer's tiny little CPU and cause crackle distortion in the audio. Instead, just passively monitor pine 16, the _BUSY line to tell when the audio file is playing (active low) and when it's stopped (HIGH).
Cheers,
Tweeks
-
You Reply: For those following along.. the problem was not in my software. The DFPlayer I had had bad serial lines. I just swapped mine out with a new one (same code) and it worked fine.
Also.. just a tip. don't use the serial lines while it's playing or you'll interrupt the DFPLayer's tiny little CPU and cause crackle distortion in the audio. Instead, just passively monitor pine 16, the _BUSY line to tell when the audio file is playing (active low) and when it's stopped (HIGH).
Cheers,
Tweeks
-
You Reply: Although the SoftwareSerial is not working for me. Even using a 3.3v arduino or the 1K resisitor.
Anyone else having this problem?
Tweeks
-
You Reply: Use pin 16, the _BUSY signal. It is what will tell the arduino something is playing (active low).
Tweeks
-
You Reply: More info..
After the "Unable to begin" error.. I added some troubleshooting code to get the status readState and readFileCounts like this:
if (!myDFPlayer.begin(mySoftwareSerial)) { //Use softwareSerial to communicate with mp3.
Serial.println(F("Unable to begin:"));
Serial.println(F("1.Please recheck the connection!"));
Serial.println(F("2.Please insert the SD card!"));
Serial.println(myDFPlayer.readState()); //read mp3 state
Serial.println(myDFPlayer.readFileCounts()); //read all file counts in SD card
while(true);
}
and got -1 for but results:
DFRobot DFPlayer Mini Demo
Initializing DFPlayer ... (May take 3~5 seconds)
Unable to begin:
1.Please recheck the connection!
2.Please insert the SD card!
-1
-1
What does this indicate?
I'm following the latest PDF:
file:///home/tweeks/Downloads/DFPlayer%20Mini%20Manual.pdf
Tweeks
-
You Reply: More info..
After the "Unable to begin" error.. I added some troubleshooting code to get the status readState and readFileCounts like this:
if (!myDFPlayer.begin(mySoftwareSerial)) { //Use softwareSerial to communicate with mp3.
Serial.println(F("Unable to begin:"));
Serial.println(F("1.Please recheck the connection!"));
Serial.println(F("2.Please insert the SD card!"));
Serial.println(myDFPlayer.readState()); //read mp3 state
Serial.println(myDFPlayer.readFileCounts()); //read all file counts in SD card
while(true);
}
and got -1 for but results:
DFRobot DFPlayer Mini Demo
Initializing DFPlayer ... (May take 3~5 seconds)
Unable to begin:
1.Please recheck the connection!
2.Please insert the SD card!
-1
-1
What does this indicate?
I'm following the latest PDF:
file:///home/tweeks/Downloads/DFPlayer%20Mini%20Manual.pdf
Tweeks
-
You Reply: No. Pitch is the playback frequency (or speed).
Tweeks
-
You Reply: I'm seeing the same problem (using pins 10 & 11).. exactly as your schematic shows (with one 1k res on the arduino TX line (11)) and with one on both the TX and RX lines. at 115k2 baud and at 9600. It just acts like it doens't see it.
I can play all my MP3 files just fine using wires to GND on the trigger and AD ports.. and the sound files sound great. I even tried swapping the TX RX lines (in case there some some confusion in the documentation. Still can't "see" the DFPLay module. (and I'm an electrical engineer)
Just can't see the DFPlay module from the arduino (or talk to it).
Other people seeing this? Any suggestions? Do the DFPlay moduels "blow" easily? Are they 5v/3.3v sensitive?
Tweeks
-
You Reply: I'm seeing the same problem (using pins 10 & 11).. exactly as your schematic shows (with one 1k res on the arduino TX line (11)) and with one on both the TX and RX lines. at 115k2 baud and at 9600. It just acts like it doens't see it.
I can play all my MP3 files just fine using wires to GND on the trigger and AD ports.. and the sound files sound great. I even tried swapping the TX RX lines (in case there some some confusion in the documentation. Still can't "see" the DFPLay module. (and I'm an electrical engineer)
Just can't see the DFPlay module from the arduino (or talk to it).
Other people seeing this? Any suggestions? Do the DFPlay moduels "blow" easily? Are they 5v/3.3v sensitive?
Tweeks