{"id":2159,"date":"2022-12-08T08:48:32","date_gmt":"2022-12-08T08:48:32","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=2159"},"modified":"2022-12-08T08:48:32","modified_gmt":"2022-12-08T08:48:32","slug":"nrf24l01-wireless-rf-module-with-aries-v2-0-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/nrf24l01-wireless-rf-module-with-aries-v2-0-board\/","title":{"rendered":"nRF24L01 Wireless RF Module with Aries v2.0 Board"},"content":{"rendered":"\n<p>In this tutorial we will see ,how we can interface nRF24L01 RF Module with Aries v2.0 Board.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">nRF24L01 Wireless RF Module<\/h2>\n\n\n\n<p>The&nbsp;<strong>nRF24L01 <\/strong>is a wireless<strong> transceiver module<\/strong>, meaning each module can both send as well as receive data simultaneously. It has a RFX2401C chip which includes&nbsp;<strong>PA<\/strong>&nbsp;(Power Amplifier) and&nbsp;<strong>LNA<\/strong>&nbsp;(Low-Noise Amplifier).&nbsp;This amplifies the nRF24L01 signal and enables even better transmission.<\/p>\n\n\n\n<p>They operate in the frequency of 2.4GHz, which falls under the ISM band &amp; can operate with baud rates from 250 kbps up to 2 Mbps.The power consumption of this module is just around 12mA during transmission, which is even lower than a single LED. The operating voltage of the module is from 1.9 to 3.6V.<\/p>\n\n\n\n<p>The modules when operated efficiently can cover a distance of 100 meters (200 feet) which makes it a great choice for all wireless remote controlled projects.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/image.png\" alt=\"\" class=\"wp-image-2168\" width=\"292\" height=\"296\"\/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram:<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/nrf24l01-1024x768.webp\" alt=\"\" class=\"wp-image-2180\" height=\"576\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/nrf24l01-1024x768.webp 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/nrf24l01-300x225.webp 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/nrf24l01-768x576.webp 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/nrf24l01-1536x1152.webp 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/nrf24l01.webp 2000w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Connections:<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-white-background-color has-background\"><tbody><tr><td><strong>nRF24L01<\/strong><\/td><td><strong>ARIES V2 board<\/strong><\/td><\/tr><tr><td>VCC<\/td><td>+3.3V<\/td><\/tr><tr><td>CSN<\/td><td>SS0<\/td><\/tr><tr><td>MOSI                                            <\/td><td>MOSI0<\/td><\/tr><tr><td>CE<\/td><td>GPIO0<\/td><\/tr><tr><td>SCK<\/td><td>SCLK0<\/td><\/tr><tr><td>MISO                                                            <\/td><td>MISO0<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><em><strong>Connection pins of  nRF24L01 Module &amp; ARIES  v2.0 Board<\/strong><\/em><\/figcaption><\/figure>\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.0 board, and the Laptop\/Desktop\/PC should be preinstalled with VEGA SDK and Toolchain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-32cb08e5-87b9-4300-9e46-a29be4436adc\"><strong>Procedure<\/strong>:<\/h2>\n\n\n\n<p id=\"block-fe352b07-a674-4754-b285-bafd33106df7\">In this demo,we have to use two Aries boards for connecting two nRF24L01 modules. After setting up the toolchain and SDK path environments are ready, build the example program for the nRF24L01 module i.e. for both receiver programme and transmitter programme simultaneously by:<\/p>\n\n\n\n<pre id=\"block-98c3408c-130d-4e1c-9247-614ed2ea2608\" class=\"wp-block-code\"><code><strong>Receiver Programme<\/strong>-&gt; cd vega-sdk\/examples\/spi\/nrf24l01_radio_rx_demo &amp;\n\n<strong>Transmit Programme<\/strong>-&gt; cd vega-sdk\/examples\/spi\/nrf24l01_radio_tx_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 id=\"block-09fbc4ed-2d51-4916-86e3-5e9d9fc312e3\">Open a new terminal and execute the following command.<\/p>\n\n\n\n<pre id=\"block-42a9557f-d0e9-4acf-badc-ec94ff360de9\" class=\"wp-block-code\"><code>sudo minicom aries<\/code><\/pre>\n\n\n\n<p id=\"block-1ce27174-d8f5-4c2b-b17d-683db89940be\">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\" id=\"block-1353a31a-4d2d-4bd7-ac98-7d65cae80fc3\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"689\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-6.png\" alt=\"\" class=\"wp-image-602\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-6.png 820w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-6-300x252.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/minicom-6-768x645.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<p id=\"block-cd6a17a4-c39e-456a-bd13-46a767c681b1\">Press <strong>CTRL+A  S<\/strong>  to enter the file sending menu and select <strong>xmodem<\/strong> by pressing Enter.<\/p>\n\n\n\n<figure class=\"wp-block-image\" id=\"block-09ca85fc-b896-45b0-b7c3-7325f27c48e7\"><img decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/05\/Screenshot-from-2021-04-30-16-14-03.png\" alt=\"This image has an empty alt attribute; its file name is Screenshot-from-2021-04-30-16-14-03.png\"\/><\/figure>\n\n\n\n<p id=\"block-0493bb63-b7da-4838-b324-03dc3e63853a\">In the next window,with the space bar select the <strong>nrf24l01_radio_rx_demo<\/strong>.<strong>bin<\/strong> on one system and <strong>nrf24l01_radio_tx_demo.bin<\/strong> on another system file to be transferred simultaneously ,by pressing Enter 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,After Completing the transfer the program will start to execute.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output:<\/h2>\n\n\n\n<p>As we know it is <strong>transceiver module<\/strong>, both modules transmit and receive data simultaneously.<\/p>\n\n\n\n<p>In our case both modules transmit and receive strings as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1297\" height=\"729\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-from-2022-10-14-15-56-44-edited.png\" alt=\"\" class=\"wp-image-2175\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-from-2022-10-14-15-56-44-edited.png 1297w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-from-2022-10-14-15-56-44-edited-300x169.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-from-2022-10-14-15-56-44-edited-1024x576.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-from-2022-10-14-15-56-44-edited-768x432.png 768w\" sizes=\"auto, (max-width: 1297px) 100vw, 1297px\" \/><figcaption class=\"wp-element-caption\"><strong>Transmit Programme<\/strong>&#8211;&gt;It sends  &#8220;<strong>hello world<\/strong>&#8221; string and receive &#8220;<strong>vega processors<\/strong>&#8221; from another device.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1297\" height=\"729\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-from-2022-10-14-15-56-24-edited.png\" alt=\"\" class=\"wp-image-2177\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-from-2022-10-14-15-56-24-edited.png 1297w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-from-2022-10-14-15-56-24-edited-300x169.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-from-2022-10-14-15-56-24-edited-1024x576.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-from-2022-10-14-15-56-24-edited-768x432.png 768w\" sizes=\"auto, (max-width: 1297px) 100vw, 1297px\" \/><figcaption class=\"wp-element-caption\"><strong>Receiver Programme<\/strong>&#8211;&gt; It sends  &#8220;<strong><strong>vega processors<\/strong><\/strong>&#8221; string and receive &#8220;<strong>hello world<\/strong>&#8221; string from another module.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will see ,how we can interface nRF24L01 RF Module with Aries v2.0 Board. nRF24L01 Wireless RF Module The&nbsp;nRF24L01 is a wireless transceiver module, meaning each module can both send as well as receive data simultaneously. It has a RFX2401C chip which includes&nbsp;PA&nbsp;(Power Amplifier) and&nbsp;LNA&nbsp;(Low-Noise Amplifier).&nbsp;This amplifies the nRF24L01 signal and enables [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2159","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2159","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=2159"}],"version-history":[{"count":34,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2159\/revisions"}],"predecessor-version":[{"id":2233,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2159\/revisions\/2233"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=2159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=2159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=2159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}