{"id":34,"date":"2013-11-07T17:21:17","date_gmt":"2013-11-07T17:21:17","guid":{"rendered":"http:\/\/interactingobjects.com\/?p=34"},"modified":"2013-11-08T23:10:40","modified_gmt":"2013-11-08T23:10:40","slug":"introduction-to-one-of-my-first-arduino-based-project-wifridge","status":"publish","type":"post","link":"https:\/\/interactingobjects.com\/?p=34","title":{"rendered":"Introduction to one of my first Arduino based project : WiFridge&#8230;"},"content":{"rendered":"<h1>&#8230; or why one would want its fridge to be connected to the internet !<\/h1>\n<p>This is one of my first Arduino based project. I had some issue in the past with my freezer that would let the temperature going to high for too long and I had no way of knowing before it was too late. I could barely detect it happened by using an ice cube in a glass that would melt in case of a huge temperature problem. That is why I decided to build the WiFridge : a wifi device that would monitor my fridge&#8217;s and freezer&#8217;s temperatures and send an alert in case anything goes wrong.<\/p>\n<p>I first tried using an\u00a0<a href=\"http:\/\/arduino.cc\/en\/Main\/ArduinoBoardEthernet\">Arduino Ethernet<\/a>\u00a0because it was far less expensive than an arduino with a wifi shield. But&#8230; I have no ethernet port near my fridge and I did not want to have an ethernet cable across my kitchen&#8230; So I had a look on internet and decided to go for a\u00a0<a href=\"http:\/\/www.rovingnetworks.com\/products\/RN171XV\">RN-XV WiFly Module<\/a>\u00a0from Roving Networks and the ad-hoc shield.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/interactingobjects.com\/wp-content\/uploads\/2013\/08\/WiFridge-1000x750.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-65 aligncenter\" style=\"border: 0px;\" alt=\"WiFridge 1000x750\" src=\"http:\/\/interactingobjects.com\/wp-content\/uploads\/2013\/08\/WiFridge-1000x750.png\" width=\"800\" height=\"600\" srcset=\"https:\/\/interactingobjects.com\/wp-content\/uploads\/2013\/08\/WiFridge-1000x750.png 1000w, https:\/\/interactingobjects.com\/wp-content\/uploads\/2013\/08\/WiFridge-1000x750-300x225.png 300w, https:\/\/interactingobjects.com\/wp-content\/uploads\/2013\/08\/WiFridge-1000x750-400x300.png 400w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>For the temperature part, I bought 2 <a href=\"http:\/\/snootlab.com\/adafruit\/252-capteur-de-temperature-et-humidite-am2302.html\">DS18B20 <\/a>sensors, in a waterproof package, coming with a 1m long cable and its 4.7k pull-up resistor. I also bought an <a href=\"http:\/\/snootlab.com\/adafruit\/206-capteur-de-temperature-ds18b20-etanche.html\">DHT22\/AM2302<\/a> temperature and humidity sensor so I can get my kitchen&#8217;s environnement data along with fridge&#8217;s and freezer&#8217;s temperatures. Both sensors are digital sensor. That is, they send the temperature (and humidity for the AM2302) in the form of bits, not an analog voltage. DS18B20 sensor is using <a href=\"http:\/\/en.wikipedia.org\/wiki\/1-Wire\">1-wire<\/a> protocol which I found very nice because I can connect both DS18B20 sensor to the very same input.<\/p>\n<p>Add a few leds for monitoring the status of the gizmo, a bit of soldering after some testing on a breadboard, a few lines of code, and that&#8217;s it, I got my WiFridge up and running, sending data to the internet&#8230;<\/p>\n<p>In a coming post, I will go into more details, give a detailed schematic for the hardware, describe Arduino&#8217;s code that I used (I am still working on it though as I have some Wifi stability problems&#8230;) and how I sent data to my <a href=\"http:\/\/emoncms.org\/\">emoncms <\/a>web sites (one local on a Raspberry Pi and one on a shared hosting.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8230; or why one would want its fridge to be connected to the internet ! This is one of my first Arduino based project. I had some issue in the past with my freezer that would let the temperature going &hellip; <a href=\"https:\/\/interactingobjects.com\/?p=34\">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":[3,5],"tags":[9,6,8,10,7,11],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-projects","category-wifridge-projects","tag-am2302","tag-arduino","tag-ds18b20","tag-dth22","tag-rn-xv","tag-wifly"],"_links":{"self":[{"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts\/34","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=34"}],"version-history":[{"count":15,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":174,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions\/174"}],"wp:attachment":[{"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/interactingobjects.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}