{"id":2365,"date":"2023-07-27T11:23:39","date_gmt":"2023-07-27T11:23:39","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=2365"},"modified":"2023-09-18T10:00:42","modified_gmt":"2023-09-18T10:00:42","slug":"interfacing-flame-sensor-with-aries-v2-0","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/interfacing-flame-sensor-with-aries-v2-0\/","title":{"rendered":"Interfacing flame sensor with VEGA ARIES boards"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface a flame sensor with ARIES V2 board. A Flame Sensor is a device that can be used to detect presence of a fire source or any other bright light sources.&nbsp;In this project, we are using an<strong>&nbsp;<\/strong>IR based flame sensor.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Flame Sensor<\/h2>\n\n\n\n<p>The  flame sensor we are using is based on YG1006 NPN Photo Transistor. The black object at the front of the module is this&nbsp;photo transistor. This photo transistor is coated with black epoxy, making it sensitive to Infrared radiations and this particular Photo Transistor (YG1006) is sensitive to Infrared Radiation in the wavelength range of 760nm to 1100nm. Using this particular type of Flame Sensor, you can detect Infrared Light up to a distance of 100cm within its 60 degrees of detection angle.<\/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\/2023\/07\/flameimg.png\" alt=\"\" class=\"wp-image-2367\" style=\"width:241px;height:116px\" width=\"241\" height=\"116\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flameimg.png 664w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flameimg-300x144.png 300w\" sizes=\"auto, (max-width: 241px) 100vw, 241px\" \/><\/figure>\n\n\n\n<p>The&nbsp;<strong>flame sensor<\/strong>&nbsp;has four pins: VCC, AOUT, DOUT and GND. Connect VCC and GND of flame sensor module to 3.3V and GND respectively of ARIES v2 board. Then connect the AOUT Pin of the flame sensor to the A0 pin of ARIES v2 board for getting the analog output.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Flame 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>AOUT<\/td><td>A0<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><em><strong>Connection pins of flame sensor Module &amp; ARIES v2.0 Board<\/strong><\/em><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Components Required<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ARIES v2 Microcontroller<\/li>\n\n\n\n<li>Flame sensor<\/li>\n\n\n\n<li>Jumper wires<\/li>\n<\/ul>\n\n\n\n<p><strong>Not<\/strong><strong>e:<\/strong>&nbsp;All of the following boards can be used for this project<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv2.php\">ARIES v2.0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\">ARIES v3.0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesmicro.php\">ARIES Micro<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesdot.php\">ARIES DOT<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesiot.php\">ARIES IoT<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Connection Diagram<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1132\" height=\"720\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flamediagram.png\" alt=\"Connection Diagram for flame sensor with ARIES v2.0\" class=\"wp-image-2368\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flamediagram.png 1132w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flamediagram-300x191.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flamediagram-1024x651.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flamediagram-768x488.png 768w\" sizes=\"auto, (max-width: 1132px) 100vw, 1132px\" \/><figcaption class=\"wp-element-caption\"><em><strong>Connection Diagram for flame sensor with ARIES v2.0<\/strong><\/em><\/figcaption><\/figure>\n\n\n\n<p>Now, for powering up the ARIES v2 board via the 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 UART-0 port of the ARIES v2 board, and the Laptop\/Desktop\/PC should be preinstalled with Arduino IDE and VEGA ARIES boards of latest version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>Here we are using Arduino IDE 1.8.19 for testing the code.<\/p>\n\n\n\n<p>Open Arduino IDE<\/p>\n\n\n\n<p>Go to Tools -&gt; Board -&gt; VEGA Processor ARIES Boards -&gt; Select ARIES v2<\/p>\n\n\n\n<p>Go to Tools -&gt; Programmer -&gt; Select VEGA XMODEM<\/p>\n\n\n\n<p>Connect the ARIES v2 board to PC<\/p>\n\n\n\n<p>Go to Tools -&gt; Port -&gt; Select the appropriate port<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/toolMenu.png\" alt=\"ARIES board selection from Tool Menu\" class=\"wp-image-2289\" style=\"width:442px;height:286px\" width=\"442\" height=\"286\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/toolMenu.png 976w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/toolMenu-300x195.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/toolMenu-768x498.png 768w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/figure>\n\n\n\n<p>Open File -&gt; Examples -&gt; Examples for ARIES v2 -&gt;ADC -&gt; Open&nbsp;<strong>flameSensor<\/strong>&nbsp;example<\/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\/2023\/07\/flameex.png\" alt=\"\" class=\"wp-image-2369\" style=\"width:300px;height:241px\" width=\"300\" height=\"241\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flameex.png 573w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flameex-300x241.png 300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p>Once you\u2019ve completed the code, upload it to your ARIES v2.0 board using the Arduino IDE.&nbsp;Wait until the program is uploaded. After completing the uploading the program will start to execute. <\/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\/2023\/07\/flameOP.png\" alt=\"\" class=\"wp-image-2374\" style=\"width:377px;height:310px\" width=\"377\" height=\"310\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flameOP.png 773w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flameOP-300x246.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flameOP-768x631.png 768w\" sizes=\"auto, (max-width: 377px) 100vw, 377px\" \/><\/figure>\n\n\n\n<p>Flame sensor will detect fire for about a small range of less than 3 feets.  If holding a flame within &#8220;1.5 feet&#8221; or &#8220;1.5 to 3&#8221; feet in front of the sensor; &#8220;case 0&#8221; (&#8220;Close Fire&#8221;) or &#8220;case 1&#8221; (&#8220;Distant Fire&#8221;) will be activated respectively. If &#8220;no flame&#8221; is detected; &#8220;case 2&#8221; will be activated (&#8220;No Fire&#8221;) which can be seen on the serial monitor. The onboard LEDs will also act as an indicator.<\/p>\n\n\n\n<p>For &#8220;No fire&#8221; GREEN LED will be ON, For &#8220;Distant Fire&#8221; BLUE LED will be ON and for &#8220;Close fire&#8221; RED LED will be ON.<\/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\/2023\/07\/flamesensorOp.png\" alt=\"\" class=\"wp-image-2370\" style=\"width:629px;height:322px\" width=\"629\" height=\"322\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flamesensorOp.png 970w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flamesensorOp-300x154.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flamesensorOp-768x394.png 768w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstartion<\/h2>\n\n\n\n<p>You can use either a match stick or lighter also for demo purpose. Here I am using flash light from mobile for showing the demo output since we are using an IR based flame sensor.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"368\" style=\"aspect-ratio: 640 \/ 368;\" width=\"640\" controls src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/flamedemo.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface a flame sensor with ARIES V2 board. A Flame Sensor is a device that can be used to detect presence of a fire source or any other bright light sources.&nbsp;In this project, we are using an&nbsp;IR based flame sensor.&nbsp; Flame Sensor The flame sensor we [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":2374,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[69,75,76,77,24],"class_list":["post-2365","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-analog-out","tag-aries-v2-board","tag-c-dac","tag-thejas-32","tag-vegaprocessor"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2365","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=2365"}],"version-history":[{"count":9,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2365\/revisions"}],"predecessor-version":[{"id":3307,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2365\/revisions\/3307"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media\/2374"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=2365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=2365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=2365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}