The HC-05 is a Bluetooth module designed for wireless communication. Manufactured by AZ-Delivery, this module is widely used to establish a connection between microcontrollers and other Bluetooth-enabled devices. It supports both Master and Slave modes, making it versatile for various applications.
Specification | Value |
---|---|
Manufacturer | AZ-Delivery |
Part ID | HC-05 |
Bluetooth Protocol | Bluetooth V2.0+EDR (Enhanced Data Rate) |
Frequency | 2.4GHz ISM band |
Modulation | GFSK (Gaussian Frequency Shift Keying) |
Power Supply | 3.3V DC |
Operating Voltage | 3.3V to 5V |
Operating Current | 30mA |
Range | Up to 10 meters |
Data Rate | 2.1 Mbps (Max) |
Operating Temperature | -20°C to +75°C |
Pin Number | Pin Name | Description |
---|---|---|
1 | EN | Enable/Disable the module |
2 | VCC | Power supply (3.3V to 5V) |
3 | GND | Ground |
4 | TXD | Transmit data |
5 | RXD | Receive data |
6 | STATE | Connection status indicator |
7 | LED | Status LED (indicates module state) |
#include <SoftwareSerial.h>
// Create a software serial port on pins 10 (RX) and 11 (TX)
SoftwareSerial BTSerial(10, 11);
void setup() {
// Start the hardware serial port
Serial.begin(9600);
// Start the software serial port
BTSerial.begin(9600);
Serial.println("Enter AT commands:");
}
void loop() {
// Read from the hardware serial port and send to the software serial port
if (Serial.available()) {
BTSerial.write(Serial.read());
}
// Read from the software serial port and send to the hardware serial port
if (BTSerial.available()) {
Serial.write(BTSerial.read());
}
}
Module Not Powering On:
No Data Transmission:
Unable to Pair with Bluetooth Device:
Incorrect Baud Rate:
Q: Can the HC-05 module be used with a 5V microcontroller?
Q: How do I change the baud rate of the HC-05?
AT+UART=115200,0,0
to set the baud rate to 115200.Q: What is the range of the HC-05 module?
Q: Can the HC-05 module be used for audio transmission?
This documentation provides a comprehensive guide to using the HC-05 Bluetooth module, ensuring both beginners and experienced users can effectively integrate it into their projects.