

The HC-05 is a Bluetooth module that allows for wireless communication between devices. It operates using the Bluetooth 2.0 protocol and is designed for serial communication. The module is widely used in embedded systems and IoT applications to enable data transfer over short distances. Its ease of use and compatibility with microcontrollers like Arduino make it a popular choice for hobbyists and professionals alike.








The HC-05 module is a versatile and reliable Bluetooth device. Below are its key technical details:
The HC-05 module typically has 6 pins. Below is the pinout and description:
| Pin | Name | Description |
|---|---|---|
| 1 | EN/KEY | Enables AT command mode when HIGH. Used for configuration. |
| 2 | VCC | Power supply input (3.3V to 5V). |
| 3 | GND | Ground connection. |
| 4 | TXD | Transmit data pin. Sends serial data to the connected device. |
| 5 | RXD | Receive data pin. Receives serial data from the connected device. |
| 6 | STATE | Indicates the connection status (HIGH when connected, LOW when disconnected). |
1234 to pair.Below is an example of how to use the HC-05 with an Arduino UNO to send and receive data:
#include <SoftwareSerial.h>
// Create a SoftwareSerial object for communication with HC-05
SoftwareSerial BTSerial(10, 11); // RX, TX
void setup() {
Serial.begin(9600); // Start serial communication with the PC
BTSerial.begin(9600); // Start serial communication with HC-05
Serial.println("HC-05 Bluetooth Module Test");
Serial.println("Type something in the Serial Monitor to send to HC-05");
}
void loop() {
// Check if data is available from the PC
if (Serial.available()) {
char data = Serial.read(); // Read data from the PC
BTSerial.write(data); // Send data to HC-05
}
// Check if data is available from HC-05
if (BTSerial.available()) {
char data = BTSerial.read(); // Read data from HC-05
Serial.write(data); // Send data to the PC
}
}
HC-05 Not Pairing with Device:
1234) is entered correctly.No Data Transmission:
AT Commands Not Working:
Weak Signal or Connection Drops:
Can the HC-05 work with 5V logic?
How do I reset the HC-05 to factory settings?
AT+ORGL command to reset the module.Can the HC-05 act as both Master and Slave?
What is the difference between HC-05 and HC-06?
By following this documentation, you can effectively integrate the HC-05 Bluetooth module into your projects and troubleshoot common issues.