MP3 using DFplayer and Arduino | Soundpod part 2 [DIY]
Вставка
- Опубліковано 15 чер 2020
- An MP3 player made with Arduino and a DFPlayer along with a python script to make the file transfer easy between SD card the computer.
If you like to learn how to make Printed Circuit Board for this project or have any question on the project you can post you questions here : pcbcupid.com/
support me for more content:
www.buymeacoffee.com/Neutrino
You can also support me on: www.paypal.me/Neutrino1
Circuit diagram and code for the Arduino
github.com/Neutrino-1/Arduino...
DFplayer wiki: wiki.dfrobot.com/DFPlayer_Min...
More videos visit my channel: / neutrino1
Buying products from the below link will greatly help the channel
and it doesn't have any additional charge on it:
Arduino pro mini: amzn.to/2NhmnzT
DFPlayer: amzn.to/3TDkuOL
1.3-inch OLED: amzn.to/3W2YoGY
Push buttons: amzn.to/3zisNr8
Audio Jack: amzn.to/3U2nC6F
TP4056: amzn.to/3U0PYye
Lipo battery: amzn.to/3FA4sRJ
Slide Switch: amzn.to/3TETFd2
PCB: amzn.to/3TEnvyl
Instagram: @srinivasan2020
#musicplayer #arduinoproject #electronics #audioplayer #newproject #engineering #diy #maker #mp3player - Наука та технологія
If anyone wants to build a PCB you can refer to the circuit diagram from GitHub!
github.com/Neutrino-1/Arduino-Soundpod/blob/master/Circuit%20diagram/Schematic_SoundPod.png
would it be possible to make this with a full interface for navigation by metadata tags?
This is excellent! And so tiny with so many features!!
Yes Yes!
That's a neat looking project
Sounds easy, i'll give it a try.
Yes!
Very good project I think that do it this in future
A very nice project for MP3 music files, it just needs it Bluetooth, so you can connect it to a speaker or radio in the car, so thanks for the video, I have joined your channel as it looks interesting
Thank you!
For the low flash mem problem, you can use a pro micro with the ATMEGA32U4
More generalization would be great, e.g., speaking in terms of a bus (I²C here) instead of the broad "Arduino" to point out the idea over the narrow application.
Thanks for the input! I will definitely try better from next video.
Nice build!
Thanks!
about the file/folder convention, you mentioned that it works fine without it. Can you elaborate? Couldn't it work if I had the mp3 files in root of sd? I did not plug my dfplayer to a microcontroller and test yet, I just put bunch of mp3 files to root and the df player plays them all without the file/folder structure. I'd appreciate elaboration, thanks in advance and thanks for the video.
Hey I built one from your design thanks for sharing!
Glad you liked it!
@@Neutrino1 yeah I posted a video of it if you’re interested
Can it show Equalizer like shown in the Amazon product of the display How?
Sir any how we can use blutooth module and connect wireless earphone
How can I downoload the script file to add a folder and # the songs? thanks
Sir, the calculator hack video has been removed by UA-cam... Is there a way I can still watch it..?
I'd like to get a link if you have.
Have you or anyone else made this with a professionally manufactured PCB yet? I was unable to get this working when I assembled it on a breadboard could not upload the code! The test sketch for the U8g2 library work OK but your code was full of errors. Do you have any updates?
Bro can i use esp32 instead of arduino pro mini
Please help
Where is the circuit diagram?
I don't use mp3 do you have a way to only transmit the signal through the 3.5 jack without displaying the functions of the mp3 on the oled?
Yes that's possible. That process is done on part one of the video.
Do you have a Circut diagram for using an Arduino Nano?
I have a question please. Arduino input voltage is in range 5v to 12v so this is working with the 3.7v battery?
Also how long does this mp3 player last per a full battery charge? Can it last a full day always on?
Pro mini can work with 3.7v directly at its vcc pin. It will work until the battery voltage drops to 3.3v or less. I haven't calculated the battery life but i don't think it can last a day, probably a few hours at best.
@@Neutrino1 it seems there is two versions of pro mini one works on 3.7v and the other one is 5v. I can find only the 5v version, not sure how to power it from a compact battery? The small recargable lithium batteries i can find are 3.7v only.
@@m3lateef in that case you need to use a boost convert to boost of the battery voltage from 3.7v to 5v
Can i use ardunio nano inthe this project
Wooo I got featured in the video! Great project! I am going to try and make it soon when more parts come in, I burnt my OLED by putting power and gnd backwards so a new one is in the mail soon. The UI looks amazing. Sorry to here that file count isn't working on your DF player. What is the battery life for it about?
Standby you should get around 6hrs, playback would give 2-3hrs probably. You can just swap out with higher mah battery for more battery life.
The charger module is configurated at 1A charge at default. That is something your 300mAh battery don't like.
Super bro
How does battery status work?
nice guide!
Glad you liked it!
Could this basic design support making an MP3 player with some added function to search by song title? So what I mean is: you have to give each file a name like 001, 002, etc. But, in the first video I saw that the file listed that 001 filename alongside the song title and artist details. Could you then use this design so that, with extra code and perhaps some new input to search by letters, it could pick out file 070 on folder 3 when you search the first few letters of the track name? Or say you couldn't, and you use the "001Dont stop me now" type of format, is there some way then to code a search for after this numbering (so ignore the 000 bit and start at the fourth alphanumerical, e.g. D)?
I only ask because I remember how annoying it could be with the old MP3 players trying to get to your favourite song when you wanted it and you would often have to scroll or skip to get them.
I really like these videos by the way, it's very cool to see the high tech of my childhood being made this easily with some parts and a computer
DFPlayer won't output any values to the microcontroller regarding the files it's playing (name / size / type / etc). We are naming the songs in the order (0000,0001,0002...) just to play them chronologically. If you don't rename, they still be sorted and numbered alphabetically. Unfortunately none of this information is transferred backed to the microcontroller, we can only send command to DFPlayer.
На дисплее 0,96 изображение сдвинуто на 2 пикселя вправо. 255 песен это максимум? 255 всегда выводится на дисплей?
hello the code is showing errors based on u8g2 library. Also the code in Github and the video does not match. Please help
Can I make it Bluetooth
can we replace arduino pro mini with arduino nano
Perfect 👍
Thank you!
Nice
Gr8 video
Subscribed !! Very very nicely done project and clear explaination wherever required. Can we use this to play by time in a long say 60min Audio file. Meaning by press of a button it jumps say 3 min steps.
Thank you! That's really a intresting idea but it's not possible to implement using DFplayer.
cool!
the slide switch is no longer available, even on other websites. do you know of any alternatives that'll work?
Any switch would do, as long as it can hold on and off position.
hey @Neutrino can I use a bigger size of oled screen but without doing any changes in the code?
This is the biggest display, anything bigger we have to rewrite the code.
@@Neutrino1 ohk, got it! thanks for sharing with me! 👍
can I use ardiuno nano instead of the pro mini?
Yes!
I am making pcb layout in easyEDA but not getting, can you please help me? The battery management diagram is confusing please help me
I dont know either
hey, can I use an audrino nano instead of a pro mini?
@neutrino1
Bro what quality and format we have to convert our audio files into?
Wav files works good
I have a compilation with an error - 'u8g2_uint_t' has not been declared
How to fix it ?
Me parece que debes de instalar la librería de u8g2lib
I am looking to make a Saregama Carvaan. Can you make a video of it? I also hope the video will get more likes and views. With the option to select artists and toggle to different options as on the caravaan. Also, it should have fm radio and bluetooth.
I'm interested in this build, is there a code to show the battery level on the oled display?
It's on GitHub, you have the option to add battery percentage
@@Neutrino1 I cant seem to make it work though, can you please provide an example code on the battery logic part of the code? thanks.
I am planning to make a Arduino Uno r3 shield of mp3 will it still work if i use the same logic
Yes! you can use the same logic. (Just discard the display part)
@@Neutrino1 OK thanks but can you explain me how to use the sound jack for headphones (and also i am planning to keep the display part)
Loved your channel but is it really necessary to name the files 001,002,003 etc...and is it necessary to use the df player file you suggested to use ..can you explain me the things it is really confusing.
Please I am confused
@@vincigarg6872 I tested dfplayer, without a nano. Seems like you don't have to. I put mp3 files in root of sdcard and dfplayer is able to read. I am also confused. There might be version changes, the video is 3 years old. My DFplayer has V3.0 mark on it. I hope this information helps.
Thanks
hi do you know how i could do the same thing but with and usb stick instead of an sd card
why though?
the same module wont work as sd card and usb protocols differ alot.
I really loved your Channel The way you explain things, but I wanted to ask you can it show music equalizers? Yes or No, If yes then how?
I have subscribed
Thank you!! Sorry the df player won't be able to show the Equalizer. Need to build an entire new circuit for it.
Thanks for your reply😊
please tell me what display you are using
1.3inch SH1106 OLED display.
@@Neutrino1 Thank you
Hello
I am a big fan but I wanted to ask you that the diagram you shared in description can we implement it on a Breadbaord
Waiting for your reply 😊😊😊
Yes! You can
Well, that sounds a bit paradoxical, but using the DF Mp3 Player as an MP3 player doesn't seem obvious to me now. I still have some MP3 players from the 2000s, and they are practically as tiny as the DFRobot module, which, due to the SD card slot, is comparatively large. If there were some proper memory chips instead of a card reader, that would make more sense.
But building an MP3 player in 2024 that is 5 times larger than MP3 players from 20 years ago really doesn't make sense to me. Especially considering that everyone nowadays has their mobile phone with them, indulging in some streaming service or another.
Do u still need the DFplayer.ino file for this?
That's just for testing DFplayer.
can you add track playing time with this DFPlayer module
Not possible with DFplayer, maybe should find a different player for that!
@@Neutrino1 thak you for reply,
Can u suggest the chip with track time, not module, and shoud be inexpansive for mass production.
Could you run winamp on this?
That's not possible
If bluetooth transmission is added, can 2 3v lithium coin batteries handle it?
It depends on what bluetooth module you use and it's purpose.
Thank you...
If you can provide a USD quote for 1 or 2 of these, adding bluetooth transmit capability and keeping the 3.7v battery/usb charging to play it safe, my email is hoyle209@comcast.net . I can load the micro sd just using Windows, I do not need to add/delete mp3 files from the device. I'm in USA, New Jersey.
Can this be done Bluetooth instead of jack?
Just include a Bluetooth adaptor thats used in the car. Or you can feed the output of DFplayer to a Bluetooth transceiver module
@@Neutrino1 ty
Can this play. Wav files too?
Yes, it can.
good day im making a DFmini mp3 player. I am not using a battrey and dont need all the features you have . I just need play stop skip and rewind but i am uing a smaller screen that you. Its a rectangle 128x28 i think. Can me make a deal and you help me sort this code out plz?
im using the same arduino nano
I think u have 128x32 OLED display and only play and pause would be possible. Rewind and skip isn't supported by DFplayer.
@@Neutrino1 thanks alot. I really thought there was a way to change the tracks. Can u help me with the code. You are right abput my screen
It will be lot of work to code for this display (more deletion too).
Check out U8g2 library documentation. It will be really helpful.
can we adda bluetooth module to it
Yes you can!
Sir can you make a video that you add bluetooth transmitter to the mp3 player for bluetooth speaker I really need that now please help sir thank you
Hey
Can I buy a finish
Product
I love this thing
Yeah sure you can mail me, where are you located?
@@Neutrino1
I am from India
@@Neutrino1
Can you share your email
So you can share the details
@@kavitashekhawat3437 srinivasanm329@gmail.com
Can you make it bluetooth? So we can use bluetooth headset to listen the music
Sure, it can be converted into a Bluetooth
@@Neutrino1 I hope you can make a tutor for it bro. Because i can't find tutorial about it
@@Neutrino1 how?
@Neutrino1 how
i always get compilation erros what should i do
What's the error?
@@Neutrino1 Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"
C:\Users\Senithu perera\Documents\Arduino\soundpod\soundpod.ino: In function 'void setup()':
soundpod:44:5: error: 'flashPage' was not declared in this scope
flashPage();
^~~~~~~~~
soundpod:50:53: error: 'leftButtonISR' was not declared in this scope
attachInterrupt(digitalPinToInterrupt(leftButton),leftButtonISR, FALLING);
^~~~~~~~~~~~~
C:\Users\Senithu perera\Documents\Arduino\soundpod\soundpod.ino:50:53: note: suggested alternative: 'leftButton'
attachInterrupt(digitalPinToInterrupt(leftButton),leftButtonISR, FALLING);
^~~~~~~~~~~~~
leftButton
soundpod:51:54: error: 'rightButtonISR' was not declared in this scope
attachInterrupt(digitalPinToInterrupt(rightButton),rightButtonISR, FALLING);
^~~~~~~~~~~~~~
C:\Users\Senithu perera\Documents\Arduino\soundpod\soundpod.ino:51:54: note: suggested alternative: 'rightButton'
attachInterrupt(digitalPinToInterrupt(rightButton),rightButtonISR, FALLING);
^~~~~~~~~~~~~~
rightButton
soundpod:77:3: error: 'startFolderPlay' was not declared in this scope
startFolderPlay();
^~~~~~~~~~~~~~~
C:\Users\Senithu perera\Documents\Arduino\soundpod\soundpod.ino: In function 'void loop()':
soundpod:82:3: error: 'batteryReader' was not declared in this scope
batteryReader();
^~~~~~~~~~~~~
C:\Users\Senithu perera\Documents\Arduino\soundpod\soundpod.ino:82:3: note: suggested alternative: 'batteryLevel'
batteryReader();
^~~~~~~~~~~~~
batteryLevel
soundpod:166:13: error: 'player' was not declared in this scope
player();
^~~~~~
C:\Users\Senithu perera\Documents\Arduino\soundpod\soundpod.ino:166:13: note: suggested alternative: 'playing'
player();
^~~~~~
playing
soundpod:169:13: error: 'settings' was not declared in this scope
settings();
^~~~~~~~
C:\Users\Senithu perera\Documents\Arduino\soundpod\soundpod.ino:169:13: note: suggested alternative: 'String'
settings();
^~~~~~~~
String
exit status 1
'flashPage' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
@@Neutrino1 this is my error code
@@sdp_studios me too
where is link download u8g2 like in video?
github.com/olikraus/u8g2
Thank you so much bro i made it!!
It's work really great
Can you pls say how can i add battery indicator to it pls it's so important!
Thank you a lot 😊🙏
I have added section in code for implementing battery indicator. You have just read the voltage of the battery using voltage divider and then convert it to percentage and display them.
@@Neutrino1 I'm sorry sir to asking you a lot of questions but could you please tell me if i got a battery with 3.7 voltage and 2400 capacity what should i do? 🤔😔🙏
@@arshamebr8183 Just replace in the existing circuit, it should work fine
@@Neutrino1 no i mean in code what should i do. i dont know how to write the code that arduino can read the battery percentage and show it on display pls help me its my project for school sir
Can i buy the finish product?
Sure, contact my email for more information srinivasanm329@gmail.com
Sound quality??
Average, but usable.
Hi ,I need a help to make mp3 player code is not working can you send a new code 😭
let me know what's the error you are facing
I must have a knock off version too. It seems to not want to play anything from any other folder than the root. No matter how I name them or point to them.
it's better you get the DFplayer from there official site.
@@Neutrino1 I managed to get it working briefly, but when I added more tracks to the folder it stopped working. I've given up now and am just using the root.
@@Neutrino1 I managed to get this working now and have spent a long time on my project. Unfortunately when I power the Arduino from a wall socket, and not my PC, the MP3 player no longer works. I don't even get it powered up. I'm wondering if it's this, as it doesn't seem to get past this point:
if (!myDFPlayer.begin(mySoftwareSerial)) { //Use softwareSerial to communicate with mp3.
Serial.println(F("Unable to begin:"));
Serial.println(F("1.Please recheck the connection!"));
Serial.println(F("2.Please insert the SD card!"));
while (true);
}
I've no idea what this does as it's part of the library, but it doesn't appear to work at all without it. It seems to be trying to communicate through serial, so when there isn't a PC connected to the data lines, it freezes.
Any help would be great, as this is doing my head in. Thanks
@@ArcanePath360 the part of the code you posted here,
Checks if the DFplayer and Arduino can communicate through software serial. Check the connection once again even though that might not be the one causing the problem.
How is the DFplayer connected to Arduino? Are sure the power supply provides enough current for DFplayer? What is the speaker that your using?
@@Neutrino1 It uses software serial and pins 10/11 for RX/TX. Not sure why but this is what the library uses and I can't change it. It all works fine when connected to PC. It's only when I remove the PC and use the same USB to go into a wall outlet. The "L" light on the Arduino would normally blink several times when powering up, but it just stays on and seems to get stuck at this point in the code, when not connected to a PC.
these links should be updated most are dead or not found on amazon
Thanks for letting me know, I have updated the links!
@@Neutrino1 Thank You as well
Are u interested in building dj player ?
sure
Can we use arduino nano?
Yes you can use Arduino nano.
@@Neutrino1 thank you man
Dfplayer playing song name in oeld display next video
That's not possible unfortunately. DFplayer doesn't have that functionality
BT201 Bluetooth module control arduino nano in oled display next video
Sir can you help me with the code I want to autoplay the next song but in your code the next song must press the next button for next please sir help me
did you figure it out?
Can you pls include the battery level indicator plssssssssssssssssss. I really need it. I'm a subscriber so plssssss
Rip calculator video
😂😂
YOU ARE SMART, BUT ENGLISH TRANSLATIONS........:(
No filename or artist/song display. So DFPlayer suck.
what would you recommend instead?
@@idkdahmo VS1053.
I also did further testing of DFPlayer and it sucks even more. The audio frequency response is terrible. There are practically no low tones. This is not suitable for playing music. But if someone only needs it for speech reproduction, it's OK.
@@przemo3651Thank you, this is the exact information that I am looking for. I'm trying to find an audio module that displays the title.
@@instantnoodles8640 I bought sparkfun vs1053, it's great, has very good sound quality, has an equalizer, many other settings and easy access to information about the author and title of the song being played. It's more expensive but worth it.
@@przemo3651 howd you get the file info?
Hi ,I need a help to make mp3 player code is not working can you send a new code 😭
Hi it's available on my GitHub : github.com/neutrino-1