{"id":1100,"date":"2018-12-14T00:16:08","date_gmt":"2018-12-14T00:16:08","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=1100"},"modified":"2019-10-20T16:37:07","modified_gmt":"2019-10-20T16:37:07","slug":"arduino-mad-scientist-laboratory-ep10-gas-leak-finder-mq-6-flammable-gas-sensor","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=1100","title":{"rendered":"Arduino Mad Scientist Laboratory EP#10: GAS leak finder (MQ-6 flammable gas sensor)"},"content":{"rendered":"<h1>Today we will be attempting to take over the world by Building A flammable gas leak sniffer using a mq-6 gas sensor with ARDUINO.<\/h1>\n<p><iframe loading=\"lazy\" title=\"Arduino Mad Scientist Laboratory: GAS leak finder (MQ-6 flammable gas sensor)\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/I6Oh_HMWhjQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h1><a href=\"https:\/\/www.facebook.com\/zarduino\/\" target=\"_blank\" rel=\"noopener noreferrer\">Check us out on Facebook!<\/a><\/h1>\n<p>&nbsp;<\/p>\n<h1>Parts List:<\/h1>\n<p>affiliate links<\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino board&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=64970dba3f71e710270f3fe93275c579\" target=\"_blank\" rel=\"noopener noreferrer\">ARDUINO Board<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=10k potentiometer&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=e34bafc50d726615f3bedc55976aff60\" target=\"_blank\" rel=\"noopener noreferrer\">10K\u03a9 Potentiometer<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=panel Analog meter&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=e5a738c27f955df77b7aae95f702303c\" target=\"_blank\" rel=\"noopener noreferrer\">Analog meter<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=MQ-6 Gas Sensor&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=5f4d8a48e9b4fcff05cd40d1673ce6a4\" target=\"_blank\" rel=\"noopener noreferrer\">MQ-6 Gas Sensor<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=toggle switch&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=76d5610c10db48e25994194f64a6c2db\" target=\"_blank\" rel=\"noopener noreferrer\">Toggle Switch<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=330 ohm resistors&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=2da142e35186e689b08ceffd99f1a747\" target=\"_blank\" rel=\"noopener noreferrer\">330\u03a9 Resistor<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino led&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=e9e2f08ef8653696f826c6f5fe5a3460\" target=\"_blank\" rel=\"noopener noreferrer\">LED<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=AA Battery Holder&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=868a1ac627d45a727a0094bf92347f2c\" target=\"_blank\" rel=\"noopener noreferrer\">AA Battery Holder (for 2 batteries)<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=mt3608&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=4f18f13c871a70346f3262ee11b94238\" target=\"_blank\" rel=\"noopener noreferrer\">MT3608 DC voltage step up module<\/a><\/p>\n<h1>Schematic:<\/h1>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2018\/12\/gas_gun_schem.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1103\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2018\/12\/gas_gun_schem.jpg?w=300\" alt=\"\" width=\"639\" height=\"390\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2018\/12\/gas_gun_schem.jpg 1413w, https:\/\/thezhut.com\/wp-content\/uploads\/2018\/12\/gas_gun_schem-300x183.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2018\/12\/gas_gun_schem-768x468.jpg 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2018\/12\/gas_gun_schem-1024x624.jpg 1024w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h1>ARDUINO Code:<\/h1>\n<p>&nbsp;<\/p>\n<p>#define met 3<\/p>\n<p>void setup() {<\/p>\n<p>\/\/ Serial.begin(9600); \/\/ 4 testing<br \/>\npinMode(met,OUTPUT);<br \/>\n}<\/p>\n<p>void loop() {<\/p>\n<p>int val = analogRead(A1);<br \/>\nval=constrain(val,200,1000);<br \/>\nval=map(val,200,1000,0,255);<br \/>\n\/\/ Serial.println(val); \/\/ 4 testing<br \/>\nanalogWrite(met,val);<br \/>\ndelay(5);<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we will be attempting to take over the world by Building A flammable gas leak sniffer using a mq-6 gas sensor with ARDUINO. &nbsp; Check us out on Facebook! &nbsp; Parts List: affiliate links ARDUINO Board 10K\u03a9 Potentiometer Analog &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=1100\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":1009,"menu_order":9,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-1100","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1100"}],"version-history":[{"count":2,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1100\/revisions"}],"predecessor-version":[{"id":1465,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1100\/revisions\/1465"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1009"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}