How to use DY-SV5W mp3 player?

First of all, my project started with my colleague wanting to make a sound effect so that he can have fun with the kids when he's in a video class with them.

I don't know much about software programs… I tried using Arduino, so I used Arduino.

That's why I tried to use "DY-SV5W MP3 Player," which can be adjusted in volume, to avoid excessive volume when playing sound effects after connecting aux cable to the PC.

However, I wrote here because I was frustrated that the music wouldn't play even if I did the same thing as many examples or other people did on YouTube.

My plan is to build a device using buttons with 5 3pins, DY-SV5W Player and Arduino Micro.

I want to play a cheering button or sound effect that children will like every time I press each button, but I heard that the name is also important when saving it on the 16GB SD card.

Is it possible to operate it in an easy way?

Can you show the work you did (circuit diagram, datasheets and code). Post the link to your reference here, and we will try to make it work.

A note: if you tried something that others made a working model, and yours did not work, you did not do "the same thing" and you need to pay closer attention to the details.

#include <Arduino.h>
#include <SoftwareSerial.h>
#include "DYPlayerArduino.h"

DY::Player player;

const int buttonPin = 7;

void setup() 
{
  player.begin();
  player.setVolume(15); 
  pinMode(buttonPin, INPUT_PULLUP);
  Serial.begin(9600); 
}

void playMusic() 
{
  char path[] = "testsong.mp3";
  player.playSpecifiedDevicePath(DY::Device::Flash, path);
  Serial.println("Music played!");
  delay(5000); 
}

void loop() 
{
  if (digitalRead(buttonPin) == LOW) {
    playMusic();
    while (digitalRead(buttonPin) == LOW) 
{

    }
  }
}

First of all, for the process of playing music when the button is pressed, we focus only on playing music when the button connected to the microboard pin 7 is pressed.

Also, the DY board has an i/o channel, so I looked it up and found out that the instructions said to turn on 2 times to communicate rx and tx, so I tried with it open only twice.

I'm still drawing a circuit diagram with an image
If possible, I will even upload it later.

I'm sure there's a lot to be desired because I'm using a translator
Thank you for your interest.

It looks like you are using the "play song by path" sketch... Do you have your files in the root director? Should the filenames be DOS 8.3? Filename would begin with "/" (root), be a 5-character, sequential number, and have ALL CAPITAL 3-character extension, for example "/00001.MP3"

The music name is 0001 and I've tried 4 digits, but I didn't know it should be 5 digits...

I will change "testsong.mp3" to "00001.mp3" in the code, change the name to 00001 and try it again, and I will answer you again.

Can the code work, if I try?
It doesn't look like a problem, does it?

Not "mp3" but "MP3"... it is old DOS file naming called 8.3.

If you don't mind, can you tell me more about it?

@retro_0 - As you use files with Arduino, all file names will need 8.3 naming in ALL-CAPITAL letters... and I believe the SD must be formatted FAT16.