{"id":250,"date":"2021-01-31T19:30:00","date_gmt":"2021-01-31T23:30:00","guid":{"rendered":"http:\/\/www.functionalprototype.com\/news\/?p=250"},"modified":"2022-09-06T18:06:34","modified_gmt":"2022-09-06T22:06:34","slug":"the-sensor-box-project","status":"publish","type":"post","link":"https:\/\/www.functionalprototype.com\/news\/2021\/01\/31\/the-sensor-box-project\/","title":{"rendered":"The &#8220;sensor box&#8221; project"},"content":{"rendered":"<p>Digging through sensors I already have, I discovered that my <a href=\"https:\/\/amzn.to\/3j463Sa\">Sparkfun Qwiic Ideation Kit<\/a> came with an <a href=\"https:\/\/amzn.to\/3tc7vH1\">Environmental Combo<\/a> sensor that can detect temperature, humidity, CO (carbon monoxide), and VOC (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Volatile_organic_compound\">volatile organic compounds<\/a>).\u00a0 The list of VOCs is long but NO2 is in the list.<\/p>\n<p>What&#8217;s Qwiic?\u00a0 It is a standard from Sparkfun for I2C (a serial communication protocol) which makes working with complex sensors much easier, almost as easy as working with simple analog sensors.\u00a0 On the Arduino you can do a digitalRead() or analogRead() on a pin and get back a value:\u00c2\u00a0 high\/low for digital and a number between 0 an 1023 for analog.\u00a0 With the Qwiic\/I2C solution you can read complex sets of data with an almost-as-simple interface.<\/p>\n<p>Using a Qwiic cable I tied my sensor to a RPi3, put it in the kitchen, and ran some Python code that I&#8217;d thrown together.\u00a0 (I say &#8220;thrown together&#8221; because I&#8217;ve been writing in C++ since Bush41 and will write a independent post on what-language-to-use-for-physical-computing-and-why.)\u00a0 I&#8217;ve let the code run for a few days and noted anything I was doing in the kitchen.<\/p>\n<p>Keep in mind this sensor only reports VOC ppb (parts-per-billion) , it can&#8217;t tell you which one.\u00a0 My first surprise was how the VOC jumped when I made brewed tea (sencha), from around 8 or 9 to the mid-70s then back down to ~10ppb.\u00a0 Sure, the humidity went up briefly, I mean, I AM BREWING TEA, but VOC?\u00a0 Then I got to thinking &#8212; I can smell the tea, is the scent a VOC?\u00a0 I haven&#8217;t found a solid answer yet, but it seems possible.\u00a0 Or maybe the sensor is misreading steam as a VOC?<\/p>\n<p>Then another test with making toast and not using the ceiling ventilation fan.\u00a0 The sensor is about a foot from our toaster oven, and within a minute the VOC rate had jumped from ~10 to 1961.\u00a0 The next minute 2023, the next minute 6382, then the next minute (after the oven was turned off) it dropped to 3700.\u00a0 CO also went up and back down in similar levels.\u00a0 It took at least an hour for the VOC to drop back to ~10.<\/p>\n<p>So clearly something is being detected but what?\u00a0 Let&#8217;s look at PM2.5 (dust) levels while we&#8217;re cooking.<\/p>\n<p>My next sensor is an <a href=\"https:\/\/www.adafruit.com\/product\/3686\">Adafruit Air Quality Sensor,<\/a> a Qwiic compatible sensor that tells you how many tiny particles are in the air.\u00a0 It will be interesting to see how PM2.5 numbers compare to the VOC numbers.<\/p>\n<p>I&#8217;m posting all this to a <a href=\"https:\/\/github.com\/functionalprototype\/sensor-box\">github repo<\/a> if you want to try this in your home\/studio.\u00a0 Future work includes more sensors, a case for mounting it to a wall, a touch screen interface and whatever else I think of along the way.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Digging through sensors I already have, I discovered that my Sparkfun Qwiic Ideation Kit came with an Environmental Combo sensor that can detect temperature, humidity, CO (carbon monoxide), and VOC (volatile organic compounds).\u00a0 The list of VOCs is long but NO2 is in the list. What&#8217;s Qwiic?\u00a0 It is a standard from Sparkfun for I2C [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[21,34],"tags":[],"class_list":["post-250","post","type-post","status-publish","format-standard","hentry","category-design","category-environmental"],"_links":{"self":[{"href":"https:\/\/www.functionalprototype.com\/news\/wp-json\/wp\/v2\/posts\/250"}],"collection":[{"href":"https:\/\/www.functionalprototype.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.functionalprototype.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.functionalprototype.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.functionalprototype.com\/news\/wp-json\/wp\/v2\/comments?post=250"}],"version-history":[{"count":0,"href":"https:\/\/www.functionalprototype.com\/news\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.functionalprototype.com\/news\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.functionalprototype.com\/news\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.functionalprototype.com\/news\/wp-json\/wp\/v2\/tags?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}