{"id":10430,"date":"2014-11-20T16:48:10","date_gmt":"2014-11-20T08:48:10","guid":{"rendered":"http:\/\/www.seeedstudio.com\/blog\/?p=10430"},"modified":"2014-11-20T16:48:10","modified_gmt":"2014-11-20T08:48:10","slug":"air-quality-sensor-project-built-in-linkit-one","status":"publish","type":"post","link":"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/","title":{"rendered":"AIR QUALITY SENSOR PROJECT built in LinkIt ONE"},"content":{"rendered":"<header>by\u00a0Charles\u00a0McClelland<\/p>\n<\/header>\n<div>\n<p>Introduction:<\/p>\n<p>I have always enjoyed science, engineering and computers. \u00a0I am not a professional engineer and I am very open to input and suggestions as I see this primarily as a learning opportunity for me. \u00a0Please take a look at this documentation and feel free to let me know how I might improve this project.<\/p>\n<p>As someone who likes to spend time outdoors, I have sometimes wondered whether the air quality \u2013 at the time and place I am \u2013 is suitable for strenuous activity. \u00a0In this regard, I am lucky as some people are sensitive to certain pollutants and need to worry about their exposure for even routine activities. \u00a0I saw in this an opportunity to pursue some \u201ccitizen science\u201d and continue to learn about how to build sensors and embrace the internet of things. \u00a0I am documenting this project with two goals in mind: 1) to engage others to critique my approach and suggest improvements and 2) to provide all the information needed to build and extend this project.<\/p>\n<p>Project Goals:<\/p>\n<ol>\n<li>Build a sensor which can give consistent (accurate) results. \u00a0Precision will be a stretch goal as it will require calibration tools I may not be able to get access to.<\/li>\n<li>Sense a range of different gasses based on the module selected and compute an \u201cAir Quality Index\u201d for each<\/li>\n<li>Use a standard interface \u2013 i2c \u2013 so it can be used with different systems. \u00a0My first application will be with the\u00a0<a href=\"http:\/\/www.seeedstudio.com\/wiki\/LinkIt_ONE\" target=\"_blank\">SeeedStudio LinkIt ONE\u00a0<\/a><\/li>\n<li>Support portable operation on battery power using GPRS for data reporting.<\/li>\n<li>Report all data to an Internet of Things Data streaming site for reporting.<\/li>\n<\/ol>\n<p>Phase I \u2013 The Sensor Board<\/p>\n<p>I started with the board as the sensor I wanted to use is a surface mount device and I knew that making the custom board to support it would have the longest lead times. \u00a0I have completed the rough design and have not yet sent the board out for fabrication so now would be a great time to take a look and let me know what I am missing. \u00a0Here are the major elements and their function:<\/p>\n<ul>\n<li>Gas Sensor \u2013 I found a distributor for SGX Sensortech Limited who carries a complete line of Metal Oxide Gas Sensors. There is a family that all share a common footprint so you can select the sensor you want to use. \u00a0Here is\u00a0<a href=\"http:\/\/www.cdiweb.com\/ProductDetail\/MICS4514-e2v\/333417\/#.VGisqYcuj4Q\" target=\"_blank\">dual CO and NO2 sensor<\/a>\u00a0that I will start with.<\/li>\n<li><a href=\"http:\/\/www.cdiweb.com\/datasheets\/e2v\/MiCsQuickStartEvaluationBoard-CDI.pdf\" target=\"_blank\">MICS Quick Start Board<\/a>\u00a0\u2013 This is where I started butI decided that I could design a much more functional board for less than what they were charging.<\/li>\n<li>Temperature and Humidity Sensor \u2013 I chose the Honeywell,<a href=\"http:\/\/dlnmh9ip6v2uc.cloudfront.net\/datasheets\/Prototyping\/1443945.pdf\">HIH6130<\/a>\u00a0as it was compact, i2c and 3.3 and 5V tolerant.<\/li>\n<li>I wanted to control the board with only 6 wires, two for a 3.3 reference, two for i2c and two for control \u2013 on\/off and preheat\/fan. \u00a0To do this, I added a\u00a0<a href=\"https:\/\/www.fairchildsemi.com\/datasheets\/NC\/NC7SZU04.pdf\">Fairchild inverter<\/a>\u00a0which would alternately pre-heat the sensor or turn on the fan via a pair of<a href=\"http:\/\/www.nxp.com\/documents\/data_sheet\/2N7002P.pdf\">NXP N-MOSFETs<\/a>.<\/li>\n<li>Digital to Analog Converter \u2013 I have to admit, I have a bit of a digital bias. \u00a0By converting the Gas Sensor\u2019s readings from analog to digital, I could use less wires and run the sensor board at 5V while my main board runs at 3.3V or 5V. \u00a0I used a\u00a0<a href=\"http:\/\/www.ti.com\/lit\/ds\/symlink\/ads1013.pdf\">TI four channel Digital to Analog Converter<\/a>\u00a0with two channels for the Gas Sensor, one to measure the battery voltage and one routed to a header for future use.<\/li>\n<li>i2c Level Converter \u2013 Using this converter, you should be able to use this board with either 3.3V or 5V i2c as the logic level for the output header is set by the two wires you feed from your controller. \u00a0Have not done this before, but it seems straightforward. I used the\u00a0<a href=\"http:\/\/www.ti.com\/lit\/ds\/symlink\/pca9306.pdf\">TI Bi-Directional i2c<\/a>\u00a0device.<\/li>\n<li>Power Supply \u2013 This was one of the areas that drive me to design my own board in the first place. \u00a0The quick start board used a simple linear supply but I like the switched \u00a0<a href=\"http:\/\/www.ti.com\/lit\/ds\/symlink\/tps63002.pdf\">TI TPS63002<\/a>\u00a0as it allows for a wide range of battery voltages and takes only a few components. \u00a0One nit, the PowerPad chip is hard to solder and I had to create a custom footprint as the ones TI gives you are junk.<\/li>\n<\/ul>\n<p>Here is the schematic for this board:<a href=\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Air-Quality-Board.pdf\">Air Quality Board<\/a><\/p>\n<p>This is the current layout \u2013 about 1\u2033 x 2.25\u2033 \u2013 need to add more labeling but you can see how it all fits:\u00a0<a href=\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-16-at-2.08.27-PM.png\"><img decoding=\"async\" alt=\"Air Quality Board - Rough Layout\" src=\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-16-at-2.08.27-PM-300x134.png\" width=\"300\" height=\"134\" \/><\/a><\/p>\n<p>Update: Finalized the board and sent to OshPark for production. \u00a0Here is what the board will look like:<\/p>\n<figure id=\"attachment_747\"><a href=\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-19-at-3.33.04-PM.png\"><img decoding=\"async\" alt=\"Front\" src=\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-19-at-3.33.04-PM-300x140.png\" width=\"300\" height=\"140\" \/><\/a><figcaption>Front<\/figcaption><\/figure>\n<figure id=\"attachment_748\"><a href=\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-19-at-3.33.21-PM.png\"><img decoding=\"async\" alt=\"Back\" src=\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-19-at-3.33.21-PM-300x139.png\" width=\"300\" height=\"139\" \/><\/a><figcaption>Back<\/figcaption><\/figure>\n<p>I do the board first as it takes the longest. \u00a0I will now order the remaining components and the sensors from SGX. \u00a0While I am waiting on the atoms, I can start working on the bits. \u00a0 \u00a0I have a GPRS modem from Adafruit to play with while I wait for the LinkIn ONE to make it\u2019s international trip.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>by\u00a0Charles\u00a0McClelland Introduction: I have always enjoyed science, engineering and computers. \u00a0I am not a professional<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"iawp_total_views":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10430","post","type-post","status-publish","format-standard","hentry","category-news"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AIR QUALITY SENSOR PROJECT built in LinkIt ONE - Latest News from Seeed Studio<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AIR QUALITY SENSOR PROJECT built in LinkIt ONE - Latest News from Seeed Studio\" \/>\n<meta property=\"og:description\" content=\"by\u00a0Charles\u00a0McClelland Introduction: I have always enjoyed science, engineering and computers. \u00a0I am not a professional\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/\" \/>\n<meta property=\"og:site_name\" content=\"Latest News from Seeed Studio\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-20T08:48:10+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-16-at-2.08.27-PM-300x134.png\" \/>\n<meta name=\"author\" content=\"\u884c\u653f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u884c\u653f\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/\",\"name\":\"AIR QUALITY SENSOR PROJECT built in LinkIt ONE - Latest News from Seeed Studio\",\"isPartOf\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-16-at-2.08.27-PM-300x134.png\",\"datePublished\":\"2014-11-20T08:48:10+00:00\",\"dateModified\":\"2014-11-20T08:48:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/#primaryimage\",\"url\":\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-16-at-2.08.27-PM-300x134.png\",\"contentUrl\":\"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-16-at-2.08.27-PM-300x134.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.seeedstudio.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AIR QUALITY SENSOR PROJECT built in LinkIt ONE\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#website\",\"url\":\"https:\/\/www.seeedstudio.com\/blog\/\",\"name\":\"Latest News from Seeed Studio\",\"description\":\"Emerging IoT, AI and Autonomous Applications on the Edge\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5\",\"name\":\"\u884c\u653f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g\",\"caption\":\"\u884c\u653f\"},\"url\":\"https:\/\/www.seeedstudio.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AIR QUALITY SENSOR PROJECT built in LinkIt ONE - Latest News from Seeed Studio","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/","og_locale":"en_US","og_type":"article","og_title":"AIR QUALITY SENSOR PROJECT built in LinkIt ONE - Latest News from Seeed Studio","og_description":"by\u00a0Charles\u00a0McClelland Introduction: I have always enjoyed science, engineering and computers. \u00a0I am not a professional","og_url":"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/","og_site_name":"Latest News from Seeed Studio","article_published_time":"2014-11-20T08:48:10+00:00","og_image":[{"url":"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-16-at-2.08.27-PM-300x134.png","type":"","width":"","height":""}],"author":"\u884c\u653f","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u884c\u653f","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/","url":"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/","name":"AIR QUALITY SENSOR PROJECT built in LinkIt ONE - Latest News from Seeed Studio","isPartOf":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/#primaryimage"},"image":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/#primaryimage"},"thumbnailUrl":"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-16-at-2.08.27-PM-300x134.png","datePublished":"2014-11-20T08:48:10+00:00","dateModified":"2014-11-20T08:48:10+00:00","author":{"@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5"},"breadcrumb":{"@id":"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/#primaryimage","url":"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-16-at-2.08.27-PM-300x134.png","contentUrl":"http:\/\/triembed.org\/blog\/wp-content\/uploads\/2014\/11\/Screen-Shot-2014-11-16-at-2.08.27-PM-300x134.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.seeedstudio.com\/blog\/2014\/11\/20\/air-quality-sensor-project-built-in-linkit-one\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.seeedstudio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"AIR QUALITY SENSOR PROJECT built in LinkIt ONE"}]},{"@type":"WebSite","@id":"https:\/\/www.seeedstudio.com\/blog\/#website","url":"https:\/\/www.seeedstudio.com\/blog\/","name":"Latest News from Seeed Studio","description":"Emerging IoT, AI and Autonomous Applications on the Edge","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.seeedstudio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/4a6f0df70e5aa1b470083e77a0919ba5","name":"\u884c\u653f","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.seeedstudio.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4c87945076c1c9aea5570fea7739e112?s=96&r=g","caption":"\u884c\u653f"},"url":"https:\/\/www.seeedstudio.com\/blog\/author\/admin\/"}]}},"modified_by":null,"views":5270,"featured_image_urls":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":"","visody_icon":"","magazine-7-slider-full":"","magazine-7-slider-center":"","magazine-7-featured":"","magazine-7-medium":"","magazine-7-medium-square":""},"author_info":{"display_name":"\u884c\u653f","author_link":"https:\/\/www.seeedstudio.com\/blog\/author\/admin\/"},"category_info":"<a href=\"https:\/\/www.seeedstudio.com\/blog\/category\/news\/\" rel=\"category tag\">News<\/a>","tag_info":"News","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/10430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/comments?post=10430"}],"version-history":[{"count":4,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/10430\/revisions"}],"predecessor-version":[{"id":10434,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/posts\/10430\/revisions\/10434"}],"wp:attachment":[{"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/media?parent=10430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/categories?post=10430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.seeedstudio.com\/blog\/wp-json\/wp\/v2\/tags?post=10430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}