{"id":1632,"date":"2022-06-27T08:48:19","date_gmt":"2022-06-27T08:48:19","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=1632"},"modified":"2022-12-26T05:18:57","modified_gmt":"2022-12-26T05:18:57","slug":"rfid-rc-522-with-aries-v2-0-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/rfid-rc-522-with-aries-v2-0-board\/","title":{"rendered":"Radio Frequency Identification(RFID)-RC 522 Module with ARIES v2.0 Board"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface RC-522 RFID module to Aries v2.0 Board. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Radio-Frequency Identification(RFID)<\/h2>\n\n\n\n<p><strong>RFID<\/strong> stands for Radio-Frequency Identification. RFID uses electromagnetic fields to automatically identify and track tags attached to objects. The tags contain electronically stored information. <\/p>\n\n\n\n<p>An RFID system consists of a tiny radio transponder, a radio receiver, and a transmitter. When triggered by an electromagnetic interrogation pulse from a nearby RFID reader device, the tag transmits digital data, usually an identifying inventory number, back to the reader. This number can be used to track inventory goods.<\/p>\n\n\n\n<p>There are two types of tag:<\/p>\n\n\n\n<p>1)<strong>Passive tags<\/strong> &#8211;  It collects the energy from a nearby RFID reader&#8217;s interrogating radio waves.<\/p>\n\n\n\n<p>2) <strong>Active tags<\/strong> &#8211;   It has a local power source (such as a battery) and may operate hundreds of meters from the RFID reader.  <\/p>\n\n\n\n<p>Unlike a barcode, the tags don&#8217;t need to be within the line of sight of the reader, so it may be embedded in the tracked object.<\/p>\n\n\n\n<p>The RC522 RFID Reader module is <strong>designed to create a 13.56MHz electromagnetic field that it uses to communicate with the RFID tags<\/strong> (ISO 14443A standard tags). The reader module can communicate with a micro-controller over a 4-pin Serial Peripheral Interface (SPI).<\/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\/06\/image-31.png\" alt=\"\" class=\"wp-image-1637\" width=\"294\" height=\"294\"\/><figcaption class=\"wp-element-caption\">RFID-RC522<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Circuit Diagram:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/rfid-1-1024x576.webp\" alt=\"\" class=\"wp-image-1651\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/rfid-1-1024x576.webp 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/rfid-1-300x169.webp 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/rfid-1-768x432.webp 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/rfid-1-1536x864.webp 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/rfid-1-2048x1152.webp 2048w\" sizes=\"auto, (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>RC522 Module<\/strong><\/td><td><strong>ARIES V2 board<\/strong><\/td><\/tr><tr><td>VCC<\/td><td>+3.3V<\/td><\/tr><tr><td>SDA<\/td><td>SS0<\/td><\/tr><tr><td>SCK<\/td><td>SCLK0<\/td><\/tr><tr><td>MOSI<\/td><td>MOSI0<\/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 RC522 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 board, and the Laptop\/Desktop\/PC should be preinstalled with VEGA SDK and Toolchain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure:<\/h2>\n\n\n\n<p>After setting up the toolchain and SDK path environments, clean the executable using <strong>make clean<\/strong> command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd examples\/spi\/rc522_rfid_demo\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>make clean<\/code><\/pre>\n\n\n\n<p>Build the example program for <strong>RFID-RC522 <\/strong> sensor by using <strong>make<\/strong> command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make <\/code><\/pre>\n\n\n\n<p>Before transferring the built program to board, ensure that you have connected the UART0 connector of the board to the PC.<\/p>\n\n\n\n<p>Open a new terminal, 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-full\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"689\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-33.png\" alt=\"\" class=\"wp-image-1656\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-33.png 820w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-33-300x252.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-33-768x645.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<p>Press <strong>CTRL+A and then press  S<\/strong> to enter file sending menu and select <strong>xmodem<\/strong> by pressing <strong>Enter<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"143\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03.png\" alt=\"\" class=\"wp-image-230\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03.png 615w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/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 <strong>Space bar<\/strong> select the  <strong><em>rc522_rfid_demo.bin <\/em><\/strong>file to be transferred. By pressing <strong>Enter<\/strong>, 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<h2 class=\"wp-block-heading\">Output:<\/h2>\n\n\n\n<p>When we bring an RFID Card near to the RFID-RC522 Sensor it shows respective Card Id and Card type as shown below:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"507\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/RFID-1024x507.png\" alt=\"\" class=\"wp-image-1660\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/RFID-1024x507.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/RFID-300x148.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/RFID-768x380.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/RFID-1536x760.png 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/RFID.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface RC-522 RFID module to Aries v2.0 Board. Radio-Frequency Identification(RFID) RFID stands for Radio-Frequency Identification. RFID uses electromagnetic fields to automatically identify and track tags attached to objects. The tags contain electronically stored information. An RFID system consists of a tiny radio transponder, a radio receiver, [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,14,1],"tags":[],"class_list":["post-1632","post","type-post","status-publish","format-standard","hentry","category-getting-started","category-tutorials","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1632","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=1632"}],"version-history":[{"count":27,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1632\/revisions"}],"predecessor-version":[{"id":2259,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1632\/revisions\/2259"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=1632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=1632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=1632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}