Music Player for Toddler using Raspberry Pi Pico and DFPlayer
ฝัง
- เผยแพร่เมื่อ 11 ก.ย. 2022
- How To make a screenless Music Player for multilingual toddlers using a Raspberry Pi Pico microcontroller and a DFPlayer Mini MP3 Player Module.
The player has control for choosing between languages, in this case Swedish, Ukrainian, Russian and Dutch languages, but it can just as well be used for either other languages or different folders for music, stories, nursery rhymes etc.
All code, written in MicroPython, is open source and can be found here:
Raspberry Pi Pico DFPLayer Driver: github.com/mannbro/PicoDFPlayer
Player: github.com/mannbro/Kidsplayer
There you will also find instructions on how to wire the different components together. - ภาพยนตร์และแอนิเมชัน
Thanks so much for sharing... I'm working on using a Pico for making a sentry turret from Portal and needed to play the sounds... couldn't find much on playing MP3's with the Pico, but your code saved me. It worked perfectly the first time with a cheap DFPlayer mini (hw-247a) following your diagram and using your code. Thanks again!
Thank you soooo much, you save my final project
This is perfect. I was going to make something similar with 4 languages too (Ukrainian/Russian/English/Spanish)
But it was going to be a picture of a school bus and when the wheel
Is removed it sings that part in all languages.
Thank you
Good informative video and codes. Great work. Thanks!
Magnifique projet, Merci !!!!
Well done. I will use Arduino nano
Este proyecto no funciona en el entorno de arduino, es para micropython
Hi Oscar, I'm trying to get this going with a similar module that has the same command structure but in CPP.
Couple of questions: Do you connect TX on the Pico to the RX on the module, and vice versa? And where did you find those big pushbuttons for your interface? I love those!
Hi - thanks for figuring out how to use the DFPlayer. I used your code to power a small battery-powered speaker project I am working on. I happened to measure the current flowing from the DFPlayer thru my speaker when no song was playing at about .3A. I don't know if you are aware of or have measured this too. I wish to conserve battery life so I either need a way to "freeze" the DFPlayer or maybe use a transistor switch to open the speaker circuit. Your thoughts?
I ran into an issue, i got my pico and pasted the code from the link you gave into Thonny and everytime i type: playTrack(1,1) I get an error that says: error: name 'playTrack' isn't defined
What am I doing wrong? My sd card has a folder called '01' and the 2 mp3s in it are called '001' and '002'
First of all, great module and explanation in your Video. I am a total novice, but I'm trying to build a Lightsaber hilt, and right now I'm working on the sound.
I got as far as getting the Player to play the appropriate sounds on Power On and Off, but between those sounds there is a small pause, which doesn't sound right.
Is there any way to let the player start the next sound while still playing the first one for a few ms? Or at least make the changing of the sound instantaneous?
Or better yet, would you happen to know how I could change the code to quickly reduce the volume of the first sound (incrementally, but fast) while getting the next file to start?
Is this library suitable for the ESP32?
Kids would find this User Interface un-attractive. You can add colors, graphics & improve the overall user interface.