{"id":324,"date":"2013-09-29T13:44:00","date_gmt":"2013-09-29T13:44:00","guid":{"rendered":"http:\/\/fabriquilla25.com\/?p=324"},"modified":"2015-04-29T19:04:57","modified_gmt":"2015-04-29T19:04:57","slug":"estacion-meteorologica-weather-station","status":"publish","type":"post","link":"http:\/\/fabriquilla25.com\/?p=324","title":{"rendered":"Estaci\u00f3n Meteorol\u00f3gica \/ Weather Station"},"content":{"rendered":"<p>En la entrada anterior mostr\u00e9 la construcci\u00f3n de la garita meteorol\u00f3gica, pero merece atenci\u00f3n tambi\u00e9n la electr\u00f3nica que reporta los datos:<\/p>\n<p><i>In the previous post I showed the building process of the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Stevenson_screen\">Stevenson screen<\/a>, but the electronics inside also requires a entire post:<\/i><\/p>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/09\/IMG_20130929_140008.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" border=\"0\" height=\"320\" src=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/09\/IMG_20130929_140008-225x300.jpg\" width=\"240\" \/><\/a><\/div>\n<p><i><br \/><\/i><i><br \/><\/i><br \/><i><br \/><\/i>El cerebro est\u00e1 constituido por una placa <a href=\"http:\/\/lowpowerlab.com\/moteino\/\">moteino<\/a>&nbsp;la cual es un clon de arduino basada en el procesador ATMega 328 adem\u00e1s de incorporar un m\u00f3dulo inhal\u00e1mbrico rfm12b, \u00e9ste m\u00f3dulo puedes elegir comprarlo en 3 frecuencias distintas (434Mhz, 868Mhz, 915Mhz). En mi caso tengo montada la red en 868Mhz para no interferir con algunos interruptores inhal\u00e1mbricos que van en la banda de los 434Mhz.<\/p>\n<p><i>The brain is a <a href=\"http:\/\/lowpowerlab.com\/moteino\/\">moteino<\/a> board, an arduino clon based in ATMega328 chip and with an rfm12b module. This module could be in 3 different frequencies (434Mhz, 868Mhz and 915Mhz). I have my net in 868Mhz to not interface with some remote switches that I have installed at home.<\/i><br \/><i><br \/><\/i><i><br \/><\/i><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/09\/IMG_20130929_133946.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" border=\"0\" height=\"240\" src=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/09\/IMG_20130929_133946-300x225.jpg\" width=\"320\" \/><\/a><\/div>\n<p><i><br \/><\/i>Los sensores utilizados son: un sensor DHT11 (temporalmente, el sensor DHT22 de mayor precisi\u00f3n viene de camino) para medir temperatura y humedad, y un sensor BH1750 para medir la intensidad lum\u00ednica. Los dos son f\u00e1ciles de encontrar en sitios como ebay y son bastante baratos, en torno a los 3\u20ac el DHT22 y un precio similar para el BH1750. Incorporarlos al arduino es sencillo, ya que existen librer\u00edas espec\u00edficas y de muy f\u00e1cil uso.<br \/>Tambi\u00e9n quiero incorporar un anem\u00f3metro y un pluvi\u00f3metro, los dos proyectos est\u00e1n en marcha, podr\u00e9 documentarlos en los pr\u00f3ximos d\u00edas.<\/p>\n<p><i>The sensors I have used are: one DHT11 (until comes his <strike>big<\/strike>&nbsp;more precise&nbsp;brother DHT22 ) to read temperature and humidity, and one BH1750 sensor to read light intensity. Both of them are very easy to find in popular sites like ebay and they are arroun 3\u20ac each. To get them working with arduino it is very easy due there are a lot of libraries avalaible over the internet.&nbsp;<\/i><br \/><i>I also want to add one pluviometer and one anemometer, both are under development just now and I hope to be able to show them in the next days.<\/i><br \/><i><br \/><\/i>Para conectarlos he usado un trozo de placa de prototipos. En realidad s\u00f3lo hay que hacer un par de puentes, para alimentar el aparato he usado dos bater\u00edas AAA. El c\u00f3digo est\u00e1 optimizado para ahorrar bater\u00eda (pero todav\u00eda tengo que depurarlo un poco). Una vez unido todo, el sistema se comunica con mi Raspberry pi gracias a la placa <a href=\"http:\/\/wiki.openenergymonitor.org\/index.php?title=RFM12Pi_V2\">rfm2Pi<\/a>&nbsp;desarrollada por Martin Harizanov y el equipo de openenergymonitor.org , los datos son almacenados gracias al programa <a href=\"http:\/\/emoncms.org\/\">emoncms<\/a>&nbsp;en una base de datos MySql. A partir de aqui viene el trabajo de usarlos para calcular las necesidades h\u00eddricas y modificar los programas de riego en mi controlador de riego de c\u00f3digo abierto <a href=\"http:\/\/rayshobby.net\/\">Opensprinkler<\/a>.<\/p>\n<p><i>To join everything I have used a protoboard, you don&#8217;t really need it, but everyting because only a few connections need to be done, but it looks much better this way. Everything is powered with 2 AAA batteries and the code is writted to save battery (but I have to improve it). Once working, the data is received in my raspberry pi trough the <a href=\"http:\/\/rfm2pi\/\">rfm2Pi<\/a>&nbsp;board (developped by Martin Harizanov and openenergy team) and the data is stored in a MySql database by <a href=\"http:\/\/www.emoncms.org\/\">emoncms<\/a>. Just now I have to take this data and use it to modify the irrigation in the <a href=\"http:\/\/rayshobby.net\/\">Opensrpinkler<\/a> system.<\/i><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/09\/IMG_1975.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" border=\"0\" height=\"240\" src=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/09\/IMG_1975.jpg\" width=\"320\" \/><\/a><\/div>\n<p><a href=\"https:\/\/mega.co.nz\/#!t59mkKRK!egSA7kcXmOIHtt8FthcNcwS8jEZw9A3UTf62XopJTMI\">El c\u00f3digo. <i>The code:<\/i><\/a><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>En la entrada anterior mostr\u00e9 la construcci\u00f3n de la garita meteorol\u00f3gica, pero merece atenci\u00f3n tambi\u00e9n la electr\u00f3nica que reporta los datos: In the previous post I showed the building process of the Stevenson screen, but the electronics inside also requires a entire post: El cerebro est\u00e1 constituido por una placa moteino&nbsp;la cual es un clon [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":363,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,2],"tags":[],"_links":{"self":[{"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=\/wp\/v2\/posts\/324"}],"collection":[{"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=324"}],"version-history":[{"count":1,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions"}],"predecessor-version":[{"id":418,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions\/418"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=\/wp\/v2\/media\/363"}],"wp:attachment":[{"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}