2
Most read
5
Most read
7
Most read
INTERFACING BLUETOOTH WITH
ARDUINO
By Jairaj Jangle
HIGHLIGHTS OF HC-05 BLUETOOTH
MODULE
• 1.8 to 3.6V Input/Output.
• Uses Bluetooth SPP (Serial Port Protocol).
• Supports baud rate:
9600,19200,38400,57600,115200,230400,460800.
• UART interface with programmable baud rate.
• Range is approximately 10 Meters (30 feet).
• 2.4GHz radio transceiver and baseband.
MODIFY THE HC-05 BLUETOOTH MODULE
DEFAULTS USING AT COMMANDS:
WIRING
• HC-05 GND --- Arduino GND Pin.
• HC-05 VCC (5V) --- Arduino 5V.
• HC-05 TX --- Arduino Pin 10 (software RX).
• HC-05 RX --- Arduino Pin11 (software TX).
• HC-05 Key (PIN 34) --- Arduino Pin 9.
SCHEMATIC DIAGRAM
THE ARDUINO CODE FOR HC-05 COMMAND
MODE
• The Arduino program does two things.
1. It takes the AT commands you enter from the Arduino IDE
Serial Monitor and sends those commands to the HC-05.
2. The program then reads the output of the HC-05 and displays
it on the Arduino IDE Serial Monitor.
• The Arduino communicates with the HC-05 using the
SoftwareSerial ports while the Arduino communicates with the
user via the Serial Monitor.
STEPS TO SWITCH THE HC-05 INTO COMMAND
MODE
For the HC-05 module to switch to AT command mode, the HC-
05 pin 34 (Key pin) needs to pulled HIGH as explained below.
When the HC-05 enters the AT command mode, it will
communicate at 38400 baud rate.
In Arduino IDE Also change "no line ending " to "both NL & CR"
found just beside the baud rate.
FOLLOW THESE STEPS IN THE STATED
ORDER TO SWITCH TO THE HC-05 TO AT
COMMAND MODE.
1. Wire the HC-05 and Arduino Uno per instructions.
2. BEFORE YOU CONNECT THE ARDUINO TO THE USB remove the VCC (power)
red wire from the HC-05 so it's not getting any power from the Arduino. All
other wires are still connected.
3. Now connect the Arduino Uno to the USB cable extended from your PC.
4. Make sure the HC-05 module is NOT PAIRED with any other Bluetooth device.
5. Holding the push button on HC-05 re-connect the Arduino Uno 5V wire to
the HC-05's VCC (5V power) pin.
6. The HC-05 LED will blink on and off at about 2 second intervals. Now the
HC-05 is in AT command mode ready to accept commands to change
configuration and settings.
7. To test if everything is wired correctly, open the Serial Monitor from the
Arduino IDE and type "AT" and click SEND. You should see an "OK"
8. If you don't see an "OK" check your wiring.
HC-05 AT COMMANDS
• To return HC-05 to mfg. default settings: "AT+ORGL"
• To get version of your HC-05 enter: "AT+VERSION?"
• To change device name from the default HC-05 to let's say
MYBLUE enter: "AT+NAME=MYBLUE"
• To change default security code from 1234 to 2987 enter:
"AT+PSWD=2987"
• To change HC-05 baud rate from default 9600 to 115200, 1
stop bit, 0 parity enter: "AT+UART=115200,1,0"
SENDING AND RECEIVEING DATA THROUGH
BLUETOOTH
• Connect Rx of HC-05 to Tx of Arduino, and Tx of HC-05 to Rx
of Arduino
• Similar to the Serial monitor, we need to initialize the Serial to a
certain baud rate.
• First, Check the availability of Serial.
• Serial.read: to read data from device connected to the HC-05.
• Serial.print and Serial.write: to send data to a Bluetooth device
connected to the HC-05.

More Related Content

PDF
Arduino presentation
PPTX
Bluetooth based home automation using Arduino UNO
PPTX
Presentation on Raspberry pi
PPTX
Ardui no
PPT
ARDUINO AND ITS PIN CONFIGURATION
PDF
Arduino Workshop Day 1 - Basic Arduino
PDF
Arduino- Serial communication
PPTX
Proteus Circuit Simulation
Arduino presentation
Bluetooth based home automation using Arduino UNO
Presentation on Raspberry pi
Ardui no
ARDUINO AND ITS PIN CONFIGURATION
Arduino Workshop Day 1 - Basic Arduino
Arduino- Serial communication
Proteus Circuit Simulation

What's hot (20)

