Electronics

Bluetooth HC-06 Wireless Transceiver Serial Module

AED 26.25

1

Description

The Bluetooth HC-06 Wireless Transceiver Serial Module is a compact, low-power, and affordable Bluetooth transceiver module that is commonly used in hobby and DIY electronics projects. It can be used to add Bluetooth connectivity to microcontroller boards, such as the Arduino, or to provide wireless communication between two microcontrollers.

Package Includes:

  • 1 x Bluetooth HC-06 Wireless Transceiver Serial Module

Features:

  • Serial communication: The module has a simple serial interface and supports baud rate adjustment from 9600 to 115200 bps.
  • Slave mode only: The module only supports slave mode and implements the classic Bluetooth SPP (Serial Port Profile).
  • AT command control: The module can be easily configured and controlled with AT commands.
  • Power supply: The module can be powered with a voltage range of 3.6V to 6V and has a low current consumption, making it ideal for battery-powered applications.
  • 4-pin design: The module has a compact 4-pin design and can be easily connected to microcontrollers or other electronic boards.
  • Affordable: The HC-06 module is an affordable solution for adding Bluetooth connectivity to your projects.

Description:

The Bluetooth HC-06 Wireless Transceiver Serial Module is a compact, low-power, and affordable Bluetooth transceiver module that is commonly used in hobby and DIY electronics projects. It can be used to add Bluetooth connectivity to microcontroller boards, such as the Arduino, or to provide wireless communication between two microcontrollers. The module has built-in firmware that implements the classic Bluetooth SPP (Serial Port Profile) and supports slave mode only. It can be easily configured and controlled with AT commands, and it supports baud rate adjustment from 9600 to 115200. The HC-06 module has a simple serial interface and requires only a few connections to the microcontroller. It can be powered with a voltage range of 3.6V to 6V and has a low current consumption, making it ideal for battery-powered applications.

Overall, the Bluetooth HC-06 Wireless Transceiver Serial Module is a cost-effective solution for adding Bluetooth connectivity to your projects and provides a simple and flexible way to implement wireless communication.

Principle of Work:

The Bluetooth HC-06 Wireless Transceiver Serial Module is based on Bluetooth technology, which is a wireless communication standard that allows devices to communicate with each other over short distances. The module contains a Bluetooth radio transceiver and a microcontroller that implements the Bluetooth protocol stack. The microcontroller handles the communication between the module and the host device (such as an Arduino) using a simple serial interface. The host device sends AT commands to the module to configure and control its operation, and the module sends and receives data over the Bluetooth connection. When the module is powered on, it goes into discovery mode and waits for a Bluetooth connection from a host device. Once a connection is established, the module operates as a slave device and communicates with the host device over the Bluetooth link. The Bluetooth HC-06 module only supports slave mode and implements the classic Bluetooth SPP (Serial Port Profile), which provides a simple serial communication channel between two devices. The module can be easily configured and controlled with AT commands and supports baud rate adjustment from 9600 to 115200 bps.

Pinout of the Module:

  • Vcc: This pin is the power supply pin for the module and typically should be connected to the +5V pin of the microcontroller board. It is recommended to use a regulated power supply as the module's power requirements can vary, depending on the status and operation of the module. A voltage range between 4.0V to 6.0V is acceptable for the module.
  • GND: This pin is the ground pin of the module and should be connected to the GND pin of the microcontroller board. This pin provides a reference voltage for the module and is used to complete the power supply circuit.
  • TXD: This pin is the transmit data pin of the module, which outputs the data from the module to the microcontroller. This pin should be connected to the RX pin of the microcontroller board, and the microcontroller will receive the data through this pin.
  • RXD: This pin is the receive data pin of the module, which inputs the data to the module from the microcontroller. This pin should be connected to the TX pin of the microcontroller board, and the module will receive the data through this pin.
  • It's important to note that the RX and TX pins are cross-connected, meaning that the RX pin on the microcontroller should be connected to the TX pin on the Bluetooth HC-06 module, and vice versa. This is because the module and the microcontroller communicate with each other using a serial protocol, and the RX and TX pins are used to send and receive data between the two devices.

Applications: 

  • Wireless communication between microcontrollers and computers: The module can be used to establish a wireless communication link between a microcontroller and a computer. The microcontroller can transmit data to the computer, and the computer can receive the data wirelessly using the Bluetooth HC-06 module.

  • Remote control systems: The module can be used in remote control systems to control devices wirelessly using a smartphone or tablet app.

  • Wireless sensor networks: The module can be used to establish a wireless communication link between sensors and a microcontroller. This can be used to build wireless sensor networks for various applications, such as environmental monitoring, security systems, and home automation.

  • Robotics: The module can be used to control robots wirelessly, allowing for the creation of wireless robots that can be controlled from a smartphone or tablet.

  • Other projects that require wireless communication: The Bluetooth HC-06 Wireless Transceiver Serial Module can be used in a wide range of projects that require wireless communication between two devices. This can include projects such as data logging systems, remote monitoring systems, and other projects that require wireless data transmission.

