banggood HC-05 User Manual

Best Bang For Your Buck
1

HC-05

1. Overview:
This module supports UART, USB, SPI, PCM, SPDIF and other interfaces, and supports SPP Bluetooth serial port protocol, which has the advantages of low cost, small size, low power consumption, high sensitivity of sending and receiving.
2. Feature
Bluetooth V2.0+EDR Bluetooth Class 2 Built-in PCB RF antenna Built-in 8Mbit Flash Support SPI programming interface Support UART, USB, SPI, PCM and other interfaces Support master and slave Support software control master-slave module
3.3V power supply Passed REACH, ROHS certification
3. Application areas:
Bluetooth car handsfree Bluetooth GPS Bluetooth PCMCIA, USB Dongle Bluetooth wireless data transmission; Industrial remote control, telemetry; POS system, wireless keyboard, mouse; Traffic, underground positioning, alarm; Automated data acquisition system; Wireless data transmission; banking system; Wireless data collection; Building automation, security, wireless monitoring of equipment room, access control system;
www.banggood.com
Best Bang For Your Buck
2
Operating Frequency Band
2.4GHz ISM band
Bluetooth Specification
V2.0+EDR
Output Power Class
Class 2
Operating Voltage
3.3V
Host Interface
USB 1.1/2.0 or UART
Audio Interface
PCM interface
Flash Memory Size
8Mbit
Dimension
27mm (L) x 13 (W) mm x 2mm (H)
Absolute Maximum Ratings
Rating
Min
Max
Storage temperature
-40℃+150
Supply voltage: VBAT
-0.4V
5.6V
Other terminal voltages
VSS-0.4V
VDD+0.4V
Operation Mode
Connection Type
UART Rate(kbps)
Average
Unit
Page scan-115.2
0.42
mA
ACL No traffic
Master
115.2
4.60
mA
ACL With file transfer
Master
115.2
10.3
mA
Recommended Operating Conditions
Operating Condition
Min
Max
Operating temperature range
-40
+150
Guaranteed RF performance range
(a)
-40
+150
Supply voltage: VBAT
2.2V
4.2V
(b)
Smart home, industrial control; Vehicle inspection equipment; Interactive program voting equipment for television stations; Government street lamp energy saving equipment Wireless LED display system Bluetooth joystick, Bluetooth gamepad Bluetooth printer Bluetooth remote control toy
4. Physical characteristics:
5. Electrical characteristics:
6. Power consumption:
www.banggood.com
3
ACL 1.28s sniff
Master
38.4
0.37
mA
ACL 1.28s sniff
Slave
38.4
0.42
mA
SCO HV3 30ms sniff
Master
38.4
19.8
mA
SCO HV3 30ms sniff
Slave
38.4
19.0
mA
Standby Host connection
-
38.4
40
µA
7. Functional block diagram:
Best Bang For Your Buck
8. Application circuit diagram:
www.banggood.com
Best Bang For Your Buck
4
PIN
NAME
TYPE
Function
1
UART-TX
CMOS output
Serial data output
2
UART-RX
CMOS input
Serial data input
3
UART-CTS
CMOS input
Serial port clear send
4
UART-RTS
CMOS output
Serial port request to send
5
PCM-CLK
Two way
PCM clock
6
PCM-OUT
CMOS output
PCM data output
7
PCM-IN
CMOS input
PCM data input
8
PCM-SYNC
Two way
PCM data synchronization
9
AIO(0)
Two way
Programmable analog input and output
10
AIO(1)
Two way
Programmable analog input and output
11
RESETB
CMOS input
Reset/reset button
12
3.3V
power input
+3.3V power supply
13
GND
Ground
Ground
14
NC
Output
NC (please hang)
15
USB-DN
Two way
USB data negative
9. Pin function description:
www.banggood.com
Best Bang For Your Buck
5
16
SPI-CSB
CMOS input
SPI chip select
17
SPI-MOSI
CMOS input
SPI data input
18
SPI-MISO
CMOS output
SPI data output
19
SPI-CLK
CMOS input
SPI clock port
20
USB-DP
Two way
USB data is positive
21
GND
Ground
Ground
22
GND
Ground
Ground
23
PIO(0)
Two way
Programmable input/output port (0)
24
PIO(1)
Two way
Programmable input/output port (1)
25
PIO(2)
Two way
Programmable input/output port (2)
26
PIO(3)
Two way
Programmable input/output port (3)
27
PIO(4)
Two way
Programmable input/output port (4)
28
PIO(5)
Two way
Programmable input/output port (5)
29
PIO(6)
Two way
Programmable input/output port (6)
30
PIO(7)
Two way
Programmable input/output port (7)
31
PIO(8)
Output
Status indicator LED port 1
32
PIO(9)
Output
Status indicator LED port 2
33
PIO(10)
Two way
Programmable input/output port (10)
34
PIO(11)
Input
Module state switching pin,
High level -> AT command responds to working
status;
Low level or floating -> Bluetooth normal working
status.
10. Dimensions:
www.banggood.com
Best Bang For Your Buck
6
11. Serial port module pin definition:
1. PIO(8) connects to the LED to indicate the working status of the module. The module flashes after power-on, and the different states flash differently.
2. PIO (9) is connected to the LED to indicate that the module is successfully connected. After the Bluetooth serial port is successfully connected, the LED is on.
3. PIO (11) module state switching pin, high level --> AT command response working state, low level or floating --> Bluetooth normal working state.
4. The reset circuit is already on the module and reset when the power is turned back on.
12. Steps to set the master mode:
1. PIO (11) is set high.
2. Upon power-on, the module enters the AT command response state.
3. HyperTerminal or other serial port tool, set baud rate 38400, data bit 8 bits, stop bit 1 bit, no parity bit, No flow control.
4. The serial port sends the character "AT+ROLE=1\r\n" and successfully returns "OK\r\n", where \r\n is a carriage return line feed.
5. PIO (11) is de-asserted, re-powered, the module is the main module, and the slave module is automatically searched to establish a connection.
13. LAYOUT considerations
www.banggood.com
Best Bang For Your Buck
7
1. BLK-MD-HC-05 Bluetooth module serial port level needs 3.3V, if you connect with 5V level system, you need to add level conversion chip.
2. Bluetooth signals are greatly affected by the surrounding, such as trees, metal, walls and other obstacles will absorb or shield the Bluetooth signal, so it is not recommended to install in the metal casing.
3. Since the metal will weaken the antenna function, it is recommended that when the module is given to the Lay board, the ground under the module antenna should not be laid and routed. It is best to hollow out.

