05������������,HC

Contents

1 HC-05 Specifications2 Pin Description3 Package Information3.1 HC-053.2 Hardware4 HC- 05 vs HC-065 Connecting HC-05 with Microcontroller6 Applications7 Modes of Operation8 Download here

Bluetooth is a technology for wireless communication. It is designed to replace cable connections.It uses serial communication to communicate with devices. It communicates with microcontroller using serial port (USART). Usually, it connects small devices like mobile phones, PDAs and TVs using a short-range wireless connection to exchange documents. It uses the 2.45GHz frequency band. The connection can be point-to-point or multi-point where the maximum range is 10 meters. The transfer rate of the data is 1Mbps.

HC-05 Bluetooth module provides switching mode between master and slave mode which means it able to use neither receiving nor transmitting data.

Comparing it to the HC-06 module, which can only be set as a Slave, the HC-05 can be set as Master as well which enables making a communication between two separate Arduino Boards.

You can use Bluetooth module simply for a serial port replacement to establish connection between MCU, PC to your embedded project and etc.

HC-05 SpecificationsBluetooth protocol: Bluetooth Specification v2.0+EDRFrequency: 2.4GHz ISM bandModulation: GFSK(Gaussian Frequency Shift Keying)Emission power: ≤4dBm, Class 2Sensitivity: ≤-84dBm at 0.1% BERSpeed: Asynchronous: 2.1Mbps(Max) / 160 kbps, Synchronous: 1Mbps/1MbpsSecurity: Authentication and encryptionProfiles: Bluetooth serial portPower supply: +3.3VDC 50mAWorking temperature: -20 ~ +75CentigradeDimension: 26.9mm x 13mm x 2.2 mmIt is IEEE 802.15.1 standardized protocol, through which one can build wireless Personal Area Network (PAN). It uses frequency-hopping spread spectrum (FHSS) radio technology to send data over air.Pin Description

It has 6 pins,1.Key/EN:It is used to bring Bluetooth module in AT commands mode. By default this pin operates in data mode. Key/EN pin should be high to operate Bluetooth in command mode. The default baud rate of HC-05 in command mode is 38400bps and 9600 in data mode.HC-05 module has two modes,

Data mode: Exchange of data between devices. Baud rate is 9600bps in data mode.Command mode: It uses AT commands which are used to change setting of HC-05. Baud rate is 38400bps in command mode.HC-05 BluetoothHC-05 Bluetooth

2. VCC: Connect 5 V or 3.3 V to this Pin.

3. GND: Ground Pin of module.

4. TXD: Connect with Microcontroller RXD pin of Microcontroller. Transmit Serial data (wirelessly received data by Bluetooth module transmitted out serially on TXD pin)

5. RXD: Connect with Microcontroller TXD pin of Microcontroller. Received data will be transmitted wirelessly by Bluetooth module.

6. State: It tells whether module is connected or not. It acts as a status indicator.

Package InformationHC-05HC-05 BluetoothHC-05 BluetoothHardwareHC-05 Bluetooth HardwareHC-05 Bluetooth Hardware

 

For HC-05 Bluetooth Hardware Package details you can refer the document which we have provided at the end of article.

HC- 05 vs HC-06HC-05HC-06Master and slave mode can be switchedMaster and slave mode can’t be switchedBluetooth name: HC-05Bluetooth name: linvorPassword:1234Password:1234Master role: have no function to remember the last paired salve device. It can be made paired to any slave device.Master role: have paired memory to remember last slave device and only make pair with that device unless KEY (PIN26) is triggered by high level. The default connected PIN26 is low level. KEY: PIN34, for entering to the AT mode. KEY: PIN26, for master abandons memory. Default communication baud rate: 9600,4800-1.3M are settable. Default communication baud rate: 9600, 1200-1.3M are settable.During the communication mode, by setting PIN34 to high the module can enter to the AT mode.During the communication mode, the module can’t enter to the AT mode.Pairing: Master device can’t only make pair with the specified Bluetooth address, it can also search and make pair withthe slave device automatically. Pairing: Master device search and make pair with the slave device automatically.Connecting HC-05 with MicrocontrollerConnect Power Supply(based on datasheet of modules) for Bluetooth and Microcontroller which you are using.Connect TXD pin of HC-05 Bluetooth module to RXD pin of Microcontroller.Connect RXD pin of HC-05 Bluetooth module to TXD pin of Microcontroller.Common grounding should be needed for both modules.

Connection between HC-05 and MCUConnection between HC-05 and MCU

ApplicationsComputer and peripheral devicesGPS receiverIndustrial controlMCU projectsModes of Operation

1. How to get to the AT Mode

     a) Way 1:

Step 1: Input low level to PIN34.Step 2: Supply power to the module.Step 3: Input high level to the PIN34. Then the module will enter to AT mode. The baud rate is as same as the communication time, such as 9600 etc.

    b) Way 2:

Step 1: Connect PIN34 to the power supply PIN.Step 2: Supply power to module (the PIN34 is also supplied with high level since the PIN34 is connected with power supply PIN). Then the module will enter to AT module. But at this time, the baud rate is 38400. In this way, user should change the baud rate at the AT mode, if they forget the communication baud rate.

How to get to the communication mode

Step 1: Input low level to PIN34.Step 2: Supply power to the module. Then the module will enter to communication mode. It can be used for pairing.

2. How to set this module be the Master Role

Step 1: Input high level to PIO11.Step 2: Supply power to the module. And the module will enter to the order-response work mode.Step 3: Set the parameters of the super terminal or the other serial tools (baud rate: 38400, data bit:8, stop bit:1, no parity bit, no Flow Control)Step 4: Sent the characters “AT+ROLE=1\r\n” through serial, then receive the characters “OK\r\n”. Here, “\r\n” is the CRLF.Step 5: Input low level to PIO, and supply power to the module again. Then this module will become master role and search the other module (slave role) automatically to build the connection.

3. Notes

HC-03 and HC-05’s command should end up with “\r\n”. It’s different from HC-04 and HC-06 (They don’t need terminator).The most common commands for HC-03 and HC-05 are: AT+ROLE (set master –slave), AT+CMODE( set address pairing) , AT+PSWD (set password). If you want the master module has the function of remembering slave module, the most simply way is: First, set AT+CMODE=1. Make the master module pair with the slave module. Second, set AT+CMODE=0. Then the master module just can make pair with that specified slave module.When PIN34 keeps high level, all commands can be used. Otherwise, only some of them can be used.Download hereBluetooth AT CommandsHC-05 Bluetooth Hardware Package Details
HC-05 Serial Bluetooth Module - Tutorial王牌对王牌 第5季-综艺-腾讯视频 - QQNeHe Productions: Lessons 01 - 05水利部国际合作与科技司[3月10日更新]《魔兽世界》“暗影国度”9.0.5内容更新说明 - WoW【MotoZ】报价_参数_图片_点评_ Moto Z,XT1650-05手机 ...人间_网易新闻CUDA on WSL | NVIDIA Developer海底吉他谱_一只榴莲_G调指法_弹唱六线谱_图片谱_易唱网Java编译时出现����,黑色菱形里面有问号,为什么?java.sql.SQLException: The server time zone value ‘�й���׼ʱ��‘ is unrecognized or ...Java.sql.SQLException: The server time zone value ‘й���׼ʱ��‘ is unrecognized or represents...FreeBSD 6 手��� MySQL5 (最佳化)(ZT)jdbc连接数据库报错:The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents ...mysql连接出错,报The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents ...使用JDBC连接MySql时出现:The server time zone value ‘�й���׼ʱ��‘ is unrecognized or ...Java 掉坑之The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents more than...mysql连接Java报java.sql.SQLException: The server time zone value ‘�й���׼ʱ��‘ is ...Mybatis运行项目时差错误: The server time zone value ‘�й���׼ʱ��‘ is unrecognized or......关于allure生成报告后无法自动打开的问题并报“‘allure‘ �����ڲ����ⲿ���Ҳ”关于sql异常The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represents more than...androidx.fragment.app.Fragment�޷�ת��Ϊandroid.app.Fragment fragmentTransaction.replace报错ADODB.Connection ���� ‘800a0e7a’ win7 IIS运行ASP常见问题及解决方法generate (default-cli) on project mall: The server time zone value ‘�й���׼ʱ��‘ is ...java?e7?a8??e9?a8ӿ【异常】springBoot连接数据库错误: The server time zone value ‘�й���׼ʱ��‘ is unrecognized...项目启动报错:java.sql.SQLException: The server time zone value ‘�й���׼ʱ��‘ is ...在使用springboot+jpa+mysql时出现The server time zone value ‘�й���׼ʱ��‘ is unrecognized ...解决error: cannot create �� Illegal byte sequenceInvalidConnectionAttributeException: The server time zone value '�й���׼ʱ��' is unrecog-...连接mysql报错java.sql.SQLException: The server time zone value ‘�й���׼ʱ��‘ is ...连接mysql数据库报错java.sql.SQLException: The server time zone value '�й���׼ʱ��' is ...vscode中文注释显示和输出乱码怎么解决��allure‘ �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���������ļ���flume采集出现com.alibaba.fastjson.JSONException: syntax error, pos 1, line 1, column 2��-�‘“node“‘ �����ڲ����ⲿ���Ҳ���ǿ����еij������������ļ��� ...java.sql.SQLException The server time zone value ‘�й���׼ʱ��‘....及数据库时间与本地时间不...