PPT
Arduino
PPTX
Arduino Workshop
PPTX
PPT ON Arduino
PDF
Home automation using bluetooth - Aurdino BASED
PDF
Arduino Workshop Day 2 - Advance Arduino & DIY
PDF
Digital logic families
PPTX
Ultrasonic sensor
PPTX
Programmable logic devices
PPTX
Introduction to Arduino Hardware and Programming
PPTX
Successive approximation adc
PPTX
ATMEGA 328
PDF
Low power vlsi design ppt
PPT
CMOS Logic Circuits
PDF
CMOS Topic 6 -_designing_combinational_logic_circuits
PDF
Unit III ARM Interface and ARM Programming
PPTX
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
PDF
Obstacle avoiding car project slide
PPTX
Basics of open source embedded development board (
PPTX
PDF
Arduino IDE
Arduino
Arduino Workshop
PPT ON Arduino
Home automation using bluetooth - Aurdino BASED
Arduino Workshop Day 2 - Advance Arduino & DIY
Digital logic families
Ultrasonic sensor
Programmable logic devices
Introduction to Arduino Hardware and Programming
Successive approximation adc
ATMEGA 328
Low power vlsi design ppt
CMOS Logic Circuits
CMOS Topic 6 -_designing_combinational_logic_circuits
Unit III ARM Interface and ARM Programming
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Obstacle avoiding car project slide
Basics of open source embedded development board (
Arduino IDE
Ad

Viewers also liked (11)

PPTX
PPT
Interfacing keypad
DOCX
Arduino lcd display
PPTX
Lcd with arduino uno
PPTX
Arduino uno lcd display 16x2
PPTX
Liquid Crystal Display (LCD)
PDF
Bluetooth Module
PDF
Bluetooth Module HC-06
PPT
Interfacing LCD with 8051 Microcontroller
PDF
LinkedIn SlideShare: Knowledge, Well-Presented
PPTX
Top 5 Deep Learning and AI Stories - October 6, 2017
Interfacing keypad
Arduino lcd display
Lcd with arduino uno
Arduino uno lcd display 16x2
Liquid Crystal Display (LCD)
Bluetooth Module
Bluetooth Module HC-06
Interfacing LCD with 8051 Microcontroller
LinkedIn SlideShare: Knowledge, Well-Presented
Top 5 Deep Learning and AI Stories - October 6, 2017
Ad

Similar to Interfacing bluetooth with arduino (20)

PPTX
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
PPTX
Bluetooth controled robot
PPTX
ARDUINO.pptx
DOCX
Arduino windows remote control
DOCX
project 3 full report
PDF
Lab2ppt
PDF
Arduino projects & tutorials
DOCX
Automatic irrigation system using Arduino
PPTX
Embedded system application
PPTX
Project(itv 205) smart restaurant menu ordering system using arduino
PDF
Pic bluetooth
PPTX
Group No.9x.pptx this ppt include information about trafo health monitoring
PPTX
Arduino Workshop (3).pptx
PDF
IRJET- Automated Elevator-An Attentive Elevator to Elevate using Speech Recog...
PPTX
Basics of open source embedded development board (
PDF
ARINC-429-DATA-MANAGEMENT-ENGINE
PDF
Arduino Based Bluetooth Operated Car Wiping Technique using Android Mobile Phone
PDF
IRJET - Robovac(Cleaning Robot)
PPTX
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
PDF
Arduino frequency counter
Obstacle detection Robot using Ultrasonic Sensor and Arduino UNO
Bluetooth controled robot
ARDUINO.pptx
Arduino windows remote control
project 3 full report
Lab2ppt
Arduino projects & tutorials
Automatic irrigation system using Arduino
Embedded system application
Project(itv 205) smart restaurant menu ordering system using arduino
Pic bluetooth
Group No.9x.pptx this ppt include information about trafo health monitoring
Arduino Workshop (3).pptx
IRJET- Automated Elevator-An Attentive Elevator to Elevate using Speech Recog...
Basics of open source embedded development board (
ARINC-429-DATA-MANAGEMENT-ENGINE
Arduino Based Bluetooth Operated Car Wiping Technique using Android Mobile Phone
IRJET - Robovac(Cleaning Robot)
AUTONOMOUS LPG GAS SENSOR BOT USING ARDUINO ppt
Arduino frequency counter

Recently uploaded (20)

PPTX
ACFE CERTIFICATION TRAINING ON LAW.pptx
PDF
Diabetes Mellitus , types , clinical picture, investigation and managment
PPTX
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
PDF
Review of Related Literature & Studies.pdf
PPTX
IT infrastructure and emerging technologies
PPTX
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
PDF
Physical pharmaceutics two in b pharmacy
PPTX
GW4 BioMed Candidate Support Webinar 2025
PDF
African Communication Research: A review
PPTX
Neurology of Systemic disease all systems
PPTX
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
PPTX
PAIN PATHWAY & MANAGEMENT OF ACUTE AND CHRONIC PAIN SPEAKER: Dr. Rajasekhar ...
PPTX
Power Point PR B.Inggris 12 Ed. 2019.pptx
PPTX
Cite It Right: A Compact Illustration of APA 7th Edition.pptx
PDF
English 2nd semesteNotesh biology biopsy results from the other day and I jus...
PDF
GSA-Past-Papers-2010-2024-2.pdf CSS examination
PDF
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
PPTX
Neurological complocations of systemic disease
PPTX
CHROMIUM & Glucose Tolerance Factor.pptx
PPTX
climate change of delhi impacts on climate and there effects
ACFE CERTIFICATION TRAINING ON LAW.pptx
Diabetes Mellitus , types , clinical picture, investigation and managment
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
Review of Related Literature & Studies.pdf
IT infrastructure and emerging technologies
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
Physical pharmaceutics two in b pharmacy
GW4 BioMed Candidate Support Webinar 2025
African Communication Research: A review
Neurology of Systemic disease all systems
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
PAIN PATHWAY & MANAGEMENT OF ACUTE AND CHRONIC PAIN SPEAKER: Dr. Rajasekhar ...
Power Point PR B.Inggris 12 Ed. 2019.pptx
Cite It Right: A Compact Illustration of APA 7th Edition.pptx
English 2nd semesteNotesh biology biopsy results from the other day and I jus...
GSA-Past-Papers-2010-2024-2.pdf CSS examination
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
Neurological complocations of systemic disease
CHROMIUM & Glucose Tolerance Factor.pptx
climate change of delhi impacts on climate and there effects

Interfacing bluetooth with arduino

  • 2. HIGHLIGHTS OF HC-05 BLUETOOTH MODULE • 1.8 to 3.6V Input/Output. • Uses Bluetooth SPP (Serial Port Protocol). • Supports baud rate: 9600,19200,38400,57600,115200,230400,460800. • UART interface with programmable baud rate. • Range is approximately 10 Meters (30 feet). • 2.4GHz radio transceiver and baseband.
  • 3. MODIFY THE HC-05 BLUETOOTH MODULE DEFAULTS USING AT COMMANDS: WIRING • HC-05 GND --- Arduino GND Pin. • HC-05 VCC (5V) --- Arduino 5V. • HC-05 TX --- Arduino Pin 10 (software RX). • HC-05 RX --- Arduino Pin11 (software TX). • HC-05 Key (PIN 34) --- Arduino Pin 9.
  • 5. THE ARDUINO CODE FOR HC-05 COMMAND MODE • The Arduino program does two things. 1. It takes the AT commands you enter from the Arduino IDE Serial Monitor and sends those commands to the HC-05. 2. The program then reads the output of the HC-05 and displays it on the Arduino IDE Serial Monitor. • The Arduino communicates with the HC-05 using the SoftwareSerial ports while the Arduino communicates with the user via the Serial Monitor.
  • 6. STEPS TO SWITCH THE HC-05 INTO COMMAND MODE For the HC-05 module to switch to AT command mode, the HC- 05 pin 34 (Key pin) needs to pulled HIGH as explained below. When the HC-05 enters the AT command mode, it will communicate at 38400 baud rate. In Arduino IDE Also change "no line ending " to "both NL & CR" found just beside the baud rate.
  • 7. FOLLOW THESE STEPS IN THE STATED ORDER TO SWITCH TO THE HC-05 TO AT COMMAND MODE. 1. Wire the HC-05 and Arduino Uno per instructions. 2. BEFORE YOU CONNECT THE ARDUINO TO THE USB remove the VCC (power) red wire from the HC-05 so it's not getting any power from the Arduino. All other wires are still connected. 3. Now connect the Arduino Uno to the USB cable extended from your PC. 4. Make sure the HC-05 module is NOT PAIRED with any other Bluetooth device. 5. Holding the push button on HC-05 re-connect the Arduino Uno 5V wire to the HC-05's VCC (5V power) pin. 6. The HC-05 LED will blink on and off at about 2 second intervals. Now the HC-05 is in AT command mode ready to accept commands to change configuration and settings. 7. To test if everything is wired correctly, open the Serial Monitor from the Arduino IDE and type "AT" and click SEND. You should see an "OK" 8. If you don't see an "OK" check your wiring.
  • 8. HC-05 AT COMMANDS • To return HC-05 to mfg. default settings: "AT+ORGL" • To get version of your HC-05 enter: "AT+VERSION?" • To change device name from the default HC-05 to let's say MYBLUE enter: "AT+NAME=MYBLUE" • To change default security code from 1234 to 2987 enter: "AT+PSWD=2987" • To change HC-05 baud rate from default 9600 to 115200, 1 stop bit, 0 parity enter: "AT+UART=115200,1,0"
  • 9. SENDING AND RECEIVEING DATA THROUGH BLUETOOTH • Connect Rx of HC-05 to Tx of Arduino, and Tx of HC-05 to Rx of Arduino • Similar to the Serial monitor, we need to initialize the Serial to a certain baud rate. • First, Check the availability of Serial. • Serial.read: to read data from device connected to the HC-05. • Serial.print and Serial.write: to send data to a Bluetooth device connected to the HC-05.