HC-05 Bluetooth serial module
Bluetooth 2.0 serial port (SPP) on its carrier board: a wireless serial cable to a phone. What the MCU sends to RXD shows in the phone's terminal app, what is typed there comes out of TXD (8N1, 9600 baud as delivered). 6-pin header: STATE (high while a phone is connected), RXD, TXD, GND, VCC (3.6-6 V), EN. Logic is 3.3 V: TXD goes straight to a 5 V board's RX, the board's 5 V TX reaches RXD through a divider (1 kΩ in series, 2 kΩ to ground). EN high at power-up: AT command mode at 38400 baud. In the simulation the phone is the part's Terminal tab.
Key data
- Category
- Modules
- Simulation model
- Behavioural mixed-signal model
- Manufacturer part number
- HC-05
- Reference prefix
- U
- Pins
- 6
- Land pattern
- PinHeader_1x06_P2.54mm_Vertical
Simulation model
A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.
- Model
- hc05
- Supply pins
- VCC / GND
Pins 6
| Pin | Name | Use |
|---|---|---|
| STATE | STATEOutput pin | Logic output: drives the next input; do not tie outputs together |
| RXD | RXDInput pin | Logic input: never leave open (tie unused inputs to VCC or GND) |
| TXD | TXDOutput pin | Logic output: drives the next input; do not tie outputs together |
| GND | GNDGround pin | Ground |
| VCC | VCCSupply pin | Supply input: decouple with 100 nF close to the pin |
| EN | ENInput pin · pulled down on the board | Logic input: never leave open (tie unused inputs to VCC or GND) |
Parameters 3
baudThe rate stored in the module: 9600 as delivered, changed with AT+UART in command mode. The sketch must use the same rate.
phoneconnected: a paired phone connects about a second after power-up; its terminal is the Terminal tab. none: nobody connects, STATE stays low and nothing is passed on.
sayLines the phone sends by itself after it has connected, separated by semicolons, one per second (for example F;L;S): a remote control that needs no typing. Empty: only what is typed in the Terminal tab.
PCB
PinHeader_1x06_P2.54mm_VerticalHC-05 Bluetooth module on a 6-pin 2.54 mm header (1 STATE, 2 RXD, 3 TXD, 4 GND, 5 VCC 3.6-6 V, 6 EN); keep copper and tall parts away from its antenna end