{"id":350,"date":"2020-06-27T02:05:41","date_gmt":"2020-06-27T02:05:41","guid":{"rendered":"http:\/\/neomano.com\/index.php\/2020\/06\/27\/estacion-meteorologica-con-arduino-mkr1000\/"},"modified":"2021-06-26T13:54:37","modified_gmt":"2021-06-26T13:54:37","slug":"estacion-meteorologica-con-arduino-mkr1000","status":"publish","type":"post","link":"http:\/\/neomano.com\/en\/weather-station-with-arduino-mkr1000\/","title":{"rendered":"Weather station with Arduino MKR1000"},"content":{"rendered":"<p>A few months ago I came across a fun project: I wanted to publish information on the climate of Huigra Viejo Camping - a camping site located in the Andes of Ecuador on the Web. The idea was that the interested tourist could consult the weather conditions in real time, through the site <a href=\"http:\/\/huigra.com\">huigra.com<\/a>, and incidentally, as an extra feature, check the weather forecast for the days you planned to book your stay.<\/p>\n\n\n\n<p>The problem was that all the weather forecast providers like weather.com or forecast.io were giving me data that was far from the truth. The reason: apparently the temperature gradient in the area is very steep and the climate varies greatly from one location to another very close (less than 1 km away), making it difficult to extrapolate data from nearby monitoring stations or satellite information \u2026 Well, the camping site is precisely on the steep side of a mountain.<\/p>\n\n\n\n<p>The solution? Take the temperature in-situ with some hardware and then report it in some way on the website in question. An ideal opportunity to play with the Arduino MKR1000, because thanks to its WIFI support, it will allow us to transmit data to the Internet, through a wireless router. If the reader does not get the <strong>Arduino MKR1000 <\/strong>you can also try with the<strong> Arduino UNO WiFi<\/strong>, I leave links to both options.<\/p>\n\n\n\n<script type=\"text\/javascript\">\namzn_assoc_tracking_id = \"neomano-20\";\namzn_assoc_ad_mode = \"manual\";\namzn_assoc_ad_type = \"smart\";\namzn_assoc_marketplace = \"amazon\";\namzn_assoc_region = \"US\";\namzn_assoc_design = \"enhanced_links\";\namzn_assoc_asins = \"B01M1H83WB\";\namzn_assoc_placement = \"adunit\";\namzn_assoc_linkid = \"b6352c104c106c1237a5a3e4e6536812\";\n<\/script>\n<script src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US\"><\/script>\n\n\n\n<script type=\"text\/javascript\">\namzn_assoc_tracking_id = \"neomano-20\";\namzn_assoc_ad_mode = \"manual\";\namzn_assoc_ad_type = \"smart\";\namzn_assoc_marketplace = \"amazon\";\namzn_assoc_region = \"US\";\namzn_assoc_design = \"enhanced_links\";\namzn_assoc_asins = \"B07MK598QV\";\namzn_assoc_placement = \"adunit\";\namzn_assoc_linkid = \"afa446c13eef9709fa07d43225d601d4\";\n<\/script>\n<script src=\"\/\/z-na.amazon-adsystem.com\/widgets\/onejs?MarketPlace=US\"><\/script>\n\n\n\n<h2>Humidity, temperature and pressure sensors<\/h2>\n\n\n\n<p>We will make the project very simple, with only 2 sensors (in fact this is how it is installed), which will allow us to report 3 parameters: temperature, humidity and barometric pressure. The connection is quite simple as we see in the following figure.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/arduino-sensor-bmp280-bosch-estacion-clima-1024x1003.png\" alt=\"\" class=\"wp-image-5134\" width=\"543\" height=\"531\" srcset=\"https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/arduino-sensor-bmp280-bosch-estacion-clima-1024x1003.png 1024w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/arduino-sensor-bmp280-bosch-estacion-clima-300x294.png 300w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/arduino-sensor-bmp280-bosch-estacion-clima-768x752.png 768w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/arduino-sensor-bmp280-bosch-estacion-clima-1536x1505.png 1536w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/arduino-sensor-bmp280-bosch-estacion-clima-1320x1293.png 1320w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/arduino-sensor-bmp280-bosch-estacion-clima-24x24.png 24w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/arduino-sensor-bmp280-bosch-estacion-clima-48x48.png 48w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/arduino-sensor-bmp280-bosch-estacion-clima.png 1580w\" sizes=\"(max-width: 543px) 100vw, 543px\" \/><\/figure>\n\n\n\n<h2>Bosch BMP180<\/h2>\n\n\n\n<p>We find it at the top of the previous image. This sensor is basically a very easy to use barometric pressure sensor, since it allows us to connect with the MKR1000 through I2C. The I2C support in Arduino is wonderful, as it allows us to chain several devices (such as sensors) to the same I2C wiring. In this case we will only use ONE device (the BMP180), but we could add more with little modification. In any case, the only thing we need to connect is two data cables, marked as SCL (the clock) and SDA (the data), in addition to the GROUND reference. The SCL on the MKR1000 is pin D12 and the SDA corresponds to pin D11.<\/p>\n\n\n\n<p><strong>DHT11 (or DHT22)<\/strong><\/p>\n\n\n\n<p>A temperature and humidity sensor. Economical and easy to use. In the previous figure we find it in the lower part.<\/p>\n\n\n\n<p><strong>Weather Underground (<a href=\"\/en\/\\&quot;http:\/\/wunderground.com\\&quot;\/\">wunderground.com<\/a>)<\/strong><\/p>\n\n\n\n<p>Weather Underground is a community weather reporting platform, available online, that will allow us to report weather conditions to the cloud. It currently has more than 250,000 stations connected ... crazy! ... It also provides us with an API, called PWS, which makes it possible to have plugins for websites, as well as apps for tablets or smartphones.<\/p>\n\n\n\n<p>The API documentation that we will use in this project can be found here http:\/\/wiki.wunderground.com\/index.php\/PWS_-_Upload_Protocol<\/p>\n\n\n\n<p>To use this platform we must register a user (it is free) and create a weather station to start reporting. We will be assigned an identifier of the weather station created, as well as a key, to use from the invocations to the API.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"895\" src=\"https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/weatherunderground-clima-iot-1024x895.jpg\" alt=\"\" class=\"wp-image-5139\" srcset=\"https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/weatherunderground-clima-iot-1024x895.jpg 1024w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/weatherunderground-clima-iot-300x262.jpg 300w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/weatherunderground-clima-iot-768x671.jpg 768w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/weatherunderground-clima-iot-1536x1342.jpg 1536w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/weatherunderground-clima-iot-1320x1153.jpg 1320w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/weatherunderground-clima-iot.jpg 1702w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>The Arduino code<\/strong><\/p>\n\n\n\n<p>To make things easier I have created a repository on GitHub. http:\/\/www.github.com\/elandivar\/huigra<\/p>\n\n\n\n<p>I am not going to explain all the code because it is quite simple, but there are a few lines to which I will dedicate a short explanation and it is the sendSample function from the file https:\/\/github.com\/elandivar\/huigra\/blob\/master\/huigrastation.ino<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"166\" src=\"https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/codigo-arduino-1024x166.png\" alt=\"\" class=\"wp-image-5140\" srcset=\"https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/codigo-arduino-1024x166.png 1024w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/codigo-arduino-300x48.png 300w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/codigo-arduino-768x124.png 768w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/codigo-arduino-1536x248.png 1536w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/codigo-arduino-2048x331.png 2048w, https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/codigo-arduino-1320x213.png 1320w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>PD Special mention to <a title=\"\\ &quot;Asiri\" href=\"\/en\/\\&quot;http:\/\/www.asiri.ec\\&quot;\/\">AsiriLabs<\/a>, which provided us with the necessary components for the construction of this prototype.<\/p>","protected":false},"excerpt":{"rendered":"<p>A few months ago I came across a fun project: I wanted to publish information on the climate of Huigra Viejo on the Web<\/p>","protected":false},"author":1,"featured_media":5133,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[72,57,63],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Estaci\u00f3n meteorol\u00f3gica con Arduino MKR1000 - Neomano.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/neomano.com\/en\/weather-station-with-arduino-mkr1000\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Estaci\u00f3n meteorol\u00f3gica con Arduino MKR1000 - Neomano.com\" \/>\n<meta property=\"og:description\" content=\"Hace unos meses me top\u00e9 con un\u00a0proyecto divertido:\u00a0quer\u00eda publicar en la Web informaci\u00f3n del clima de Huigra Viejo\" \/>\n<meta property=\"og:url\" content=\"http:\/\/neomano.com\/en\/weather-station-with-arduino-mkr1000\/\" \/>\n<meta property=\"og:site_name\" content=\"Neomano.com\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-27T02:05:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-26T13:54:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"733\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@elandivar\" \/>\n<meta name=\"twitter:site\" content=\"@elandivar\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/neomano.com\/#organization\",\"name\":\"Neomano\",\"url\":\"https:\/\/neomano.com\/\",\"sameAs\":[\"https:\/\/www.youtube.com\/c\/EdgarLandivarNeomano\",\"https:\/\/twitter.com\/elandivar\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/neomano.com\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/neomano_logo2.png\",\"contentUrl\":\"https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/neomano_logo2.png\",\"width\":800,\"height\":453,\"caption\":\"Neomano\"},\"image\":{\"@id\":\"https:\/\/neomano.com\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/neomano.com\/#website\",\"url\":\"https:\/\/neomano.com\/\",\"name\":\"Neomano.com\",\"description\":\"Blog de tecnolog\\u00eda, curiosidades e historia\",\"publisher\":{\"@id\":\"https:\/\/neomano.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/neomano.com\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1.jpeg\",\"contentUrl\":\"https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1.jpeg\",\"width\":1200,\"height\":733},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/#webpage\",\"url\":\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/\",\"name\":\"Estaci\\u00f3n meteorol\\u00f3gica con Arduino MKR1000 - Neomano.com\",\"isPartOf\":{\"@id\":\"https:\/\/neomano.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/#primaryimage\"},\"datePublished\":\"2020-06-27T02:05:41+00:00\",\"dateModified\":\"2021-06-26T13:54:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/neomano.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Estaci\\u00f3n meteorol\\u00f3gica con Arduino MKR1000\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/#webpage\"},\"author\":{\"@id\":\"https:\/\/neomano.com\/#\/schema\/person\/f89bdea6f1c8432189a5a3f936ab2d54\"},\"headline\":\"Estaci\\u00f3n meteorol\\u00f3gica con Arduino MKR1000\",\"datePublished\":\"2020-06-27T02:05:41+00:00\",\"dateModified\":\"2021-06-26T13:54:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/#webpage\"},\"wordCount\":692,\"publisher\":{\"@id\":\"https:\/\/neomano.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/neomano.com\/estacion-meteorologica-con-arduino-mkr1000\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1.jpeg\",\"articleSection\":[\"Ciencia y Tecnolog\\u00eda\",\"Electr\\u00f3nica\",\"IoT\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/neomano.com\/#\/schema\/person\/f89bdea6f1c8432189a5a3f936ab2d54\",\"name\":\"Edgar Landivar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/neomano.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/edgarlandivar2.jpg\",\"contentUrl\":\"https:\/\/neomano.com\/wp-content\/uploads\/2021\/05\/edgarlandivar2.jpg\",\"caption\":\"Edgar Landivar\"},\"sameAs\":[\"https:\/\/neomano.com\",\"https:\/\/twitter.com\/elandivar\",\"https:\/\/www.youtube.com\/c\/EdgarLandivarNeomano\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","featured_image_urls":{"full":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1.jpeg",1200,733,false],"thumbnail":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1-150x150.jpeg",150,150,true],"medium":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1-300x183.jpeg",300,183,true],"medium_large":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1-768x469.jpeg",640,391,true],"large":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1-1024x625.jpeg",640,391,true],"1536x1536":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1.jpeg",1200,733,false],"2048x2048":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1.jpeg",1200,733,false],"trp-custom-language-flag":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1.jpeg",16,10,false],"darknews-slider-full":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1-1200x720.jpeg",1200,720,true],"darknews-featured":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1-1024x625.jpeg",1024,625,true],"darknews-medium":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1-720x530.jpeg",720,530,true],"darknews-medium-square":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1-350x350.jpeg",350,350,true],"mailpoet_newsletter_max":["https:\/\/neomano.com\/wp-content\/uploads\/2020\/06\/arduino-mkr1000-estacion-meteorologica-1.jpeg",1200,733,false]},"author_info":{"display_name":"Edgar Landivar","author_link":"http:\/\/neomano.com\/en\/author\/elandivar\/"},"category_info":"<a href=\"http:\/\/neomano.com\/en\/category\/science\/\" rel=\"category tag\">Ciencia y Tecnolog\u00eda<\/a> <a href=\"http:\/\/neomano.com\/en\/category\/electronica\/\" rel=\"category tag\">Electr\u00f3nica<\/a> <a href=\"http:\/\/neomano.com\/en\/category\/internet-de-las-cosas\/\" rel=\"category tag\">IoT<\/a>","tag_info":"IoT","comment_count":"0","_links":{"self":[{"href":"http:\/\/neomano.com\/en\/wp-json\/wp\/v2\/posts\/350"}],"collection":[{"href":"http:\/\/neomano.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/neomano.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/neomano.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/neomano.com\/en\/wp-json\/wp\/v2\/comments?post=350"}],"version-history":[{"count":0,"href":"http:\/\/neomano.com\/en\/wp-json\/wp\/v2\/posts\/350\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/neomano.com\/en\/wp-json\/wp\/v2\/media\/5133"}],"wp:attachment":[{"href":"http:\/\/neomano.com\/en\/wp-json\/wp\/v2\/media?parent=350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/neomano.com\/en\/wp-json\/wp\/v2\/categories?post=350"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/neomano.com\/en\/wp-json\/wp\/v2\/tags?post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}