{"id":2285,"date":"2023-07-25T10:02:44","date_gmt":"2023-07-25T10:02:44","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=2285"},"modified":"2023-09-18T10:02:56","modified_gmt":"2023-09-18T10:02:56","slug":"mq-3-gas-sensor-module-with-aries-v2-0-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/mq-3-gas-sensor-module-with-aries-v2-0-board\/","title":{"rendered":"MQ-3 Gas Sensor Module with VEGA ARIES boards"},"content":{"rendered":"\n<p>In this tutorial we will see how we can interface the MQ-3 Gas Sensor with Aries v2.0 Board.<\/p>\n\n\n\n<p>The MQ3 alcohol sensor can detect alcohol concentrations ranging from 25 to 500 ppm. The sensor\u2019s analog output voltage (at the A0 pin) varies in proportion to the alcohol concentration. The higher the concentration of alcohol in the air, the higher the output voltage; the lower the concentration, the lower the output voltage.&nbsp;<\/p>\n\n\n\n<p><strong>Technical Specifications<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Operating voltage<\/td><td>5V<\/td><\/tr><tr><td>Heating consumption<\/td><td>&lt;800mw<\/td><\/tr><tr><td>Sensing Resistance<\/td><td>1 M\u03a9 \u2013 8 M\u03a9<\/td><\/tr><tr><td>Concentration Range<\/td><td>25 \u2013 500 ppm<\/td><\/tr><tr><td>Preheat Time<\/td><td>Over 24 hour<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Finding the threshold values<\/h3>\n\n\n\n<p>To estimate the level of alcohol intoxication, you need to record the values your sensor outputs when you blow on it before and after consuming alcohol.<\/p>\n\n\n\n<p>Note:<\/p>\n\n\n\n<p>If you are not legally permitted to consume alcoholic beverages, use an isopropyl alcohol bottle or any hand sanitizer bottle for your testing. Don\u2019t get alcohol on the sensor. Simply squeeze the bottle to allow the alcohol vapours to enter the sensor and take your readings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>COMPONENTS NEEDED<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ARIES v2 Microcontroller<\/li>\n\n\n\n<li>An MQ-3 Alcohol sensor<\/li>\n\n\n\n<li>A breadboard<\/li>\n\n\n\n<li>Jumper wires<\/li>\n\n\n\n<li>2.7K &amp; 4.7K ohm resistors<\/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<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>MQ-3 Gas Sensor &nbsp; &nbsp;&nbsp;&nbsp;<\/td><td>Aries Board<\/td><\/tr><tr><td>VCC &nbsp; &nbsp; &nbsp;<\/td><td>5V<\/td><\/tr><tr><td>GND &nbsp; &nbsp; &nbsp;&nbsp;<\/td><td>GND<\/td><\/tr><tr><td>A0&nbsp; &nbsp; &nbsp; &nbsp;<\/td><td>A0 using 2.7K &amp; 4.7K&nbsp; Resistor&nbsp;<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><sub><em>Connection pins of MQ-3 Gas Sensor Module &amp; ARIES v2.0 Board<\/em><br><\/sub><\/strong><br>Note: A voltage divider is required between MQ3 sensor output and Analog pin of Aries board, for accurate measurements.&nbsp;Connect a 2.7K resistor to A0 pin of MQ3 sensor. Connect one end of the 4.7K resistor in series to the 2.7K resistor, and the other end to the GND. Take the output from the junction of 2.7K and 4.7K resistors.<br><br><\/figcaption><\/figure>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Op.png\" alt=\"MQ-3 gas sensor interfacing with Aries v2 diagram\" class=\"wp-image-2287\" style=\"width:840px;height:470px\" width=\"840\" height=\"470\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Op.png 1292w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Op-300x168.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Op-1024x574.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Op-768x430.png 768w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><figcaption class=\"wp-element-caption\"><em>Interfacing MQ-3 sensor with ARIES v2<\/em><\/figcaption><\/figure>\n<\/div>\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\"><strong>Procedure:<\/strong><\/h2>\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<div class=\"wp-block-image\">\n<figure class=\"aligncenter 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:510px;height:330px\" width=\"510\" height=\"330\" 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: 510px) 100vw, 510px\" \/><figcaption class=\"wp-element-caption\"><em>ARIES board selection from Tool Menu<\/em><\/figcaption><\/figure>\n<\/div>\n\n\n<p>Open File -&gt; Examples -&gt; Examples for ARIES v2 -&gt; ADC -&gt; Open MQ3_Gas Sensor example<\/p>\n\n\n\n<p>Compile and Upload the code&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3_example.png\" alt=\"MQ-3 sensor from examples\" class=\"wp-image-2290\" style=\"width:450px;height:515px\" width=\"450\" height=\"515\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3_example.png 599w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3_example-262x300.png 262w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Output:<\/strong><\/h2>\n\n\n\n<p>As we know the MQ-3 Gas sensor can detect gases like Alcohol, Benzene (C6H6), CH4, LPG and other harmful gases and smoke , Similar to other MQ series gas sensor, this sensor also has a digital and analog output pin. We can set the threshold value according to the Sensor , by bringing the alcoholic material nearby to this sensor the level of these gases go beyond a threshold limit in the air and the digital pin goes high &amp; we will get the output as \u201cAlcohol Detected\u201d with Red LED (built-in) ON , otherwise the output as \u201cNo Alcohol Detected\u201d in serial monitor.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Output.png\" alt=\"Serial Monitor output\" class=\"wp-image-2291\" style=\"width:691px;height:353px\" width=\"691\" height=\"353\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Output.png 977w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Output-300x153.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Output-768x392.png 768w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><figcaption class=\"wp-element-caption\"><em>Serial Monitor output<\/em><\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Pic.png\" alt=\"MQ-3 output\" class=\"wp-image-2292\" style=\"width:659px;height:464px\" width=\"659\" height=\"464\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Pic.png 992w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Pic-300x212.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/07\/mq3Pic-768x542.png 768w\" sizes=\"auto, (max-width: 659px) 100vw, 659px\" \/><figcaption class=\"wp-element-caption\"><em>MQ-3 output<\/em><\/figcaption><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will see how we can interface the MQ-3 Gas Sensor with Aries v2.0 Board. The MQ3 alcohol sensor can detect alcohol concentrations ranging from 25 to 500 ppm. The sensor\u2019s analog output voltage (at the A0 pin) varies in proportion to the alcohol concentration. The higher the concentration of alcohol in [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":2287,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2285","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2285","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=2285"}],"version-history":[{"count":7,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2285\/revisions"}],"predecessor-version":[{"id":3309,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2285\/revisions\/3309"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media\/2287"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=2285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=2285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=2285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}