{"id":122,"date":"2008-03-26T20:47:09","date_gmt":"2008-03-27T02:47:09","guid":{"rendered":"http:\/\/www.netfluvia.org\/layer8\/?p=122"},"modified":"2012-01-07T14:59:07","modified_gmt":"2012-01-07T20:59:07","slug":"temperature-sensing-from-arduino","status":"publish","type":"post","link":"https:\/\/www.netfluvia.org\/layer8\/?p=122","title":{"rendered":"temperature sensing from arduino"},"content":{"rendered":"<p>I&#8217;ve been playing with <a href=\"http:\/\/www.arduino.cc\">Arduino<\/a> boards in my limited spare time over the past few months.\u00c2\u00a0 It&#8217;s a fun way to spend quality hands-on geek time that is clearly distinct (at least to me) from my day job.\u00c2\u00a0 Plus, I&#8217;m able to start actually instantiating some of the ubiquitious computing \/ distributed sensor ideas that have been floating around in my head.<\/p>\n<p>I&#8217;ve been working on a simple wireless light, temp, and motion sensor.\u00c2\u00a0 Light was a trivial <a href=\"http:\/\/en.wikipedia.org\/wiki\/Photoresistor\">CDS photocell<\/a> connected to the analog port of the arduino.\u00c2\u00a0 My first attempt at temp is using the <a href=\"http:\/\/datasheets.maxim-ic.com\/en\/ds\/DS18B20.pdf\">Dallas Semiconductor DS-18B20<\/a> digital one-wire sensor, which is <a href=\"http:\/\/www.sparkfun.com\/commerce\/product_info.php?products_id=245\">pretty slick for $4.25<\/a>.<\/p>\n<p>There was some <a href=\"http:\/\/www.arduino.cc\/playground\/Learning\/OneWire\">good sample code<\/a> on the main arduino site, but I spent a small bit of time to flesh it out more completely, adding the ability to configure sensor resolution and extracting the temp value from the returned data.\u00c2\u00a0 Code is <a href=\"http:\/\/www.netfluvia.org\/code\/ds18B20_test.pde\">here<\/a>, if this is interesting or useful to you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been playing with Arduino boards in my limited spare time over the past few months.\u00c2\u00a0 It&#8217;s a fun way to spend quality hands-on geek time that is clearly distinct (at least to me) from my day job.\u00c2\u00a0 Plus, I&#8217;m able to start actually instantiating some of the ubiquitious computing \/ distributed sensor ideas that <a href='https:\/\/www.netfluvia.org\/layer8\/?p=122'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,6],"tags":[26,23],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-arduino","category-tech","tag-arduino","tag-code","category-18-id","category-6-id","post-seq-1","post-parity-odd"],"_links":{"self":[{"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122"}],"version-history":[{"count":1,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":183,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions\/183"}],"wp:attachment":[{"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netfluvia.org\/layer8\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}