<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PM10 + PM2.5 + UV + Temperature + Humidity + Pressure + Weather Forecast + Light Sensor]]></title><description><![CDATA[<p dir="auto">Despite the long name, it is a pretty simple sensor to build and program.</p>
<p dir="auto"><img src="/assets/uploads/files/1546192929227-1.png" alt="0_1546189322015_1.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">BOM is:</p>
<ul>
<li>1: <a class="plugin-mentions-user plugin-mentions-a" href="/user/sundberg84" aria-label="Profile: sundberg84">@<bdi>sundberg84</bdi></a> EasyPCB fro RFM69</li>
<li>2: BME280 for Temperature + Humidity + Pressure + Weather Forecast (<a href="https://www.aliexpress.com/item/BME280-Digital-Sensor-Temperature-Humidity-Barometric-Pressure-Sensor-Module-I2C-SPI-1-8-5V-GY-BME280/32849462236.html" rel="nofollow ugc">https://www.aliexpress.com/item/BME280-Digital-Sensor-Temperature-Humidity-Barometric-Pressure-Sensor-Module-I2C-SPI-1-8-5V-GY-BME280/32849462236.html</a>)</li>
<li>3: LDR sensor for light level (<a href="https://www.aliexpress.com/item/KY-018-3pin-Optical-Sensitive-Resistance-Light-Detection-Photosensitive-Sensor-Module-for-arduino-DIY-Kit-KY018/32820189174.html" rel="nofollow ugc">https://www.aliexpress.com/item/KY-018-3pin-Optical-Sensitive-Resistance-Light-Detection-Photosensitive-Sensor-Module-for-arduino-DIY-Kit-KY018/32820189174.html</a>)</li>
<li>4:  ML8511 for UV rays (<a href="https://www.aliexpress.com/item/Analog-output-module-GY-ML8511-UV-UV-sensor-Sensor-Breakout/32533518448.html" rel="nofollow ugc">https://www.aliexpress.com/item/Analog-output-module-GY-ML8511-UV-UV-sensor-Sensor-Breakout/32533518448.html</a>)</li>
<li>5: DSM501A dust sensor for PM10 and PM2.5 (<a href="https://www.aliexpress.com/item/DSM501A-Dust-Sensor-Module-PM2-5-Detection-Dector-Allergic-Smoke-Particles-Sensor-Module-For-Arduino-For/32880813740.html" rel="nofollow ugc">https://www.aliexpress.com/item/DSM501A-Dust-Sensor-Module-PM2-5-Detection-Dector-Allergic-Smoke-Particles-Sensor-Module-For-Arduino-For/32880813740.html</a>)</li>
<li>5a: two pair of 1K/400R resistors as a voltage divider for allowing the 3.3V arduino to read the two 4.8V outputs of the DSM501A</li>
<li>6: USB TTL to power both the board with the 3.3v output and the DSM501A with the 5V output (<a href="https://www.aliexpress.com/item/1pcs-USB-to-TTL-converter-UART-module-CH340G-CH340-3-3V-5V-switch/32668180966.html" rel="nofollow ugc">https://www.aliexpress.com/item/1pcs-USB-to-TTL-converter-UART-module-CH340G-CH340-3-3V-5V-switch/32668180966.html</a>)</li>
</ul>
<p dir="auto">Of course this cannot run on batteries since the DSM501A requires at least 90mA to work.<br />
Wiring is pretty simple, with  BME280 connect to A4-A5 for I2C communication, the LDR to an analog pin, ML8511 to another analog pin, DSM501A connected to two digital pins through the voltage resistor 5a.</p>
<p dir="auto"><img src="/assets/uploads/files/1546193177405-2-resized.png" alt="0_1546189567141_2.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">All those sensors are supported by NodeManager so the code is super-simple, with the board reporting battery and signal level periodically as well. All sensors reporting every 5 minutes but the DSM501A reporting every 10 minutes (since for a measure it take 1-2 minutes):</p>
<pre><code>/**********************************
 * MySensors node configuration
 */

// General settings
#define SKETCH_NAME "DustTemp"
#define SKETCH_VERSION "1.0"
#define MY_NODE_ID 13

// RFM69 radio settings
#define MY_RADIO_RFM69
#define MY_IS_RFM69HW
#define MY_RFM69_NEW_DRIVER

// Advanced settings
#define MY_BAUD_RATE 9600
#define MY_SPLASH_SCREEN_DISABLED

/***********************************
 * NodeManager configuration
 */

#define NODEMANAGER_DEBUG OFF
#define NODEMANAGER_INTERRUPTS OFF
#define NODEMANAGER_SLEEP OFF
#define NODEMANAGER_RECEIVE OFF
#define NODEMANAGER_DEBUG_VERBOSE OFF
#define NODEMANAGER_POWER_MANAGER OFF
#define NODEMANAGER_CONDITIONAL_REPORT OFF
#define NODEMANAGER_EEPROM OFF
#define NODEMANAGER_TIME OFF
#define NODEMANAGER_RTC OFF
#define NODEMANAGER_SD OFF
#define NODEMANAGER_HOOKING OFF
#define NODEMANAGER_OTA_CONFIGURATION OFF
#define NODEMANAGER_SERIAL_INPUT OFF

// import NodeManager library (a nodeManager object will be then made available)
#include &lt;MySensors_NodeManager.h&gt;

/***********************************
 * Add your sensors
 */
 
#include &lt;sensors/SensorBattery.h&gt;
SensorBattery battery;

#include &lt;sensors/SensorSignal.h&gt;
SensorSignal signal;

#include &lt;sensors/SensorLDR.h&gt;
SensorLDR ldr(A1);

#include &lt;sensors/SensorML8511.h&gt;
SensorML8511 ml8511(A0);

#include &lt;sensors/SensorBME280.h&gt;
SensorBME280 bme280;

#include &lt;sensors/SensorDSM501A.h&gt;
SensorDSM501A DSM501A(6,5);

/***********************************
 * Main Sketch
 */

// before
void before() {
	
  /***********************************
   * Configure your sensors
   */

  // DSM501A sensor
  DSM501A.setReportIntervalMinutes(10);
   
  // node configuration
  nodeManager.setReportIntervalMinutes(5);
   
  // call NodeManager before routine
  nodeManager.before();
}

// presentation
void presentation() {
  // call NodeManager presentation routine
  nodeManager.presentation();
}

// setup
void setup() {
  // call NodeManager setup routine
  nodeManager.setup();
}

// loop
void loop() {
  // call NodeManager loop routine
  nodeManager.loop();
}

#if NODEMANAGER_RECEIVE == ON
// receive
void receive(const MyMessage &amp;message) {
  // call NodeManager receive routine
  nodeManager.receive(message);
}
#endif

#if NODEMANAGER_TIME == ON
// receiveTime
void receiveTime(unsigned long ts) {
  // call NodeManager receiveTime routine
  nodeManager.receiveTime(ts);
}
#endif
</code></pre>
<p dir="auto">And this is the final result (yes the box doesn't look really great):</p>
<p dir="auto"><img src="/assets/uploads/files/1546193392710-3-resized.png" alt="0_1546189773866_3.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">Overall everything works fine even if I'm not that satisfied of the DSM501A sensor since most of the times it doesn't return a valid read (negative value which is then ignored) and when it does the value looks to me a bit too high (I should be already dead if this level of pollution would be real :P).</p>
<p dir="auto"><img src="/assets/uploads/files/1546193719870-4.png" alt="0_1546190106354_4.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">Hope it can help</p>
]]></description><link>https://forum.mysensors.org/topic/10031/pm10-pm2-5-uv-temperature-humidity-pressure-weather-forecast-light-sensor</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 14:25:29 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/10031.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Dec 2018 18:16:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PM10 + PM2.5 + UV + Temperature + Humidity + Pressure + Weather Forecast + Light Sensor on Mon, 31 Dec 2018 02:52:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/user2684" aria-label="Profile: user2684">@<bdi>user2684</bdi></a> I forgot to tell you to buy one with a cable. They use a connector with 1.25mm spacing and it is not possible to connect anything else. You can make the cable breadboard friendly by soldering the ends to a 2.54mm header.<br />
<img src="/assets/uploads/files/1546224745347-img_20181231_095020-2-resized.jpg" alt="0_1546224741950_IMG_20181231_095020~2.jpg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://forum.mysensors.org/post/96167</link><guid isPermaLink="true">https://forum.mysensors.org/post/96167</guid><dc:creator><![CDATA[Nca78]]></dc:creator><pubDate>Mon, 31 Dec 2018 02:52:54 GMT</pubDate></item><item><title><![CDATA[Reply to PM10 + PM2.5 + UV + Temperature + Humidity + Pressure + Weather Forecast + Light Sensor on Sun, 30 Dec 2018 20:50:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nca78" aria-label="Profile: nca78">@<bdi>nca78</bdi></a> thanks a lot for the hit, I'll buy what you recommended and try it out! And yes the DSM501 seems pretty useless right now, I thought was because of the power supply but doesn't look like the case. Thanks again</p>
]]></description><link>https://forum.mysensors.org/post/96163</link><guid isPermaLink="true">https://forum.mysensors.org/post/96163</guid><dc:creator><![CDATA[user2684]]></dc:creator><pubDate>Sun, 30 Dec 2018 20:50:21 GMT</pubDate></item><item><title><![CDATA[Reply to PM10 + PM2.5 + UV + Temperature + Humidity + Pressure + Weather Forecast + Light Sensor on Sun, 30 Dec 2018 20:34:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">interesting range of sensors, but you should not use the DSM501. It can't produce a constant airflow, so it can't give you any valid result. It's cheap, but completely useless.<br />
Chose a sensor with integrated fan, like Plantower PMS7003 or PMS5003,  they do a good job for a reasonable price.</p>
]]></description><link>https://forum.mysensors.org/post/96162</link><guid isPermaLink="true">https://forum.mysensors.org/post/96162</guid><dc:creator><![CDATA[Nca78]]></dc:creator><pubDate>Sun, 30 Dec 2018 20:34:06 GMT</pubDate></item></channel></rss>