DFPloayer problem

I connected a DFPlayer to a Nano. TX - RX and RX -TX. It works a little. In the code below, it will not execute mp3_play (1); or mp3_play (4); but will execute mp3_next (); and mp3_prev (); I tested it by changing the time delays. I have 4 20 second mp3s labeled 001 to 004 and tried 0001 to 0004. I am using a hobby board for the nano and unplug the RX -TX while programming. Tried un-plugging the USB and using a different power source. It is for a Ham Radio Fox Hunt transmitter. If I can get it to execute mp3_play (1) I want it to play 001 one time and then play the other mp3s in order with a 2 minute delay between. Thank you for any assistance.

 #include <SoftwareSerial.h>
 #include <DFPlayer_Mini_Mp3.h>

 void setup () {
     Serial.begin (9600);
     mp3_set_serial ( Serial );  // enable data transfer from DFPlayer mini mp3
     delay (1);  // 1ms delay for setting the volume
     mp3_set_volume (25);  // set the volume from 0 to 30
     mp3_set_EQ (0);  // set the equalizer from 0 to 5
 }

 void loop () {
     mp3_play (1);  // play the file mp3 / 0001.mp3
     delay (5000);  // delay 5 seconds

     mp3_next ();  // play the next file
     delay (5000);  // delay 5 seconds

     mp3_play (4);  // play the mp3 / 0004.mp3 file
     delay (5000);  // delay 5 seconds

     mp3_prev ();  // play the previous file
     delay (5000);  // delay 5 seconds
 }

Try using this DFPlayer library instead - it might fix your software issue.

As always, though, double check your SD card contents, wiring, and power supply.

Thank you for the reply. I would guess that the SD card contents, wiring, and power supply are OK because 2 of the commands work fine but the one I want to work, mp3_play (1);, is supposed to work but will not. It is just crazy.

Have you tried a stand-alone program to play just the file that's giving you the problem? Maybe it's unplayable / corrupt.

They all play fine in windows. I renamed them so they would be in a different order on the SD card and 001.mp3 will mot play when command executed.

Considering the library you're using is deprecated, I'm not surprised some of the functionality doesn't work anymore. Have you tried using my linked library? You can also install it using the Arduino IDE Library Manager.

Why do you consider someone else's software deprecated? Does software just rewrite itself to not working due to age? I am surprised it appears that somebody would put down software to push theirs for their ego. I was looking for help with the software I was using.

I was looking for help with the software I was using.

DFRobot, author of the DFPlayer_Mini_Mp3.h has provided you with this help.

This Library is deprecated. Please check here for the new library:
GitHub - DFRobot/DFRobotDFPlayerMini: Arduino library for DFPlayer

N9LON9LO:
Why do you consider someone else's software deprecated? Does software just rewrite itself to not working due to age?

1.) Stop being ridiculous
2.) Don't insult my intelligence
3.) Did you know a lot of licensed software actually works like that? (MATLAB, etc)

N9LON9LO:
I am surprised it appears that somebody would put down software to push theirs for their ego. I was looking for help with the software I was using.

I suggest my library because it's a lot better than the normal DFPlayer library, which, isn't even the one you're using...

Try with a supported library and then we can see if the errors are because of your code or other project pieces.

The reason I am using this library is I found many examples on the internet that I could try to use which used this library. I got it working using DFRobotDFPlayerMini.h before you posted. It had examples that used myDFPlayer.play(1); so I could play any track in any order.

Yes, licensed software can deactivate itself if you do not renew but I find it silly that you think an Arduino library could change its own code and some of the functionality doesn't work anymore after it gets old. LOL

N9LON9LO:
Yes, licensed software can deactivate itself if you do not renew but I find it silly that you think an Arduino library could change its own code and some of the functionality doesn't work anymore after it gets old. LOL

facepalm You are thick, aren't you... I didn't say it worked exactly the same as how you described, but LIKE that.

I think it's silly that you think a deprecated library should work with no problems, LOL.

And before you try to insult me again, first intern as a researcher in advanced UAV avionics for both the corporate and defense sectors, be a lead robotics engineer for 3 undergrad research projects (one being a NSF grant project), get at least a BS in EE, get a few years of engineering management, and do top-notch embedded projects as a serious side-hobby. Come back after, and then we can talk.

I'm not surprised that an arrogant person needs to brag about themselves even after they make a totally wrong statement trying to sound intelligent.

dRiBbLe dRiBbLe

A bad attitude is not conducive to getting free help from folks on the forum. But, since you’re only willing to implement your project one way, I guess you must be smart enough to figure it out on your own.

Like already stated I did figure it out.

dRiBbLe dRiBbLe

N9LON9LO:
I'm not surprised that an arrogant person needs to brag about themselves even after they make a totally wrong statement trying to sound intelligent.

dRiBbLe dRiBbLe

Oops that's a harsh statement for a person asking for help .... Give some way to politeness please :stuck_out_tongue:

jackthom41:
Oops that's a harsh statement for a person asking for help .... Give some way to politeness please :stuck_out_tongue:

It's ok, we can't expect someone who literally doesn't know how to read a library readme to act intelligently or professionally.