Toggle Nav

Interfacing BT06 Bluetooth Module with Arduino

Table of Contents

BT06 Bluetooth Serial Module Features

Bluetooth modules are a type of wireless communication modules that can be added to a project through serial or SPI communication protocols.

The advantage of using Bluetooth modules is that they are easy to set up and use.

The BT06 module uses serial protocol for communication.


All Bluetooth modules that use serial communication protocols, support AT Commands, which are listed in the datasheet of each product.

Download the datasheet of BT06 module here.

BT06 Bluetooth Serial Module Pinout

This module has 6 pins:

  • VIN: Module power supply – 3.6-6 V
  • GND: Ground
  • STATE: Connection State
  • EN: Enable AT Command settings
  • RX: Receive Serial Data
  • TX: Transmit Serial Data

You can see the pinout of this module here.

Required Material

Hardware component

Arduino UNO R3 × 1
BT06 Bluetooth Serial Wireless Data Transmission Module × 1
Male to Female jumper wire × 1

Software Apps

Arduino IDE

Interfacing BT06 Bluetooth Serial Module with Arduino

Step 1: Circuit

The following circuit shows how you should connect the Arduino to the BT06 module. Connect wires accordingly.

Step 2: Library

Install the following library on your Arduino IDE.


If you need more help with installing a library on Arduino, read this tutorial: How to Install an Arduino Library

Step 3: Code

Upload the following code to the Arduino board.

  Modified on March 09, 2021
  Modified by MohammedDamirchi from

#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX

void setup() {
  // Open serial communications and wait for port to open:
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only

  // set the data rate for the SoftwareSerial port

void loop() { // run over and over
  if (mySerial.available()) {
  if (Serial.available()) {

This code is to test the connection between the Arduino serial monitor and the device connected to the Bluetooth module.   

Liked What you see?

Get updates and learn from the best

More To Explore

Leave a Reply

Your email address will not be published. Required fields are marked *