Yesterday we have learn some knowledge about the circuit of bluetooth which controlled by stm32, and today we will introduce the bluetooth module–hc05.
What is hc-05 bluetooth module
HC-05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for transparent wireless serial connection setup. Serial port Bluetooth module is fully qualified Bluetooth V2.0+EDR (Enhanced Data Rate) 3Mbps Modulation with complete 2.4GHz radio transceiver and baseband. It uses CSR Bluecore 04-External single chip Bluetooth system with CMOS technology and with AFH(Adaptive Frequency Hopping Feature). It has the footprint as small as 12.7mmx27mm. Hope it will simplify your overall design/development cycle.
HC-05 Wireless Bluetooth Serial Transceiver Module Slave and Master Serial Communication Arduino Description: HC-05 may be setted, mastered or slaved through the user. Hc-06 can only be mastered or slaved and can be customized. Wiring (only 4): RX RXD / TX TXD / GND GND / 5 V 5 V Package included: 1 x HC-05 Wireless Bluetooth Serial Transceiver Module
|Pin Number||Pin Name||Description|
|1||Enable / Key||This pin is used to toggle between Data Mode (set low) and AT command mode (set high). By default it is in Data mode|
|2||Vcc||Powers the module. Connect to +5V Supply voltage|
|3||Ground||Ground pin of module, connect to system ground.|
|4||TX – Transmitter||Transmits Serial Data. Everything received via Bluetooth will be given out by this pin as serial data.|
|5||RX – Receiver||Receive Serial Data. Every serial data given to this pin will be broadcasted via Bluetooth|
|6||State||The state pin is connected to on board LED, it can be used as a feedback to check if Bluetooth is working properly.|
|7||LED||Indicates the status of ModuleBlink once in 2 sec: Module has entered Command ModeRepeated Blinking: Waiting for connection in Data ModeBlink twice in 1 sec: Connection successful in Data Mode|
|8||Button||Used to control the Key/Enable pin to toggle between Data and command Mode|
HC-05 Technical Specifications
- Serial Bluetooth module for Arduino and other microcontrollers
- Operating Voltage: 4V to 6V (Typically +5V)
- Operating Current: 30mA
- Range: <100m
- Works with Serial communication (USART) and TTL compatible
- Follows IEEE 802.15.1 standardized protocol
- Uses Frequency-Hopping Spread spectrum (FHSS)
- Can operate in Master, Slave or Master/Slave mode
- Can be easily interfaced with Laptop or Mobile phones with Bluetooth
- Supported baud rate: 9600,19200,38400,57600,115200,230400,460800.
HC-05 Default Settings
- Default Bluetooth Name: “HC-05”
- Default Password: 1234 or 0000
- Default Communication: Slave
- Default Mode: Data Mode
- Data Mode Baud Rate: 9600, 8, N, 1
- Command Mode Baud Rate: 38400, 8, N, 1
- Default firmware: LINVOR
HC-05 Equivalent Bluetooth Module
HC-02, HC-04, HC-06, HM-11, ESP32, CSR8645
- Remote correspondence between two microcontrollers
- Speak with Laptop, Desktops and cell phones
- Information Logging application
- Shopper applications
- Remote Robots
- Home Automation
How to use HC-05 Bluetooth module
The HC-05 has two working modes, one is the Data mode wherein it can send and get information from other Bluetooth gadgets and the other is the AT Command mode where the default gadget settings can be changed. We can work the gadget in both of these two modes by utilizing the key stick as clarified in the stick portrayal.
It is extremely simple to match the HC-05 module with microcontrollers since it works utilizing the Serial Port Protocol (SPP). Essentially control the module with +5V and associate the Rx stick of the module to the Tx of MCU and Tx stick of module to Rx of MCU as appeared in the figure underneath.
During catalyst the key stick can be grounded to go into Command mode, whenever left free it will as a matter of course go into the information mode. When the module is fueled you ought to have the option to find the Bluetooth gadget as “HC-05” at that point interface with it utilizing the default secret key 1234 and start speaking with it.