Board specifications:
HC-06 is a Bluetooth module designed for establishing short-range wireless connections up to 100 m between two microcontrollers. The serial Bluetooth module operates via the Bluetooth 2.0 communication protocol and can only act as a slave device. The communication speed can reach up to 2.1Mb/s
Serial communication and power supply are provided through the pin header located on the module board.
The pins have the following layout:

And the following functionality:
|
Pin |
Name |
Function |
|
1 |
Key |
High level – mode for accepting AT commands. Low level or floating - normal operation of the Bluetooth module |
|
2 |
VCC |
5V supply voltage |
|
3 |
GND |
Connection to ground |
|
4 |
TXD |
Data transmission pin (3.3V) |
|
5 |
RXD |
Data reception pin(3.3V) |
|
6 |
STATE |
Connected to an LED, indicates the status of the module |
Using the module:

The figure shows the connection of the HC-06 module to a microcontroller. If it is necessary to match the logic levels ( 5V and 3.3V logic), a voltage divider is used on the RXD pin as shown in the diagram. For successful operation with the wireless module, the following rules must be followed when creating code for the microcontroller:
· The baud rate must be BAUD RATE = 9600
· Since the HC-06 module is a slave module (Slave) , another communication module of type Master or a smartphone is required to search for the HC-06. The password for connecting to the HC-06 is “1234” and can be changed
Applications: