HC-05 Bluetooth Module
Serial Bluetooth module used in many educational UART projects.
What is the HC-05 Bluetooth Module and what is it used for?
Serial Bluetooth module used in many educational UART projects. Makers use it to control an Arduino from a phone.
Wireless serial interfaces
RF modules require power, antenna/interface matching and local wireless regulatory compliance.
Key specifications
| Wireless module spec | Value |
|---|---|
| Radio | Bluetooth 2.0 Classic, Serial Port Profile |
| Band | 2.4 GHz |
| Typical range | About 10 m |
| Interface | UART, 9600 baud default (38400 in AT mode) |
| Supply voltage | Module board 3.6 to 6 V |
| Logic level | 3.3 V: divide the board's TX before the module's RX |
Pinout
How to use it
Pairs with Android phones (PIN 1234 or 0000) for serial terminal apps. It does not work with iPhones, which need Bluetooth Low Energy.
#include <SoftwareSerial.h>
SoftwareSerial bt(10, 11); // RX, TX
void setup() { bt.begin(9600); }
void loop() { if (bt.available()) { char c = bt.read(); if (c == '1') digitalWrite(13, HIGH); if (c == '0') digitalWrite(13, LOW); } }Applications
Builds that use it
Bluetooth RC car
Bluetooth home automation with four relays
Bluetooth serial terminal control
Voice-controlled robot car
360° photo turntable
Tracked tank robot with RC control
Strandbeest walking robot
Wall-climbing robot with a suction fan
Alternatives
- ESP32 DevKit V1Built-in Bluetooth and BLE, works with iPhones
Common questions
What is the HC-05 Bluetooth Module used for?
In products: wireless serial interfaces. In maker projects: control an Arduino from a phone.
How does the HC-05 Bluetooth Module work?
RF modules require power, antenna/interface matching and local wireless regulatory compliance.
What voltage does the HC-05 Bluetooth Module need?
Module board 3.6 to 6 V.
How do I connect the HC-05 Bluetooth Module to an Arduino or ESP32?
UART, 9600 baud default (38400 in AT mode). Pins: VCC / GND (5 V on most breakout boards), TXD (To the board's RX), RXD (From the board's TX through a 1 kΩ / 2 kΩ divider), EN / KEY (Hold HIGH at power-up for AT commands), STATE (HIGH when connected).
What can I use instead of the HC-05 Bluetooth Module?
ESP32 DevKit V1.
