AED 52.50
Description
MP3-TF-16P Module is a tiny low-cost mp3 module with an inbuilt Amplifier. You can connect a 3-Watt Speaker directly to the Module. Additionally, you can use an audio amplifier like PAM8403 to boost the audio signal. It has an SD Card port and reads the MP3 files from the SD Card. This MP3 Module can work standalone or you can use any Microcontroller like Arduino via UART Ports (TX & RX). A Special library is published on GitHub.
you can use the MP3 Module in many applications like Fire alarm Voice Prompts, Car Navigation Voice Broadcast, Voice alert Blind Stick and many projects that need voice-based alerts.
Specifications:
- sampling rates supported in (kHz): 8/11.025/12/16/22.05/24/32/44.1/48
- 24 -bit DAC output, support for dynamic range 90dB, SNR support 85dB
- fully supports FAT16, FAT32 file system, maximum support 32G of the TF card, support 32G of U disk, 64M bytes NOR FLASH
- a variety of control modes, I/O control mode, serial mode, AD button control mode
- Advertising sound waiting for function, the music can be suspended. when advertising is over in the music continue to play
- audio data sorted by folder supports up to 100 folders, every folder can hold up to 255 songs
- 30 level adjustable volume, 6 -level EQ adjustable
PinOut for MP3-TF-16P Module:
Pin | Description | Note |
VCC | Power Supply + | DC 3.2V – 5V |
RX | Serial Input | UART |
TX | Serial Output | UART |
DAC_R | Audio Output Right Channel | Drive Earphone & Amplifier |
DAC_L | Audio Output Left Channel | Drive Earphone & Amplifier |
SPK2 | Speaker – | Drive Speaker Less than 3W |
GND | Ground | Power GND |
IO1 | Trigger Port 1 | Short Press to Play Previous (Long – Volume Decrease) |
GND | Ground | Power GND |
IO2 | Trigger Port 2 | Short Press to Play Next (Long – Volume Increase) |
ADKEY1 | AD Port 1 | Trigger Play First Segment |
ADKEY2 | AD Port 1 | Trigger Play Fifth Segment |
USB+ | USB+ DP | USB Port |
USB- | USB- DM | USB Port |
BUSY | Playing Status | Low Means Playing |
Connecting MP3 Mini Player with Arduino:
First wire the MP3 Mini Player with a 3W Speaker and Arduino Board like this:
- The module accepts only MP3 Files. To convert your files to MP3 before using it. You can use many online converters for this.
- The naming should be 001, 002, 003, and so on. Else the player will pick the first file copied into the SD Card.
- Copy the files to the SD Card
- Install the DFPlayer Mini Library by Clicking Here or Search it on the Arduino Library Manager. There are new versions available and didn’t work well. So Choose Version 1.0 that will work perfectly.
Now let's Upload the Arduino Code of the MP3 Mini Player:
#include "Arduino.h" #include "SoftwareSerial.h" #include "DFRobotDFPlayerMini.h" SoftwareSerial mySoftwareSerial(2, 3); // RX, TX DFRobotDFPlayerMini myDFPlayer; void setup() { mySoftwareSerial.begin(9600); Serial.begin(115200); Serial.println(); Serial.println(F("DFRobot DFPlayer Mini Demo")); Serial.println(F("Initializing DFPlayer ... (May take 3~5 seconds)")); 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); } Serial.println(F("DFPlayer Mini online.")); myDFPlayer.volume(20); //Set volume value. From 0 to 30 } void loop() { myDFPlayer.play(1); //Play the first mp3 delay(2000); myDFPlayer.next(); //Play next mp3 delay(2000); myDFPlayer.next(); //Play next mp3 delay(2000); myDFPlayer.next(); //Play next mp3 delay(2000); }