MP3-TF-16P being unable MP3 files

Hello, I'm trying to make use of Arduino as an audio with MP3-TF-16P - JL IC 24 pin (which often gets equated with DF Player Mini in shops), and here's the sketch I'm currently using:

#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"

static const uint8_t PIN_MP3_TX = 18;
static const uint8_t PIN_MP3_RX = 17;
SoftwareSerial softwareSerial(PIN_MP3_RX, PIN_MP3_TX);

DFRobotDFPlayerMini player;

void setup() {
  Serial.begin(9600);
  softwareSerial.begin(9600);
  if (player.begin(softwareSerial)) {
  Serial.println("OK");
  player.volume(30);
  player.play(1);
  } else {
    Serial.println("Connecting to DFPlayer Mini failed!");
  }
}

void loop() {
}

Are there any ways to get MP3-TF-16P (JL IC 24 pin) to be able to play MP3 files with Arduino? I know it's something different to DF Player Mini that has YX5200 IC, but it's something so rare in my region that I haven't found any shops that sell it.

Is YX5200 IC the only way to get Arduino to get this program to work? As I heard JL IC or MH2024K-24SS are very good to be used too

Which Arduino are you using? Looking at the pin numbers that you use, it might be a Mega in which case using one of the additional HardwareSerial ports can be beneficial.

The use of SoftwareSerial might or might not be the cause of your problem but HardwareSerial (e.g. Serial1) is always preferred.

UNO btw (and a Chinese knock off one...).

Anyone?

Is it really due to the IC differences that the ones that aren't YX5200-24SS don't work with Arduino code?

I've tried with MP3-TF-16P v3.0 (MH2024K-24SS, red light) and it didn't work either with said Arduino code.

I guess my problem was actually not adding , true, false in the player.begin(softwareSerial)
Making it if (player.begin(softwareSerial, true, false))

After adding it the program works on the MP3 player.

2 Likes

Great; thanks for the feedback :+1:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.