ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า
รายละเอียดสินค้า

ใช้เล่นเสียงเพลงจาก 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
เงื่อนไขอื่นๆ
Tags

นโยบายการเปลี่ยนหรือคืนสินค้า


สินค้าทุกชิ้นมีการรับประกัน 30 วันครับ

โดยมีเงื่อนไขต่างๆดังนี้

1. ลูกค้าไม่ได้เป็นผู้ทำเสียหายเอง อาธิเช่น การต่อไฟเลี้ยงไม่ถูกต้อง (เซนเซอร์รับ 3.3v เราใส่ 5v อันนี้ไม่ได้เนอะ)
2. สินค้าต้องอยู่ในสภาพสมบูรณ์ ไม่แตกหักหรือเสียหายจากไฟ (เช่นไฟฟ้าลัดวงจรจนไฟไหม้)
3. ทางร้านไม่รับเปลี่ยนสินค้าจากความเข้าใจผิดของลูกค้าเอง เช่น ขนาดไม่ตรงกับงานที่ใช้, หรือซื้อไว้แต่ไม่ได้ใช้งาน เป็นต้น ลูกค้าสามารถสอบถามข้อมูลสินค้าหากมีความคลุมเครือก่อนสั่งซื้อได้ในไลน์ร้าน @modulemore ตลอดวันทำการ ยกเว้นเวลา 12.00-14.00 ที่อาจมีการตอบช้าในช่วงนี้ 

การส่งคืนสินค้า
การส่งคืนสินค้าจำเป็น ต้องมีใบเสร็จหรือสำเนา เพื่อความรวดเร็วในการตรวจสอบครับ
สามารถส่งคืนได้ผ่านที่อยู่ของร้าน คลิ๊ก โดยเขียนเป็นลายลักษณ์อักษรกำกับดังนี้
1. รายละเอียดรายการเสียหาย
2. ลูกค้าได้ทดสอบอะไรไปบ้าง

ทางร้านขอสงวนสิทธิ์ในการตัดสินใจเปลี่ยนสินค้าหรือคืนเงินครับ

 
ไทย

สินค้าของเรา

เซนเซอร์/ โมดูล [323]

MEMBER ZONE

TRACK & TRACE

*ใส่ เบอร์มือถือ หรือ email ที่ใช้ในการสั่งซื้อ

OVERVIEW

หน้าที่เข้าชม2,072,435 ครั้ง
ผู้ชมทั้งหมด1,333,161 ครั้ง
ร้านค้าอัพเดท6 ก.ย. 2568

JOIN US

ร้านโมดูลมอร์
ร้านโมดูลมอร์
/www.modulemore.com/
Join เป็นสมาชิกร้าน
600
สมัครสมาชิกร้านนี้ เพื่อรับสิทธิพิเศษ
Choose your language
Language
Currency
Change
เปลี่ยนภาษา
รายการสั่งซื้อของฉัน
รายการสั่งซื้อของฉัน
ข้อมูลร้านค้านี้
ร้านโมดูลมอร์
โมดูลมอร์
ขาย arduino, diy, เรียน arduino, ทำหุ่นยนต์, ฝึกเขียนโปรแกรม, ตั้งแต่ระดับเริ่มต้นจนชำนาญ
เบอร์โทร : 0831710868
อีเมล : modulemore@gmail.com
ส่งข้อความติดต่อร้าน
เกี่ยวกับร้านค้านี้
สินค้าที่ดูล่าสุด
ดูสินค้าทั้งหมดในร้าน
สินค้าที่ดูล่าสุด
บันทึกเป็นร้านโปรด
Join เป็นสมาชิกร้าน
แชร์หน้านี้
แชร์หน้านี้

TOP เลื่อนขึ้นบนสุด
พูดคุย-สอบถาม