How to Use Bluetooth HC-05 with Arduino tutorial

To make Connectivity or Transmit and receive data in the microcontroller. we needed a module which is very easy to use and compatible with all microcontroller. Bluetooth Module HC-05 have all these features which we require to make connectivity with devices. now the question is how to use Bluetooth Module HC-05. so, don’t worry about that. we give you a tutorial on best electronic projects with hc-05  it is very easy to transmit and receive data in the Bluetooth Module.

Bluetooth Module HC-05 having two mode Master and slave mode. by default, it is in Slave mode and we have to change its configuration. we can make connectivity between two Bluetooth. one should be in master mode and other in slave mode. we discuss this in the next article.  in this article, we are going to explain how to connect Bluetooth module HC-05 with Arduino

Bluetooth Module HC-05 having some Configuration which is shown below. it has some hardware features as well as having some software features.

Bluetooth Module HC-05 pin diagram and description

Bluetooth Module HC-05 have 6 pins and 1 button(key) which is on the board. to enter the AT mode keep pressing that key at least for 10 seconds. Rx pin for data receives and Tx pin for Transmit the data. Gnd and Vcc for giving the power to our Bluetooth module. by using Bluetooth module HC-05 you can make Bluetooth controlled electronic projects like Bluetooth control home automation system 

Bluetooth Module HC-05 pin diagram and description



Detail about Bluetooth module HC-05

Hardware Features

 
Bluetooth Module sensitivity is about -80dBm and has transmit power up to +4dBm RF
 

it’s work on 3,3v to 5v.

Programmble input /output control

It has UART interface with programmable baud rate

you can see an integrated antenna on it.

Software Features

  • Slave default Baud rate: 9600, Data bits:8, Stop bit:1,Parity:No parity.
  • Auto‐connect to the last device on power as default.
  • Permit pairing device to connect as default.
  • pairing Password: ”1234″.
 
 
How to Use Bluetooth HC-05 with Arduino connection 
 
It is very easy to connect or interface Bluetooth module HC-05 with Arduino.
you have to need some jumper wires to connect the Bluetooth module to the Arduino.
 connect Bluetooth as shown in the figure.
interface Bluetooth module HC-05 with Arduino
  • Connect Bluetooth module Rx pin to the Tx pin of Arduino.
  • Connect Bluetooth module Tx pin to the Rx pin of Arduino.
  • Connect Bluetooth module Gnd pin to the Gnd pin of Arduino.
  • Connect Bluetooth module Vcc pin to the Vcc pin of Arduino.
 C Code for Bluetooth module HC-05 with Arduino 
 
char m=0;
 
void setup() {
  // put your setup code here, to run once:
 
Serial.begin(9600);
}
void loop() {
 if (Serial.available()>0)
 {
  m=Serial.read();
  Serial.Println(m);
  }
 

you can see the data on serial monitor received from the mobile phone upload

this code into your Arduino Uno.
To see the data in the serial monitor,  Follow these steps
  • Open Arduino IDE software
  • paste this code  into IDE
  • Upload this Code into your Arduino Uno
  • Open Serial monitor
  • Download Bluetooth Terminal in your mobile
Open Bluetooth Terminal app and connect to your Bluetooth device and send any character. you can find this character on your serial monitor.

One thought on “How to Use Bluetooth HC-05 with Arduino tutorial

  • April 19, 2019 at 3:03 pm
    Permalink

    I just could not depart your site before suggesting that I extremely enjoyed the standard info a person provide for your visitors? Is gonna be back often in order to check up on new posts

    Reply

Leave a Reply

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