{"id":327,"date":"2013-08-25T01:00:00","date_gmt":"2013-08-25T01:00:00","guid":{"rendered":"http:\/\/fabriquilla25.com\/?p=327"},"modified":"2015-04-29T19:04:57","modified_gmt":"2015-04-29T19:04:57","slug":"zumo-de-codigo-abierto-open-source-juice","status":"publish","type":"post","link":"http:\/\/fabriquilla25.com\/?p=327","title":{"rendered":"Zumo de c\u00f3digo abierto &#8211; Open Source Juice"},"content":{"rendered":"<p>Todo empez\u00f3 cuando compr\u00e9 un peque\u00f1o <a href=\"http:\/\/fabriquilla25.com\/?p=330\">sensor de humedad de suelo<\/a> rid\u00edculamente barato. Ese sensor result\u00f3 ser un fiasco, pero como ya coment\u00e9 me di\u00f3 pi\u00e9 a empezar a pensar en tener una bater\u00eda de sensores de condiciones ambientales para agricultura suficientemente precisos y de bajo coste.<\/p>\n<p><i>All this started the day I bought one<a href=\"http:\/\/fabriquilla25.com\/?p=330\"> dirty cheap soil moisture sensor<\/a>. This sensor got broken on the first 48h, but thanks of that I started thinking about making my own agriculture sensors. These should be precise enough, low cost and open source.<\/i><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/08\/osh_main.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" border=\"0\" height=\"160\" src=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/08\/osh_main-300x150.jpg\" width=\"320\" \/><\/a><\/div>\n<p>Ahora mismo digamos que estoy en la versi\u00f3n 3.0 (\u00bf4.0?) de mi sensor de humedad. He llegado a \u00e9l a base de equivocarme mucho. Much\u00edsimo. Mucho m\u00e1s de lo que me habr\u00eda gustado, pero hoy est\u00e1 funcionando y es lo que cuenta. Mi sensor tiene poco de original (algo hay) y es b\u00e1sicamente un popurr\u00ed de otros proyectos de c\u00f3digo abierto, a decir:<\/p>\n<p><i>Just now I am in version 3.0 (4.0?) of my soil moisture sensor. I came to it over a thousands of mistakes, but just now is working and this is what it matters. This sensor is a mix of several openSource existing projects (and a little bit from me).<\/i><\/p>\n<p>&#8211; <b>El sensor de humedad<\/b> est\u00e1 basado en <a href=\"http:\/\/vanderleevineyard.com\/1\/category\/vinduino\/1.html\">Vinduino<\/a>. Consiste en un bloque de yeso de par\u00eds con dos electrodos en su interior. Encontrar el yeso en Almer\u00eda no fue f\u00e1cil y me cost\u00f3 muchos km dar con el. Una vez tuve el yeso y me puse a construir el sensor empec\u00e9 a pensar en una manera lo mas sistem\u00e1tica posible para que los bloques de yeso sean homog\u00e9neos. Pens\u00e9 en todo tipo de mallas, en tacos qu\u00edmicos (no los encontr\u00e9 de un calibre suficientemente grueso), pens\u00e9 en utilizar mallas de filtros de agua (no fu\u00e9 factible), y al final gracias a la lucidez de un amable dependiente de mi ferreter\u00eda favorita (<a href=\"http:\/\/www.ferreteriaterriza.com\/\">Terriza Moro<\/a>) encontr\u00e9 la soluci\u00f3n \u00f3ptima: usar rulos de peluquer\u00eda:<\/p>\n<p><i>Soil Moisture is based in <a href=\"http:\/\/vanderleevineyard.com\/1\/category\/vinduino\/1.html\">Vinduno<\/a>. It is a &#8220;Plaste of Paris&#8221; gypsum block with two electrodes inside. Once I got the gypsum I thought a way to make the blocks in a systematic way in order to have the same properties in all the blocks. It took some time to me, but finally I founded the best way: to use curlers Styling:<\/i><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/08\/2013-06-13-18.37.46.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\/08\/2013-06-13-18.37.46-163x300.jpg\" width=\"174\" \/><\/a><a href=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/08\/2013-06-13-18.38.54.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\/08\/2013-06-13-18.38.54-184x300.jpg\" width=\"196\" \/><\/a><\/div>\n<p>Estos rulos consisten en un armaz\u00f3n pl\u00e1stico cubierto por una especie de velcro. Al quitar este velcro externo quedan unos cilindros con forma de malla:<br \/><i>These curlers must be peeled from this &#8220;velcro&#8221; and we obtain this mesh:<\/i><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/08\/2013-06-13-18.41.14.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\/08\/2013-06-13-18.41.14-300x225.jpg\" width=\"320\" \/><\/a><\/div>\n<p>Esta malla es perfecta para rellenarla de yeso. Para lo cual los envuelvo en film pl\u00e1stico de cocina y los pongo sobre un bloque de plastilina sobre el cual tamb\u00eden clavo los dos sensores hechos de varilla roscada inoxidable. El resultado final es este:<br \/><i>The mesh is perfect to be filled with gypsum, I use some plastic cooking film to make an envelop and after that I fill them. This is the result:<\/i><\/p>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<p><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/08\/2013-06-13-20.17.14.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\/08\/2013-06-13-20.17.14-300x225.jpg\" width=\"320\" \/><\/a><\/div>\n<p>La malla le da una integridad muy buena, los he tenido sumergidos en agua durante mas de un mes y siguen perfectos.<br \/><i>The mesh give them a good core. I have tested the blocks putting them into water during a complete month and the stability is perfect.<\/i><\/p>\n<p>Esto respecto al sensor.<\/p>\n<p><b>La electr\u00f3nica: <\/b>La parte electr\u00f3nica de Vinduino no me parece pr\u00e1ctica, ya que el tener que ir mirando una pantallica para ver la humedad no mola. <u>La electr\u00f3nica ten\u00eda que ser&nbsp;inhal\u00e1mbrica<\/u>. Y a ser posible barata, que los m\u00f3dulos xbee para Arduino son car\u00edsimos. Dentro de las opciones econ\u00f3micas me decant\u00e9 por el m\u00f3dulo <a href=\"http:\/\/www.hoperf.com\/upload\/rf\/rfm12b.pdf\">rfm12b<\/a>, las librer\u00edas son extensas gracias al proyecto&nbsp;<a href=\"http:\/\/jeelabs.net\/projects\/hardware\/wiki\/JeeNode\">Jeenode<\/a>. Pero no me gusta el factor de forma de Jeenode: es extra\u00f1o, no le veo la ventaja. El vencedor es un dise\u00f1o chiquitito pero muy mol\u00f3n: el <a href=\"http:\/\/lowpowerlab.com\/moteino\/\">Moteino<\/a>. Mola tanto que incluso incorpora dos pines anal\u00f3gicos m\u00e1s que los Arduinos oficiales (ojo, s\u00f3lo pueden ser usados como pines anal\u00f3gicos, pero esos es lo que queremos \u00bfverdad?) y la plaquita completa 18,95 $ !!!.<br \/><i><b>Electronics <\/b>from Vinciduino doesn\u00b4t like to me. I don\u00b4t want to have a walk every time I have to check the soil status. Because of that it had to be wifi. Xbee\u00b4s are too much expesive, so I looked for cheaper options, finally I decided to use <a href=\"http:\/\/www.hoperf.com\/upload\/rf\/rfm12b.pdf\">RFM12b <\/a>modules. I came to them thanks to <a href=\"http:\/\/jeelabs.net\/projects\/hardware\/wiki\/JeeNode\">Jeenode<\/a>, but I don\u00b4t like the Jeenode\u00b4s form factor. So I am using small and cutes <a href=\"http:\/\/lowpowerlab.com\/moteino\/\">Moteinos<\/a>. They have some adventages with offcial Arduinos (2x analog inputs more), it is very small, it\u00b4s Open Source and it has a good price (18,95 $ each incluying RF module)<\/i><\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/08\/Moteino_R2-500x500.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\/08\/Moteino_R2-500x500-300x300.jpg\" width=\"320\" \/><\/a><\/div>\n<p>Al mote\u00edno pueden ir conectados hasta 4 sensores de humedad y los<a href=\"http:\/\/www.ebay.co.uk\/itm\/DS18B20-18B20-1-WIRE-Digital-Thermometer-in-waterproof-casing-BRAND-NEW-UK-STOCK-\/190784248550\"> sensores de temperatura&nbsp;de suelo<\/a> que queramos.<\/p>\n<p><i>I can attach 4 soil moisture sensors to each moteino and<a href=\"http:\/\/www.ebay.co.uk\/itm\/DS18B20-18B20-1-WIRE-Digital-Thermometer-in-waterproof-casing-BRAND-NEW-UK-STOCK-\/190784248550\"> some soil temperature 18b20<\/a> sensors also.<\/i><\/p>\n<p>Tambien le he a\u00f1adido un <a href=\"http:\/\/harizanov.com\/2012\/09\/measuring-humidity-and-temperature-with-dht22-and-funky\/\">sensor de humedad y temperatura ambiente<\/a> basado en el m\u00f3dulo DHT22 y desarrollado por Martin Harizanov.<\/p>\n<p><i>In the same emplacement I have the <a href=\"http:\/\/harizanov.com\/2012\/09\/measuring-humidity-and-temperature-with-dht22-and-funky\/\">harizanov humidity and temperature sensor.<\/a><\/i><\/p>\n<p>Los datos son subidos a internet directamente a trav\u00e9s de una <a href=\"http:\/\/www.raspberrypi.org\/\">Raspbery Pi<\/a>&nbsp;a la que le he a\u00f1adido un m\u00f3dulo <a href=\"http:\/\/harizanov.com\/wiki\/wiki-home\/rfm2pi-board\/\">RFM2Pi<\/a>,&nbsp;dise\u00f1ado tambi\u00e9n &nbsp;por Martin Harizanov para usarlo en la plataforma <a href=\"http:\/\/openenergymonitor.org\/\">Openenergymonitor.org<\/a>&nbsp;. En el wiki de openenergymonitor (o emoncms.org) est\u00e1 descrito perfectamente c\u00f3mo configurar la raspberry junto con este m\u00f3dulo.<\/p>\n<p><i>All the data goes to internet thanks to a <a href=\"http:\/\/www.raspberrypi.org\/\">Raspberry pi<\/a>. The raspberry has an <a href=\"http:\/\/harizanov.com\/wiki\/wiki-home\/rfm2pi-board\/\">RFM2Pi <\/a>Martin\u00b4s module and all the instructions to have it working are very well described in <a href=\"http:\/\/www.openenergymonitor.org\/\">www.openenergymonitor.org<\/a> or <a href=\"http:\/\/www.emoncms.org\/\">www.emoncms.org<\/a><\/i><\/p>\n<p>Conectar la Raspberry a Internet en la finca tambi\u00e9n tiene su truco: la raspberry se conecta a un tel\u00e9fono android puesto en modo punto de acceso. Parece sencillo, pero claro el tel\u00e9fono (HTC Wildfire) tiene ese uso porque tiene la pantalla rota. Ahora vas t\u00fa y lo configuras. Pues si, hay un programa (Android Screencast) en <a href=\"http:\/\/forum.xda-developers.com\/showthread.php?t=557717\">www.xda-developers.com<\/a> que va de maravilla.<\/p>\n<p><i>The raspberry is up in internet thanks to an old android cell phone configured as a Wifi Hot Spot<\/i><\/p>\n<p>Adem\u00e1s, si bien el sensor de temperatura y humedad ambiente puede reportar datos durante meses con una s\u00f3la bater\u00eda AAA, el sensor de humedad de suelo est\u00e1 conectado a un m\u00f3dulo <a href=\"http:\/\/www.seeedstudio.com\/depot\/lipo-rider-pro-p-992.html?cPath=1_75\">Lipo Rider Pro v1.0<\/a>&nbsp;+ <a href=\"http:\/\/www.seeedstudio.com\/depot\/1w-solar-panel-80x100-p-633.html?cPath=1_2\">Placa Solar 1W<\/a>&nbsp;+ <a href=\"http:\/\/www.seeedstudio.com\/depot\/lithium-ion-polymer-battery-pack-3a-p-588.html?cPath=1_3\">Bater\u00eda de litio de 3.000 mAh<\/a>&nbsp;dentro de un &#8220;tupper&#8221; y puesto sobre un \u00e1rbol:<\/p>\n<p><i>I am powering the soil moisture sensor thanks to the <a href=\"http:\/\/www.seeedstudio.com\/depot\/lipo-rider-pro-p-992.html?cPath=1_75\">Lipo Rider Pro<\/a> +<a href=\"http:\/\/www.seeedstudio.com\/depot\/1w-solar-panel-80x100-p-633.html?cPath=1_2\"> 1W Solar Pannel<\/a> +<a href=\"http:\/\/www.seeedstudio.com\/depot\/lithium-ion-polymer-battery-pack-3a-p-588.html?cPath=1_3\"> 3.000 mAh battery<\/a>. &nbsp;This configuration&nbsp;<\/i><i>works fine&nbsp;<\/i><i>inside one cheap tupperware:<\/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\/08\/2013-08-19-12.49.19.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\/08\/2013-08-19-12.49.19-225x300.jpg\" width=\"240\" \/><\/a><\/div>\n<p>Como ya he comentado antes, todos estos datos son reportados a la plataforma emoncms.org donde pueden ser consultados en cualquier momento:<\/p>\n<p><i>For now I am just monitoring the data, I use emoncms.org platform and I can acces to it freedom from any place.<\/i><\/p>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/08\/emoncmstable.jpg\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" border=\"0\" height=\"220\" src=\"http:\/\/192.168.1.88\/wordpress\/wp-content\/uploads\/2013\/08\/emoncmstable-300x207.jpg\" width=\"320\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><b>&#8212; Actualizar\u00e9 esta entrada con c\u00f3digos y mas informaci\u00f3n del sistema.&#8212;<\/b><\/div>\n<div style=\"text-align: center;\"><i><b>&#8212; I will update this post with codes, more information, photos,&#8230;&#8212;<\/b><\/i><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Todo empez\u00f3 cuando compr\u00e9 un peque\u00f1o sensor de humedad de suelo rid\u00edculamente barato. Ese sensor result\u00f3 ser un fiasco, pero como ya coment\u00e9 me di\u00f3 pi\u00e9 a empezar a pensar en tener una bater\u00eda de sensores de condiciones ambientales para agricultura suficientemente precisos y de bajo coste. All this started the day I bought one [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":378,"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\/327"}],"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=327"}],"version-history":[{"count":1,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":421,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=\/wp\/v2\/posts\/327\/revisions\/421"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=\/wp\/v2\/media\/378"}],"wp:attachment":[{"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fabriquilla25.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}