Skip to content

How to Configure Hc 5 Bluetooth Module

Last Updated on September 18, 2022 by Climent Rick

This guide will show you how to configure the HC-05 Bluetooth module. You will need a computer with a USB port and a mini USB cable. The HC-05 module can be configured as either a master or slave device.

In this guide, we will be configuring the module as a slave device.

  • Entering AT mode: To enter AT mode, connect the HC-05 module to your computer while holding down the button marked “KEY”
  • Testing basic AT commands: With the module still in AT mode, type “AT” into the Arduino Serial Monitor and hit send
  • If everything is working properly, you should see an “OK” response
  • Changing the name of the device: To change the name of your device, type in “AT+NAME=YourNewName” with YourNewName replaced by whatever you want the new name to be
  • Again, hit send and check for an OK response
  • Changing the baud rate: The baud rate can be changed by typing in “AT+BAUDx” with x replaced by 1-8 corresponding to different baud rates (1200,2400,4800,9600 etc
  • As always, don’t forget to hit send and check for an OK response

How to Configure Hc-05 Bluetooth Module

In this post, we’ll be covering how to configure an HC-05 Bluetooth module. This is a common and affordable module that is used for adding Bluetooth capabilities to projects. The process of configuring the module is relatively simple and only requires a few steps.

Let’s get started! The first thing you’ll need to do is put the HC-05 into configuration mode. To do this, press and hold the button on the module for 3 seconds.

The LED will start flashing rapidly, indicating that it’s in configuration mode. Next, you’ll need to connect the module to your computer using a serial port connection (USB-to-serial converter if your computer doesn’t have a native serial port). Once it’s connected, open up a terminal program like PuTTY or HyperTerminal and connect to the serial port at 9600 baud.

Now that you’re connected, issue the following commands: 1) AT+ROLE=0 – This sets the role of the device to slave 2) AT+PSWD=1234 – This sets the password/pin code that will be used when pairing

3) AT+UART=38400,1,0 – This sets the UART speed, parity, and stop bits 4) AT+CMODE=1 – This sets inquiry scan mode 5) AT+INQM=0x03,48000 – This starts an inquiry scan with RSSI enabled

After issuing these commands, you should see a list of nearbyBluetooth devices along with their addresses and signal strength indicators (RSSI). If you don’t see any devices listed or if they are listed but have 0 RSSI then try moving closer to them or restarting your inquiry scan. Now that we have a list of devices ,we can choose which one we want to pair with by issuing the command: 6) AT+PAIR=xx:xx:xx:xx:xx:xx ,where xx:xx:xx… is replaced bythe address ofthe device we wanttopairwith .

If successful ,you shouldsee something like “Pairing OK” followed by “Connection Success”. At this point you can exit configuration mode by pressingthebutton onthemodulefor 3seconds .YourHC-05is nowpairedand readyfor use !

How to Reset Hc-05 Bluetooth Module

If your HC-05 Bluetooth module isn’t working properly, you may need to reset it. Here’s how: 1. Power off the module by removing the power supply.

2. Press and hold the “reset” button on the module while you re-apply power. Continue to hold the button for about 5 seconds after power is applied. 3. The module should now be reset and ready to use.

Hc-05 Bluetooth Module Datasheet

The HC-05 Bluetooth Module is a small, low cost device that allows for wireless communication between two devices. The module can be used in a variety of applications, such as data transfer, remote control, and wireless printing. The module is based on the Bluetooth 4.0 specification and is compatible with both iOS and Android devices.

The HC-05 Bluetooth Module has a maximum range of 10 meters (33 feet) and a data rate of 2Mbps.

Hc-05 at Commands

An HC-05 is a Bluetooth module that can be used in a variety of applications where wireless communication is needed. The module can be configured to work with various devices and protocols, and offers a number of AT commands that can be used to control its operation. In this blog post, we’ll take a look at what HC-05 AT commands are available and how they can be used to configure the module for your needs.

AT commands are sent to the HC-05 module via a serial connection, and most modules have a set of default AT commands that can be used to test basic functionality. The full list of AT commands for the HC-05 module can be found in the datasheet, but we’ll go over some of the most commonly used ones here. To start, the “AT” command is used to test whether the module is responding properly.

If you send this command and receive an “OK” response back, then you know the module is working correctly. Other useful tests include the “AT+VERSION” command, which will return the firmware version number, and the “AT+ADDR” command, which will return the Bluetooth address of the device. Once you’ve verified that your module is working properly, you can begin configuring it using AT commands.

One important setting is the baud rate, which determines how fast data can be transmitted between the device and HC-05 module. The default baud rate for most modules is 9600bps, but it can be changed using the “AT+UART” command. For example, to change the baud rate to 115200bps, you would use t he following command: AT+UART=115200 .

Other common settings that can be configured using AT commands include th e name of th e device (useful if there are multipleHC – 05 modules in range), t he passcode required for pairing ,and t he role o f t he device (master or slave). Refer to t he datasheet fo r more information on all o f t he available settings . Once your HC – 05 m odule i s c onfigured p roperly , y ou c an u se i t w ith v irtually any d evice or p rotocol tha t s up ports B luetooth w ireless c om munication .

