In this illustration we will going to wire the HC05 XBEE like Bluetooth Module, This Bluetooth module adapt the XBEE design compact communication, it has the pinout that compatible with the XBEE shields all kinds of microcontroller system, who uses 3.3v power out. This module uses AT command to set the baud rate. This module has integrates an onboard antenna that provides better signal quality transparent serial port which works with a variety of Bluetooth adapter and Bluetooth phones and pc. This module has been tested will all Bluetooth adapter on the market matching to use. Including laptops and mobile phones.

Bluetooth-Bee-Bluetooth-XBEE-HC05-Pinout-Diagram-Schematics

The HC03/05 is a compact Bluetooth Module, It uses CSR Bluetooth 04 External single chip Bluetooth System with CMOS technology and AFH (Adaptive Frequency Hopping). The HC02/05 module can be used with any host with an UART interface powered at 3.3v such as PIC, AVT, Arduino including Raspberry Pi, Bagel Bone any popular microcontroller and packet size open source pc.

This module has two modes of operation. AT Command mode to configure the Bluetooth control parameters and data communication mode to communication with other devices. The HC05 have 3 works roles a MASTER, SLAVE and LOOPBACK in data communication mode.

As the manufacturer release the item it is configured in transparent mode. So there is no command required for normal operation. The module is a replacement for wired serial connections, transparent usage. You can use it simply for serial port replacement to stablish connection between the MCU and GPS, PC to your embedded project and robotics, etc. Any serial stream from 9600 to 460800 bps can be passed seamlessly from your PC/PDA/MOBILE PHONES goes to your target devices.

The module also has two modes of operation namely AT command more and Data Communication Mode.
• AT command mode, you can configure in different control parameters which finally determine the working of the module. This mode you cannot communicate to other devices.
• The Data Communication Mode, you can drive this device as per the settings previously defined by the user in AT command mode and can communicate to other devices.

Device Specifications

• Speed: Asynchronous: 2.1Mbps(Max) / 160 kbps, Synchronous: 1Mbps/1Mbps
• Security: Authentication and encryption
• Typical -80dBm sensitivity
• Up to +4dBm RF transmit power
• Default Baud rate: 38400
• Data bits:8, Stop bit:1,Parity:No parity
• Supported baud rates: 9600, 19200, 38400, 57600, 115200, 230400 and 460800.
• Auto-connect to the last device on power as default.
• Auto-pairing PINCODE:”0000” as default
• Pairing PINCODE:”1234”as default

Led Indication / Status

• Power LED: When the module is powered, Blue LED will glow.
• Status LED: Indicates status of the module.
i. AT Mode (LED blinks once a second): When the module is powered and PIN34 (Key) is given high level, Status LED flickers slowly once a second. It indicates that the module is in AT mode, and the baud rate is 38400.
ii. Unpaired Mode (LED blinks two times a second): When the module is powered and PIN34 (Key) is given low level or floating, Status LED flickers quickly indicating that the module is in pair-able mode.
iii. Paired Mode (LED double flicker per second): Pairing is finished and module can communicate.
• Pair LED: Glows when connection is established with another Bluetooth module.

Software Required

Wiring Bluetooth Bee/XBEE Type Module with UART Bridge / Enabling AT-COMMAND

Bluetooth-Bee-Bluetooth-XBEE-HC05-Pinout-Diagram-Schematics-Programming-AT-Command

Wiring to Arduino Micro controller

The P-IO-11/Pin-19 & 20 KEY is for mode selection, by default the module is in AT COMMAND MODE and the default baud rate is 38400, on this mode you can change the Bluetooth Name, Baud Rate, Pass Key, and Master and Slave or Auto Connect Etc.

Bluetooth-Bee-Bluetooth-XBEE-HC05-Pinout-Diagram-Schematics-Programming-AT-Command-Arduino

Getting to AT Mode

Bluetooth-Bee-xbee-HC05-HC06-AT-Command-Proceddure-Illustration-GUide-0011

1. Open the key pin to give 3.3v to P-IO-11 / Connect the KEY Pin to 3.3v
2. Supply power to the module
3. Type AT Command from the CollTerm / Arduino IDE Serial Monitor at baud rate NL/CR – 38400
4. Reboot

Changing the device function

AT+ NAME? (Getting the name of the device)
AT+NAME=14CORE-BL-SLAVE (Naming for slave option)
AT+NAME=14CORE-BL-MASTER (Naming for master option)
Changing the device role
AT+ROLE=0 (To set as a slave option)
AT+ROLE=1 (To set as a master option)

Changing the password

The password by default is 12345. Confirm with AT+PSWD?

Connecting the two Bluetooth device
By connecting the device you should know the address to make it pair with another.
AT+ADDR?
Default address will show 14:2:11007
When using the address on AT command you should replace the color with a comma 14,2,110007
Reboot and remove the KEY connection which is connected to 3.3v

Getting Communication Mode

1. Short the key pin to give ground to P-IO-11
2. Supply power to the module

Sketch Test Code

Download Bluetooth Serial Instruction Manual | PDF
Download Bluetooth HC02/05 AT Command Manual | PDF

Wiring & Programming Bluetooth Bee / XBEE Module with AT Command Set
Facebooktwitterredditpinterestmail

JLCPCBPCBgogoPCBway4pcb

Leave a Reply

Your email address will not be published. Required fields are marked *