deckle studio
Open the editor
Behavioural mixed-signal modelHC-05hc05

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.

STATERXDTXDGNDVCCENHC-05
Schematic symbol

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

PinNameUse
STATESTATEOutput pinLogic output: drives the next input; do not tie outputs together
RXDRXDInput pinLogic input: never leave open (tie unused inputs to VCC or GND)
TXDTXDOutput pinLogic output: drives the next input; do not tie outputs together
GNDGNDGround pinGround
VCCVCCSupply pinSupply input: decouple with 100 nF close to the pin
ENENInput pin · pulled down on the boardLogic input: never leave open (tie unused inputs to VCC or GND)

Parameters 3

Baud rate (data mode)baud
Default9600
48009600192003840057600115200

The rate stored in the module: 9600 as delivered, changed with AT+UART in command mode. The sketch must use the same rate.

Phonephone
Defaultconnected
connectednone

connected: 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.

Phone sendssay
Default–

Lines 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

Connector / off-boardPinHeader_1x06_P2.54mm_Vertical

HC-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