Description

Inner

We now sell NEW and OLD version plus COB NEW without module board for soldering directly onto your own PCBs.


The HC-05 and HC-06 are popular Bluetooth modules which can add two-way (full-duplex) wireless functionality to your Arduino and ESP32 projects.

You can use this module to communicate between two microcontrollers like Arduino or communicate with any device with Bluetooth functionality like a Phone or Laptop. There are many Android applications that are already available which makes this process a lot easier. The module communicates with the help of USART at 9600 baud rate hence it is easy to interface with any microcontroller that supports USART.

Note that these modules will not work with modern iPhones/iPads as those devices require BT Low Energy.


Applications

  • Wireless communication between two microcontrollers
  • Communicate with Laptop, Desktops and mobile phones
  • Data Logging application
  • Consumer applications
  • Wireless Robots
  • Home Automation
  • Hobby projects
  • Robotics
  • Mobile Phone Accessories


HC-05

  • Serial Bluetooth module for Arduino and other microcontrollers
  • Operating Voltage: 4V to 6V (Typically +5V)
  • Operating Current: 30mA
  • Range: <100m
  • Works with Serial communication (USART) and TTL compatible
  • Follows IEEE 802.15.1 standardized protocol
  • Uses Frequency-Hopping Spread spectrum (FHSS)
  • Can operate in Master, Slave or Master/Slave mode
  • Can be easily interfaced with Laptop or Mobile phones with Bluetooth


HC-06

  • Bluetooth protocol: Bluetooth V2.0 protocol standard
  • Power Level: Class2(+6dBm)
  • Band: 2.40GHz—2.48GHz, ISM Band  
  • Receiver sensitivity: -85dBm
  • USB protocol: USB v1.1/2.0
  • Modulation mode: Gauss frequency Shift Keying
  • Safety feature: Authentication and encryption
  • Operating voltage range:+3.3V to +6V
  • Operating temperature range: -20ºC to +55ºC
  • Operating Current: 40mA
  • Slave only!
  • Key and State pins not soldered

Pin

Name

Function

1

Key

The pin state determines whether the module works in AT command mode or normal mode

[High=AT commands receiving mode(Commands

response mode), Low or NC= Bluetooth module normally working]

2

Vcc

+5V Positive supply needs to be given to this pin for powering the module

3

Gnd

Connect to ground

4

TXD

Serial data is transmitted by module through this pin (at 9600bps by default), 3.3V logic

5

RXD

Serial data is received by module through this pin (at 9600bps by default),3.3V logic

6

State

The pin is connected to the LED on the board to represent the state of the module

 

NOTE, we do not have pinout or much details on the COB version yet. We are awaiting this info from the manufacturer.


How to get HC-05 NEW working in AT mode.

In this example, I have connected a HC-05 to an Arduino Nano. 

Use the sketch bellow to get started. Connecting 3.3v to the EN (enable) pin at BT boot will enable AT commands. You will need to keep EN high to send commands. You can also use the button to boot AT and send commands.

//  Sketch: basicSerialWithNL_001

// 

//  Uses hardware serial to talk to the host computer and software serial 

//  for communication with the Bluetooth module

//  Intended for Bluetooth devices that require line end characters "\r\n"

//

//  Pins

//  Arduino 5V out TO BT VCC 

//  Arduino 3.3V out TO BT EN (when you want to send AT commands)

//  Arduino GND to BT GND

//  Arduino D9 to BT RX through a voltage divider 

//  Arduino D8 BT TX (no need voltage divider)

//

//  When a command is entered in the serial monitor on the computer 

//  the Arduino will relay it to the bluetooth module and display the result.

//

 

 

#include <SoftwareSerial.h>

SoftwareSerial BTserial(8, 9); // RX | TX

 

const long baudRate = 38400; 

char c=' ';

boolean NL = true;

 

void setup() 

{

    Serial.begin(38400);

    Serial.print("Sketch:   ");   Serial.println(__FILE__);

    Serial.print("Uploaded: ");   Serial.println(__DATE__);

    Serial.println(" ");

 

    BTserial.begin(baudRate);  

    Serial.print("BTserial started at "); Serial.println(baudRate);

    Serial.println(" ");

}

 

void loop()

{

 

    // Read from the Bluetooth module and send to the Arduino Serial Monitor

    if (BTserial.available())

    {

        c = BTserial.read();

        Serial.write(c);

    }

 

 

    // Read from the Serial Monitor and send to the Bluetooth module

    if (Serial.available())

    {

        c = Serial.read();

        BTserial.write(c);   

 

        // Echo the user input to the main window. The ">" character indicates the user entered text.

        if (NL) { Serial.print(">");  NL = false; }

        Serial.write(c);

        if (c==10) { NL = true; }

    }

 

}


Once you have uploaded your sketch, open the serial monitor and set the new line to "Both NL & CR" and set baud rate to 38400.

You HC-05 should turn on and off every 2 seconds when in AT mode. Fast flash when ready to pair and slow flash when paired.

If you have booted the HC-05 with the button pressed or EN pin high, you should now be able to send AT commands and receive back status.

More info in this PDF https://bit.ly/HC05PDF