Hello, i have a project that is using MP3 all the code is fine and if i connect my earpiece to the MP3 it will work but when i connect to the speaker its very soft, what can i do?
Great video. Im using a Nano Every board and a YX5300 and I want to play more than one song on the card, without buttons. Just play from "track1" and go through what's on the SD card once it boots up. I'm extreme newbie. Any help would be great!
Hi Jeff. Thanks for this video - I know you did it a year ago already (it is May 2023 now) but it is still very current. Thanks for taking the time to do this - what I find invaluable is all the problems you come up against and how you fix them - this is all learning for us minions and we learn by your mistakes (LOL). Some bloggers edit all the problems out and leave us with a clean video but you still include them and it is very important. Thanx dude. Well done. Subscribed and Liked tick :¬) 🤓p.s. I can't get my to work properly yet but it is early days. Cheers. PJ.. read on... EDITED----X well there I was trying to get it to work and this little voice came in my head ...."I had to change the TX pin to RX and the RX pin to TX" I swapped the leads... and.... KERCHING!!!! it works. Thanx Matey 🔆🔆
Nice video! FYI TX transmits data and RX receives data so you always have to connect the TX of one device to the RX of the other so you having to flip the pins is totally normal. if TX is connected to TX and RX to RX neither device can transmit or receive data. Device 1 TX goes to Device 2 RX Device 1 RX goes to Device 2 TX for serial communication to function. Thanks again for the video!
Thanks man, ive been trying too get this to work for my project for so long. You made it easy to follow, enjoyable and yes, got me with the rick roll lol
UPDATE: The poor audio quality was due to connecting a headphone directly to the "headphone 3.5mm port" on the unit. Bad idea. I added a headphone amplifier and the sound dramatically improved. Not just volume, but overall sound quality was markedly better. Live and learn... Thanks for the tutorial. Made it easier to get my YX5300 working. FYI, the Rueda Arduino code example does not allow for directories with files so best to load all files (1, 2, 3,.. leading number NOT 01, 02, 03 !) without a directory. I tried two YX5300 cards and the sound quality is poor in both cases- low base volume-- using headphones. The same MP3 playing on Windows sounds great with same headphones. I am wondering if you found a quality difference when comparing the YX5300 and say a PC playing the same MP3? Thanks -
Good to know. I’ve had no major issues using the existing headphone jack onboard when attached to a Bluetooth speaker using an aux cable and the sound quality is pretty good. Some headphone may not have a sufficient amplifier like you said. I’m not sure about sound quality differences since I haven’t tested that, but I would guess that the sound quality isn’t as good with this device as compared to a PC.
Thanks for the help. I still can't get it to work but at least now I know I'm doing it right. The green LED will flash when I tell it to play but no sound. I'm thinking sample rate of my mp3 file might be wrong? Don't know, I'll keep trying.
Yes, sometimes the MP3 file could have a compatibility issue, possibly related to the sample rate or encoding. I’ve encountered this once before and noticed that it worked when I tried a different MP3 file. That’s a good thing to test and try.
Does the serial player block? Can you kick off the sound and then have the arduino do other tasks? I have yet to purchase one and so can not try it to answer my own question. A demo where for example you blink the BUILTIN_LED while the music plays might demonstrate the point I am trying to get at. Your code in this example does not make it clear of blocking is happening. Regardless, Thanks for making the video.
This device doesn’t block. Once you trigger the MP3 to play with a digitalWrite() LOW, it will play and you can do other things with your code. I’ve had difficulty stopping the MP3 from playing in its entirety after it’s triggered, but an easy fix for that is to pull another one of the trigger pins low that doesn’t have an MP3 file, triggers a silent file, or triggers a very short sound file.
Just what I was looking for thank you!! Do you know how to get a second song played after? I tried adding addition code but it keeps playing the first file over again even after renaming it.
I have been able to get multiple song to play fine with this device using the existing naming convention. You could try using file numbers 1, 2, 3, etc. instead of 01, 02, 03, etc like a commenter suggested, though I haven’t tested it. Make sure there are no file directories, you formatted the SD card, and all MP3 files are correctly formatted and not corrupted. I’ve seen some MP3 files not work properly, likely due to file encoding or decoding issues.
I know some of these little mp3 players, if a micro-SD card is installed, will boot up & start playing the card as soon as power is applied. No buttons or serial controls required. Is this one able to start up like that? Thank you!
I’m pretty sure that this device requires a serial communication signal to start playing a song/sound and won’t auto play on startup. There are other devices that do auto play on startup so you can just turn them on and off with a transistor. Here’s an example device I’ve used in the past: HiLetgo TF Card U Disk Play MP3 Decoder Player Module with Audio Amplifier Audio Decoding Player Module Micro USB 5V Power Supply www.amazon.com/dp/B01DK9SL6C/ref=cm_sw_r_cp_api_glt_fabc_4NKB6QBY60CYA872W3P2
@@ChefJeffPhD Thank you! I was afraid of that. I've looked at ones similar to your link but I liked the layout & the convenient mounting holes on the YX5300.
Hello, Im just starting with arduino. i followed your video. When i press the button the song does start to play but it won't stop like it does for you. Got any clue why it does this? did follow the exact code you showed.