Comments on: ESP32 with YX5300/YX6300 MP3 Player (Arduino IDE) https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Thu, 30 Apr 2026 18:29:44 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: David Lowther https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/#comment-1183703 Thu, 30 Apr 2026 18:29:44 +0000 https://randomnerdtutorials.com/?p=189808#comment-1183703 Hi Rui and Sara,
Thank you for the interesting article.
May I ask why you chose to use button interrupts rather than polling the button states in loop()?
I looked at the library example:
https://github.com/bluejunimo/YX5300_ESP32/blob/main/examples/volume_control_buttons/volume_control_buttons.ino
Mainly to check if it also used interrupts, and whether it had a comment saying why so, but it doesn’t use button interrupts.
My initial question (to myself) was “is the library able to cope with being called from two different contexts (loop(), ISR) at the same time?” That’s why I looked at the example.
I suppose the only way that could happen is if the user was adjusting the volume at (roughly) the same time they pressed one of the buttons.
In the worst case, the mp3 object could be in the middle of processing a call from loop() and then the ISR would access the mp3 object. I haven’t checked the library source code to see if it copes with this situation.
I’m thinking of making a project with one of those modules. I may investigate the library source, although I’ll probably use some FreeRTOS feature to provide mutual exclusion, because I don’t know how easily I’ll be able to understand the library code.
Best regards
Dave

]]>
By: Madhav https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/#comment-1175214 Fri, 03 Apr 2026 05:15:15 +0000 https://randomnerdtutorials.com/?p=189808#comment-1175214 Hello, do you know if we can use this with an lcd screen output along with bluetooth connection?

]]>
By: Larry Dalton https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/#comment-1162719 Wed, 18 Feb 2026 12:00:51 +0000 https://randomnerdtutorials.com/?p=189808#comment-1162719 What is the difference between YX5300 and YX6300?

]]>
By: Larry Dalton https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/#comment-1161634 Fri, 13 Feb 2026 23:06:57 +0000 https://randomnerdtutorials.com/?p=189808#comment-1161634 Can you take the audio out of the yx5300 and feed it into PAM 8403?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/#comment-1161592 Fri, 13 Feb 2026 17:54:39 +0000 https://randomnerdtutorials.com/?p=189808#comment-1161592 In reply to bill gellhaus.

Hi.
Thanks for your comment.
Can you please clarify your question? I’m not sure that I understood it.

Regards,
Sara

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/#comment-1161590 Fri, 13 Feb 2026 17:52:09 +0000 https://randomnerdtutorials.com/?p=189808#comment-1161590 In reply to MilkLizard.

Thanks for sharing.
Regards,
Sara

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/#comment-1161582 Fri, 13 Feb 2026 17:41:44 +0000 https://randomnerdtutorials.com/?p=189808#comment-1161582 In reply to Abrahan Pinedo.

Hi.
I’m not familiar with that module.
It seems to work with serial commands too.
But probably uses a different chip.
On the DFPlayer product page they provide a sample code.

Regards,
Sara

]]>
By: Abrahan Pinedo https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/#comment-1161423 Fri, 13 Feb 2026 00:26:14 +0000 https://randomnerdtutorials.com/?p=189808#comment-1161423 Such a good tutorial, do you have any experience with DFPlayer Mini? what difference there is between DFPlayer Mini and YX5300?

]]>
By: bill gellhaus https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/#comment-1161383 Thu, 12 Feb 2026 20:04:33 +0000 https://randomnerdtutorials.com/?p=189808#comment-1161383 how do you print this off with out the extra.
It looks interesting
can you make it in to an audio streaming monitor?

]]>
By: MilkLizard https://randomnerdtutorials.com/esp32-yx5300-yx6300-mp3-player-arduino/#comment-1161355 Thu, 12 Feb 2026 18:18:49 +0000 https://randomnerdtutorials.com/?p=189808#comment-1161355 In the past I’ve had a bit of issues getting mp3.playTrack(x); to play the correct file I want. I probably was getting the folder/file format wrong and this article lays it out well, but, I found that it played the correct track if you add the audio files one at a time and keep track of the order you added them. For example, if you add three files, one after the other, then run mp3.playTrack(2); it’ll play the second file you added. Hope this helps someone!

]]>