{"id":3773,"date":"2023-10-19T03:01:30","date_gmt":"2023-10-19T03:01:30","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=3773"},"modified":"2023-11-03T08:25:49","modified_gmt":"2023-11-03T08:25:49","slug":"interfacing-hw-201-ir-proximity-sensor-with-vega-aries-boards","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/interfacing-hw-201-ir-proximity-sensor-with-vega-aries-boards\/","title":{"rendered":"Interfacing HW-201 IR proximity sensor with VEGA ARIES boards"},"content":{"rendered":"\n<p>This blog will guide you on interfacing HW-201 IR proximity sensor with ARIES v3.0 boards. Here, an AC remote is used as the IR source and sensor(HW-201) as the IR receiver.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IR source<\/h2>\n\n\n\n<p>An IR (infrared) sensor is an electronic component that detects and measures the infrared radiation ( IR signals are not observable by the human eye)&nbsp; in its environment. When a human, object, or anything comes closer to the sensor, the IR from the LED reflects off of the object and is detected by the receiver..<\/p>\n\n\n\n<p>We can use any device which can radiate infrared. Other way we can say any thing having temperature radiates infrared. Like surface of the earth, Sun, human body, optical fibers, thermal imaging cameras, electric heaters, remote control, etc all these will emit infrared waves that is not visible to our naked eyes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">IR receiver<\/h2>\n\n\n\n<p>Receiver will receive infrared waves and sense it. This receiver module act as sensor which will help us to get the IR codes in a proper format. HW-201 is an IR detection module consists of an infrared transmitter, an infrared detector and its circuit but in this case I am using only infrared detector and remove the infrared transmitter from the module.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"395\" height=\"180\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/th-1.jpeg\" alt=\"\" class=\"wp-image-3776\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/th-1.jpeg 395w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/th-1-300x137.jpeg 300w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows 10 or above\/Linux (64 bit)<\/li>\n\n\n\n<li>Arduino IDE<\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\" target=\"_blank\" rel=\"noreferrer noopener\">VEGA ARIES Board support package<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Components Required<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ARIES v3.0 Board<\/li>\n\n\n\n<li>USB type C to USB type A cable<\/li>\n\n\n\n<li>HW-201 IR Proximity sensor<\/li>\n\n\n\n<li>Jumper Wires<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"481\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/IR-2-1024x481.png\" alt=\"\" class=\"wp-image-3890\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/IR-2-1024x481.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/IR-2-300x141.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/IR-2-768x360.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/IR-2.png 1302w\" 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><tbody><tr><td><strong>HW201 IR Proximity sensor<\/strong><\/td><td><strong>ARIES V3 board<\/strong><\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>VCC<\/td><td>3V3<\/td><\/tr><tr><td>OUT<\/td><td>GPIO-4<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>Connection pins of IR proximity sensor &amp; ARIES v3.0 Board<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>Open and set up the Arduino IDE as described in&nbsp;<a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\" target=\"_blank\" rel=\"noreferrer noopener\">Getting Started with ARIES v3.0<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Make sure you have selected&nbsp;<strong>ARIES v3<\/strong>&nbsp;Board from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Board<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA Processor: ARIES Boards<\/strong>&nbsp;-&gt;&nbsp;<strong>ARIES v3<\/strong><\/li>\n\n\n\n<li>Select&nbsp;<strong>Tools -&gt; Flash Mode -&gt; Enabled<\/strong><\/li>\n\n\n\n<li>Select Programmer as VEGA FLASHER from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Programmer<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA FLASHER<\/strong><\/li>\n\n\n\n<li>Also select appropriate port from\u00a0<strong>Tools<\/strong>\u00a0->\u00a0<strong>Port\u00a0-> COM* (ARIES Board)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"630\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/Screenshot-3-14.png\" alt=\"\" class=\"wp-image-4423\" style=\"aspect-ratio:1.5269841269841269;width:637px;height:auto\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/Screenshot-3-14.png 962w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/Screenshot-3-14-300x196.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/Screenshot-3-14-768x503.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/figure>\n\n\n\n<p>Now, Open&nbsp;<strong>Files<\/strong>&nbsp;-&gt;&nbsp;<strong>Examples<\/strong>&nbsp;-&gt; Under&nbsp;<strong>Examples for ARIES v3<\/strong>&nbsp;<strong>-&gt;&nbsp;GPIO-&gt;&nbsp;IR_Sensor_HW201<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"541\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-07-172917-1024x541.png\" alt=\"\" class=\"wp-image-3778\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-07-172917-1024x541.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-07-172917-300x158.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-07-172917-768x406.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-07-172917.png 1496w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Finally<strong> Upload<\/strong> the code to ARIES v3.0 board<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p>GREEN LED on the aries board will ON when the IR sensor receives infrared waves. You can show an AC remote or TV remote to test the output <\/p>\n\n\n\n<p><strong>Note: <\/strong>IR proximity sensor is sensitive to light, so make sure bright light is not directly falling on the sensor to get exact output.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\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\/2023\/10\/1-2-1024x576.jpg\" alt=\"\" class=\"wp-image-3957\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-2-1024x576.jpg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-2-300x169.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-2-768x432.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-2-1536x864.jpg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-2-2048x1152.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><em><strong>Figure: <\/strong>IR proximity sensor connected to ARIES v3.0 board<\/em><\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-6-1024x768.jpg\" alt=\"\" class=\"wp-image-3961\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-6-1024x768.jpg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-6-300x225.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-6-768x576.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-6-1536x1152.jpg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-6-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>With IR objects (AC Remote) infront of IR sensor the internal GREEN LED in ARIES board and indicator LEDs are ON<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-5-1024x768.jpg\" alt=\"\" class=\"wp-image-3960\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-5-1024x768.jpg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-5-300x225.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-5-768x576.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-5-1536x1152.jpg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-5-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>With IR objects (TV Remote) infront of IR sensor the internal GREEN LED in ARIES board and indicator LEDs are ON<\/p>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstration<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1280 \/ 720;\" width=\"1280\" controls src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-2.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This blog will guide you on interfacing HW-201 IR proximity sensor with ARIES v3.0 boards. Here, an AC remote is used as the IR source and sensor(HW-201) as the IR receiver. IR source An IR (infrared) sensor is an electronic component that detects and measures the infrared radiation ( IR signals are not observable by [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":3957,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94,98],"tags":[95,76,7,68,77,31,24],"class_list":["post-3773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aries-with-arduinoide","category-training-2","tag-aries-v3-board","tag-c-dac","tag-cdac","tag-gpio","tag-thejas-32","tag-thejas32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3773","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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=3773"}],"version-history":[{"count":17,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3773\/revisions"}],"predecessor-version":[{"id":4425,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3773\/revisions\/4425"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media\/3957"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=3773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=3773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=3773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}