{"id":8940,"date":"2020-10-15T14:15:27","date_gmt":"2020-10-15T14:15:27","guid":{"rendered":"https:\/\/wolles-elektronikkiste.de\/hc-05-and-hc-06-bluetooth-modules"},"modified":"2026-03-08T14:36:00","modified_gmt":"2026-03-08T14:36:00","slug":"hc-05-and-hc-06-bluetooth-modules","status":"publish","type":"post","link":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules","title":{"rendered":"HC-05 and HC-06 Bluetooth modules"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">About this Post<\/h2>\n\n<p>A lot has been written already about Bluetooth, Arduino and the HC-05 and HC-06 Bluetooth modules. Nevertheless, it took me quite a long time to fully understand these components, as the information I needed was scattered across many different articles. Here is an attempt to bring everything together in one place.  I will cover the following topics in this post:<\/p>\n<ul>\n<li>Bluetooth vs. 433 MHz radio<\/li>\n<li>common Bluetooth modules<\/li>\n<li>Circuit diagrams for controlling the modules<\/li>\n<li>Setting up the Bluetooth modules using AT commands via:\n<ul>\n<li>Arduino IDE<\/li>\n<li>Putty<\/li>\n<li>DSD Tech Tool<\/li>\n<\/ul>\n<\/li>\n<li>pairing Bluetooth modules with each other<\/li>\n<li>power consumption and range<\/li>\n<\/ul>\n<p>I will explain <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/controlling-arduino-boards-with-your-smartphone\">in a separate post<\/a> how to connect the Bluetooth modules to a smartphone because of the size of this topic.&nbsp;<\/p>\n\n<h2 class=\"wp-block-heading\">Bluetooth vs. 433 MHz radio<\/h2>\n\n<p>There are a number of different techniques for wireless transmission. In addition to Bluetooth, Wi-Fi, infrared and <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/433-mhz-radio-with-arduino\">(433 MHz) radio technology are<\/a> the most suitable. For the communication from Arduino to Arduino, one will most likely use the 433 MHz technology or Bluetooth. The 433 MHz technology has the advantage of a higher range and the modules are slightly cheaper. There is also Bluetooth technology with a higher range available, but the standard modules are designed for distances of 10 or maximum 20 meters. In my opinion, the advantages of Bluetooth technology are the more exclusive connections (i.e. you can limit pairing to a specific module) and, above all, the ability to communicate with smartphones. If you want to get more into the details of Bluetooth technology, you can do so e.g. on <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bluetooth\">Wikipedia.<\/a>&nbsp;<\/p>\n\n<h2 class=\"wp-block-heading\">Common Bluetooth Modules<\/h2>\n\n<p>The HC-05 and HC-06 Bluetooth modules are most established ones in the world of microcontrollers. They are available for about 8 euros from <a href=\"https:\/\/smile.amazon.de\/\">Amazon<\/a> or online electronics shops. In addition to HC-05 and HC-06, you might come across hc-08 and HM-10 modules. The latter are also suitable for IOS operating systems. The HC-08 modules, which I once bought, I could program via AT commands, but I was not able to pair them neither with my Android smartphone nor with each other. In this respect, in my experience, I cannot recommend these parts. <\/p>\n\n<p>The HC-05 and HC-06 Bluetooth modules discussed here (see picture below) are basically modules of modules. The respective &#8220;daughter module&#8221; is the green part attached to the blue &#8220;mother module&#8221;. If you search for data sheets for HC-05 and HC-06 Bluetooth modules, they usually refer to the &#8220;daughter modules&#8221;. The &#8220;mother modules&#8221; save a lot of cabling work, but also reduce flexibility.<\/p>\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC05_HC06_Module-1024x596.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"596\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC05_HC06_Module-1024x596.webp\" alt=\"\" class=\"wp-image-19563\" style=\"width:840px;height:auto\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC05_HC06_Module-1024x596.webp 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC05_HC06_Module-300x175.webp 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC05_HC06_Module-768x447.webp 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC05_HC06_Module-1536x894.webp 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC05_HC06_Module-1320x768.webp 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC05_HC06_Module.webp 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">left: HC-05 module (front and back), right: HC-06 module<\/figcaption><\/figure>\n\n<p>There is <em>not<\/em> <em>one<\/em> HC-05 or HC-06 module, but different versions that can differ slightly in handling. In some posts modules are described, which have a additional &#8220;KEY&#8221; pin, but I have never tried them.&nbsp;<\/p>\n\n<h2 class=\"wp-block-heading\">Programming HC-05 and HC-06 Bluetooth modules<br\/><\/h2>\n\n<h3 class=\"wp-block-heading\">Wiring<\/h3>\n\n<p>Before you can use HC-05 and HC-06 Bluetooth modules for communication, you may need to adjust some settings using the so-called &#8220;AT commands&#8221;. There are different methods for this. First, I would like to show how to do this by means of Arduino.<\/p>\n\n<h4 class=\"wp-block-heading\">3.3 Volt limitation of the RX pin<\/h4>\n\n<p>The HC-05 and HC-06 Bluetooth modules communicate via their serial RX and TX pins. The power supply for the modules must be 3.6 to 6 volts. The RX-Pin, on the other hand, is actually only designed for 3.3 volts. In my circuit below, I solved this issue with a voltage divider. Alternatively, you can also use a level converter (available for &lt; 1 euro).&nbsp; Or you can use an Arduino Due or work with the &#8220;bare&#8221; microcontrollers and run everything at 3.3 volts (but then you need &gt; 3.6 V at VCC). But honestly, normally I just ignore the demand and work with 5 volts. And I haven&#8217;t broken a module yet.&nbsp;<\/p>\n\n<p>The circuit is identical for the HC-05 and HC-06 Bluetooth modules. The &#8220;State&#8221; and &#8220;Enable&#8221; pins on the HC -05 remain unconnected. As an example, I used an Arduino Nano. Pin 10 and pin 11 of the Arduino are set as RX and TX respectively by software serial.<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/Schaltung-1024x637.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"637\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/Schaltung-1024x637.webp\" alt=\"\" class=\"wp-image-19565\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/Schaltung-1024x637.webp 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/Schaltung-300x187.webp 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/Schaltung-768x478.webp 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/Schaltung-1320x822.webp 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/Schaltung.webp 1422w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n<h3 class=\"wp-block-heading\">Setting the HC-06 module using AT commands<\/h3>\n\n<h4 class=\"wp-block-heading\">Preparation<\/h4>\n\n<p>I start with the HC-06, as it is slightly easier to handle than the HC-05 module. First, the following sketch is uploaded to the Arduino.&nbsp;<\/p>\n<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-group=\"Software_Serial_hc_06.ino\" data-enlighter-title=\"Software_Serial_hc_06.ino\" data-enlighter-language=\"cpp\" data-enlighter-theme=\"atomic\">#include &lt;SoftwareSerial.h&gt;\nSoftwareSerial mySerial(10, 11);\n\nvoid setup() {\n  Serial.begin(9600);\n  Serial.println(\"Los geht's\");\n  mySerial.begin(9600); \/\/38400 f\u00fcr hc-05\n}\n\nvoid loop() { \/\/ run over and over\n  if (mySerial.available()) {\n    Serial.write(mySerial.read());\n  }\n  if (Serial.available()) {\n    mySerial.write(Serial.read());\n  }\n}<\/pre>\n<p>\n\n<p>Now at the latest the HC-06 module is connected to the Arduino according to the circuit shown above. When the module is powered, a red LED should flash quite frantically (multiple times per second). There are also versions that also have a blue LED (e.g. hc01.comV2.0) and those without (e.g. linvorV1.8).<\/p>\n<p>Then you can use the serial monitor to adjust the settings of the modules using AT commands. It is important that the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Baud\">baud rate<\/a> is 9600 and &#8220;No line end&#8221; is set on the serial monitor. It should also be noted that the HC-06 module is not responsive to AT commands when paired, i.e. if there is a Bluetooth connection.&nbsp;<\/p>\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/10\/Einstellung_Baud_Rate_engl.png\" alt=\"Settings for the HC-06 in the serial monitor\" class=\"wp-image-812\"\/><\/figure>\n\n<h4 class=\"wp-block-heading\">AT commands for the HC-06<\/h4>\n\n<p>As a first test you can send a simple &#8220;AT&#8221; toi the module. In response, you get a friendly &#8220;OK&#8221;. If you send more &#8220;AT&#8221; commands, you can see that all responses appear without spaces or line feeds.&nbsp;<\/p>\n\n<p>Then you might want to change the name of the module. If, for example, it is called Karl-Heinz, you send a<\/p>\n<p><code>AT+NAMEKarl-Heinz<\/code>&nbsp; &nbsp; \u2192 Reply: OKsetname &nbsp;<\/p>\n<p>For the change of the pin, you send<\/p>\n<p><code>AT+PIN&lt;dein vierstelliger PIN&gt;<\/code>&nbsp; &nbsp; \u2192 &nbsp; Reply: OKsetPIN<\/p>\n<p>The default is a baud rate (data transfer rate) of 9600. If you want to change this, you can do so using the following key:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"200\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/baudschluessel-e1554229448983.png\" alt=\"Key for setting the baud rate of the HC-06 module.\" class=\"wp-image-821\"\/><\/figure>\n<\/div>\n<p>To set a baud rate of, for example, 9600, the command is:<\/p>\n<p><code>AT+BAUD4<\/code>&nbsp; &nbsp; \u2192 Reply: OK9600<\/p>\n<p>But be CAREFUL- it could happen that you can&#8217;t change back if you choose a baud rate being too high. For example, a PC can only deliver a baud rate of up to 115200. If you set a higher baud rate to HC-06, you can no longer tell the module that you want a lower rate. There is also no hardware reset. The HC-05 module can do this better.&nbsp;<\/p>\n<p>An important setting is the role of the module, namely either master (&#8220;M&#8221;) or slave (&#8220;S&#8221;). Here is the setting as a slave:&nbsp;<\/p>\n<p><code>AT+ROLE=S<\/code>&nbsp; \u2192 Reply: OK+ROLE:S<\/p>\n<p>If you want to activate or deactivate the blue LED, you can do so using the following command:<\/p>\n<p><code>AT+LED1<\/code>&nbsp; &nbsp; \u2192 <span style=\"display: inline !important; float: none; background-color: #ffffff; color: #191e23; cursor: text; font-family: 'Noto Serif'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;\">&nbsp;<\/span> Reply: LED ON&nbsp;\/ <code>AT+LED0<\/code>&nbsp;v\u2192 &nbsp; Reply: LED OFF<\/p>\n<p>The version of your HC-06 module can be queried with the command:<\/p>\n<p><code>AT+VERSION<\/code>&nbsp; &nbsp; \u2192 Reply: hc01.comV2.0 (example)<\/p>\n<p>Finally, you can also set the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Parity_bit\">parity bit<\/a>, although most people will not need to do this. This is either &#8220;N&#8221; for no check, &#8220;O&#8221; for ODD or &#8220;E&#8221; for EVEN, for example:<\/p>\n<p><code>AT+PN<\/code>&nbsp; &nbsp; \u2192 &nbsp; Reply: OK None<\/p>\n\n<h3 class=\"wp-block-heading\">Setting the HC-05 module using at commands<\/h3>\n\n<h4 class=\"wp-block-heading\">Preparation<\/h4>\n\n<p>The HC-05 module is connected to the Arduino according to the circuit shown above. The sketch for communication by means of AT commands has to be slightly adjusted, because the HC-05 in AT mode always uses a baud rate of 38400. Accordingly, in line 7 &#8220;9600&#8221; has to be replaced by &#8220;38400&#8221;. The advantage over the HC-06 is that you cannot lock yourself out by choosing an unfortunate baud rate.  Another difference is that the HC-05 must first be switched from pairing mode to AT mode by disconnecting the power supply and holding down the small button above the pin header while reconnecting the power supply. Then you can release the button. The successful change to AT mode can be recognized by the fact that the frantic flashing of the red LED turns into a slow flashing (every 2 seconds).<\/p>\n<p><strong>HC-05 modules with firmware version number hc05V2.3_le behave differently<\/strong>. As long as they are not paired, you can address them directly with AT commands without any further measures. In this respect, they are similar to HC-06 modules.  <\/p>\n\n<h4 class=\"wp-block-heading\">Second AT mode<\/h4>\n\n<p>Unfortunately, however, the matter is a little more complicated, as there are two AT modes (exception: firmware hc05V2.3_le). There are AT commands that can only be executed in the second mode. This includes, for example, the command for querying the name. The second mode is accessed by holding down the button continuously \u2013 which is, of course, rather inconvenient. Alternatively, you apply a HIGH level to the PIN 34 of the daughter module. For this you can solder a cable (see below) or you can use a mini clamp.<\/p>\n<p>I also have HC-05 modules where you go into the second AT mode if you set the pin &#8220;EN&#8221; to HIGH. For other HC-05 modules, however, this is of no use. There, the &#8220;EN&#8221; pin can be used to switch off the module by setting it to &#8220;LOW&#8221;. Quite a mess \u2013 I can&#8217;t help it!  Try it out with your modules. The good news is that you don&#8217;t usually miss the commands from the second AT mode. For example, you can change the name of the module in the first mode, you just can&#8217;t query it.<\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC_05_mit_Pin34_Anschluss-1024x727.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"727\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC_05_mit_Pin34_Anschluss-1024x727.webp\" alt=\"\" class=\"wp-image-19567\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC_05_mit_Pin34_Anschluss-1024x727.webp 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC_05_mit_Pin34_Anschluss-300x213.webp 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC_05_mit_Pin34_Anschluss-768x545.webp 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/HC_05_mit_Pin34_Anschluss.webp 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">HC-05 with connection for pin 34<\/figcaption><\/figure>\n<\/div>\n<h4 class=\"wp-block-heading\">Implementation<\/h4>\n\n<p>If you have wired everything, uploaded the sketch and put the HC-05 into AT mode, you can program it with AT commands via the serial monitor. The baud rate is set to 9600 (not 38400!) and &#8220;Both NL &amp; CR&#8221;. For testing purposes, you can send &#8220;AT&#8221; again and get a friendly &#8220;OK&#8221; in response. Unlike the HC-06, each response is printed in a new line. In addition, the command set is larger, the spelling is slightly different, and the HC-05 is more &#8220;talkative&#8221;. You can also query all settings. A certain convenience is also the error codes, which are reported in case of incorrect entries. A list of error codes can be found below.&nbsp;<\/p>\n\n<h4 class=\"wp-block-heading\">AT commands for the HC-05 module<\/h4>\n\n<p>Let&#8217;s get to the most important AT commands. The PIN is called Password here and is set as follows (hc05V2.3_le: 6 digits):<\/p>\n<p><code>AT+PSWD=&lt;deine 4\/6stellige PIN&gt;<\/code>&nbsp; &nbsp; \u2192 Reply: OK<\/p>\n<p>Since the answer is always &#8220;OK&#8221; except for queries, I will omit this information in the future. The pin is queried as follows:<\/p>\n<p><code>AT+PSWD?<\/code>&nbsp; &nbsp; \u2192 &nbsp; Reply: +PSWD:&lt;your 4-digit pin&gt;<\/p>\n<p>The role (master=1 or slave=0 or slave loop=2) &nbsp;  of the module is set this way:<\/p>\n<p><code>AT+ROLE=&lt;0, 1 oder 2&gt;<\/code>&nbsp; \u2192 &nbsp; Query: <code>AT+ROLE?<\/code><\/p>\n<p>In slave loop mode, all data received via Bluetooth is sent back again.&nbsp;<\/p>\n<p>The baud rate is set together with the parity bit and the stop bit, which I both recommend to keep as &#8220;0&#8221;. The command for a baud rate of 38400 looks like this:<\/p>\n<p><code>AT+UART=38400,0,0<\/code>&nbsp; &nbsp; \u2192 &nbsp; Query: <code>AT+UART?<\/code><\/p>\n<p>The HC-05 has different connection Modes (CMODEs). &nbsp;  In CMODE 0 (default), the module only pairs with the Bluetooth device &nbsp;  which has the BIND Bluetooth address (explanation follows). In CMODE 1, on the other hand, the HC-05 pairs with any available device, provided (among other things) that the HC-05 is set as the master and the partner device as the slave. The exception here is again version hc05V2.3_le: CMODE cannot be set if its role is 0, which means that the exclusive connection does not work.<\/p>\n<p><code>AT+CMODE=&lt;0 oder 1&gt;<\/code>&nbsp; &nbsp; \u2192 &nbsp; Query: <code>AT+CMODE?<\/code><\/p>\n<p>For example, if the BIND address is 12:23:34:45:56:67 or 1223:34:4556 in the NAP:UAP:LAP spelling (non-significant, upper, lower address part), you will receive:<\/p>\n<p><code>AT+BIND?<\/code>&nbsp; &nbsp; \u2192 &nbsp; Reply: +BIND:1223:34:455667<\/p>\n<p>The BIND address can be set as follows:<\/p>\n<p><code>AT+BIND=1223,34,455667<\/code>&nbsp;<\/p>\n<p>Exception hc05V2.3_le: The BIND address is specified in the usual notation (xx:xx:xx:xx:xx:xx).&nbsp;<\/p>\n<p>Your own address is queried with:<\/p>\n<p><code>AT+ADDR?<\/code> &nbsp;&nbsp;<\/p>\n<p>Finally, a very useful command, namely for resetting the module to factory settings:<\/p>\n<p><code>AT+ORGL<\/code><\/p>\n<p>More AT commands and error codes can be found here:&nbsp;<\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/AT-commands-list.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"778\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/AT-commands-list.jpg\" alt=\"AT commands and error codes for the HC-05\" class=\"wp-image-841\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/AT-commands-list.jpg 611w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/AT-commands-list-236x300.jpg 236w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/a><\/figure>\n<\/div><p>And a good description of the commands can be found <a href=\"https:\/\/s3-sa-east-1.amazonaws.com\/robocore-lojavirtual\/709\/HC-05_ATCommandSet.pdf\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n\n<h3 class=\"wp-block-heading\">Alternative methods for setting the HC-05 and HC-06 Bluetooth modules<br\/><\/h3>\n\n<h4 class=\"wp-block-heading\">Using Arduino and without SoftwareSerial sketch<\/h4>\n\n<p>To do this, upload the BareMinimum sketch from the examples, connect RX on the module to RX (pin 0) on the Arduino, and connect TX on the module to TX (pin 1) on the Arduino.   In the serial monitor for the HC-06 the set baud rate is to be selected, in the case of the HC-05 it&#8217;s always the baud rate 38400.&nbsp; The HC-05 is of course also to be brought into AT mode here. I will stop pointing this out all the time.&nbsp;<\/p>\n\n<h4 class=\"wp-block-heading\">Without Arduino, with Arduino IDE and USB-to-TTL adapter<\/h4>\n\n<p>USB-to-TTL adapters are available for a few euros. If you take a model which adjust the voltage to 3.3 volts, you no longer need a voltage divider or similar at the RX input.&nbsp;<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/WNFF2773.jpg\"><img decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/WNFF2773-1024x924.jpg\" alt=\"Various USB-to-TTL adapters for programming the HC-05 and HC-06 Bluetooth modules.\" class=\"wp-image-480\" style=\"width:404px;height:auto\"\/><\/a><figcaption class=\"wp-element-caption\">USB-to-TTL Adapter<\/figcaption><\/figure>\n<\/div>\n<p>Here the cabling is again crosswise, i.e. RX on TX and TX on RX. Then connect the adapter to the PC and select the appropriate port in the Arduino IDE. Set the right baud rate and the right line settings and that&#8217;s it. You don&#8217;t need a sketch.<\/p>\n\n<h4 class=\"wp-block-heading\">Using a USB-to-TTL adapter and Putty<\/h4>\n\n<p>If you use the popular <a href=\"https:\/\/putty.org\/\">Putty<\/a> terminalsoftware, you must first apply the correct settings. <span style=\"display: inline !important; float: none; background-color: #ffffff; color: #191e23; cursor: text; font-family: 'Noto Serif'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;\">&nbsp;<\/span><\/p>\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"449\" height=\"440\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/putty_hc_06_1.png\" alt=\"Putty settings (Session) for programming the HC-05 and HC-06 Bluetooth modules\" class=\"wp-image-851\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/putty_hc_06_1.png 449w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/putty_hc_06_1-300x294.png 300w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><figcaption class=\"wp-element-caption\">Session settings<\/figcaption><\/figure>\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"449\" height=\"440\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/putty_hc_06_2.png\" alt=\"Putty settings (Terminal) for programming the HC-05 and HC-06 Bluetooth modules\" class=\"wp-image-852\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/putty_hc_06_2.png 449w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/putty_hc_06_2-300x294.png 300w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><figcaption class=\"wp-element-caption\">Terminal settings<\/figcaption><\/figure>\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"453\" height=\"441\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/putty_hc_06_3-1.png\" alt=\"Putty settings (Serial) for programming the HC-05 and HC-06 Bluetooth modules\" class=\"wp-image-855\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/putty_hc_06_3-1.png 453w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/putty_hc_06_3-1-300x292.png 300w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><figcaption class=\"wp-element-caption\">Serial settings<\/figcaption><\/figure>\n\n<p>When using the HC-05, the response is sent permanently, which can be stopped with an &#8220;Enter&#8221;.<\/p>\n<p>There are, of course, many other similar programs like Putty. For example, I tried <a href=\"https:\/\/www.usriot.com\/support\/downloads\/usr-tcp-test-testing-software.html\">USR-TCP232 and<\/a> it also worked fine.&nbsp;<\/p>\n\n<h4 class=\"wp-block-heading\">Using an USB-to-TTL adapter and the DSD TECH tool<\/h4>\n\n<p>With the <a href=\"https:\/\/www.deshide.com\/News-detail.html?newsid=266596&amp;_t=1663300315\" target=\"_blank\" rel=\"noopener\">DSD-TECH tool<\/a> only a few settings can be &nbsp; made, but you don&#8217;t have to deal with AT commands.<\/p>\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"587\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/DSD_Tech_BT_Tool_HC06.png\" alt=\"DSD TECH Tool interface for programming the HC-05 and HC-06 Bluetooth modules\" class=\"wp-image-856\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/DSD_Tech_BT_Tool_HC06.png 696w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/04\/DSD_Tech_BT_Tool_HC06-300x253.png 300w\" sizes=\"auto, (max-width: 696px) 100vw, 696px\" \/><\/figure>\n\n<h2 class=\"wp-block-heading\">Pairing HC-05 and HC-06 Bluetooth modules with each other<\/h2>\n\n<p>In the last big section I want to show how to pair the Bluetooth modules with each other to let two Arduinos communicate with each other, for example. In the following experiments I controlled one module with an Arduino UNO and the other with an Arduino Nano. The circuit is basically the same as the one shown above.<\/p>\n<p>Even more interesting is that you can <span style=\"display: inline !important; float: none; background-color: #ffffff; color: #191e23; cursor: text; font-family: 'Noto Serif'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;\">also use <\/span>Bluetooth to communicate between Arduinos and smartphones. But since this would be to long for this post (which is already quite big), I keep this for a separate post.&nbsp;<\/p>\n\n<h3 class=\"wp-block-heading\">Pairing HC-06 modules with HC-06 modules.<\/h3>\n\n<p>Pairing HC-06 modules is very easy. You only have to set one module as a master and the other as a slave and both modules must have the same PIN. And both modules must of course have set the same baud rate. After you have made the settings, you may have to disconnect the modules from power and reconnect. But then they should pair within a few seconds, which can be seen by the fact that the red and blue LED (if the <span style=\"display: inline !important; float: none; background-color: #ffffff; color: #191e23; cursor: text; font-family: 'Noto Serif'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;\">latter is present)<\/span> on the modules &nbsp;  light up continuously.&nbsp;<\/p>\n\n<h4 class=\"wp-block-heading\">&#8220;Ping-Pong&#8221; test sketch <\/h4>\n\n<p>With the following sketch you can test the connection and play &#8220;Ping-Pong&#8221;. In the setup, a greeting is sent. Depending on which Arduino was first started, one greeting goes into Nirvana, the other one is received from the other side. This is the version for the UNO. On the Nano you then upload a version containing a greeting to the UNO. And then it goes back and forth. When a message is received, it is output to the serial monitor and the receiving board send its own greeting message.&nbsp;<\/p>\n<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-group=\"bluetooth_send_reeceive_UNO.ino\" data-enlighter-title=\"bluetooth_send_reeceive_UNO.ino\" data-enlighter-language=\"cpp\" data-enlighter-theme=\"atomic\">#include &lt;SoftwareSerial.h&gt;\nSoftwareSerial hc_06(10, 11);\nString sendMsg = \"Hallo HC-06 am Nano\";\nString receiveMsg = \"\";\n\nvoid setup() {\n  Serial.begin(9600);\n  Serial.println(\"Los geht's\");\n  hc_06.begin(9600);\n  hc_06.print(sendMsg);\n}\n\nvoid loop() { \n  if (hc_06.available()) {\n    receiveMsg = hc_06.readString();\n    Serial.println(receiveMsg);\n    delay(1000);\n    hc_06.print(sendMsg);\n  }\n}<\/pre>\n<p>\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/10\/ping_pong_HC06_serial_monitor_engl.png\" alt=\"Communication test - output on the serial monitor\" class=\"wp-image-860\"\/><figcaption class=\"wp-element-caption\">This is what it looks like at the UNO side<\/figcaption><\/figure>\n\n<h3 class=\"wp-block-heading\">Pairing HC-05 modules with HC-05 modules<\/h3>\n\n<p>Pairing two HC-05 modules is a little more complicated, as there are several different options. Both modules must of course have the same baud rate. In addition, both modules should have the same PIN (here: PSWD). Occasionally the pairing worked without the same PIN, but I can&#8217;t say with certainty which rules this followed. The settings are made in AT mode, the pairing takes place in the pairing mode. When you supply power to the module, it automatically enters pairing mode. &nbsp;<\/p>\n<p><strong>And here again is the exception for hc05V2.3_le<\/strong>: Pairing mode is also AT mode. The following explanations for the connection modes are irrelevant for these modules. <\/p>\n\n<h4 class=\"wp-block-heading\">Pairing in connection mode 1<\/h4>\n\n<p>HC-05 module No. 1:<\/p>\n<ul>\n<li>CMODE: does not matter, ROLE=0 (Slave), PSWD same as for module No. 2<\/li>\n<\/ul>\n<p>HC-05 module No. 2:<\/p>\n<ul>\n<li>CMODE: 1, ROLE=1 (Master), PSWD as for module No. 1<\/li>\n<\/ul>\n\n<p>Once you have selected these settings and put both modules into pairing mode, the LEDs of both modules should flash in the same way after a few seconds. It&#8217;s a short double flash about every two seconds. Then you can test the connection with the above sketch.&nbsp;<\/p>\n\n<h4 class=\"wp-block-heading\">Pairing in connection mode 0<\/h4>\n\n<p>HC-05 module No. 1:<\/p>\n<ul>\n<li>CMODE: does not matter, ROLE=0 (Slave), PSWD same as for module No. 2<\/li>\n<\/ul>\n<p>HC-05 module No. 2:<\/p>\n<ul>\n<li>CMODE: 0, ROLE=1 (Master), PSWD same as module No. 1<\/li>\n<\/ul>\n<p>In connection mode 0, the master module must have the same BIND address as the slave module. There are two ways to do this.<\/p>\n<ol>\n<li>You read the address of the slave module and enter it in the master module (as described above).<\/li>\n<li>The modules are initially paired in connection mode 1. This automatically registers the correct BIND address, because this is automatically the last connected address. Then you switch to connection mode 0 in the master module and &#8220;freeze&#8221; the BIND address, so to speak.&nbsp;<\/li>\n<\/ol>\n<p>Connection Mode 0 ensures that the master module only connects to a specific module. &nbsp;<\/p>\n\n<h3 class=\"wp-block-heading\">Pairing HC-05 modules with HC-06 modules<\/h3>\n\n<p>Thank God, this is easy again. You just have to be very careful that you don&#8217;t get confused with the different AT commands, baud rates (they have to be harmonized, of course), etc.&nbsp;<\/p>\n<p>HC-06 module:<\/p>\n<ul>\n<li>ROLE=S (slave), PIN like PSWD of the HC-05 module<\/li>\n<\/ul>\n<p>HC-05 module:<\/p>\n<ul>\n<li>CMODE: 1, ROLE=1 (Master), PSWD as for module No. 1<\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading\">Controlling several HC-05 &#8220;slaves&#8221;<\/h3>\n\n<p>You can only pair one HC-05 module with exactly one other module. If you want to control multiple HC-05 modules with one module, you can use multiplexing. With a <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/the-mosfet-as-switch\" target=\"_blank\" rel=\"noopener\">MOSFET<\/a>, you can switch the &#8220;master&#8221; on and off via an I\/O pin. And by connecting pin 34 of your master to an I\/O pin, you can control whether it goes into AT or pairing mode when switched on. You must set the slaves as such, and they must have the same password as the master. CMODE is meaningless for them.     <\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2024\/12\/HC05_mode_control-1024x704.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"704\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2024\/12\/HC05_mode_control-1024x704.png\" alt=\"Circuit (&quot;master&quot;) to control several HC-05 modules\" class=\"wp-image-22975\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2024\/12\/HC05_mode_control-1024x704.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2024\/12\/HC05_mode_control-300x206.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2024\/12\/HC05_mode_control-768x528.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2024\/12\/HC05_mode_control.png 1169w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Circuit (&#8220;master&#8221;) to control several HC-05 modules<\/figcaption><\/figure>\n\n<p>And here is the sketch:<\/p>\n<\/p>\n<div class=\"scroll-paragraph\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"cpp\" data-enlighter-theme=\"atomic\" data-enlighter-group=\"HC05_controlling_two_slaves.ino\" data-enlighter-title=\"HC05_controlling_two_slaves.ino\">#include &lt;SoftwareSerial.h&gt;\n#define HC05_STARTUP_TIME 1500\n#define HC05_COMMAND_EXEC_TIME 100\n#define HC05_OFF_TIME 100\n#define HC05_PAIRINGMODE 0\n#define HC05_ATMODE 1\n\nString address_1 = \"98d3,35,70f1f9\"; \/\/ adjust address\nString address_2 = \"98d3,32,10c780\"; \/\/ adjust address \nconst int powerOnPin = 8;\nconst int atPin = 7;\n\nSoftwareSerial mySerial(10, 11);\n\nvoid setup() {\n  Serial.begin(38400);\n  pinMode(atPin, OUTPUT);\n  pinMode(powerOnPin, OUTPUT);\n  Serial.println(\"Starting...\");\n  mySerial.begin(38400);  \/\/38400 f\u00fcr hc-05\n}\n\nvoid loop(){\n  connectToModule(address_1);\n  \/* enter messages to module 1 here) *\/\n  delay(6000); \/\/ adjust as needed\n\n  connectToModule(address_2);\n  \/* enter messages to module 2 here) *\/\n  delay(6000); \/\/ adjust as needed\n}\n\nvoid connectToModule(String &amp;addr){\n  changeMode(HC05_ATMODE);\n  mySerial.print(\"AT+BIND=\");\n  mySerial.println(addr);\n  mySerial.flush();\n  delay(HC05_COMMAND_EXEC_TIME);\n  changeMode(HC05_PAIRINGMODE);\n}\n\nvoid changeMode(int mode){\n  digitalWrite(powerOnPin, LOW);\n  digitalWrite(atPin, mode);\n  delay(HC05_OFF_TIME);\n  digitalWrite(powerOnPin, HIGH);\n  delay(HC05_STARTUP_TIME);\n}<\/pre>\n<p>\u00a0<\/p>\n<\/div>\n<p>\n\n<p>When you run the sketch, you will see that the HC-05 modules to be controlled are paired with each other via the control diodes.<\/p>\n\n<h2 class=\"wp-block-heading\">power consumption and range<\/h2>\n\n<p>I measured a current consumption of approx. 4 mA for both the HC-05 and the HC-06. This went up to 40 mA for short time when sending. These Bluetooth modules are well suited for data transmission within one room. In the neighboring room I only had a reliable connection when the door was open. I would estimate that on open track 15, maybe 20 m are possible, but no more. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Detailed and step-by-step instructions for HC-05 and HC-06 Bluetooth modules. AT commands, circuits, pairing and testing of the Bluetooth connection.<\/p>\n","protected":false},"author":1,"featured_media":7886,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[568,548],"tags":[556,610,611,601,602,600,606,612,613,605,596,598,597,599,603,604,608,609,607],"class_list":["post-8940","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bluetooth-en","category-wireless","tag-arduino-en-2","tag-arduino-hc-05-en","tag-arduino-hc-06-en","tag-at-commands-en-2","tag-at-instructions","tag-at-commands-en","tag-cmode-en","tag-configuring-hc-05","tag-configuring-hc-06","tag-example-sketch","tag-hc-05-en","tag-hc-06-en","tag-hc05-en","tag-hc06-en","tag-pairing-en","tag-power-consumption","tag-pswd-en","tag-putty-en","tag-role-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HC-05 and HC-06 Bluetooth modules &#8226; Wolles Elektronikkiste<\/title>\n<meta name=\"description\" content=\"Detailed and step-by-step instructions for HC-05 and HC-06 Bluetooth modules. AT commands, switching, pairing and testing the BT connection.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HC-05 and HC-06 Bluetooth modules &#8226; Wolles Elektronikkiste\" \/>\n<meta property=\"og:description\" content=\"Detailed and step-by-step instructions for HC-05 and HC-06 Bluetooth modules. AT commands, switching, pairing and testing the BT connection.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules\" \/>\n<meta property=\"og:site_name\" content=\"Wolles Elektronikkiste\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-15T14:15:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-08T14:36:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/bt_profilbild-e1554229546696.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"550\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Wolfgang Ewald\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Wolfgang Ewald\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules\"},\"author\":{\"name\":\"Wolfgang Ewald\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"headline\":\"HC-05 and HC-06 Bluetooth modules\",\"datePublished\":\"2020-10-15T14:15:27+00:00\",\"dateModified\":\"2026-03-08T14:36:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules\"},\"wordCount\":3136,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/bt_profilbild-e1554229546696.jpg\",\"keywords\":[\"Arduino\",\"Arduino HC 05\",\"Arduino HC-06\",\"AT commands\",\"AT instructions\",\"AT-commands\",\"CMODE\",\"configuring HC 05\",\"configuring HC 06\",\"Example sketch\",\"HC-05\",\"HC-06\",\"HC05\",\"HC06\",\"pairing\",\"power consumption\",\"PSWD\",\"Putty\",\"ROLE\"],\"articleSection\":[\"Bluetooth\",\"Wireless\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules\",\"name\":\"HC-05 and HC-06 Bluetooth modules &#8226; Wolles Elektronikkiste\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/bt_profilbild-e1554229546696.jpg\",\"datePublished\":\"2020-10-15T14:15:27+00:00\",\"dateModified\":\"2026-03-08T14:36:00+00:00\",\"description\":\"Detailed and step-by-step instructions for HC-05 and HC-06 Bluetooth modules. AT commands, switching, pairing and testing the BT connection.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules#primaryimage\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/bt_profilbild-e1554229546696.jpg\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/bt_profilbild-e1554229546696.jpg\",\"width\":550,\"height\":550,\"caption\":\"Bluetooth Symbol\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/hc-05-and-hc-06-bluetooth-modules#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HC-05 and HC-06 Bluetooth modules\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\",\"name\":\"Wolles Elektronikkiste\",\"description\":\"Die wunderbare Welt der Elektronik\",\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\",\"name\":\"Wolfgang Ewald\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"width\":512,\"height\":512,\"caption\":\"Wolfgang Ewald\"},\"logo\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HC-05 and HC-06 Bluetooth modules &#8226; Wolles Elektronikkiste","description":"Detailed and step-by-step instructions for HC-05 and HC-06 Bluetooth modules. AT commands, switching, pairing and testing the BT connection.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules","og_locale":"en_US","og_type":"article","og_title":"HC-05 and HC-06 Bluetooth modules &#8226; Wolles Elektronikkiste","og_description":"Detailed and step-by-step instructions for HC-05 and HC-06 Bluetooth modules. AT commands, switching, pairing and testing the BT connection.","og_url":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules","og_site_name":"Wolles Elektronikkiste","article_published_time":"2020-10-15T14:15:27+00:00","article_modified_time":"2026-03-08T14:36:00+00:00","og_image":[{"width":550,"height":550,"url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/bt_profilbild-e1554229546696.jpg","type":"image\/jpeg"}],"author":"Wolfgang Ewald","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Wolfgang Ewald","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules#article","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules"},"author":{"name":"Wolfgang Ewald","@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"headline":"HC-05 and HC-06 Bluetooth modules","datePublished":"2020-10-15T14:15:27+00:00","dateModified":"2026-03-08T14:36:00+00:00","mainEntityOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules"},"wordCount":3136,"commentCount":2,"publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/bt_profilbild-e1554229546696.jpg","keywords":["Arduino","Arduino HC 05","Arduino HC-06","AT commands","AT instructions","AT-commands","CMODE","configuring HC 05","configuring HC 06","Example sketch","HC-05","HC-06","HC05","HC06","pairing","power consumption","PSWD","Putty","ROLE"],"articleSection":["Bluetooth","Wireless"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules","url":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules","name":"HC-05 and HC-06 Bluetooth modules &#8226; Wolles Elektronikkiste","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#website"},"primaryImageOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules#primaryimage"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/bt_profilbild-e1554229546696.jpg","datePublished":"2020-10-15T14:15:27+00:00","dateModified":"2026-03-08T14:36:00+00:00","description":"Detailed and step-by-step instructions for HC-05 and HC-06 Bluetooth modules. AT commands, switching, pairing and testing the BT connection.","breadcrumb":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules#primaryimage","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/bt_profilbild-e1554229546696.jpg","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/bt_profilbild-e1554229546696.jpg","width":550,"height":550,"caption":"Bluetooth Symbol"},{"@type":"BreadcrumbList","@id":"https:\/\/wolles-elektronikkiste.de\/en\/hc-05-and-hc-06-bluetooth-modules#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/wolles-elektronikkiste.de\/en"},{"@type":"ListItem","position":2,"name":"HC-05 and HC-06 Bluetooth modules"}]},{"@type":"WebSite","@id":"https:\/\/wolles-elektronikkiste.de\/en#website","url":"https:\/\/wolles-elektronikkiste.de\/en","name":"Wolles Elektronikkiste","description":"Die wunderbare Welt der Elektronik","publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wolles-elektronikkiste.de\/en?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46","name":"Wolfgang Ewald","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","width":512,"height":512,"caption":"Wolfgang Ewald"},"logo":{"@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png"}}]}},"_links":{"self":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/8940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/comments?post=8940"}],"version-history":[{"count":8,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/8940\/revisions"}],"predecessor-version":[{"id":25774,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/8940\/revisions\/25774"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media\/7886"}],"wp:attachment":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media?parent=8940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/categories?post=8940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/tags?post=8940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}