<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>sensor on irq5 test</title><link>https://irq5-7854a1fdb9f4.pages.dev/tag/sensor/</link><description>Recent content in sensor on irq5 test</description><language>en-us</language><lastBuildDate>Wed, 24 Jul 2013 00:20:00 +0000</lastBuildDate><atom:link href="https://irq5-7854a1fdb9f4.pages.dev/tag/sensor/feed/" rel="self" type="application/rss+xml"/><item><title>Testing the Shinyei PPD42NS</title><link>https://irq5-7854a1fdb9f4.pages.dev/2013/07/testing-the-shinyei-ppd42ns/</link><pubDate>Wed, 24 Jul 2013 00:20:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2013/07/testing-the-shinyei-ppd42ns/</guid><description>&lt;p>Around this time last month, the haze (or what some people call &lt;em>smog&lt;/em>) here set a record high level for the Pollutant Standards Index (PSI). This is what it looked like outside:&lt;/p>&lt;p>&lt;picture>&lt;img src=//farm4.staticflickr.com/3678/9320458829_dea662ceb5_o.jpg alt="haze vs no haze">&lt;/picture>&lt;/p>&lt;p>As our National Environment Agency only published 3 hour PSI averages, I thought it would be good if we could get our own measurements. The PSI used here is somewhat like the &lt;a href=https://en.wikipedia.org/wiki/Air_quality_index rel=noopener target=_blank class=external>Air Quality Index (AQI)&lt;/a> used in the US, and is made up of 5 components:&lt;/p>&lt;ol>&lt;li>PM10 particulate matter&lt;/li>&lt;li>sulphur dioxide (SO2)&lt;/li>&lt;li>carbon monoxide (CO)&lt;/li>&lt;li>nitrogen dioxide (NO2)&lt;/li>&lt;li>ozone&lt;/li>&lt;/ol>&lt;p>Note that the AQI includes PM2.5 particulate matter whereas PSI does not. From what we can see, I would think that a major contributor to the PSI is particulate matter (PM).&lt;/p>&lt;p>I took a brief look at the projects such as the &lt;a href=http://airqualityegg.wikispaces.com/AirQualityEgg rel=noopener target=_blank class=external>Air Quality Egg&lt;/a> and &lt;a href="https://docs.google.com/document/pub?id=1pjk6gGmM0Ge917gmD424P428mynxOy34-u9zL1_QyVs" rel=noopener target=_blank class=external>PACMAN&lt;/a>. They used either the &lt;strong>Sharp GP2Y1010AU0F&lt;/strong> or the &lt;strong>Shinyei PPD42NS&lt;/strong>. These sensors generally operate &lt;a href=http://www.shinyei.co.jp/stc/optical/main_dust_e.html rel=noopener target=_blank class=external>based on the light-scattering principle&lt;/a>, by measuring the amount of light that is scattered by particles.&lt;/p>&lt;h1 id=the-ppd42ns>The PPD42NS&lt;/h1>&lt;p>Chris Nafis has done a great job documenting the use of both the &lt;a href=http://www.howmuchsnow.com/arduino/airquality/ rel=noopener target=_blank class=external>GP2Y1010AU0F&lt;/a> and the &lt;a href=http://www.howmuchsnow.com/arduino/airquality/grovedust/ rel=noopener target=_blank class=external>PPD42NS&lt;/a>, compared against a Dylos DC1100 air quality monitor. As the GP2Y1010AU0F requires a certain pulse waveform to be supplied to its LED pin, I would say that the PPD42NS is self-contained and thus much easier to hook up.&lt;/p>&lt;p>&lt;picture>&lt;img src=//farm6.staticflickr.com/5500/9323247524_c97d976ce7_o.jpg alt="PPD42NS (front)">&lt;/picture>&lt;/p>&lt;p>On the front, it has 2 pots labelled &lt;code>VR1&lt;/code> and &lt;code>VR3&lt;/code> that have been already factory-calibrated. The IR detector is covered under the metal can. Interestingly there&amp;rsquo;s a slot by the side labelled &lt;code>SL2&lt;/code> which is unused. If you&amp;rsquo;d like to see what&amp;rsquo;s under the hood, Chris opened up the black casing and &lt;a href="http://forums.parallax.com/showthread.php/139538-air-quality-monitor-using-particle-counter?p=1185869&amp;viewfull=1#post1185869" rel=noopener target=_blank class=external>posted a photo here&lt;/a>.&lt;/p>&lt;p>&lt;picture>&lt;img src=//farm6.staticflickr.com/5468/9323247812_a1ebc49abb_o.jpg loading=lazy alt="PPD42NS PCB">&lt;/picture>&lt;/p>&lt;p>Looking at the date code grid on the PCB, the units look like they were manufactured in July 2012. The circuit consists largely of passives and an op-amp. &lt;code>RH1&lt;/code> is the resistor heater which, in theory, could be removed to save power if there was some other method of air circulation.&lt;/p>&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2013/07/testing-the-shinyei-ppd42ns/#more">Continue reading…&lt;/a>&lt;/p></description></item></channel></rss>