{"id":706,"date":"2015-05-09T21:09:00","date_gmt":"2015-05-09T21:09:00","guid":{"rendered":"http:\/\/interactingobjects.com\/?p=706"},"modified":"2015-05-09T21:16:03","modified_gmt":"2015-05-09T21:16:03","slug":"from-wifridge-to-weiofridge","status":"publish","type":"post","link":"https:\/\/interactingobjects.com\/?p=706","title":{"rendered":"From WiFridge to WeIOFridge"},"content":{"rendered":"<p>Now that I have my WeIO, I thought I could try to &#8220;migrate&#8221; my WiFridge (which already worked on an <a href=\"http:\/\/interactingobjects.com\/introduction-to-one-of-my-first-arduino-based-project-wifridge\/\">Arduino UNO\u00a0+\u00a0WiFly board<\/a>\u00a0and an<a href=\"http:\/\/interactingobjects.com\/new-wifridge-based-on-adafruit-cc3000-wifi-shield\/\" target=\"_blank\"> Arduino UNO + Adafruit&#8217;s CC3000 shield<\/a>)<\/p>\n<p>I tried to use a <a href=\"http:\/\/interactingobjects.com\/wido-first-impressions\/\">WiDo <\/a>from DFRobots but it it based on an Arduino Leonardo and the bootloader being larger than for an Adruino Uno, I can&#8217;t get my program to fit in memory ! I&#8217;ll try a bit later to either get my code lighter or remove the bootloader and program the chip directly.<\/p>\n<p>So for now, I&#8217;ll just try to leverage WeIO power to get a new version of my WiFridge : the WeIOFridge !<\/p>\n<p>I had first to connect 2 DS18B20 which are going into the fridge and freezer. But there is no direct support for it so I used a workaround <a href=\"http:\/\/interactingobjects.com\/weio-and-ds18b20-temp-sensor-1wire\/\" target=\"_blank\">described here<\/a> : use the UART to &#8220;simulate&#8221; 1-wire protocol. At the time of writing, a new version of WeIO software should be out in a few days which is including all necessary librairies and a little helper to simplify the use of DS18B20 on UART port.<\/p>\n<p>Then, I tried to connect a DHT22 for kitchen temperature and humidity&#8230; and got some troubles. But thanks to the help of WeIO team (see posts<a href=\"http:\/\/we-io.net\/forum\/viewtopic.php?f=13&amp;t=410\" target=\"_blank\"> here<\/a>\u00a0and <a href=\"http:\/\/we-io.net\/hardware\/log-and-visualize-your-sensors-with-weio-and-emoncms\/\" target=\"_blank\">here<\/a>), we finally managed to get it working. As for DS18B20, update for this will be included in next WeIO software which should be out soon.<\/p>\n<p>And after a bit of coding<\/p>\n<ul>\n<li>in Python for the server side : reading data from the sensors, and sending them to a private <a href=\"http:\/\/emoncms.org\/\" target=\"_blank\">emoncms <\/a>web site and any connected Web client<\/li>\n<li>in JavaScript for a nice Web UI displaying instantaneous data<\/li>\n<\/ul>\n<p>I now have this :<\/p>\n<p><a href=\"http:\/\/interactingobjects.com\/wp-content\/uploads\/2015\/05\/WeIOFridge-UI-Emoncms.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-709\" src=\"http:\/\/interactingobjects.com\/wp-content\/uploads\/2015\/05\/WeIOFridge-UI-Emoncms.png\" alt=\"WeIOFridge UI &amp; Emoncms\" width=\"640\" height=\"287\" srcset=\"https:\/\/interactingobjects.com\/wp-content\/uploads\/2015\/05\/WeIOFridge-UI-Emoncms.png 640w, https:\/\/interactingobjects.com\/wp-content\/uploads\/2015\/05\/WeIOFridge-UI-Emoncms-300x135.png 300w, https:\/\/interactingobjects.com\/wp-content\/uploads\/2015\/05\/WeIOFridge-UI-Emoncms-500x224.png 500w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>I am now stabilizing my code (still a few glitches&#8230;) and in a next post, I&#8217;ll describe the hardware connections and associated programs.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that I have my WeIO, I thought I could try to &#8220;migrate&#8221; my WiFridge (which already worked on an Arduino UNO\u00a0+\u00a0WiFly board\u00a0and an Arduino UNO + Adafruit&#8217;s CC3000 shield) I tried to use a WiDo from DFRobots but it &hellip; <a href=\"https:\/\/interactingobjects.com\/?p=706\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[122,5],"tags":[9,132,8,106,131,130],"class_list":["post-706","post","type-post","status-publish","format-standard","hentry","category-weio","category-wifridge-projects","tag-am2302","tag-dht22","tag-ds18b20","tag-weio","tag-weiofridge","tag-wifridge"],"_links":{"self":[{"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts\/706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=706"}],"version-history":[{"count":5,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts\/706\/revisions"}],"predecessor-version":[{"id":715,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts\/706\/revisions\/715"}],"wp:attachment":[{"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}