\u00a0Device Description\u00a0<\/span><\/h4>\n<\/p>\n
This module is based on the Cambridge Silicon Radio BC417 2.4 GHz BlueTooth Radio chip. This is a complex chip in fact which uses an external 8 Mbit flash memory. You can find more information in the associated datasheet. However, it’s fairly easy to set up and interface to any microcomputer system over the serial UART.\u00a0HC-05 can be set to be either a Master or a Slave.\u00a0<\/span>These small modules run on 3.3V power with 3.3V serial signal levels, They have no <\/b>pins and is usually soldered to a larger breakout board.<\/span><\/p>\nBreakout Boards<\/strong>\u00a0make these modules easy to use. HC-05 sub-modules are soldered on breakout boards to provide easier connectivity for users. Most of these boards support operation at 5V power and interface to 5V microcontroller signal levels with some techniques of level shifting. A typical “breakout” board is shown below.<\/span><\/p>\n<\/p>\n
\u00a0HC-05 Pin Out\u00a0<\/span><\/h4>\n<\/p>\n
<\/p>\n
\n\n\nPin<\/strong><\/span><\/td>\nName<\/strong><\/span><\/td>\nFunctionality<\/strong><\/span><\/td>\n<\/tr>\n\n1<\/strong><\/td>\nEnable\/Key<\/strong><\/td>\nThis pin is used to switch between the Data Mode (set low) and AT Command Mode (set high) Before powering-up the module. By default, it’s in Data mode.<\/span><\/td>\n<\/tr>\n\n2<\/strong><\/td>\nVcc<\/strong><\/td>\nPowers-up the module. Is connected to +5V Supply voltage<\/span><\/td>\n<\/tr>\n\n3<\/strong><\/td>\nGround<\/strong><\/td>\nGround pin of the module. Is connected to your system’s ground.<\/span><\/td>\n<\/tr>\n\n4<\/strong><\/td>\nTX<\/strong><\/td>\nTransmits Serial Data. Everything received via Bluetooth will be given out by this pin as serial data to your microcontroller UART receiver.<\/span><\/td>\n<\/tr>\n\n5<\/strong><\/td>\nRX<\/strong><\/td>\nReceive Serial Data. Every serial data given to this pin will be sent via Bluetooth.<\/span><\/td>\n<\/tr>\n\n6<\/strong><\/td>\nState<\/strong><\/td>\nThe state pin is connected to onboard LED, it can be used as a feedback to check if the Bluetooth is working properly.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n The Purpose Of The On-Board LED & Button is indicated as follows<\/span>:<\/p>\n1- The On-Board LED<\/strong><\/p>\nThe way in which this LED is blinking indicates the status of Module as shown below<\/span><\/p>\n\n- Blink once in 2 sec: Module has entered Command Mode<\/span><\/li>\n
- Repeated Blinking: Waiting for connection in Data Mode<\/span><\/li>\n
- Blink twice in 1 sec: Connection successful in Data Mode<\/span><\/li>\n<\/ul>\n
2- The On-Board Button<\/strong><\/p>\nIt’s used to control the Enable\/Key pin to switch between the Data and Command Mode.<\/span><\/p>\n\u00a0Technical Features\u00a0<\/span><\/h4>\nHere are some of the technical features for the HC-05 Bluetooth modules:<\/span><\/p>\n\n- Operating Voltage: 3.3V to 6V ( Typically +5V )<\/span><\/li>\n
- Operating Current: 30mA<\/span><\/li>\n
- Range: ~ 9m ( 30ft )<\/span><\/li>\n
- Works with Serial communication (USART) and TTL compatible<\/span><\/li>\n
- Follows IEEE 802.15.1 standardized protocol<\/span><\/li>\n
- Uses Frequency-Hopping Spread Spectrum ( FHSS )<\/span><\/li>\n
- Can operate in Master, Slave or Master\/Slave mode<\/span><\/li>\n
- Can be easily interfaced with PCs or Smartphones with a Bluetooth capability<\/span><\/li>\n
- Supported baud rate: 9600, 19200, 38400, 57600, 115200, 230400, 460800<\/span><\/li>\n<\/ul>\n
\u00a0Default Settings\u00a0<\/span><\/h4>\nThe typical default factory settings for a new Bluetooth HC-05 module are listed down below.<\/span><\/p>\n\n- Default Bluetooth Name: \u201cHC-05\u201d<\/span><\/li>\n
- Default Password: 1234 or 0000<\/span><\/li>\n
- Default Communication: Slave Device<\/span><\/li>\n
- Default Mode: Data Mode<\/span><\/li>\n
- Default Data Mode Baud Rate: 9600, 8, N, 1<\/span><\/li>\n
- Default Command Mode Baud Rate: 38400, 8, N, 1<\/span><\/li>\n
- Default firmware: LINVOR<\/span><\/li>\n<\/ul>\n
\u00a0Connection Diagram\u00a0<\/span><\/h4>\n <\/p>\n <\/p>\n The HC-05 sub-module works at a 3.3v logic level. And the breakout board that we’re using has an onboard voltage regulator, that’s why we can supply it with a 3.6 to 6v. However, the UART logic isn’t at the 5v level as you might have thought, it’s 3.3v in fact. Hence, the RX pin of the module is not 5v tolerant and the voltage level has to be at the 3.3v level. A typical microcontroller’s TTL-UART will be at the 5v level. <\/span><\/p>\nThat’s why we’re making a voltage divider with a couple of resistors as shown in the diagram above. On the other hand, the TX from the module can be considered an acceptable logic as 3.3v is considered a logic High even with a 5v TTL microcontroller, so it’s OK to use the TX line directly as is.<\/span><\/p>\n\u00a0Applications\u00a0<\/span><\/h4>\nBluetooth modules are being used in tons of applications each and every single day. Instead of listing down dozens of applications for the Bluetooth modules, I’ll list down some of the major domains under which most of the Bluetooth applications actually fall.<\/span><\/p>\n\n- Electronic Wearables<\/span><\/li>\n
- Home Automation and\/or Smart Homes<\/span><\/li>\n
- Robotics (Wireless Control \/ Monitoring)<\/span><\/li>\n
- Wireless communication between 2 MCUs<\/span><\/li>\n
- Controlling Embedded Systems with a PC or a Smartphone<\/span><\/li>\n<\/ul>\n
\u00a0Modes Of Operation\u00a0<\/span><\/h4>\nThe HC-05 Bluetooth Module has two different modes of operation:<\/span><\/p>\n\n- Data Mode<\/span><\/li>\n
- AT Command Mode<\/span><\/li>\n<\/ul>\n
The default mode is the Data Mode with the following default settings for communication.<\/span><\/p>\n\n- Device Name: HC-05<\/span><\/li>\n
- Password: 1234 or 0000<\/span><\/li>\n
- Baud Rate: 9600 bps, Data: 8 bits, Stop Bits: 1 bit, Parity: None, Handshake: None<\/span><\/li>\n<\/ul>\n
Data Mode<\/strong><\/p>\nIn Data Mode, the HC-05 Bluetooth module can be configured to operate in one of the following modes [ Master – Slave ]. Where it can transmit or receive data to\/from another Bluetooth module\/device.<\/span><\/p>\n | | | | | | | | | | | | | | | | | | | | |