The MKE-M15 Bluetooth module is a compact and versatile wireless communication device that enables Bluetooth connectivity between various electronic devices. It is commonly used in applications such as wireless headsets, home automation, telemetry, and personal area networks.
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 6V DC) |
2 | GND | Ground |
3 | TXD | Transmit Data (connect to RXD of MCU) |
4 | RXD | Receive Data (connect to TXD of MCU) |
5 | STATE | Indicates the Bluetooth connection status |
6 | EN | Module enable (active high) |
#include <SoftwareSerial.h>
SoftwareSerial myBluetooth(10, 11); // RX, TX
void setup() {
// Start the software serial communication
myBluetooth.begin(9600);
Serial.begin(9600);
Serial.println("Bluetooth module is ready");
}
void loop() {
// Check if data has been received from the Bluetooth module
if (myBluetooth.available()) {
char received = myBluetooth.read();
Serial.print("Received: ");
Serial.println(received);
}
// Check if data has been received from the serial monitor
if (Serial.available()) {
char sent = Serial.read();
myBluetooth.write(sent);
Serial.print("Sent: ");
Serial.println(sent);
}
}
Q: Can the MKE-M15 Bluetooth module be used with both classic Bluetooth and BLE devices?
A: Yes, the MKE-M15 supports Bluetooth 4.0, which is compatible with both classic Bluetooth and Bluetooth Low Energy devices.
Q: What is the maximum range of the MKE-M15 Bluetooth module?
A: The module can transmit up to 100 meters in open space, but the range may be reduced by obstacles or interference.
Q: How can I change the baud rate of the module?
A: The baud rate can be configured using AT commands sent to the module via the UART interface. Refer to the module's AT command set documentation for details.
Q: Is it possible to pair multiple devices with the MKE-M15 module?
A: The MKE-M15 can only be connected to one device at a time, but it can be paired with multiple devices and switch between them as needed.