{"id":1817,"date":"2022-09-12T09:22:42","date_gmt":"2022-09-12T09:22:42","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=1817"},"modified":"2022-09-12T09:22:42","modified_gmt":"2022-09-12T09:22:42","slug":"capturing-irinfrared-signals-using-aries","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/capturing-irinfrared-signals-using-aries\/","title":{"rendered":"Capturing IR(Infrared) signals using ARIES"},"content":{"rendered":"\n<p>This blog will guide you on receiving IR codes from an IR source using ARIES v2 board. 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>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<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/20220803_094725-1024x451.jpg\" alt=\"\" class=\"wp-image-2003\" width=\"296\" height=\"130\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/20220803_094725-1024x451.jpg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/20220803_094725-300x132.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/20220803_094725-768x338.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/20220803_094725-1536x676.jpg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/20220803_094725-2048x902.jpg 2048w\" sizes=\"auto, (max-width: 296px) 100vw, 296px\" \/><figcaption><sup>Figure 1: HW-201<\/sup><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Circuit diagram<\/h2>\n\n\n\n<p>Pins connection of receiver module with ARIES micro-controller, it requires three connections.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>HW-201<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>ARIES V2<\/strong><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Vcc<\/td><td class=\"has-text-align-center\" data-align=\"center\">3.3V<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">GND<\/td><td class=\"has-text-align-center\" data-align=\"center\">GND<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">OUT<\/td><td class=\"has-text-align-center\" data-align=\"center\">Any GPIO pin; in our case it is GPIO pin 4.<\/td><\/tr><\/tbody><\/table><figcaption>                 Table 1: Brief of pins connection                      <\/figcaption><\/figure>\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\/08\/ckt_IR_Rx-2.jpg\" alt=\"\" class=\"wp-image-1925\" width=\"475\" height=\"317\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/ckt_IR_Rx-2.jpg 437w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/ckt_IR_Rx-2-300x200.jpg 300w\" sizes=\"auto, (max-width: 475px) 100vw, 475px\" \/><figcaption><sub>Figure 2: Connection diagram<\/sub><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>After setting up the toolchain and SDK path environments, follow the below steps in the terminal.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>$<\/strong> <strong>cd vega-sdk\/examples\/gpio\/ir_capture<\/strong>\n<strong>$ make clean<\/strong>\nBuild the example program for <strong>ir_capture<\/strong> by using make command\n<strong>$ make<\/strong>\nBefore transferring the built program to board, ensure that you have connected the UART0 connector of the board to the PC.\nOpen a new terminal, execute the following command\n<strong>$ sudo minicom aries<\/strong>\nYou can see the minicom terminal opened and the board UART terminal is ready.\n<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"667\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/UART_XMODEM_SS.png\" alt=\"\" class=\"wp-image-2005\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/UART_XMODEM_SS.png 795w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/UART_XMODEM_SS-300x252.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/UART_XMODEM_SS-768x644.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><figcaption><sub>Figure 3: UART XMODEM<\/sub><\/figcaption><\/figure>\n<\/div>\n\n\n<p>Use <strong>CTRL+A S<\/strong> to enter file transferring menu and select <strong>xmodem<\/strong> by pressing <strong>Enter<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"767\" height=\"184\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/Selection_XMODEM_SS.png\" alt=\"\" class=\"wp-image-2007\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/Selection_XMODEM_SS.png 767w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/Selection_XMODEM_SS-300x72.png 300w\" sizes=\"auto, (max-width: 767px) 100vw, 767px\" \/><figcaption><sub>Figure 4: XMODEM<\/sub><\/figcaption><\/figure>\n<\/div>\n\n\n<p>In the next window,  select the <strong>ir_capture.bin<\/strong> file to transfer by pressing<strong> space bar<\/strong> then press <strong>Enter<\/strong> to transfer the respective bin file. Again press <strong>Enter<\/strong> to start the execution of the program.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p>A sample output is given below. It shows time span of low and high pulses of IR data stream in two separate arrays. Our IR data stream is combination of high and low pulses, we stored it separately for our own convenience. The information from this sample output is the IR data stream is low for 6 count time, a high for 16 count time, followed by low for 11 count time and so on.<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"408\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/OUTPUT_SS.png\" alt=\"\" class=\"wp-image-2028\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/OUTPUT_SS.png 729w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/08\/OUTPUT_SS-300x168.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This blog will guide you on receiving IR codes from an IR source using ARIES v2 board. Here, an AC remote is used as the IR source and sensor(HW-201) as the IR receiver. IR source We can use any device which can radiate infrared. Other way we can say any thing having temperature radiates infrared. [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,20],"tags":[75,68,89,90,77,91],"class_list":["post-1817","post","type-post","status-publish","format-standard","hentry","category-application-development","category-general","tag-aries-v2-board","tag-gpio","tag-ir-receiver","tag-ir-source","tag-thejas-32","tag-veag"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1817","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=1817"}],"version-history":[{"count":36,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1817\/revisions"}],"predecessor-version":[{"id":2109,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/1817\/revisions\/2109"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=1817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=1817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=1817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}