{"id":301,"date":"2016-03-20T17:50:45","date_gmt":"2016-03-20T17:50:45","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=301"},"modified":"2016-03-20T17:51:29","modified_gmt":"2016-03-20T17:51:29","slug":"arduino-bluetooth-communication-using-hc-05","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/arduino-bluetooth-communication-using-hc-05\/","title":{"rendered":"Arduino &#8211; Bluetooth Communication Using HC-05"},"content":{"rendered":"<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/hc-05-bluetooth-module-for-arduino\/\" target=\"_blank\">HC-05 <\/a>is\u00a0 a cheap (and easy to use) module that can be used to provide bluetooth connectivity to Arduino.<\/p>\n<p>There are cheap breakout boards available on ebay that can be powered directly by the 5v supply of the Arduino. Below is a picture of such a breakout board. <em>Though my board has &#8220;level 3.3v&#8221; written but it is working fine on 5v I\/O levels. I haven&#8217;t run it continuously for days yet but at least a few hours didn&#8217;t kill the chip.<\/em><\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/HC-05-Bluetooth-Module-1.jpeg\" rel=\"attachment wp-att-303\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-303 alignleft\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/HC-05-Bluetooth-Module-1.jpeg\" alt=\"HC-05 Bluetooth Module\" width=\"352\" height=\"224\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/HC-05-Bluetooth-Module-1.jpeg 539w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/HC-05-Bluetooth-Module-1-300x191.jpeg 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/P_20160228_200855_1_p-2.jpg\" rel=\"attachment wp-att-304\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-304\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/P_20160228_200855_1_p-2-300x127.jpg\" alt=\"Jpeg\" width=\"300\" height=\"127\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/P_20160228_200855_1_p-2-300x127.jpg 300w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/P_20160228_200855_1_p-2-768x326.jpg 768w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/P_20160228_200855_1_p-2.jpg 1008w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<pre class='wp-code-highlight prettyprint'><em>Some of these boards has one problem - the EN\/Key pin, of the board, required for programming the chip (through AT commands) is not connected to the EN\/Key pin of the chip. To program the chip on such a board, manual shorting is needed (using some wire) between the EN\/Key chip on the board and the chip.<\/em> In the above picture the EN\/Key pin has been marked.<\/pre>\n<p>The circuit is pretty simple, connect the VCC to the 5v supply of Arduino, GND to GND, Rx of the module to Tx of Arduino and Tx of the module to Rx of Arduino. For the Rx and Tx software serial ports can be used also.<\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/03\/hc-05-serial_bb.png\" rel=\"attachment wp-att-330\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-330 size-full\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/03\/hc-05-serial_bb.png\" alt=\"HC-05 with Arduino\" width=\"765\" height=\"432\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/03\/hc-05-serial_bb.png 765w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/03\/hc-05-serial_bb-300x169.png 300w\" sizes=\"auto, (max-width: 765px) 100vw, 765px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The same circuit goes for <strong>HM-10<\/strong> too, which is a BLE device.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HC-05 is\u00a0 a cheap (and easy to use) module that can be used to provide bluetooth connectivity to Arduino. There are cheap breakout boards available on ebay that can be powered directly by the 5v supply of the Arduino. Below is a picture of such a breakout board. Though my board has &#8220;level 3.3v&#8221; written&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/arduino-bluetooth-communication-using-hc-05\/\">Continue reading <span class=\"screen-reader-text\">Arduino &#8211; Bluetooth Communication Using HC-05<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[37,38,39,41],"class_list":["post-301","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-arduino-bluetooth","tag-bluetooth-classic","tag-hc-05-bluetooth","tag-hm-10","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=301"}],"version-history":[{"count":4,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/301\/revisions"}],"predecessor-version":[{"id":332,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/301\/revisions\/332"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}