electroSome

HC-05 Serial Bluetooth Module

HC-05 Bluetooth Module

HC-05 Bluetooth Module

Bluetooth is a technology for wireless communication. It is designed to replace cable connections.It uses serial communication to communicate with devices. It communicates with microcontroller using serial port (USART). Usually, it connects small devices like mobile phones, PDAs and TVs using a short-range wireless connection to exchange documents. It uses the 2.45GHz frequency band. The connection can be point-to-point or multi-point where the maximum range is 10 meters. The transfer rate of the data is 1Mbps.

HC-05 Bluetooth module provides switching mode between master and slave mode which means it able to use neither receiving nor transmitting data.

Comparing it to the HC-06 module, which can only be set as a Slave, the HC-05 can be set as Master as well which enables making a communication between two separate Arduino Boards.

You can use Bluetooth module simply for a serial port replacement to establish connection between MCU, PC to your embedded project and etc.

HC-05 Specifications

Pin Description

It has 6 pins,
1.Key/EN:It is used to bring Bluetooth module in AT commands mode. By default this pin operates in data mode. Key/EN pin should be high to operate Bluetooth in command mode. The default baud rate of HC-05 in command mode is 38400bps and 9600 in data mode.HC-05 module has two modes,

HC-05 Bluetooth

2. VCC: Connect 5 V or 3.3 V to this Pin.

3. GND: Ground Pin of module.

4. TXD: Connect with Microcontroller RXD pin of Microcontroller. Transmit Serial data (wirelessly received data by Bluetooth module transmitted out serially on TXD pin)

5. RXD: Connect with Microcontroller TXD pin of Microcontroller. Received data will be transmitted wirelessly by Bluetooth module.

6. State: It tells whether module is connected or not. It acts as a status indicator.

Package Information

HC-05

HC-05 Bluetooth

Hardware

HC-05 Bluetooth Hardware

 

For HC-05 Bluetooth Hardware Package details you can refer the document which we have provided at the end of article.

HC- 05 vs HC-06

HC-05 HC-06
Master and slave mode can be switched Master and slave mode can’t be switched
Bluetooth name: HC-05 Bluetooth name: linvor
Password:1234 Password:1234
Master role: have no function to remember the last paired salve device. It can be made paired to any slave device. Master role: have paired memory to remember last slave device and only make pair with that device unless KEY (PIN26) is triggered by high level. The default connected PIN26 is low level.
 KEY: PIN34, for entering to the AT mode.  KEY: PIN26, for master abandons memory.
 Default communication baud rate: 9600,
4800-1.3M are settable.
 Default communication baud rate: 9600, 1200-1.3M are settable.
During the communication mode, by setting PIN34 to high the module can enter to the AT mode. During the communication mode, the module can’t enter to the AT mode.
Pairing: Master device can’t only make pair with the specified Bluetooth address, it can also search and make pair with
the slave device automatically.
 Pairing: Master device search and make pair with the slave device automatically.

Connecting HC-05 with Microcontroller

  1. Connect Power Supply(based on datasheet of modules) for Bluetooth and Microcontroller which you are using.
  2. Connect TXD pin of HC-05 Bluetooth module to RXD pin of Microcontroller.
  3. Connect RXD pin of HC-05 Bluetooth module to TXD pin of Microcontroller.
  4. Common grounding should be needed for both modules.

    Connection between HC-05 and MCU

Applications

Modes of Operation

1. How to get to the AT Mode

     a) Way 1:

    b) Way 2:

How to get to the communication mode

2. How to set this module be the Master Role

3. Notes

Download here