The HC-05 has 6 Pins.
Table 3.1 Pin description of HC06
Pin Description
Key to toggle between data mode and command mode, if set to high, it works as command mode, but default is data mode.
RXD Receive data serially (received data will be transmitted wirelessly by Bluetooth module).
TXD Transmit Serial data (wirelessly received data by Bluetooth module transmitted out serially on TXD pin)
VCC 5.0V
VCC 3.3V
GND
Ground
It can operate in two modes; the data mode and the command mode. In the data mode, data is transferred between wireless devices serially. While in the command mode, it uses AT Commands which are used to change settings of the HC-05[12]. …show more content…
AT+PSWD=4567 OK
AT+NAME=XXXX Set Bluetooth Device Name
e.g. AT+NAME=MyHC-05 OK
AT+UART=Baud rate, stop bit, parity bit Change Baud rate
e.g. AT+UART=9600,1,0 OK
AT+VERSION? Respond version no. of Bluetooth module +Version: XX OK
e.g. +Version: 2.0 20130107 OK
AT+ORGL Send detail of setting done by manufacturer Parameters: device type, module mode, serial parameter, passkey, etc.
The module works on 3.3V but has an internal regulator, hence 5V can be connected to the 5V pin and the module will work fine.
When not connected to a device, the Bluetooth module has an LED that keeps blinking at a fast rate, but when paired with a device, the LED blinks at a very slow rate.
Figure 3.2 Picture of HC-05 Bluetooth module
Before any transfer of data between the module and a device, the module must pair with the device and the module password must be provided. This module password can be changed when the module is in the command mode, using the AT Commands in Table