The Bluetooth Mate Gold is a wireless communication module designed for easy integration into projects requiring Bluetooth connectivity. It is based on the Roving Networks RN-41 module, which is a small form-factor, low-power Bluetooth radio that supports Bluetooth 2.1 + EDR. The module is perfect for applications such as wireless sensor networks, robot control, or any other projects where a serial cable would be a constraint.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | VCC | Power supply (3.3V to 6V DC) |
3 | CTS-I | Clear to Send Input, active low |
4 | VCC | Power supply (3.3V to 6V DC) |
5 | TX-O | Transmit Data Output (connect to RX of host device) |
6 | RX-I | Receive Data Input (connect to TX of host device) |
7 | RTS-O | Request to Send Output, active low |
8 | GND | Ground connection |
#include <SoftwareSerial.h>
// RX, TX pins for the Bluetooth Mate Gold
const int bluetoothTx = 10; // Connect to RX-I of the module
const int bluetoothRx = 11; // Connect to TX-O of the module
SoftwareSerial bluetoothSerial(bluetoothRx, bluetoothTx);
void setup() {
// Start the serial communication with the host computer
Serial.begin(9600);
// Start the serial communication with the Bluetooth module
bluetoothSerial.begin(115200); // Default baud rate of the module
Serial.println("Bluetooth Mate Gold is ready to pair");
}
void loop() {
// Check if data received from the Bluetooth module
if (bluetoothSerial.available()) {
char toSend = (char)bluetoothSerial.read();
Serial.print(toSend); // Send it to the host computer
}
// Check if data received from the host computer
if (Serial.available()) {
char toSend = (char)Serial.read();
bluetoothSerial.print(toSend); // Send it to the Bluetooth module
}
}
Q: Can I use the Bluetooth Mate Gold with a 5V microcontroller? A: Yes, but ensure that the RX pin of the module is connected through a voltage divider or level shifter to bring the voltage down to 3.3V.
Q: What is the default pairing code for the Bluetooth Mate Gold? A: The default pairing code is typically '1234' or '0000'.
Q: How can I change the name or baud rate of the Bluetooth Mate Gold? A: You can use AT commands to configure the module. Refer to the RN-41 datasheet for the specific commands and procedures.
Q: What is the range of the Bluetooth Mate Gold? A: The module has a range of up to 100 meters (328 feet) in open space, but this can be reduced by obstacles and interference.