![]() ![]() There are several libraries available to control this chipset with an Arduino. I thought it was broken but it just behaved differently (no checksums, different codes for commands). I accidentally bought a cheap copy based on a different chipset. Probably the most difficult part of this project was getting the DFPlayer to work. To develop on the Arduino, I use PlatformIO. The source code of this project can be found here: This means that the firmware is different and the commands are different. It is actually challenging to find a legit DFPlayer Mini, the one I received is based on a MH2024K-16SS chip. The DFPlayer Mini is a small MP3 module that can play mp3 files from an SD card or a USB stick. The board is powered by 6 AA batteries (~9V), and we use the +5V output to power the DFPlayer Mini. I decided to use an Elegoo model, which is compatible but much cheaper. The Arduino Nano is a small, complete, and breadboard-friendly board based on the ATmega328. The buttons are not shown on this schematic but they are connected to the following pins: The player is based on an Arduino nano and a DFPlayer Mini. The cost of this project is less than 50€, if I don't count my mistakes (2 wooden boxes wasted because the first one was slightly too small, and the second one I drilled a hole on the wrong side). The music box is an MP3 player with 6 playlists, volume buttons, previous, stop and next buttons. It's not a tutorial but it can be useful if you want to do something similar. In this article, I describe the main components, with links to the source code and schematics. ![]() But I wanted it to be unique so I decided to build it myself. For last Christmas, I wanted to offer my son a music box. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |