HC-05 6 Pin Wireless Serial Bluetooth Module is a Bluetooth module for use with any microcontroller. It uses the UART protocol to make it easy to send and receive data wirelessly.
The HC-06 module is a slave only device. This means that it can connect to most phones and computers with Bluetooth but it cannot connect to another slave-only device such as keyboards and other HC-06 modules. To connect with other slave devices a master module would be necessary such as the HC-05 version which can do both master and slave.
Applications:
Embedded Projects.
Industrial Applications.
Computer and Portable Devices.
GPS receiver.
Features:
Working current: matching for 30 mA, matching the communication for 8 mA.
Dormancy current: no dormancy.
Used for a GPS navigation system, water, and electricity gas meter reading system.
With the computer and Bluetooth adapter, PDA, seamless connection equipment.
Bluetooth module HC-08 Master and slave Two in one module.
Use the CSR mainstream Bluetooth chip, Bluetooth V2.0 protocol standards.
Potter default rate of 9600, the user can be set up.
Bluetooth protocol: Bluetooth Specification v2.0+EDR
Speed: Asynchronous: 2.1Mbps(Max) / 160 kbps, Synchronous: 1Mbps/1Mbps.
Security: Authentication and encryption.
Profiles: Bluetooth serial port.
Tutorials
Package Includes:
1 x HC-05 6pin Bluetooth Module with Button
Pin Connections Table 1
Board Sensor Pin Connection HC-05 VCC/GND/TX/RX 3.3-5V / GND / board RX pin / board TX pin (via divider)
HC-05 Bluetooth Module with 6 Pins and Integrated Button - Arduino Uno
HC-05 Bluetooth Module with 6 Pins and Integrated Button - Arduino Nano
HC-05 Bluetooth Module with 6 Pins and Integrated Button - Arduino Mega
HC-05 Bluetooth Module with 6 Pins and Integrated Button - ESP32
HC-05 Bluetooth Module with 6 Pins and Integrated Button - ESP8266
HC-05 Bluetooth Module with 6 Pins and Integrated Button - STM32
HC-05 Bluetooth Module with 6 Pins and Integrated Button - Raspberry Pi Pico
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // RX=2 , TX=3 on Arduino Uno (module TX -> board RX; module RX needs a voltage divider from 5V boards since the module is 3. 3V logic)
6 #include <SoftwareSerial.h>
7 SoftwareSerial LINK_SERIAL(2 , 3 );
8
9 void setup () {
10 Serial.begin (115200 );
11 LINK_SERIAL.begin(38400 ); // 38400 is HC-05 's default AT-mode/factory baud - many pre-paired modules run at 9600 , check yours
12 }
13
14 void loop () {
15 if (LINK_SERIAL.available()) Serial.write(LINK_SERIAL.read()); // data from the paired Bluetooth device -> USB serial
16 if (Serial.available()) LINK_SERIAL.write(Serial.read()); // USB serial -> Bluetooth device
17 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // RX=2 , TX=3 on Arduino Nano (module TX -> board RX; module RX needs a voltage divider from 5V boards since the module is 3. 3V logic)
6 #include <SoftwareSerial.h>
7 SoftwareSerial LINK_SERIAL(2 , 3 );
8
9 void setup () {
10 Serial.begin (115200 );
11 LINK_SERIAL.begin(38400 ); // 38400 is HC-05 's default AT-mode/factory baud - many pre-paired modules run at 9600 , check yours
12 }
13
14 void loop () {
15 if (LINK_SERIAL.available()) Serial.write(LINK_SERIAL.read()); // data from the paired Bluetooth device -> USB serial
16 if (Serial.available()) LINK_SERIAL.write(Serial.read()); // USB serial -> Bluetooth device
17 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // RX=19 , TX=18 on Arduino Mega (module TX -> board RX; module RX needs a voltage divider from 5V boards since the module is 3. 3V logic)
6 #define LINK_SERIAL Serial1
7
8 void setup () {
9 Serial.begin (115200 );
10 LINK_SERIAL.begin(38400 ); // 38400 is HC-05 's default AT-mode/factory baud - many pre-paired modules run at 9600 , check yours
11 }
12
13 void loop () {
14 if (LINK_SERIAL.available()) Serial.write(LINK_SERIAL.read()); // data from the paired Bluetooth device -> USB serial
15 if (Serial.available()) LINK_SERIAL.write(Serial.read()); // USB serial -> Bluetooth device
16 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // RX=16 , TX=17 on ESP32 (module TX -> board RX; module RX needs a voltage divider from 5V boards since the module is 3. 3V logic)
6 #define LINK_SERIAL Serial1
7
8 void setup () {
9 Serial.begin (115200 );
10 LINK_SERIAL.begin(38400 ); // 38400 is HC-05 's default AT-mode/factory baud - many pre-paired modules run at 9600 , check yours
11 }
12
13 void loop () {
14 if (LINK_SERIAL.available()) Serial.write(LINK_SERIAL.read()); // data from the paired Bluetooth device -> USB serial
15 if (Serial.available()) LINK_SERIAL.write(Serial.read()); // USB serial -> Bluetooth device
16 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // RX=D7, TX=D8 on ESP8266 (module TX -> board RX; module RX needs a voltage divider from 5V boards since the module is 3. 3V logic)
6 #include <SoftwareSerial.h>
7 SoftwareSerial LINK_SERIAL(D7, D8);
8
9 void setup () {
10 Serial.begin (115200 );
11 LINK_SERIAL.begin(38400 ); // 38400 is HC-05 's default AT-mode/factory baud - many pre-paired modules run at 9600 , check yours
12 }
13
14 void loop () {
15 if (LINK_SERIAL.available()) Serial.write(LINK_SERIAL.read()); // data from the paired Bluetooth device -> USB serial
16 if (Serial.available()) LINK_SERIAL.write(Serial.read()); // USB serial -> Bluetooth device
17 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // RX=PA10, TX=PA9 on STM32 (module TX -> board RX; module RX needs a voltage divider from 5V boards since the module is 3. 3V logic)
6 #define LINK_SERIAL Serial1
7
8 void setup () {
9 Serial.begin (115200 );
10 LINK_SERIAL.begin(38400 ); // 38400 is HC-05 's default AT-mode/factory baud - many pre-paired modules run at 9600 , check yours
11 }
12
13 void loop () {
14 if (LINK_SERIAL.available()) Serial.write(LINK_SERIAL.read()); // data from the paired Bluetooth device -> USB serial
15 if (Serial.available()) LINK_SERIAL.write(Serial.read()); // USB serial -> Bluetooth device
16 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // RX=1 , TX=0 on Raspberry Pi Pico (module TX -> board RX; module RX needs a voltage divider from 5V boards since the module is 3. 3V logic)
6 #define LINK_SERIAL Serial1
7
8 void setup () {
9 Serial.begin (115200 );
10 LINK_SERIAL.begin(38400 ); // 38400 is HC-05 's default AT-mode/factory baud - many pre-paired modules run at 9600 , check yours
11 }
12
13 void loop () {
14 if (LINK_SERIAL.available()) Serial.write(LINK_SERIAL.read()); // data from the paired Bluetooth device -> USB serial
15 if (Serial.available()) LINK_SERIAL.write(Serial.read()); // USB serial -> Bluetooth device
16 }
Project Notes: Classic Bluetooth (SPP) UART bridge module.