Arduino Workshop
Working with HC-05 Bluetooth Module
Contents
● Overview
● Pinout
● Interfacing with Arduino
● Configuring with AT Commands
● LED state control
● LED brightness control
● Bluetooth controlled Bot
Overview
● The HC-05 is a Bluetooth-to-Serial-Bridge module that allows
wireless communications between two microcontrollers or
between a microcontroller and a smartphone, laptop, or
desktop PC with Bluetooth capability.
● It’s perfect for directly replacing a wired asynchronous serial
interface!
● Each of these modules contains a Bluetooth transceiver,
meaning they’re capable of both sending and receiving data.
● As a Class 2 Bluetooth device, the HC-05 has a nominal
range of 10 m. Of course, that is out in the open. Its range
gets a little weaker inside the house, especially because of
the walls.
Pinout
● STATE pin can be used to determine the current status of the
HC-05 module. The State pin is LOW when the module is not
paired and HIGH when it is.
● RXD pin receives serial data from the microcontroller. It should
be connected to the TX of the microcontroller.
● TXD pin sends serial data to the microcontroller. It should be
connected to the RX of the microcontroller.
● GND is the ground pin, common to any other device connected to
the module.
● VCC is where you connect the positive supply voltage. It should
range from 3.6V to 6V.
● EN pin is used to turn off the HC-05 by pulling it low.
Interfacing With Arduino
HC-05 Module Arduino
VCC 5V
GND GND
TXD A0
RXD A1
Configuring With AT Commands
● Disconnect the Vcc from Arduino board and
press the push button on Bluetooth Module.
● Connect the Vcc pin to Arduino by holding the
button simultaneously.
● The status LED will blink at 2 sec interval.
● Then open the serial monitor in Arduino IDE
software and set the baud rate to 9600 and
and set to NL and CR.
● Type the AT command: AT+NAME=<name>
● To check type: AT+NAME?
LED State Control
LED Brightness Control
Bluetooth
Controlled
Bot