{"id":468,"date":"2021-05-24T06:10:07","date_gmt":"2021-05-24T06:10:07","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=468"},"modified":"2022-06-10T04:20:41","modified_gmt":"2022-06-10T04:20:41","slug":"hc-05-bluetooth-module-with-aries-v2-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/hc-05-bluetooth-module-with-aries-v2-board\/","title":{"rendered":"HC-05 Bluetooth Module with ARIES v2 Board"},"content":{"rendered":"\n<p class=\"has-text-align-left\">This blog is all about interfacing the Bluetooth module HC-05 with ARIES v2 Board. HC\u201005 module is an easy-to-use Bluetooth SPP (Serial Port Protocol) module, designed for a transparent wireless serial connection setup. The HC-05 Bluetooth Module can be used in a Master or Slave configuration, making it a great solution for wireless communication. This serial port Bluetooth module is fully qualified Bluetooth V2.0+EDR (Enhanced Data Rate) 3Mbps modulation with a complete 2.4GHz radio transceiver and baseband. It uses the CSR Bluecore 04\u2010External single-chip Bluetooth system with CMOS technology and AFH (Adaptive Frequency Hopping Feature). <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>HC-05 module&nbsp;<\/strong><\/h2>\n\n\n\n<p>HC-05 has a red LED that indicates connection status, whether the Bluetooth is connected or not. Before connecting to the HC-05 module this red LED blinks continuously in a periodic manner. When it gets connected to any other Bluetooth device, its blinking slows down to two seconds.<\/p>\n\n\n\n<p>This module works on a power supply range of 3.6V-6V. We can connect 5V supply voltage to the module which has an onboard 5 to 3.3 V regulator.<\/p>\n\n\n\n<p> The HC-05 Bluetooth module has a 3.3 V level for RX\/TX and ARIES v2 Board also has the same voltage levels.<\/p>\n\n\n\n<p><strong>Pair HC-05 and smartphone<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Search for a new Bluetooth device from your phone. You will find a Bluetooth device with the \u201cHC-05\u201d name.<\/li><li>Click on connect\/pair device option; the default pin for HC-05 is 1234 or 0000.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/61ebRN7-TrL._SL1001_.jpg\" alt=\"\" class=\"wp-image-479\" width=\"566\" height=\"565\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/61ebRN7-TrL._SL1001_.jpg 1001w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/61ebRN7-TrL._SL1001_-300x300.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/61ebRN7-TrL._SL1001_-150x150.jpg 150w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/61ebRN7-TrL._SL1001_-768x767.jpg 768w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram<\/h2>\n\n\n\n<p>HC-05 Bluetooth Module communicates with the ARIES v2 Board via the UART Protocol and it is composed of 4 pins. Connect VCC and GND of HC-05 Bluetooth Module  to +5V and GND respectively of ARIES v2 board. Connect RXD and TXD of the Bluetooth module to UART1-TX and UART1-RX pins respectively of the ARIES v2 Board. <\/p>\n\n\n\n<p>Now, for powering up the ARIES v2 board via USB port of a Laptop\/Desktop\/PC and burning the code into the ARIES v2 board, we have to use a micro USB type B to USB type A cable. The cable should be connected to <strong>UART0<\/strong> port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be preinstalled with VEGA SDK and Toolchain.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"856\" height=\"638\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/bluetooth-hc-05.jpg\" alt=\"\" class=\"wp-image-1346\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/bluetooth-hc-05.jpg 856w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/bluetooth-hc-05-300x224.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/bluetooth-hc-05-768x572.jpg 768w\" sizes=\"auto, (max-width: 856px) 100vw, 856px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Bluetooth Module<\/strong><\/td><td><strong>ARIES v2 Board<\/strong><\/td><\/tr><tr><td>VCC  <\/td><td>+5V<\/td><\/tr><tr><td>GND <\/td><td>GND<\/td><\/tr><tr><td>RXD<\/td><td>TX1<\/td><\/tr><tr><td>TXD<\/td><td>RX1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Procedure<\/strong><\/h2>\n\n\n\n<p>After setting up the toolchain and SDK path environments, build the example program for HC-05 Bluetooth Module by :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd vega-sdk\/examples\/uart\/bluetooth_demo<\/code><\/pre>\n\n\n\n<p>clean command to clean the executable :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make clean<\/code><\/pre>\n\n\n\n<p>then use make command to build it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make<\/code><\/pre>\n\n\n\n<p>Now, we can transfer the built program to the board, before transfer please ensure that you have connected the board UART connector to the PC.<\/p>\n\n\n\n<p>Open a new terminal and execute the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo minicom aries<\/code><\/pre>\n\n\n\n<p>Now you can see the minicom terminal opened and the board UART terminal is ready.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-12.png\" alt=\"\" class=\"wp-image-640\" width=\"837\" height=\"701\"\/><\/figure>\n\n\n\n<p>Use CTRL+A S to enter file sending menu and select xmodem by pressing Enter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"143\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-16-14-03.png\" alt=\"\" class=\"wp-image-311\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-16-14-03.png 615w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-16-14-03-300x70.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<p>In the next window, with the <strong>space bar<\/strong> select the <strong>bluetooth_demo.bin<\/strong> file to be transferred, by pressing <strong>Enter<\/strong>, the transfer process starts.<\/p>\n\n\n\n<p>Wait until the process is completed. The screen should display how much data has been transferred.<\/p>\n\n\n\n<p>After completing transfer the Program will start to execute.<\/p>\n\n\n\n<p>The output is displayed in minicom UART terminal:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"701\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-05-19-10-55-42.png\" alt=\"\" class=\"wp-image-499\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-05-19-10-55-42.png 980w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-05-19-10-55-42-300x215.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-05-19-10-55-42-768x549.png 768w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<p>Download VEGA bluetooth App from your Android phone using the link below!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;drive.google.com\/file\/d\/1I8Gzlu3QLy9f35Pzw_uch31uhC18UtSt\/view?usp=sharing<\/code><\/pre>\n\n\n\n<p>After installing , try to scan and connect to the bluetooth device &#8216;HC-05&#8217;. Then try to toggle LED by pressing &#8220;LED ON\/OFF &#8221; button. You can see LD1 of the ARIES v2 board turning on and off.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"538\" height=\"833\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/WhatsApp-Image-2021-05-19-at-11.03.43-AM.jpeg\" alt=\"\" class=\"wp-image-497\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/WhatsApp-Image-2021-05-19-at-11.03.43-AM.jpeg 538w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/WhatsApp-Image-2021-05-19-at-11.03.43-AM-194x300.jpeg 194w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"VEGA Processor: HC-05 Bluetooth Module Demo\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/DmzC4553_ZU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>For additional information :<\/p>\n\n\n\n<p><a href=\"https:\/\/www.rcscomponents.kiev.ua\/datasheets\/hc_hc-05-user-instructions-bluetooth.pdf\">https:\/\/www.rcscomponents.kiev.ua\/datasheets\/hc_hc-05-user-instructions-bluetooth.pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog is all about interfacing the Bluetooth module HC-05 with ARIES v2 Board. HC\u201005 module is an easy-to-use Bluetooth SPP (Serial Port Protocol) module, designed for a transparent wireless serial connection setup. The HC-05 Bluetooth Module can be used in a Master or Slave configuration, making it a great solution for wireless communication. This [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,14,1],"tags":[75,54,7,53,26,31,65,24],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-getting-started","category-tutorials","category-uncategorized","tag-aries-v2-board","tag-bluetooth-module","tag-cdac","tag-hc-05","tag-thejas-64","tag-thejas32","tag-uart","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":28,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":1424,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/468\/revisions\/1424"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}