{"id":1865,"date":"2016-07-26T10:27:51","date_gmt":"2016-07-26T08:27:51","guid":{"rendered":"http:\/\/www.parufito.info\/?p=1865"},"modified":"2016-07-26T10:27:51","modified_gmt":"2016-07-26T08:27:51","slug":"arduino-medidor-de-pets-primers-passos","status":"publish","type":"post","link":"https:\/\/www.parufito.info\/blog\/26072016\/arduino-medidor-de-pets-primers-passos\/","title":{"rendered":"Arduino &#8211; Medidor de Pets &#8211; primers passos"},"content":{"rendered":"<p>Des de que em va arribar l&#8217;Arduino, he fet alguns experiments, com per exemple, l<a href=\"https:\/\/www.youtube.com\/watch?v=xPR5Av6HF7I\">a bola de drac que s&#8217;il\u00b7lumina<\/a> o el\u00a0<a class=\"row-title\" href=\"http:\/\/www.parufito.info\/08072016\/arduino-temperatura-i-humitat-dht11-lcd-1602\/\">Arduino temperatura i humitat (DHT11) + LCD (1602)<\/a>, per\u00f2 una de les tonteries que tenia en ment, era fer un medidor de pets. Ara que tinc ja una cosa una mica estable, us explicar\u00e9 els primers passos.<\/p>\n<p><span class=\"embed-vine\" style=\"display: block;\"><iframe loading=\"lazy\" class=\"vine-embed\" src=\"https:\/\/vine.co\/v\/5Z1g7DreT9q\/embed\/simple\" width=\"300\" height=\"300\" frameborder=\"0\"><\/iframe><\/span><\/p>\n<p>El &#8220;projecte&#8221; se&#8217;m va acudir al veure que existien uns sensors\u00a0de gas per a arduino, per\u00f2 com tot a la vida, alg\u00fa ja havia fet&#8230; El fart\u00f2metre!<\/p>\n<p><iframe loading=\"lazy\" title=\"Arduino Fart-O-Meter\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/Yv8-mPuJaQ0?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>I gr\u00e0cies a aix\u00f2 vaig saber cap a on tirar els fils, aconseguir un medidor de gas <a href=\"https:\/\/www.amazon.es\/SODIAL-Propano-Hidrogeno-detector-Arduino\/dp\/B00K67WYTM\/ref=as_li_ss_tl?ie=UTF8&amp;qid=1468941607&amp;sr=8-1&amp;keywords=mq-4+gas&amp;linkCode=ll1&amp;tag=raspberrycat-21&amp;linkId=6bd098521356c1ec48d00b1ded1da596\">MQ-4<\/a>\u00a0i aprofitar el display de 7 segments per donar un resultat de la pot\u00e8ncia del trunyo.<\/p>\n<p><span style=\"text-decoration: underline;\">Consideracions:<\/span><\/p>\n<ul>\n<li>Els sensors de gas, acostumen a registrar concentracions de particules de gas per mili\u00f3 ppm, per\u00f2 l&#8217;Arduino ho converteix (com \u00e9s habitual en\u00a0els seus pins Anal\u00f2gics) a uns valors que van de 0 a 1023.<\/li>\n<li><span style=\"line-height: 1.75;\">Per covertir aix\u00f2 r\u00e0pidament a un valor d&#8217;un sol d\u00edgit, ho fem f\u00e0cilment amb la funci\u00f3 d&#8217;arduino map().<\/span><\/li>\n<li>Em falta descobrir si aquests valors seran significatius alhora de mesurar un pet, doncs potser els gasos humans no passen de 2000ppm :D (<em>Em vaig comprar un medidor de gas incorrecte i fins que no m&#8217;arribi el bo, no podr\u00e9 fer testing ;)<\/em>)<\/li>\n<li>Estic pensant en fer-ho m\u00e9s &#8220;divertit&#8221; i acurat, canviant el display de 7 segments, per una pantalla de nokia<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.trastejant.es\/tutoriales\/arduino\/img\/3310Arduino\/helloworl.JPG\" alt=\"Hola Mundo\" \/><\/li>\n<\/ul>\n<p>I sobretot, que no falti el &#8220;bot\u00f3n rojo&#8221; per a activar el sensor! :D<\/p>\n<p><span class=\"embed-vine\" style=\"display: block;\"><iframe loading=\"lazy\" class=\"vine-embed\" src=\"https:\/\/vine.co\/v\/5mMTmAb3adz\/embed\/simple\" width=\"300\" height=\"300\" frameborder=\"0\"><\/iframe><\/span><\/p>\n<h1>Material<\/h1>\n<ul>\n<li>Arduino Nano<\/li>\n<li>Display 7 segments (o pantalla nokia 5110)<\/li>\n<li>Sensor de gas met\u00e0 MQ-4<\/li>\n<li>Breadboard<\/li>\n<li>Cables Dupont<\/li>\n<li>Bot\u00f3 arcade<\/li>\n<\/ul>\n<p><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-eu.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=raspberrycat-21&amp;o=30&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=as_ss_li_til&amp;asins=B00QLOSFDS&amp;linkId=3e3b745e33130731ffa17bf58570f872\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-eu.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=raspberrycat-21&amp;o=30&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=as_ss_li_til&amp;asins=B00HUH9V2E&amp;linkId=d51933e551182d7ef9dfb28820799a04\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-eu.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=raspberrycat-21&amp;o=30&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=as_ss_li_til&amp;asins=B01EE30YE0&amp;linkId=e5909d1384d4e65e9b91c8fce1f2cc24\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-eu.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=raspberrycat-21&amp;o=30&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=as_ss_li_til&amp;asins=B0161LNROW&amp;linkId=6989b04e9dbc2291e9aa01550b93f3b9\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-eu.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=raspberrycat-21&amp;o=30&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=as_ss_li_til&amp;asins=B00JGFDKBQ&amp;linkId=4a55542a158178c7ab99287aa886ff5f\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-eu.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=raspberrycat-21&amp;o=30&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=as_ss_li_til&amp;asins=B01BV3Z342&amp;linkId=ab7fde3767887a1795aefb2f6fb11e6f\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-eu.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=raspberrycat-21&amp;o=30&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=as_ss_li_til&amp;asins=B01HAIH3UE&amp;linkId=a4596534c6e15cb871eba4ac23c36db6\" width=\"300\" height=\"150\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h1>Refer\u00e8ncies<\/h1>\n<ul>\n<li><strong>Basic Gas sensor:<\/strong> <a href=\"http:\/\/www.instructables.com\/id\/How-to-use-MQ2-Gas-Sensor-Arduino-Tutorial\/?ALLSTEPS\">http:\/\/www.instructables.com\/id\/How-to-use-MQ2-Gas-Sensor-Arduino-Tutorial\/?ALLSTEPS<\/a><\/li>\n<li><strong>Trastejant:<\/strong> <a href=\"http:\/\/www.trastejant.es\/tutoriales\/electronica\/sensoresGas.html\">http:\/\/www.trastejant.es\/tutoriales\/electronica\/sensoresGas.html<\/a><\/li>\n<li><strong>Twittering office chair:<\/strong> <a href=\"http:\/\/www.instructables.com\/id\/The-Twittering-Office-Chair\/\">http:\/\/www.instructables.com\/id\/The-Twittering-Office-Chair\/<\/a><\/li>\n<li><strong>Map funcion:<\/strong> <a href=\"https:\/\/www.arduino.cc\/en\/Reference\/Map\">https:\/\/www.arduino.cc\/en\/Reference\/Map<\/a><\/li>\n<li>Teoria 7 segments: <a href=\"http:\/\/elcajondeardu.blogspot.com.es\/2014\/04\/display-de-7-segmentos-1-digito.html\">http:\/\/elcajondeardu.blogspot.com.es\/2014\/04\/display-de-7-segmentos-1-digito.html<\/a><\/li>\n<li><strong>SevSeg:<\/strong> <a href=\"https:\/\/github.com\/DeanIsMe\/SevSeg\">https:\/\/github.com\/DeanIsMe\/SevSeg<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Des de que em va arribar l&#8217;Arduino, he fet alguns experiments, com per exemple, la bola de drac que s&#8217;il\u00b7lumina o el\u00a0Arduino temperatura i humitat (DHT11) + LCD (1602), per\u00f2 una de les tonteries que tenia en ment, era fer un medidor de pets. Ara que tinc ja una cosa una mica estable, us explicar\u00e9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[373],"tags":[],"class_list":["post-1865","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.parufito.info\/blog\/wp-content\/uploads\/2016\/07\/gasman.png","jetpack_shortlink":"https:\/\/wp.me\/pfudbs-u5","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/posts\/1865","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/comments?post=1865"}],"version-history":[{"count":7,"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/posts\/1865\/revisions"}],"predecessor-version":[{"id":1872,"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/posts\/1865\/revisions\/1872"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/media\/1873"}],"wp:attachment":[{"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/media?parent=1865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/categories?post=1865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.parufito.info\/blog\/wp-json\/wp\/v2\/tags?post=1865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}