Information
Item weight
Barcode
Created time
Last updated on
Item description
รายละเอียดสินค้า

ใช้เล่นเสียงเพลงจาก micro sd card โดยสั่งการจาก Arduino หรือไมโครคอนโทรลเลอร์ยอดนิยม หรือสามารถใช้ตัวโมดูลแบบ Standalone สามารถสั่งเล่นเพลงได้ 14 track ทั้งแบบเล่นครั้่งเดียว และแบบเล่นวน รายละเอียดเพิ่มเติมสามารถดูได้จาก

Datasheet

https://picaxe.com/docs/spe033.pdf


Library DFPlayer mini
ติดตั้งผ่าน Arduino IDE โดยเข้าไปที่ Tools->Manager Libraries แล้วพิมพ์ DFRobotDFPlayerMini จากนั้นกด Install ดังรูป



ฟอร์แมต microSD card โดยใช้รูปแบบFile system เป็น FAT32 ตามรูป (วิธีการฟอร์แมตทำได้โดย เข้าไปที่ my computer -> คลิ๊กขวาที่ Drive ที่เป็น microSD ของเรา -> Format)



เตรียมไฟล์เสียง สัก 3 เพลงโดยตั้งชื่อว่า 001.mp3, 002.mp3, 003.mp3 ใส่ใน microSD
และเสียบกลับไปยังโมดูล

จากนั้น copy code ด้านล่าง


/**
 * ArduinoNa
 * วิธีใช้ DFPlayer mini กับ Arduino
 * 1. ลบไฟล์ (ฟอร์แมต) ทุกอย่างบน micro sd ก่อน
 * 2. ใส่เสียงเพลงลงไปสัก 3 เพลง โดยตั้งชื่อว่า 001.mp3, 002.mp3, 003.mp3
 * 3. ใส่sd card ลงในโมดูล DFPlayer mini
 * 4. อัพโหลด code ลงบอร์ด
 */

#include "Arduino.h"
#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"

SoftwareSerial mySoftwareSerial(10, 11); // 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){
     delay(0); // Code to compatible with ESP8266 watch dog.
   }
 }
 Serial.println(F("DFPlayer Mini online."));
 
 myDFPlayer.volume(25);  //ตั้งระดับความดังของเสียง 0-30 
 myDFPlayer.play(1);  //เล่นเพลง 001.mp3
}

void loop()
{
 //จดจำค่าตัวแปรแบบไม่ขึ้นกับจำนวน loop ด้วย static variable 
 static unsigned long timer = millis();
 
 if (millis() - timer > 3000) {
   timer = millis();
   myDFPlayer.next();  //เล่นเพลง mp3 ถัดไปทุกๆ 3 วินาที
 }

}


ตัวอย่างการใช้งาน



Pinout



ตัวอย่างวิธีการต่อกับ Arduino





     DFPlayer Mini is a compact and inexpensive MP3 module that can be directly connected to speakers. The module can be used alone with the power supply battery, speakers, and buttons, or can be controlled through the serial port. It can be used as a module of Ar UNO or any microcontroller with a serial port. The module has hard decoding integrated MP3, WAV, WMA. At the same time, the software supports TF card driver and FAT16, FAT32 file system. Functions such as playing specified music and how to play music can be completed through simple serial port instructions, without the need for tedious low-level operations, easy to use, stable and reliable.
 
Technical specifications
 
1.Support sampling rate (KHz): 8 / 11.025 / 12/16 / 22.05 /
24/32 / 44.1 / 48 2. 24-bit DAC output, dynamic range support: 90dB, signal-to-noise ratio support: 85dB
3. Full support for FAT16 , FAT32 file system, maximum support 32G TF card, 32G U disk, 64M byte NORFLASH
4. multiple control modes optional. IO control mode, serial port mode, AD key control mode
5. broadcast language insert function, you can pause the background music being played. After the advertisement is played, the background sound will continue to play.
6. The audio data is sorted by folder. It supports a maximum of 100 folders. Each folder can be assigned 255 tracks.
7. 30-level volume adjustment and 6-level EQ adjustment.
 
Application
 
1.  Vehicle navigation voice broadcast
2.  Road transport inspection, toll station voice prompts
3.  Voice prompts for railway station and bus station security check
4.  Voice prompts for electric power, communication and financial business hall
5.  Voice prompts for vehicle entry and exit verification
6.   ** Voice prompts for border inspection channels
7.   Multiple voice alarms or equipment operation guide voices
8.   Electric sightseeing vehicle safety driving voice announcements.
9.   Automatic alarms for mechanical and electrical equipment failures
10. Fire voice alarm prompts.
11. Automatic broadcast equipment, regular broadcasts
Conditions
Tags

Exchange or return policy



Every item comes with a 30-day warranty. However, there are certain conditions that apply:

  1. The customer should not be responsible for any self-inflicted damage, such as incorrect power connections (for example, supplying 5V instead of the required 3.3V for a sensor).

  2. The product must be in perfect condition, without any breakage or damage caused by electricity (e.g., short circuits leading to electrical fires).

  3. The store does not accept product exchanges due to customer misunderstandings, such as purchasing the wrong size for their project or buying something without eventually using it. Customers can inquire about the product details and ensure compatibility before making a purchase by contacting us through our Line account @modulemore during business hours. Please note that there may be delays in response between 12:00 PM and 2:00 PM.

Return Policy: To initiate a product return, customers must provide the original receipt or a copy for quick verification. Returns can be sent to our store address by following these guidelines:

  1. Provide a detailed description of the damaged item(s).
  2. Mention any tests or experiments conducted by the customer.

Please note that the store reserves the right to make the final decision regarding product replacement or refund.

English

Categories

TRACK & TRACE

*Enter your order ID or email used in placing an order

OVERVIEW

Pageviews2,072,435 view(s)
Visitors1,333,161 time(s)
Last updatedSep 6, 2025

JOIN US

ร้านModuleMore
ร้านModuleMore
/www.modulemore.com/en
Join as a Member
600
Become a member of this store to receive special offers and promotions
Choose your language
Language
Currency
Change
Modify language
My orders
This seller's information
ร้านModuleMore
ModuleMore
Arduino compatible board, Iot, ESP32, ESP8266, Nodemcu, Raspberry pi, micro:bit and etc.
Mobile number : 0831710868
E-mail : paheyisoicus@gmail.com
Send message to seller
About this seller
Recently viewed items
Favourite this seller
Join as a Member
Share this page
Share this page

TOP Back to top
Contact me