{"id":7833,"date":"2020-07-15T13:10:10","date_gmt":"2020-07-15T10:10:10","guid":{"rendered":"https:\/\/roboromania.ro\/produs\/senzor-de-gaz-propane-gpl-mq-6-compatibil-arduino\/"},"modified":"2023-10-16T12:23:40","modified_gmt":"2023-10-16T09:23:40","slug":"senzor-de-gaz-propane-gpl-mq-6-compatibil-arduino","status":"publish","type":"product","link":"https:\/\/roboromania.ro\/?product=senzor-de-gaz-propane-gpl-mq-6-compatibil-arduino","title":{"rendered":"Senzor de gaz Propane, GPL MQ-6 compatibil Arduino"},"content":{"rendered":"<p>Compatibil Arduino<br \/>\nSenzor de gaz Propane, GPL . Detecteaz\u0103 cantit\u0103\u021bi de 100-10000ppm.<br \/>\nAre timp de r\u0103spuns scurt \u015fi sensibilitate ridicat\u0103. Ie\u0219irea este analogic\u0103.<\/p>\n<p><a href=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/MQ-6-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-7834\" src=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/MQ-6-1-300x300.jpg\" alt=\"mq-6-1\" width=\"300\" height=\"300\" srcset=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/MQ-6-1-300x300.jpg 300w, https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/MQ-6-1-150x150.jpg 150w, https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/MQ-6-1-180x180.jpg 180w, https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/MQ-6-1.jpg 441w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2015\/08\/mq4-exe.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-7829\" src=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2015\/08\/mq4-exe-275x300.jpg\" alt=\"mq4-exe\" width=\"275\" height=\"300\" srcset=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2015\/08\/mq4-exe-275x300.jpg 275w, https:\/\/roboromania.ro\/wp-content\/uploads\/2015\/08\/mq4-exe.jpg 543w\" sizes=\"auto, (max-width: 275px) 100vw, 275px\" \/><\/a><\/p>\n<p>Exemplu cod :<\/p>\n<p>\/* MQ-6 GPL Sensor Circuit with Arduino *\/<\/p>\n<p>const int AOUTpin=0;\u00a0 \/\/the AOUT pin of the methane sensor goes into analog pin A0 of the arduino<br \/>\nconst int DOUTpin=8;\u00a0 \/\/the DOUT pin of the methane sensor goes into digital pin D8 of the arduino<br \/>\nconst int ledPin=13;\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/the anode of the LED connects to digital pin D13 of the arduino<\/p>\n<p>int limit;<br \/>\nint value;<\/p>\n<p>void setup() {<br \/>\nSerial.begin(115200);\u00a0 \/\/sets the baud rate<br \/>\npinMode(DOUTpin, INPUT);\u00a0 \/\/sets the pin as an input to the arduino<br \/>\npinMode(ledPin, OUTPUT);\u00a0\u00a0 \/\/sets the pin as an output of the arduino<br \/>\n}<\/p>\n<p>void loop()<br \/>\n{<br \/>\nvalue= analogRead(AOUTpin);\u00a0 \/\/reads the analaog value from the methane sensor&#8217;s AOUT pin<br \/>\nlimit= digitalRead(DOUTpin);\u00a0\u00a0 \/\/reads the digital value from the methane sensor&#8217;s DOUT pin<br \/>\nSerial.print(&#8222;Methane value: &#8222;);<br \/>\nSerial.println(value);\u00a0 \/\/prints the methane value<br \/>\nSerial.print(&#8222;Limit: &#8222;);<br \/>\nSerial.print(limit);\u00a0\u00a0 \/\/prints the limit reached as either LOW or HIGH (above or underneath)<br \/>\ndelay(100);<br \/>\nif (limit == HIGH){<br \/>\ndigitalWrite(ledPin, HIGH);\u00a0 \/\/if limit has been reached, LED turns on as status indicator<br \/>\n}<br \/>\nelse{<br \/>\ndigitalWrite(ledPin, LOW);\u00a0 \/\/if threshold not reached, LED remains off<br \/>\n}<br \/>\n}<\/p>\n<p>Arduino projects.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Senzor de gaz.<\/p>\n<p>Arduino projects.<\/p>\n","protected":false},"featured_media":7834,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[9,15],"product_tag":[80,7,130,81,128,82,129,41,40],"class_list":{"0":"post-7833","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-senzori","7":"product_cat-module","8":"product_tag-acs712","9":"product_tag-arduino","10":"product_tag-ch4","11":"product_tag-curent","12":"product_tag-gaz","13":"product_tag-hall","14":"product_tag-metan","15":"product_tag-sensor","16":"product_tag-senzor","18":"first","19":"instock","20":"sold-individually","21":"shipping-taxable","22":"purchasable","23":"product-type-simple"},"_links":{"self":[{"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/product\/7833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/product"}],"about":[{"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7833"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/media\/7834"}],"wp:attachment":[{"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7833"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_brand&post=7833"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_cat&post=7833"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_tag&post=7833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}