AT instruction set

The BLK-MD-HC-05 embedded Bluetooth serial communication module has two working modes: command response working mode and automatic connection working mode. In the automatic connection working mode, the module can be divided into master, slave and loopback three working roles. When the module is in the automatic connection working mode, it will automatically transfer data according to the preset setting; when the module is in the command response working mode, it can execute all the AT commands described below, and the user can send various AT commands to the module as modules. Set control parameters or issue control commands. The dynamic conversion of the module's operating state can be achieved by controlling the input level of the module's external pin (PIO11).
The pin definition used by the serial port module:
1. PIO8 is connected to the LED to indicate the working status of the module. The module flashes after power-on, and the different states flash differently.
2. PIO9 is connected to the LED to indicate that the module is successfully connected. After the Bluetooth serial port is successfully connected, the LED is on.
3. PIO11 module status switching pin, high level --> AT command response working status, low level or floating --> Bluetooth routine State.
4. The reset circuit is already on the module and reset when the power is turned back on.
Steps to set up as the main module:
1. PIO11 is set high.
2. Upon power-on, the module enters the AT command response state.
3. HyperTerminal or other serial port tool, set baud rate 38400, data bit 8 bits, stop bit 1 bit, no parity bit, No flow control.
4. The serial port sends the character "AT+ROLE=1\r\n" and successfully returns "OK\r\n", where \r\n is a carriage return line feed.
www.banggood.com
Best Bang For Your Buck
8
Command
Response
Parameter
ATOK/
Command
Response
Parameter
AT+RESET
OK
/
Command
Response
Parameter
AT+VERSION?
+VERSION:<Param>
OK
Param: Software version
number
Command
Response
Parameter
AT+ORGL
OK
/
Command
Response
Parameter
AT+ADDR?
+ADDR:<Param>
OK
Param: Bluetooth address
5. PIO is set low, power is turned back on, the module is the main module, and the slave module is automatically searched to establish a connection.
Detailed instructions
(AT commands are not case sensitive and end with carriage return, newline characters: \r\n)
1. Test instructions:
2. Module reset (restart):
3. Obtain the software version number:
for example: At+version?\r\n +VERSION:2.0-20100601 OK
4. Restore default state:
Factory default state:
1. Equipment class: 0
2. Search code: 0x009e8b33
3. Module Job Role: Slave Mode
4. Connection mode: Specify the dedicated Bluetooth device connection mode
5. Serial Port Parameter: Baud Rate - 38400bits/s; Stop Bit: 1 bit; Check Digit: /
6. Pairing code: "1234"
7. Equipment name: "H-C-2010-06-01"
... ...
5. Get module Bluetooth address:
Bluetooth address representation method: NAP: UAP: LAP (hexadecimal) for example:
www.banggood.com
Loading...
+ 17 hidden pages