Sending a command to Serial MP3 player

Hi folks,

I'm a beginner to Arduino and I am working on my first MP3 project, I am stuck on how to send commands to my MP3 module (it's the Dorhea YX5300 UART Control Serial MP3 Music Player).

I am using this code from the project hub and it's working well, but I can't find out the step by step on how or where to input new commands (from the ones following #define before void setup) into the void loop.

What would the commands look like? Do they just go in void loop or do I need to add anything else? I am specifically trying to use CMD_SET_VOLUME to set the volume at the max level.

Any help would be really appreciated! :slight_smile:

I did some work with this module some time ago. I spent a long time looking at all the available documentation to discover commands and how it works. Hopefully this helps.

Blog posts here:
https://arduinoplusplus.wordpress.com/2018/07/23/yx5300-serial-mp3-player-catalex-module/
https://arduinoplusplus.wordpress.com/2019/04/25/yx5300-serial-mp3-player-message-sequencing/
https://arduinoplusplus.wordpress.com/2019/05/12/yx5300-mp3-player/

My library and example code here:
https://github.com/MajicDesigns/MD_YX5300

looks like "DF-player mini". ..for which there is an available lib.

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