
This circuit consists of an Arduino UNO microcontroller connected to an HC-05 Bluetooth module. The Arduino provides power to the Bluetooth module and facilitates serial communication between the two devices, enabling wireless data transmission.

The HC-05 is a Bluetooth module designed and manufactured by Arduino to enable wireless communication between devices. It supports both master and slave modes, making it a versatile solution for a wide range of applications. The module is commonly used to connect microcontrollers, such as Arduino boards, to smartphones, computers, or other Bluetooth-enabled devices. Its ease of use and reliable performance make it a popular choice for wireless communication in IoT projects, robotics, and home automation systems.

This circuit consists of an Arduino UNO microcontroller connected to an HC-05 Bluetooth module. The Arduino provides power to the Bluetooth module and facilitates serial communication between the two devices, enabling wireless data transmission.

This circuit connects an HC-05 Bluetooth module to an Arduino UNO for wireless communication. The HC-05's VCC and GND are connected to the Arduino's 5V and GND, respectively, for power. The TXD pin of the HC-05 is connected to the Arduino's D1 (RX) pin, and the RXD pin of the HC-05 is connected through a voltage divider made of two resistors to the Arduino's D0 (TX) pin, allowing for serial communication between the two devices.

This circuit features an Arduino UNO microcontroller interfaced with an HC-05 Bluetooth module for wireless communication. It also includes two 5V two-channel relay modules, which are connected to the Arduino for controlling external devices. The setup allows for remote control of devices via Bluetooth.

This circuit connects an HC-05 Bluetooth Module to an Arduino UNO for wireless communication. The HC-05's VCC and GND are connected to the Arduino's 5V and GND for power. The HC-05's TXD and RXD pins are connected to the Arduino's D11 and D10 pins, respectively, allowing for serial communication between the two devices.
The HC-05 Bluetooth module is a compact and efficient device with the following key specifications:
| Parameter | Value |
|---|---|
| Bluetooth Version | 2.0 + EDR (Enhanced Data Rate) |
| Operating Voltage | 3.3V to 5V |
| Operating Current | 30mA (typical) |
| Communication Range | Up to 10 meters (unobstructed) |
| Baud Rate (Default) | 9600 bps |
| Modes | Master and Slave |
| Frequency Band | 2.4 GHz ISM band |
| Dimensions | 37.5mm x 15.2mm x 2.5mm |
The HC-05 module has six pins, as described in the table below:
| Pin Name | Description |
|---|---|
| VCC | Power supply pin (3.3V to 5V). Connect to the 5V pin of the Arduino. |
| GND | Ground pin. Connect to the GND pin of the Arduino. |
| TXD | Transmit data pin. Sends serial data to the connected microcontroller. |
| RXD | Receive data pin. Receives serial data from the connected microcontroller. |
| EN (Key) | Enable pin. Used to switch between command and data modes. |
| STATE | Indicates the connection status (HIGH when connected, LOW when disconnected). |
Wiring the HC-05 to an Arduino UNO:
VCC pin of the HC-05 to the 5V pin of the Arduino.GND pin of the HC-05 to the GND pin of the Arduino.TXD pin of the HC-05 to the RX pin of the Arduino (pin 0).RXD pin of the HC-05 to the TX pin of the Arduino (pin 1).EN pin to a digital pin on the Arduino for mode switching.Configuring the HC-05:
EN pin HIGH.Example Circuit Diagram:
Arduino UNO HC-05
------------------------------
5V -> VCC
GND -> GND
RX (Pin 0) -> TXD
TX (Pin 1) -> RXD
The following code demonstrates how to send and receive data using the HC-05 module:
#include <SoftwareSerial.h>
// Create a SoftwareSerial object to communicate with the HC-05
SoftwareSerial Bluetooth(10, 11); // RX = Pin 10, TX = Pin 11
void setup() {
// Initialize serial communication with the computer
Serial.begin(9600);
// Initialize serial communication with the HC-05
Bluetooth.begin(9600);
Serial.println("HC-05 Bluetooth Module Initialized");
Serial.println("You can now send and receive data.");
}
void loop() {
// Check if data is available from the HC-05
if (Bluetooth.available()) {
char received = Bluetooth.read(); // Read the incoming data
Serial.print("Received: ");
Serial.println(received); // Print the received data to the Serial Monitor
}
// Check if data is available from the Serial Monitor
if (Serial.available()) {
char toSend = Serial.read(); // Read the data from the Serial Monitor
Bluetooth.write(toSend); // Send the data to the HC-05
Serial.print("Sent: ");
Serial.println(toSend); // Print the sent data to the Serial Monitor
}
}
RXD pin if the microcontroller operates at 5V logic levels, as the HC-05 operates at 3.3V logic.TXD pin directly to a 5V microcontroller without proper interfacing.Issue: The HC-05 is not responding to AT commands.
EN pin is HIGH to enter AT command mode. Also, verify the baud rate is set to 38400 bps in AT mode.Issue: The module is not pairing with a Bluetooth device.
1234) is used.Issue: Data transmission is unreliable or slow.
Issue: The HC-05 is not powering on.
VCC pin is connected to a 3.3V or 5V power source. Check all connections for loose wires.Q: Can the HC-05 connect to multiple devices simultaneously?
A: No, the HC-05 can only connect to one device at a time.
Q: How do I reset the HC-05 to factory settings?
A: Enter AT command mode and send the AT+ORGL command to reset the module.
Q: What is the default name of the HC-05 module?
A: The default name is usually "HC-05," but it can be changed using AT commands.
Q: Can the HC-05 be used for audio transmission?
A: No, the HC-05 is designed for serial data communication and does not support audio transmission.