The MKE-M11 UART Control MP3 Player Module is a compact and versatile audio playback device designed for integration into a wide range of electronics projects. It allows for high-quality MP3 playback from a microSD card and can be easily controlled through UART (Universal Asynchronous Receiver/Transmitter) communication, making it ideal for applications such as embedded audio systems, DIY music players, interactive art installations, and educational projects.
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.2V - 5.25V) |
2 | GND | Ground |
3 | TX | UART Transmit (connect to RX of controller) |
4 | RX | UART Receive (connect to TX of controller) |
5 | SPK1 | Speaker output positive |
6 | SPK2 | Speaker output negative |
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
// Open serial communications:
Serial.begin(9600);
// Set the data rate for the SoftwareSerial port:
mySerial.begin(9600);
// Send command to play the first MP3 file:
mySerial.write(0x7E);
mySerial.write(0xFF);
mySerial.write(0x06);
mySerial.write(0x03);
mySerial.write(0x00);
mySerial.write(0x00);
mySerial.write(0x01);
mySerial.write(0xEF);
}
void loop() {
// If there's any serial available, send it out the serial port:
if (mySerial.available()) {
Serial.write(mySerial.read());
}
}
Note: The above code is a simple example to demonstrate how to send a command to the MKE-M11 module to play the first MP3 file on the microSD card. The commands follow the module's communication protocol, which should be referenced for more advanced control.
FAQs:
Q: Can I connect this module directly to an Arduino UNO? A: Yes, you can connect it using the SoftwareSerial library as demonstrated in the example code.
Q: What is the maximum size of the microSD card that can be used? A: The module supports microSD cards up to 32GB in size.
Q: How do I change the volume? A: Volume control can be done through specific UART commands as per the module's communication protocol.
Q: Can I play files in a specific order? A: Yes, you can control the playback order through UART commands, allowing you to select specific files to play.
Q: Does the module support audio formats other than MP3? A: Yes, the module also supports WMA and WAV formats.