MP3 gamers are available out there. However the place’s the enjoyable in shopping for while you construct one for your self. In case you are a maker and love DIY, this undertaking will assist you construct a mini battery-powered mp3 participant with a 3.5mm headphone jack (to attach your headphone or aux) which you could carry with you anyplace you go. You might also select to construct a conveyable mp3 participant with a pair of audio system.
What’s extra, you’ll be able to interface this module with Arduino or any microcontroller with RX/TX capabilities, corresponding to ESP8266, and combine with Residence Assistant to play voice alerts or sound an alarm.
What Is DFPlayer?
DFPlayer is a low-cost mini MP3 participant module that may play music or audio (MP3 information) with direct output to the speaker. You should use this module for number of tasks. It may be used to construct a standalone music participant, you’ll be able to add buttons to manage its numerous capabilities and mode, or pair it with Arduino or ESP8266 to manage it wirelessly.
Specs:
- Helps sampling charges 8/11.025/12/16/22.05/24/32/44.1/48 (kHz)
- 24 -bit DAC output
- 90dB Dynamic vary
- 85dB SNR assist
- Helps FAT16 , FAT32 file system
- Helps as much as 32G TF card
- 3 Management modes: I/O management, Serial mode, and AD button management mode.
- 30 degree Quantity management
- 6 -level Music EQ
What Do You Have to Construct a DIY MP3 Participant?
To construct a conveyable DIY MP3 participant, you want the next:
- DFPlayer Mini MP3 Participant module
- An SD card (any card between 100MB-32GB)
- 1 x 3W Speaker (50mm)
- A PAM8403 3W mini 5V digital amplifier board with a potentiometer (optionally available)
- 2 x push buttons to manage the MP3 participant
- A micro USB breadboard 5v energy provide module or a TP4056 1A Li-ion battery charging module with a 3.7v 500/1000/2000mah LiPo or 18650 battery to energy the machine.
- A 3D printed case to deal with all of the parts. You may obtain this resized 3D Case for an MP3 participant that may slot in a 49mm-51mm speaker.
Abilities Required
You want some expertise in soldering digital parts. When you’ve got by no means soldered any element or used a soldering iron earlier than, discuss with this information to study easy tricks to solder electronics.
Nevertheless, if you happen to don’t wish to solder and wish to check or construct this quickly to study and for enjoyable, you need to use a breadboard.
Steps to Construct a DIY MP3 Participant
Comply with the steps given under to construct a DIY MP3 participant.
Step 1: Construct the Management Panel
To construct the management panel to manage numerous capabilities, corresponding to enhance or lower quantity, play or pause music or change to the earlier or subsequent monitor, you want a common PCB. In the event you don’t have a common PCB.
- Join the resistors to one of many terminals on all three push buttons as proven within the diagram.
- Then join the opposite terminal of push buttons with one another in parallel and solder it to the GND terminal on DFPlayer.
- Join all resistors to the ADKey_1 terminal on DFPlayer.
Button |
Operate |
B1 |
Play/Pause |
B2 |
Quantity-/Earlier (Lengthy Press) |
B3 |
Quantity+/Subsequent (Lengthy Press) |
Step 2: Join Audio system
Now you can add audio system to the DFPlayer module. The module can run two 3W 4/8 ohm audio system with none points. In case you are utilizing a 3W speaker, you’ll be able to join them on to the DFPlayer as proven within the following diagram.
You might also set up a PAM8403 3W mini 5V digital amplifier board to attach the speaker and management quantity utilizing the quantity knob.
Nevertheless, if you wish to join larger audio system for extra sound, you need to use a extra highly effective amplifier module in between the DFPlayer and the audio system.
As soon as all of the connections are made, you’ll be able to join a 5V energy provide to the feminine micro USB after which solder the 2 wires to the DFPlayer as proven within the following diagram.
You might also use a 5mm male-female DC energy jack to provide 5V energy by way of any 5V adapter.
Step 4: Copy MP3 Information to SD Card
You may create as much as 100 folders and add as much as 255 songs in every folder. So as to add music information, copy the MP3 information to the foundation of the SD card. Don’t create any folder for now.
As soon as carried out, insert the SD card into the DFPlayer module.
Join the ability provide after which press the B1 (Play/Pause) or B2/B3 (Earlier/Subsequent) button as soon as. It ought to begin taking part in the MP3 file saved on the SD card.
In the event you long-press on B2, it should lower the quantity. Equally, an extended press on button B3 will enhance the quantity. A brief press on B2 and B3 will change between the earlier or subsequent monitor on the SD card respectively.
Step 5: Organize the Participant right into a 3D Printed Case
After getting examined and constructed a working DIY MP3 participant, you might enclose it in a 3D printed case (such because the one urged above) or any enclosure you could find on Thingiverse. You might also design one in Fusion 360.
Step 6: Combine With Residence Assistant
To combine the DFPlayer or your DIY MP3 participant with Residence Assistant for sensible dwelling automation alerts, you have to a NodeMCU or D1 Mini and flash it with Tasmota or ESPHome firmware.
You should use the Textual content to Speech converter device to create mp3 voice alerts or notification alerts and paste these information to the foundation of your SD card or prepare them in a folder.
Then add automation in Residence Assistant. For example, you’ll be able to select a tool set off, corresponding to a DIY sensible ultrasonic water degree sensor, select the MP3 participant in motion, choose payload (MP3 file quantity) to play when the tank is full or empty or reaches a sure degree. You might also construct a sensible vitality monitoring machine for Residence Assistant and play alerts when excessive energy utilization is detected.
Equally, you add a number of automation for every occasion in Residence Assistant that may play a voice alert by way of your DIY MP3 participant.
Add Bluetooth Functionality for Wi-fi Music
Moreover, you may get a Bluetooth transmitter, corresponding to KCX_BT_EMITTER, and pair it with the DFPlayer’s DAC output to transmit and play audio to different Bluetooth-enabled audio methods, corresponding to your headphones or Bluetooth soundbar. Equally, you might pair a KCX BT003 Bluetooth receiver module with DFPlayer side-by-side to attach your smartphone and stream music wirelessly in your transportable DIY MP3 participant.
You may even add a mic within the Bluetooth module to make use of the DIY MP3 participant for receiving voice calls.