Bluetooth Sensor Module HC-05

Bluetooth Module HC-05 is used to communicate between Arduino and other devices. HC-05 is used for a transparent wireless serial connection setup. It is simple to use Bluetooth SPP (Serial Port Protocol) module.

HC-05 can be used in a Master or Slave configuration, making it a great solution for wireless communication.

This device is used to send data to Arduino and different types of devices for controlling things or communicate.

For example, Bluetooth Module is used in Home Automation using Arduino to control appliance using Bluetooth. You can see our article on Home Automation using Arduino and Bluetooth

This Bluetooth module is based on Bluetooth V2.0+EDR (Enhanced Data Rate) 3Mbps Modulation with a complete 2.4GHz radio transceiver and baseband.

The Bluetooth module HC-05 is a MASTER/SLAVE module. By default the factory setting is SLAVE. To change the role of the module (Master or Slave) can be configured only by AT COMMANDS.

Bluetooth hc-05

Bluetooth HC05 Pinout

HC-05 has 6 pins are STATE, RXD, TXD, GND, VCC, and EN.

Bluetooth hc-05 pinout

HC 05 Pin Configuration

This Bluetooth module has 6 pins whose description is are as follow:-

  1. Key/EN: If we want to bring Bluetooth module in command mode then we have to HIGH the enable pin. Otherwise, the Bluetooth module is in data mode by default. The HC-05 has a default baud rate in data mode is 9600bps and baud rate in command mode is 38400bps. The following are the two modes of the HC-05 module.
    • Data mode: For exchanging the data between two devices Data mode is used.
    • Command mode: To change the settings like password, name, etc of HC-05 modules we use command mode. In this mode, we send AT commands to HC-05 by serial monitor.
  2. VCC: To give power or current to the module, this pin will be connected to a 5V or 3.3V pin.
  3. GND: Ground pin.
  4. TXD: Transmit Serial data. It is used to wirelessly received data by the Bluetooth module transmitted out serially on the TXD pin.
  5. RXD: Receive data serially. When the Bluetooth module transmit data, RXD pin is used to receive that data.
  6. State: It tells whether the module is connected or not.

HC-05 Module Information

  • HC-05 has a red LED which indicates connection status, whether the Bluetooth is connected or not. Before connecting to the HC-05 module this red LED blinks continuously in a periodic manner. When it gets connected to any other Bluetooth device, its blinking slows down to two seconds.
  • This module works on 3.3 V. We can connect the 5V supply voltage as well since the module has on board 5 to 3.3 V regulator.
  • As the HC-05 Bluetooth module has a 3.3 V level for RX/TX and the microcontroller can detect 3.3 V level, so no need to shift the transmit level of the HC-05 module. But we need to shift the transmit voltage level from the microcontroller to RX of the HC-05 module.

Download HC05 Datasheet


HC-05 Technical Specifications

  • Typical ‐80dBm sensitivity.
  • Up to +4dBm RF transmit power.
  • Operating Voltage: 3.3V to 5 V.
  • Range: < 100m.
  • PIO (Programmable Input/Output) control.
  • UART interface with programmable baud rate.
  • With an integrated antenna.
  • With edge connector.
  • It can be easily interfaced with Arduino, Laptop, Mobile.

HC-05 Default Settings

  • Default Name: HC-05.
  • Default Pincode (Password): “1234”.
  • Default Mode: Data Mode.
  • The default baud rate for Slave Mode is 9600, data bits are 8, Stop bit is 1 and no parity.
  • By default, it auto-connect to the last paired device.
  • Permit the pairing device to connect as default.

AT Command Mode for Bluetooth HC 05

  • To change the setting of the HC-05 Bluetooth module like change password for connection, baud rate, Bluetooth device’s name, etc we use command mode.
  • To do this, HC-05 has AT commands.
  • To use the HC-05 Bluetooth module in AT command mode, connect the “Key/EN” pin to High (VCC).
  • In command mode the default baud rate of HC-05 is 38400bps.
  • The following are the AT commands generally used to change the setting of the Bluetooth module.
  • To send the commands, connect the HC-05 Bluetooth module to the PC via USB and transmit (write) these commands through the serial terminal (monitor) of PC.
DescriptionCommandCommand ExampleResponse
Checking communicationATOK
Change PasswordAT + PSWD = xxxxAT+PSWD=9876OK
Change Bluetooth Device NameAT + NAME = xxxxAT+NAME=MyBTOK
Change Baud rateAT + UART = Baud rate, stop bit, parity bitAT+UART=9600, 1, 0OK
Check version no. of Bluetooth moduleAT + VERSION?+Version: xx OK
Check default of setting done by the manufacturerAT+ORGLParameters: passkey, etc.

Some More Articles For You:

Scroll to Top