How to Pair Hc-05 Bluetooth Module

If you’re looking to pair your HC-05 Bluetooth module with another device, there are a few things you’ll need to do first. In this blog post, we’ll walk you through the process of pairing an HC-05 module with another Bluetooth device step-by-step. First, you’ll need to put your HC-05 into pairing mode.

To do this, press and hold the button on your HC-05 for 3 seconds. The LED on the module should start blinking quickly, indicating that it’s in pairing mode. Next, you’ll need to put the other Bluetooth device into discovery mode so that it can find the HC-05 module.

How you do this will vary depending on the device, but typically it involves going into its Bluetooth settings and enabling discovery mode. Once both devices are in discovery mode, they should be able to find each other and connect automatically. If they don’t connect automatically, you may need to enter a PIN code on one or both devices.

The default PIN code for the HC-05 is 1234.

How to Configure Hc 5 Bluetooth Module
How to Configure Hc 5 Bluetooth Module 2

Credit: www.youtube.com

How Do I Program My Hc-05 Bluetooth Module?

In order to program your HC-05 Bluetooth module, you will need to first download the Arduino IDE software. Once this is installed on your computer, open the Arduino IDE and go to File > Preferences. In the preferences window, scroll down to the bottom and find the “Additional Board Manager URLs” text box.

Paste in the following URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json Click “OK” to close the preferences window.

Now go to Tools > Board > Boards Manager… In the Boards Manager window, type “ESP8266” into the search box and press Enter. Install the latest version of the ESP8266 platform by clicking on it and then selecting “Install”.

Once that has finished installing, go to Tools > Port and select the port that your HC-05 Bluetooth module is connected to. Finally, go to Tools > Programmer > AVRISP mkII and hit burn bootloader. This will put your module into programming mode so that you can upload code to it.

Now you are ready to start writing code for your HC-05 Bluetooth module!

How Do You Configure And Pair Two Hc-05 Bluetooth Modules?

If you have ever worked with Bluetooth devices, then you know that they can be a bit finicky. The process of configuring and pairing two HC-05 Bluetooth modules is no different. In this blog post, we will walk you through the steps necessary to get your modules up and running.

The first step is to put your HC-05 module into configuration mode. To do this, press and hold the button on the module for 3 seconds. The LED on the module should start blinking rapidly.

If it does not, try pressing and holding the button for 5 seconds. Once the module is in configuration mode, open up the Arduino IDE and go to Tools > Serial Monitor. In the serial monitor, type in “AT” (without quotes) and hit enter.

You should see “OK” come back from the module. If you do not see “OK”, make sure that your baud rate is set to 9600 in the serial monitor window. Now that we have confirmed that we are able to communicate with our HC-05 module, we can start configuring it.

The first thing we want to do is change its name so that it is easier to identify when paired with other devices. To do this, type in “AT+NAME=HC-05” (without quotes) in the serial monitor and hit enter. You should see “OKsetname” come back from the module indicating that it has successfully changed its name.

If you want to check what name your module currently has, you can type in “AT+NAME?” (without quotes) which will return the current name of your device followed by an “OK”. We can also use AT commands to change other settings on our device such as its baud rate or passcode protection features but we won’t be covering those here. For more information on AT commands for HC-05 Bluetooth modules, please refer to this link: https://www .

arduino .

How Do You Program a Bluetooth Module?

If you want to program a Bluetooth module, there are a few things that you will need to do. First, you will need to make sure that the module is compatible with your device. Second, you will need to download and install the necessary software onto your computer.

Once you have done these two things, you will be able to connect the Bluetooth module to your computer and start programming it.

How Do I Connect My Hc-05 Bluetooth Module to My Mobile?

If you want to use a HC-05 Bluetooth module with your mobile phone, there are a few things you need to do first. Make sure that your phone’s Bluetooth is turned on and then open the Arduino IDE. Go to the Tools menu and select the Board that you are using.

Next, go to the Port menu and select the port that your HC-05 module is connected to. Now, go to the File menu and select Examples > 04.Communication > SoftwareSerialBT. In this sketch, you need to change two lines of code.

First, change “mySerial” to “bt”. Second, change “9600” to “38400”. This second number is called the baud rate and it needs to match the baud rate of your HC-05 module.

Save this sketch and upload it to your Arduino board. Once this sketch is uploaded, open up the Serial Monitor from the Tools menu in Arduino IDE. You should see something like this:

Now press ‘1’ on your keyboard and hit Enter/Return key. You should see ‘AT+VERSION’ printed on the Serial Monitor screen followed by some version information of your HC-05 firmware as shown below: If you see this output then it means that communication between Arduino and HC-05 has been established successfully!

Conclusion

The HC-05 is a common Bluetooth module used in many applications where wireless communication is required. In this tutorial, we will show you how to configure the HC-05 module as a slave device and pair it with another Bluetooth device such as your smartphone. After pairing, you will be able to use the HC-05 module to wirelessly communicate with the other Bluetooth device.

Leave a Reply

Your email address will not be published.