{"id":7822,"date":"2020-07-15T12:14:15","date_gmt":"2020-07-15T09:14:15","guid":{"rendered":"https:\/\/roboromania.ro\/produs\/senzor-alcohol-gas-mq-3-compatibil-arduino\/"},"modified":"2024-01-26T16:54:18","modified_gmt":"2024-01-26T13:54:18","slug":"senzor-alcohol-gas-mq-3-compatibil-arduino","status":"publish","type":"product","link":"https:\/\/roboromania.ro\/?product=senzor-alcohol-gas-mq-3-compatibil-arduino","title":{"rendered":"Senzor Alcohol Gas MQ-3 compatibil Arduino"},"content":{"rendered":"<p>Compatibil Arduino<br \/>\nSenzor Alcohol Gas MQ-3<\/p>\n<p>Detecteaz\u0103 cantit\u0103\u021bi de 100-10000ppm.<br \/>\nAre timp de r\u0103spuns scurt \u015fi sensibilitate ridicat\u0103.<br \/>\n<a href=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/mq-3-gas-sensor.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-7823\" src=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/mq-3-gas-sensor-231x300.jpg\" alt=\"mq-3-gas-sensor\" width=\"231\" height=\"300\" srcset=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/mq-3-gas-sensor-231x300.jpg 231w, https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/mq-3-gas-sensor-788x1024.jpg 788w, https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/mq-3-gas-sensor.jpg 1000w\" sizes=\"auto, (max-width: 231px) 100vw, 231px\" \/><\/a><a href=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/c1ec44a25d.jpg.240x240.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7826\" src=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/c1ec44a25d.jpg.240x240.jpg\" alt=\"c1ec44a25d-jpg-240x240\" width=\"240\" height=\"240\" srcset=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/c1ec44a25d.jpg.240x240.jpg 240w, https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/c1ec44a25d.jpg.240x240-150x150.jpg 150w, https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/c1ec44a25d.jpg.240x240-180x180.jpg 180w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/a><a href=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/9297e9f1-mq3-alcohol-sensor-pinout-300x242.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-7824\" src=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/9297e9f1-mq3-alcohol-sensor-pinout-300x242-300x242.png\" alt=\"9297e9f1-mq3-alcohol-sensor-pinout-300x242\" width=\"300\" height=\"242\" \/><\/a><a href=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/ba3f5db8-mq3-alcohol-sensor-circuit-with-arduino-284x300.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-7825\" src=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2020\/07\/ba3f5db8-mq3-alcohol-sensor-circuit-with-arduino-284x300-284x300.png\" alt=\"ba3f5db8-mq3-alcohol-sensor-circuit-with-arduino-284x300\" width=\"284\" height=\"300\" \/><\/a><\/p>\n<p>Exemplu cod:<\/p>\n<p>const int AOUTpin=0;\u00a0 \/\/the AOUT pin of the alcohol sensor goes into analog pin A0 of the arduino<br \/>\nconst int DOUTpin=8;\u00a0 \/\/the DOUT pin of the alcohol 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\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 alcohol sensor\u2019s AOUT pin<br \/>\nlimit= digitalRead(DOUTpin);\u00a0 \/\/reads the digital value from the alcohol sensor\u2019s DOUT pin<br \/>\nSerial.print(\u201cAlcohol value: \u201c);<br \/>\nSerial.println(value);\u00a0 \/\/prints the alcohol value<br \/>\nSerial.print(\u201cLimit: \u201c);<br \/>\nSerial.print(limit);\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\u00a0 \/\/if threshold not reached, LED remains off<br \/>\n}<br \/>\n}<br \/>\nArduino projects.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Compatibil Arduino Senzor Alcohol Gas MQ-3 Detecteaz\u0103 cantit\u0103\u021bi de 100-10000ppm. Are timp de r\u0103spuns scurt \u015fi sensibilitate ridicat\u0103. Exemplu cod: const int AOUTpin=0;\u00a0 \/\/the AOUT pin of the alcohol sensor goes into analog pin A0 of the arduino const int DOUTpin=8;\u00a0 \/\/the DOUT pin of the alcohol sensor goes into digital pin D8 of the [&hellip;]<\/p>\n","protected":false},"featured_media":7823,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[9],"product_tag":[7,41,40],"class_list":{"0":"post-7822","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-senzori","7":"product_tag-arduino","8":"product_tag-sensor","9":"product_tag-senzor","11":"first","12":"instock","13":"shipping-taxable","14":"purchasable","15":"product-type-simple"},"_links":{"self":[{"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/product\/7822","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=7822"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/media\/7823"}],"wp:attachment":[{"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7822"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_brand&post=7822"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_cat&post=7822"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_tag&post=7822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}