HC-05 Bluetooth serial module with ESP32
Supply 5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| EN | Input (the ESP32 drives it) | D25 | KEY/EN: HIGH at power-up enters AT command mode. Leave unconnected normally |
| VCC | Power | VIN | Needs 3.6 to 6 V: use VIN |
| GND | Ground | GND | |
| TXD | Output (the part drives it) | D26 | UART: the part sends data here. Connect to an ESP32 RX pin (3.3 V level) |
| RXD | Input (the ESP32 drives it) | D27 | UART: the part receives data here. Connect to an ESP32 TX pin |
| STATE | Output (the part drives it) | D32 | HIGH when connected, optional |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
This module is sold for 5 V. Its outputs may be 5 V: use a level shifter or a voltage divider on ESP32 inputs.
Sources
- HC-05 Bluetooth module datasheet, Pins EN/KEY, VCC, GND, TXD, RXD, STATE; UART at 3.3 V levels
Try it in 3D in BoardPilot
Related parts
18650 Li-ion cell in holder28BYJ-48 stepper + ULN2003 driver433 MHz transmitter (FS1000A)74HC595 shift registerA4988 stepper driverActive buzzer
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.