{"id":4452,"date":"2025-06-02T07:21:07","date_gmt":"2025-06-02T14:21:07","guid":{"rendered":"https:\/\/www.donluc.com\/?p=4452"},"modified":"2025-06-02T07:21:07","modified_gmt":"2025-06-02T14:21:07","slug":"project-15-environment-gas-sensor-mq3-mk30","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=4452","title":{"rendered":"Project #15: Environment &#8211; Gas Sensor MQ3 &#8211; Mk30"},"content":{"rendered":"<div style=\"width: 720px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4452-1\" width=\"720\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05W.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05W.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05W.mp4<\/a><\/video><\/div>\n<p>&#8212;&#8212;<\/p>\n<p>#DonLucElectronics #DonLuc #GasSensorMQ3 #Arduino #EEPROM #Display #Elecrow #Project #Patreon #Electronics #Microcontrollers #IoT #Fritzing #Programming #Consultant<\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05a.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05a.jpg\" alt=\"Gas Sensor MQ3\" width=\"729\" height=\"746\" class=\"alignnone size-full wp-image-4454\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05a.jpg 729w, https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05a-293x300.jpg 293w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05b.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05b.jpg\" alt=\"Gas Sensor MQ3\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-4455\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05b.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05b-300x200.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05c.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05c.jpg\" alt=\"Gas Sensor MQ3\" width=\"720\" height=\"480\" class=\"alignnone size-full wp-image-4456\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05c.jpg 720w, https:\/\/www.donluc.com\/wp-content\/uploads\/2025\/06\/DL2505Mk05c-300x200.jpg 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>&#8212;&#8212;<\/p>\n<p><strong>Crowtail &#8211; Gas Sensor MQ3<\/strong><\/p>\n<p>The module contains a MQ-3 Gas Sensor and ETA1036. High sensitivity to alcohol and small sensitivity to benzine with a stable and long worklife are most important reasons to choose the MQ-3. The ETA1036 is a high efficiency synchronous step-up converter that can provide up to 3W of power to a boosted output from a low voltage source. The start-up voltage requires only 0.85v and the efficiency up to 96%. The MQ-3 is useful for alcohol detecting.<\/p>\n<p><strong>Crowtail &#8211; LED Matrix 2.0 &#8211; (Red)<\/strong><\/p>\n<p>A 8&#215;8 LED matrix has lots of applications when we DIY some electronic kit. So we this Crowtail- 8&#215;8 LED Matrix use the HT16K33 which is a neat little chip that has the ability to drive a multiplexed 8&#215;8 matrix. The I2C communication protocol uses only 2 pins, and you can have up to 8 selectable I2C addresses so that a total of 8 matrices, each one controlling 8&#215;8 LEDs for 64 total LEDs.<\/p>\n<p><strong>DL2505Mk05<\/strong><\/p>\n<p>1 x Crowduino Uno &#8211; SD<br \/>\n1 x Crowtail &#8211; Base Shield<br \/>\n1 x Crowtail &#8211; I2C LCD<br \/>\n1 x Crowtail &#8211; Gas Sensor MQ3<br \/>\n1 x Crowtail &#8211; LED Matrix 2.0<br \/>\n1 x Crowtail &#8211; LED(Green)<br \/>\n1 x USB Battery Pack<br \/>\n1 x USB Mini-B Cable<\/p>\n<p><strong>Crowduino Uno &#8211; SD<\/strong><\/p>\n<p>SCL &#8211; A5<br \/>\nSDA &#8211; A4<br \/>\nMQ3 &#8211; A0<br \/>\nLED &#8211; 6<br \/>\nVIN &#8211; +5V<br \/>\nGND &#8211; GND<\/p>\n<p><strong>DL2505Mk05p<\/strong><\/p>\n<p><strong>DL2505Mk05p.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/****** Don Luc Electronics \u00a9 ******\r\nSoftware Version Information\r\nProject #15: Environment - Gas Sensor MQ3 - Mk30\r\nDL2505Mk05p.ino\r\nDL2505Mk05\r\n1 x Crowduino Uno - SD\r\n1 x Crowtail - Base Shield\r\n1 x Crowtail - I2C LCD\r\n1 x Crowtail - Gas Sensor MQ3\r\n1 x Crowtail - LED Matrix 2.0\r\n1 x Crowtail - LED(Green)\r\n1 x USB Battery Pack\r\n1 x USB Mini-B Cable\r\n*\/\r\n\r\n\/\/ Include the Library Code\r\n\/\/ EEPROM library to read and write EEPROM with unique ID for unit\r\n#include &lt;EEPROM.h&gt;\r\n\/\/ Wire\r\n#include &lt;Wire.h&gt;\r\n\/\/ Liquid Crystal\r\n#include &quot;LiquidCrystal.h&quot;\r\n\/\/ Matrix Adafruit LED Backpack\r\n#include &quot;Adafruit_LEDBackpack.h&quot;\r\n\r\n\/\/ 8x8 Matrix \r\nAdafruit_8x8matrix matrix = Adafruit_8x8matrix();\r\n\/\/ BMP\r\nstatic const uint8_t PROGMEM\r\n  smile_bmp[] =\r\n  { B00111100,\r\n    B01000010,\r\n    B10100101,\r\n    B10000001,\r\n    B10100101,\r\n    B10011001,\r\n    B01000010,\r\n    B00111100 },\r\n  neutral_bmp[] =\r\n  { B00111100,\r\n    B01000010,\r\n    B10100101,\r\n    B10000001,\r\n    B10111101,\r\n    B10000001,\r\n    B01000010,\r\n    B00111100 },\r\n  frown_bmp[] =\r\n  { B00111100,\r\n    B01000010,\r\n    B10100101,\r\n    B10000001,\r\n    B10011001,\r\n    B10100101,\r\n    B01000010,\r\n    B00111100 };\r\n\r\n\/\/ MQ3 Alcohol\r\nint iMQ3Alcohol = A0;\r\n\/\/ MQ3 Value\r\nfloat MQ3Value;\r\n\/\/ Sober\r\n#define Sober 120\r\n\/\/ Drunk\r\n#define Drunk 400\r\n\r\n\/\/ Liquid Crystal\r\n\/\/ Connect via i2c\r\nLiquidCrystal lcd(0);\r\n\r\n\/\/ LED Green\r\nint iLEDGreen = 6;\r\n\r\n\/\/ EEPROM Unique ID Information\r\nString uid = &quot;&quot;;\r\n\r\n\/\/ Software Version Information\r\nString sver = &quot;15-30&quot;;\r\n\r\nvoid loop() {\r\n\r\n  \/\/ MQ3 Alcohol\r\n  \/\/ isMQ3\r\n  isMQ3();\r\n\r\n  \/\/ Display Alcohol\r\n  isDisplayAlcohol();\r\n\r\n  \/\/ Delay\r\n  delay( 2000 );\r\n\r\n}\r\n<\/pre>\n<p><strong>getDisplay.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ getDisplay\r\n\/\/ Crowbits - OLED 128X64 UID\r\n\/\/ Display UID\r\nvoid isDisplayUID(){\r\n\r\n  \/\/ Set up the LCD&#039;s number of rows and columns: \r\n  lcd.begin(16, 2);\r\n  \/\/ Print a message to the LCD.\r\n  \/\/ Cursor\r\n  lcd.setCursor(0, 0);\r\n  lcd.print(&quot;Don Luc Electron&quot;);\r\n  \/\/ Cursor\r\n  lcd.setCursor(0, 1);\r\n  \/\/ Print a message to the LCD.\r\n  lcd.print( sver );\r\n\r\n}\r\n\/\/ Display Alcohol\r\nvoid isDisplayAlcohol(){\r\n\r\n  \/\/ Clear\r\n  lcd.clear();\r\n  \/\/ Set the cursor to column 0, line 0\r\n  lcd.setCursor(0, 0);\r\n  lcd.print( &quot;MQ3 Alcohol&quot; );\r\n  \/\/ Set the cursor to column 0, line 1\r\n  lcd.setCursor(0, 1);\r\n  lcd.print( MQ3Value );\r\n  \r\n}\r\n<\/pre>\n<p><strong>getEEPROM.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ EEPROM\r\n\/\/ isUID EEPROM Unique ID\r\nvoid isUID() {\r\n  \r\n  \/\/ Is Unit ID\r\n  uid = &quot;&quot;;\r\n  for (int x = 0; x &lt; 7; x++)\r\n  {\r\n    uid = uid + char(EEPROM.read(x));\r\n  }\r\n  \r\n}\r\n<\/pre>\n<p><strong>getMQ3.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ MQ3 Alcohol\r\n\/\/ isMQ3\r\nvoid isMQ3(){\r\n\r\n  \/\/ MQ3 Alcohol\r\n  MQ3Value = digitalRead(iMQ3Alcohol);\r\n\r\n  \/\/ Determine the status\r\n  if (MQ3Value &lt; Sober) {\r\n    \r\n    \/\/ Smile\r\n    matrix.clear();\r\n    matrix.drawBitmap(0, 0, smile_bmp, 8, 8, LED_ON);\r\n    matrix.writeDisplay();\r\n    \r\n  } else if (MQ3Value &gt;= Sober &amp;&amp; MQ3Value &lt; Drunk) {\r\n\r\n     \/\/ Neutral\r\n     matrix.clear();\r\n     matrix.drawBitmap(0, 0, neutral_bmp, 8, 8, LED_ON);\r\n     matrix.writeDisplay();\r\n\r\n    \r\n  } else {\r\n\r\n    \/\/ DRUNK\r\n    matrix.clear();\r\n    matrix.drawBitmap(0, 0, frown_bmp, 8, 8, LED_ON);\r\n    matrix.writeDisplay();\r\n\r\n  }\r\n\r\n}\r\n<\/pre>\n<p><strong>setup.ino<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"arduino\" data-enlighter-title=\"\">\r\n\/\/ Setup\r\nvoid setup()\r\n{\r\n \r\n  \/\/ Delay\r\n  delay(100);\r\n  \r\n  \/\/ isUID EEPROM Unique ID\r\n  isUID();\r\n  \r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/ Initialize the LED Green\r\n  pinMode(iLEDGreen, OUTPUT);\r\n  \/\/ LED Green\r\n  digitalWrite(iLEDGreen, HIGH);\r\n\r\n  \/\/ Delay\r\n  delay(100);\r\n\r\n  \/\/ 8x8 Matrix \r\n  matrix.begin(0x70);\r\n  \/\/ Smile\r\n  matrix.drawBitmap(0, 0, smile_bmp, 8, 8, LED_ON);\r\n  matrix.writeDisplay();\r\n\r\n  \/\/ Delay\r\n  delay( 100 );\r\n\r\n  \/\/ Display UID\r\n  isDisplayUID();\r\n  \r\n  \/\/ Delay 5 Second\r\n  delay( 5000 );\r\n\r\n}\r\n<\/pre>\n<p>&#8212;&#8212;<\/p>\n<p><strong>People can contact us:<\/strong> https:\/\/www.donluc.com\/?page_id=1927<\/p>\n<p><strong>Electronics, IoT, Teacher, Instructor, R&#038;D and Consulting<\/strong><\/p>\n<ul>\n<li>Programming Language<\/li>\n<li>Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi, Arm, Silicon Labs, Espressif, Etc&#8230;)<\/li>\n<li>IoT<\/li>\n<li>Wireless (Radio Frequency, Bluetooth, WiFi, Etc&#8230;)<\/li>\n<li>Robotics<\/li>\n<li>Automation<\/li>\n<li>Camera and Video Capture Receiver Stationary, Wheel\/Tank and Underwater Vehicle<\/li>\n<li>Unmanned Vehicles Terrestrial and Marine<\/li>\n<li>Machine Learning<\/li>\n<li>Artificial Intelligence (AI)<\/li>\n<li>RTOS<\/li>\n<li>Sensors, eHealth Sensors, Biosensor, and Biometric<\/li>\n<li>Research &#038; Development (R &#038; D)<\/li>\n<li>Consulting<\/li>\n<\/ul>\n<p><strong>Follow Us<\/strong><\/p>\n<p><strong>Luc Paquin \u2013 Curriculum Vitae &#8211; 2024<\/strong><br \/>\nhttps:\/\/www.donluc.com\/luc\/<\/p>\n<p><strong>Web:<\/strong> https:\/\/www.donluc.com\/<br \/>\n<strong>Facebook:<\/strong> https:\/\/www.facebook.com\/neosteam.labs.9\/<br \/>\n<strong>YouTube:<\/strong> https:\/\/www.youtube.com\/@thesass2063<br \/>\n<strong>Twitter:<\/strong> https:\/\/twitter.com\/labs_steam<br \/>\n<strong>Pinterest:<\/strong> https:\/\/www.pinterest.com\/NeoSteamLabs\/<br \/>\n<strong>Instagram:<\/strong> https:\/\/www.instagram.com\/neosteamlabs\/<br \/>\n<strong>Patreon:<\/strong> https:\/\/patreon.com\/DonLucElectronics59<br \/>\n<strong>DFRobot:<\/strong> https:\/\/learn.dfrobot.com\/user-10186.html<br \/>\n<strong>Hackster.io:<\/strong> https:\/\/www.hackster.io\/neosteam-labs<br \/>\n<strong>Elecrow:<\/strong> https:\/\/www.elecrow.com\/share\/sharepj\/center\/no\/760816d385ebb1edc0732fd873bfbf13<br \/>\n<strong>TikTok:<\/strong> https:\/\/www.tiktok.com\/@luc.paquin8<br \/>\n<strong>Twitch:<\/strong> https:\/\/www.twitch.tv\/lucpaquin<br \/>\n<strong>Hackster:<\/strong> https:\/\/www.hackster.io\/luc-paquin<br \/>\n<strong>LinkedIn:<\/strong> https:\/\/www.linkedin.com\/in\/jlucpaquin\/<\/p>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212; #DonLucElectronics #DonLuc #GasSensorMQ3 #Arduino #EEPROM #Display #Elecrow #Project #Patreon #Electronics #Microcontrollers #IoT #Fritzing #Programming #Consultant &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212; Crowtail &#8211; Gas Sensor MQ3 The module contains a MQ-3 Gas Sensor and ETA1036. High sensitivity to alcohol and small sensitivity to benzine with a stable and long worklife are most important reasons to choose &#8230; <a title=\"Project #15: Environment &#8211; Gas Sensor MQ3 &#8211; Mk30\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=4452\" aria-label=\"Read more about Project #15: Environment &#8211; Gas Sensor MQ3 &#8211; Mk30\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106,50,49,38,368,59,115,5,138,287,58,10],"tags":[6,92,102,4,87,369,19,107,85,386,9,27,33,34,108],"class_list":["post-4452","post","type-post","status-publish","format-standard","hentry","category-environment","category-arduino","category-consultant","category-digitalelectronics","category-elecrow","category-fritzing","category-e-mentor","category-microcontrollers","category-patreon","category-program","category-arduino-programming","category-projects","tag-arduino","tag-battery","tag-components","tag-consultant","tag-display","tag-elecrow","tag-electronics","tag-environment","tag-fritzing","tag-gas-sensor-mq3","tag-programming","tag-projects-2","tag-technology","tag-video-blog","tag-vlog"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4452"}],"version-history":[{"count":1,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4452\/revisions"}],"predecessor-version":[{"id":4457,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/4452\/revisions\/4457"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}