{"id":2048,"date":"2022-12-08T08:44:48","date_gmt":"2022-12-08T08:44:48","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=2048"},"modified":"2022-12-08T08:44:48","modified_gmt":"2022-12-08T08:44:48","slug":"mq135-gas-sensor-module-with-aries-v2-0-board","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/mq135-gas-sensor-module-with-aries-v2-0-board\/","title":{"rendered":"MQ135 Gas Sensor Module with Aries v2.0 Board"},"content":{"rendered":"\n<p>In this tutorial we will see , how we can interface MQ135 Gas Sensor with Aries v2.0 Board.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">MQ135 Gas Sensor Module<\/h2>\n\n\n\n<p>MQ135 Gas Sensor is&nbsp;an air quality sensor for detecting a wide range of gases, including NH3, NOx, alcohol, benzene, smoke and CO2. The gas sensing material used in the MQ135 gas sensor is tin dioxide (SnO2), which has low conductivity in clean air. <\/p>\n\n\n\n<p>When SnO2 semiconductor layer is heated at high temperature, oxygen is adsorbed on the surface. In clean air, electrons from the conduction band in tin dioxide are attracted to oxygen molecules. This form an electron depletion layer just below the surface of SnO2 particles and forms a potential barrier. As a result, the SnO2 film becomes highly resistive and prevents electric current flow.<\/p>\n\n\n\n<p>In the presence of alcohol, however, the surface density of absorbed oxygen decreases as it reacts with the alcohols; which lowers the potential barrier. Electrons are then released into the tin dioxide, allowing current to flow freely through the sensor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Specifications:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Power Supply : 2.5V ~ 5.0V<\/li>\n\n\n\n<li>Module Dimension: 40.0mm * 21.0mm<\/li>\n\n\n\n<li>Mounting holes size: 2.0mm<\/li>\n<\/ul>\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\/image-6.png\" alt=\"\" class=\"wp-image-2052\" width=\"292\" height=\"296\"\/><\/figure>\n<\/div>\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=\"768\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/09\/mq135_gas-1024x768.webp\" alt=\"\" class=\"wp-image-2135\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/09\/mq135_gas-1024x768.webp 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/09\/mq135_gas-300x225.webp 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/09\/mq135_gas-768x576.webp 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/09\/mq135_gas-1536x1152.webp 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/09\/mq135_gas-2048x1536.webp 2048w\" 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 class=\"has-white-background-color has-background\"><tbody><tr><td><strong>MQ135 Gas Sensor Module<\/strong><\/td><td><strong>ARIES V2 board<\/strong><\/td><\/tr><tr><td>VCC<\/td><td>+3.3V<\/td><\/tr><tr><td>AOUT<\/td><td>A1<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><em><strong>Connection pins of MQ135 Gas Sensor Module &amp; ARIES  v2.0 Board<\/strong><\/em><\/figcaption><\/figure>\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<h2 class=\"wp-block-heading\">Procedure:<\/h2>\n\n\n\n<p>After setting up the toolchain and SDK path environments, clean the executable using the <strong>make clean<\/strong> command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd examples\/adc\/mq3_gas_sensor_demo\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>make clean<\/code><\/pre>\n\n\n\n<p>Build the example program for the <strong>MQ135<\/strong> sensor by using the <strong>make<\/strong> command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make <\/code><\/pre>\n\n\n\n<p>Before transferring the built program to the board, ensure that you have connected the UART0 connector of the board to the PC.<\/p>\n\n\n\n<p>Open a new terminal, execute the following command <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo minicom aries<\/code><\/pre>\n\n\n\n<p>Now you can see the minicom terminal opened and the board UART terminal is ready.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"689\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-20.png\" alt=\"\" class=\"wp-image-1496\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-20.png 820w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-20-300x252.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/06\/image-20-768x645.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<p>Press <strong>CTRL+A and then press  S<\/strong> to enter the file sending menu and select <strong>xmodem<\/strong> by pressing <strong>Enter<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"615\" height=\"143\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03.png\" alt=\"\" class=\"wp-image-230\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03.png 615w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-30-16-14-03-300x70.png 300w\" sizes=\"auto, (max-width: 615px) 100vw, 615px\" \/><\/figure>\n\n\n\n<p>In the next window, select the <strong><em>mq3_gas_sensor_demo.bin <\/em><\/strong> file to be transferred with the Space bar , By pressing the Enter, the transfer process starts.<\/p>\n\n\n\n<p>Wait until the process is completed , After completing the transfer the program will start to execute.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output:<\/h2>\n\n\n\n<p>As we know the<strong> MQ-135<\/strong> Gas sensor can detect gases like Ammonia (NH3), sulfur (S), Benzene (C6H6), CO2, and other harmful gases and smoke , Similar to other MQ series gas sensor, this sensor also has a digital and analog output pin.&nbsp;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 &#8220;<strong>Alcohol Detected<\/strong>&#8221; with <strong>Red LED(built-in) ON<\/strong> , otherwise the output as &#8220;<strong>Alcohol Free<\/strong>&#8221; with a <strong>Green LED<\/strong>(built-in) <strong>ON<\/strong>. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1518\" height=\"854\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/11\/mq3-edited.png\" alt=\"\" class=\"wp-image-2198\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/11\/mq3-edited.png 1518w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/11\/mq3-edited-300x169.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/11\/mq3-edited-1024x576.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2022\/11\/mq3-edited-768x432.png 768w\" sizes=\"auto, (max-width: 1518px) 100vw, 1518px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will see , how we can interface MQ135 Gas Sensor with Aries v2.0 Board. MQ135 Gas Sensor Module MQ135 Gas Sensor is&nbsp;an air quality sensor for detecting a wide range of gases, including NH3, NOx, alcohol, benzene, smoke and CO2. The gas sensing material used in the MQ135 gas sensor is [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2048","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2048","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=2048"}],"version-history":[{"count":32,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2048\/revisions"}],"predecessor-version":[{"id":2226,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/2048\/revisions\/2226"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=2048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=2048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=2048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}