Тёмный

Arduino + Aideepen YX5300 Serial MP3 Music or Sound Player Tutorial (SerialMP3Player Library) 

ChefJeffPhD
Подписаться 647
Просмотров 8 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@dotBAIT
@dotBAIT 11 месяцев назад
My SerialMP3Player doesnt power on.
@sihui._.7508
@sihui._.7508 8 месяцев назад
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?
@adamshockey8501
@adamshockey8501 Год назад
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!
@JoeEvansSound
@JoeEvansSound Год назад
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 🔆🔆
@reball10
@reball10 Год назад
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!
@corycoral7072
@corycoral7072 Год назад
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
@williamtucker3700
@williamtucker3700 Год назад
I really learnt a lot about using the Arduino IDE from your example. Great stuff!
@akovalick
@akovalick 2 года назад
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 -
@ChefJeffPhD
@ChefJeffPhD Год назад
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.
@BobWiersema
@BobWiersema 2 года назад
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.
@ChefJeffPhD
@ChefJeffPhD 2 года назад
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.
@forresterickson6225
@forresterickson6225 Год назад
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.
@ChefJeffPhD
@ChefJeffPhD Год назад
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.
@forresterickson6225
@forresterickson6225 Год назад
@@ChefJeffPhD So I would guess the delay after the line with mp3.play() at 10:43 probably is required so that the playing does not start over rapidly?
@robbygrant6441
@robbygrant6441 2 года назад
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.
@ChefJeffPhD
@ChefJeffPhD Год назад
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.
@ericohara2582
@ericohara2582 Год назад
Very helpful, thank you
@ordinaryaverageguy76
@ordinaryaverageguy76 2 года назад
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!
@ChefJeffPhD
@ChefJeffPhD 2 года назад
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
@ordinaryaverageguy76
@ordinaryaverageguy76 2 года назад
@@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.
@rebull1593
@rebull1593 2 года назад
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.
@siriustoolshobbies229
@siriustoolshobbies229 Год назад
the button is NC or NO?
@rebull1593
@rebull1593 Год назад
@@siriustoolshobbies229 i have both, but the 1 i used was NO
@siriustoolshobbies229
@siriustoolshobbies229 Год назад
@@rebull1593 i think in the code you have to put LOW the button's pin just next the play line but inside the if
@anonymousghost5384
@anonymousghost5384 2 года назад
Can we use different pins?
@ChefJeffPhD
@ChefJeffPhD Год назад
Yes, any digital pins should work as long as they’re setup correctly as outputs.
Далее
Audio modules for electronics project
37:54
Просмотров 53 тыс.
The RS-232 protocol
26:10
Просмотров 842 тыс.
Getting Started with PlatformIO
51:54
Просмотров 625 тыс.
The Truth About SIM Card Cloning
13:04
Просмотров 1,1 млн
ESP32 Sound - Working with I2S
46:04
Просмотров 336 тыс.