Circuit:

 

A basic circuit to control an LED using an Arduino and a Bluetooth HC-06 Wireless Transceiver Serial Module:

  1. Connect the LED anode (positive leg) to a digital pin on the Arduino (e.g. pin 13).
  2. Connect the LED cathode (negative leg) to a resistor (e.g. 220 ohms).
  3. Connect the other end of the resistor to the GND pin on the Arduino.
  4. Connect the TX pin on the HC-06 module to the RX pin on the Arduino.
  5. Connect the RX pin on the HC-06 module to the TX pin on the Arduino.
  6. Connect the VCC pin on the HC-06 module to the 3.3V pin on the Arduino.
  7. Connect the GND pin on the HC-06 module to the GND pin on the Arduino.

 

Library:

 No need to use a library to work with this module.

Code:  

This code waits for a character of '1' or '0' to be sent over the serial connection and turns the LED on or off accordingly. To control the LED, you can use a serial terminal app on your phone or computer and connect to the HC-06 module over Bluetooth.

void setup() {
  pinMode(13, OUTPUT); // Set digital pin 13 as an output
  Serial.begin(9600);  // Start serial communication at 9600 baud
}

void loop() {
  if (Serial.available() > 0) {
    char data = Serial.read();  // Read the incoming data
    if (data == '1') {
      digitalWrite(13, HIGH);  // Turn on the LED
    } else if (data == '0') {
      digitalWrite(13, LOW);   // Turn off the LED
    }
  }
}

 

The code sets up a digital output on pin 13 and starts a serial communication at a 9600 baud rate. In the main loop, the code waits for a character of '1' or '0' to be received over the serial connection. If a '1' is received, it turns the LED on by setting the digital output on pin 13 to high. If a '0' is received, it turns the LED off by setting the digital output on pin 13 to low. This code allows you to control the LED by sending '1' or '0' over the serial connection established by the Bluetooth HC-06 module.

Technical Details:

  • Bluetooth Version: The HC-06 module supports Bluetooth 2.0 specification and is compatible with most Bluetooth-enabled devices.
  • Operating Voltage: The HC-06 module operates on 3.3V DC and can be powered by the 3.3V pin on the Arduino board.
  • Serial Interface: The HC-06 module provides a serial communication interface with the RX (receive) and TX (transmit) pins, which can be connected to the RX and TX pins on the Arduino board. The module supports serial communication at 9600 baud by default, but the baud rate can be changed by sending AT commands over the serial connection.
  • Bluetooth Profile: The HC-06 module supports the Serial Port Profile (SPP), which allows the module to emulate a serial communication interface over Bluetooth. This enables the module to be used for wireless communication between two devices, such as an Arduino and a smartphone.
  • Pin Configuration: The HC-06 module has 4 pins - VCC (power), GND (ground), RX (receive), and TX (transmit). The VCC and GND pins are used to power the module, the RX and TX pins are used for serial communication.
  • Range: The HC-06 module has a maximum range of about 10 meters in open space, but this range can be reduced by obstacles such as walls. The range can also be affected by other Bluetooth devices operating in the same frequency range.

Resources:

Comparisons:

The HC-06 and HC-05 are both Bluetooth transceiver modules used for wireless communication. Here are some key differences between the HC-06 and HC-05 modules:

  1. Pin Configuration: The HC-06 has four pins - VCC, GND, RX, and TX. It only supports serial communication over Bluetooth and does not have additional pins for control or configuration. The HC-05 has six pins - VCC, GND, RX, TX, KEY, and STATE. It supports both serial communication and AT command control over Bluetooth and has additional pins for controlling the module state and indicating the module status.

  2. Master/Slave Role: The HC-06 is a slave-only module and can only be connected to a master device, such as an Android smartphone or another HC-05 module. The HC-05 can operate in either master or slave mode and can connect to other Bluetooth devices as either a master or a slave.

  3. Baud Rate: The HC-06 supports a baud rate of 9600 by default, but the baud rate can be changed by sending AT commands over the serial connection. The HC-05 supports a wider range of baud rates, from 2400 to 115200, and can be configured using AT commands.

  4. Power Consumption: The HC-06 has a low power consumption, making it suitable for battery-powered devices. The HC-05 has a slightly higher power consumption but is still relatively low compared to other Bluetooth modules.

you can say, the HC-06 is a simple and low-cost module for serial communication over Bluetooth, while the HC-05 is a more advanced module that supports both serial communication and AT command control, and can operate in both master and slave roles.