The MP3 BT 4.1 Decoder is an electronic module designed for decoding MP3 audio files and streaming audio via Bluetooth 4.1 technology. This component is widely used in wireless audio systems, DIY audio projects, and portable speakers. It provides a convenient way to add audio playback functionality to various electronic devices without the need for complex wiring or additional audio decoding hardware.
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.7V to 5V DC) |
2 | GND | Ground |
3 | TXD | UART Transmit (connect to RXD of MCU) |
4 | RXD | UART Receive (connect to TXD of MCU) |
5 | SPK+ | Speaker positive output |
6 | SPK- | Speaker negative output |
7 | LED | Status indicator LED output |
8 | BTN | External button input |
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
// Start the hardware serial communication
Serial.begin(9600);
// Start the software serial communication
mySerial.begin(9600);
// Send command to the MP3 BT 4.1 Decoder to start pairing
mySerial.println("AT+PAIR");
}
void loop() {
// Check if data has been received from the MP3 BT 4.1 Decoder
if (mySerial.available()) {
Serial.write(mySerial.read());
}
// Check if data has been received from the Serial Monitor
if (Serial.available()) {
mySerial.write(Serial.read());
}
}
Q: Can the MP3 BT 4.1 Decoder be used with a stereo speaker setup? A: Yes, the module can drive two speakers for a stereo setup. Connect each speaker to a separate SPK+ and SPK- pair.
Q: What is the maximum range of the Bluetooth connection? A: The typical range for Bluetooth 4.1 is up to 60 meters in open space, but this can be reduced by obstacles and interference.
Q: How do I change the Bluetooth name of the module?
A: You can send a UART command such as AT+NAME=YourDeviceName
to set a custom name for the Bluetooth connection.
Q: Can I control the volume through UART? A: Yes, you can send specific commands to adjust the volume. Refer to the module's command set documentation for the exact commands.
This documentation provides a comprehensive guide to using the MP3 BT 4.1 Decoder. For further assistance, consult the manufacturer's datasheet or contact technical support.