HC-05 6 Pin Wireless Bluetooth RF Transceiver Module Serial Arduino Master Slave
$7.40 Inc. GST
- Description
- Additional information
- Reviews (0)
Description
HC-05 Bluetooth Module: Empower Your Arduino and ESP32 Projects with Wireless Versatility
The HC-05 Bluetooth module stands as a trusted solution to enhance your Arduino and ESP32 projects with two-way (full-duplex) wireless functionality.
Seamless Communication: This module serves as a versatile bridge, enabling communication between microcontrollers like Arduino and a broad range of Bluetooth-equipped devices, including smartphones and laptops. With a plethora of readily available Android applications, this process becomes exceptionally user-friendly. The module employs USART at a 9600 baud rate, simplifying integration with any USART-supporting microcontroller.
Important Note: Keep in mind that these modules are not compatible with modern iPhones and iPads, as these devices rely on Bluetooth Low Energy (BLE) technology.
Applications Know No Bounds: Unlock the potential of the HC-05 Bluetooth module across various applications:
- Wireless Communication: Establish seamless connections between two microcontrollers.
- Cross-Device Connectivity: Communicate effortlessly with laptops, desktops, and mobile phones.
- Data Logging: Craft efficient data logging applications.
- Consumer Electronics: Elevate consumer-focused applications.
- Robotics Unleashed: Enable wireless capabilities for robotics projects.
- Home Automation: Simplify and enhance home automation ventures.
- DIY Enthusiasts: Fuel your creativity with hobby projects.
- Innovative Accessories: Design cutting-edge mobile phone accessories.
HC-05 Key Features:
- A serial Bluetooth module tailored for Arduino and other microcontrollers.
- Operating Voltage: Typically 4V to 6V (+5V).
- Low Operating Current: Only 30mA.
- Impressive Range: Up to <100m.
- Compatibility with Serial Communication (USART) and TTL standards.
- Adheres to the IEEE 802.15.1 standardized protocol.
- Utilizes Frequency-Hopping Spread Spectrum (FHSS) technology.
- Versatile Operating Modes: Master, Slave, or Master/Slave.
- Easy Integration: Seamlessly interfaces with laptops and mobile phones via Bluetooth.
Pin | Name | Function |
1 | Key | The pin state determines whether the module works in AT command mode or normal mode
[High=AT commands receiving mode(Commands response mode), Low or NC= Bluetooth module normally working] |
2 | Vcc | +5V Positive supply needs to be given to this pin for powering the module |
3 | Gnd | Connect to ground |
4 | TXD | Serial data is transmitted by module through this pin (at 9600bps by default), 3.3V logic |
5 | RXD | Serial data is received by module through this pin (at 9600bps by default),3.3V logic |
6 | State | The pin is connected to the LED on the board to represent the state of the module |
Getting Started with HC-05 in AT Mode: Here’s a simple guide to kickstart your HC-05 in AT mode. Connect an HC-05 module to an Arduino Nano and follow these steps:
- Provide 3.3V to the EN (enable) pin during BT boot to enable AT commands.
- Maintain the EN pin high to send commands.
- Alternatively, use the onboard button to initiate AT mode and issue commands.
Sample Sketch:
//ย Sketch: basicSerialWithNL_001
//ย
//ย Uses hardware serial to talk to the host computer and software serialย
//ย for communication with the Bluetooth module
//ย Intended for Bluetooth devices that require line end characters “rn”
//
//ย Pins
//ย Arduino 5V out TO BT VCCย
//ย ย Arduino 3.3V out TO BT EN (when you want to send AT commands)
//ย Arduino GND to BT GND
//ย Arduino D9 to BT RX through a voltage dividerย
//ย Arduino D8 BT TX (no need voltage divider)
//
//ย When a command is entered in the serial monitor on the computerย
//ย the Arduino will relay it to the bluetooth module and display the result.
//
ย
ย
#include <SoftwareSerial.h>
SoftwareSerial BTserial(8, 9); // RX | TX
ย
const long baudRate = 38400;ย
char c=’ ‘;
boolean NL = true;
ย
void setup()ย
{
ย ย Serial.begin(38400);
ย ย Serial.print(“Sketch:ย ย “);ย ย Serial.println(__FILE__);
ย ย Serial.print(“Uploaded: “);ย ย Serial.println(__DATE__);
ย ย Serial.println(” “);
ย
ย ย BTserial.begin(baudRate);ย ย
ย ย Serial.print(“BTserial started at “); Serial.println(baudRate);
ย ย Serial.println(” “);
}
ย
void loop()
{
ย
ย ย // Read from the Bluetooth module and send to the Arduino Serial Monitor
ย ย if (BTserial.available())
ย ย {
ย ย ย ย c = BTserial.read();
ย ย ย ย Serial.write(c);
ย ย }
ย
ย
ย ย // Read from the Serial Monitor and send to the Bluetooth module
ย ย if (Serial.available())
ย ย {
ย ย ย ย c = Serial.read();
ย ย ย ย BTserial.write(c);ย ย
ย
ย ย ย ย // Echo the user input to the main window. The “>” character indicates the user entered text.
ย ย ย ย if (NL) { Serial.print(“>”);ย NL = false; }
ย ย ย ย Serial.write(c);
ย ย ย ย if (c==10) { NL = true; }
ย ย }
ย
}
You HC-05 should turn on and off every 2 seconds when in AT mode. Fast flash when ready to pair and slow flash when paired.
If you have booted the HC-05 with the button pressed or EN pin high, you should now be able to send AT commands and receive back status.
Unleash the power of wireless communication in your projects with the HC-05 Bluetooth module. Simplify complex connections and explore new possibilities in Arduino and ESP32 development.
Additional information
Weight | 20 g |
---|---|
Dimensions | 260 × 160 × 20 mm |
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.