September 4, 2013: Featured on Hackaday. In this guide, I will explain how to use Arduino to change the settings of the ubiquitous HC-05 Bluetooth module using android terminal emulator commands pdf AT command set. The HC-05 comes with a rich set of AT commands to perform various tasks such as changing the module’s default settings including changing the pass code, the device name, and the baud rate. But the process of switching the HC-05 into AT command mode for first time users of the module is not straight forward and the docs takes short cuts.
The HC-05 Bluetooth module and its siblings are by far the most popular and inexpensive Bluetooth modules used for RF communications by microcontroller hackers. 10 on ebay and it’s easy to implement. I have published two guides based on the HC-05 Bluetooth module. The first guide explains how to use the HC-05 with the Arduino. In the process of using the HC-05 for a project, I ran into a situation where I needed to change the defaults for the module.
For example, the default baud rate on the HC-05 is 9600. The HC-05 can go as high as 1382400 baud rate according to the HC-05 reference. Also, the HC-05 has a default device name of HC-05. Having two or more of those devices in the same area can be confusing. You can use an AT command to change the device name. After spending some time searching the web I realized many people are having a hard time changing the default settings for the HC-05.
Switching the HC-05 from data transmission mode to configuration mode, to send AT commands to the HC-05, involves a few wiring and software acrobatics. Add to the mix all the variations of the HC Bluetooth module family and the various vendor settings and you get the picture. This guide only covers the HC-05 module with the breakout board. 3V system but the breakout board offers current limiting resistors for some protection. While it’s not advisable to keep the HC-05 connected to the 5V Arduino Uno pins, for this short exercise I decided to skip the voltage dividers which I use to drop 5V to 3. I advise you to use voltage dividers whenever you connect the HC-05 pins to 5V pins such as the Arduino Uno. If you skip the voltage divider, do so at your own risk.
It takes the AT commands you enter from the Arduino IDE Serial Monitor and sends those commands to the HC-05. The program then reads the output of the HC-05 and displays it on the Arduino IDE Serial Monitor. You can also use a terminal emulator such as Tera Term instead of the Arduino Serial Monitor. HIGH but in a certain order of events explained below. When the HC-05 enters the AT command mode, it will communicate at 38400 baud rate.