{"id":767,"date":"2021-06-07T04:34:12","date_gmt":"2021-06-07T04:34:12","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=767"},"modified":"2023-09-12T04:53:17","modified_gmt":"2023-09-12T04:53:17","slug":"proximity-sensor-with-thejas-soc","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/proximity-sensor-with-thejas-soc\/","title":{"rendered":"Proximity Sensor with ARIES v2 Board"},"content":{"rendered":"\n<p>In this tutorial, we are going to interface the FC-51 infrared sensor with the ARIES v2 board. FC 51 infrared sensor module is used to detect, if something is passing by or an obstacle is nearby, like in an obstacle avoidance robot. This module is very easy to use, it sends infrared waves, and if there\u2019s an obstacle on the way then it reflects back, hence the object is detected.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FC 51 Proximity Sensor<\/h2>\n\n\n\n<p>Infrared Obstacle Avoidance Proximity Sensors Module has a built-in IR transmitter and IR receiver that sends out IR energy and looks for reflected IR energy to detect the presence of any obstacle in front of the sensor module. The module has an onboard potentiometer&nbsp;that lets users adjust the detection range. The sensor has a very good and stable response even in ambient light or in complete darkness.<\/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\/06\/TE174-04-700x700-product_popup.jpg\" alt=\"\" class=\"wp-image-790\" style=\"width:445px;height:445px\" width=\"445\" height=\"445\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/06\/TE174-04-700x700-product_popup.jpg 700w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/06\/TE174-04-700x700-product_popup-300x300.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/06\/TE174-04-700x700-product_popup-150x150.jpg 150w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-41665783-295e-4655-8277-d85b700b7227\">Circuit Diagram<\/h2>\n\n\n\n<p id=\"block-f309353c-9913-4a11-b66b-e7f73d336b88\"><strong>Proximity Sensor<\/strong> is composed of<strong> 3<\/strong> pins. Connect VCC and GND of sensor module to +3.3V and GND respectively of ARIES v2 board. Then connect  Out pin of sensor module to GPIO 0 pin of 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 is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/05\/pinmap_Ar_PROXIMITY.jpg\" alt=\"\" class=\"wp-image-1166\" style=\"width:836px;height:577px\" width=\"836\" height=\"577\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/05\/pinmap_Ar_PROXIMITY.jpg 755w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/05\/pinmap_Ar_PROXIMITY-300x207.jpg 300w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Proximity Sensor<\/strong><\/td><td><strong>ARIES v2 Board<\/strong><\/td><\/tr><tr><td>VCC<\/td><td>3.3V<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>Signal Out<\/td><td>GPIO 0<\/td><\/tr><\/tbody><\/table><\/figure>\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\">After setting up the toolchain and SDK path environments, build the example program for the Proximity Sensor module by:<\/p>\n\n\n\n<pre id=\"block-98c3408c-130d-4e1c-9247-614ed2ea2608\" class=\"wp-block-code\"><code>cd vega-sdk\/examples\/gpio\/proximity_sensor_pgm<\/code><\/pre>\n\n\n\n<p><strong>make<\/strong> <strong>clean<\/strong> 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 <strong>make<\/strong> 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 UART0 connector of the board 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\">Use CTRL+A S to enter file sending menu and select xmodem by pressing <strong>Enter<\/strong>.<\/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 <strong>space bar<\/strong> select the <strong>proximity_sensor_pgm.bin<\/strong> file to be transferred, by pressing <strong>Enter<\/strong>, the transfer process starts.<\/p>\n\n\n\n<p id=\"block-c0f4d3e2-615d-46dc-b456-17b196e9c263\">Wait until the process is completed. The screen should display how much data has been transferred.<\/p>\n\n\n\n<p id=\"block-cf92dbc8-fa97-4bed-aa6d-e08e48e7877e\">After completing transfer the Program will start to execute.<\/p>\n\n\n\n<p id=\"block-c0d91f20-0043-4ee4-9abc-95d51109316b\">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=\"945\" height=\"705\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-03-13-12-37.png\" alt=\"\" class=\"wp-image-777\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-03-13-12-37.png 945w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-03-13-12-37-300x224.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-03-13-12-37-768x573.png 768w\" sizes=\"auto, (max-width: 945px) 100vw, 945px\" \/><\/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: Proximity Sensor Demo\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/j-QJ7qqpUhA?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 informations :<\/p>\n\n\n\n<p><a href=\"http:\/\/www.dmf.unisalento.it\/~denunzio\/allow_listing\/ARDUINO\/FC51.pdf\">http:\/\/www.dmf.unisalento.it\/~denunzio\/allow_listing\/ARDUINO\/FC51.pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to interface the FC-51 infrared sensor with the ARIES v2 board. FC 51 infrared sensor module is used to detect, if something is passing by or an obstacle is nearby, like in an obstacle avoidance robot. This module is very easy to use, it sends infrared waves, and if [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":790,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,14],"tags":[75,7,68,62,26,31,24],"class_list":["post-767","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-getting-started","category-tutorials","tag-aries-v2-board","tag-cdac","tag-gpio","tag-proximity-sensor","tag-thejas-64","tag-thejas32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/767","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=767"}],"version-history":[{"count":24,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/767\/revisions"}],"predecessor-version":[{"id":3237,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/767\/revisions\/3237"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media\/790"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}