Comments (5)
OK, here are some side-by-side tests. For the "problematic" Device1 (red curve), I removed two of the zero checks in the code (one in the check loop, and one in the average calculation in SerialCom.h
). The "behaving" Device2 (green curve) uses your code unchanged.
The first image shows an ambient overnight test. Device1 produced nothing but zeros all night.
For the second image I placed both devices under a plastic cover (maintaining the Ikea theme), and added a bit of smoke. Both devices color-cycled from green to red and back, with Device1 transitions consistently trailing Device2 as the air quality worsened, and leading Device2 as the quality improved (as an aside, it looks as though the transitions are at about 30 and 100ug/m³).
Conclusions... I suspect both devices are "working", at least for the intended purpose of a rough traffic-light air quality display. And they'll be fine for me, too. The absolute values they report are quite different, though. I haven't looked into data sheets, but maybe there's a way to calibrate the sensor if it matters to your use case.
In terms of the mod, yes, I suggest you remove the zero-checks, as long as it doesn't break anything else!
from esp8266-vindriktning-particle-sensor.
I wonder if one could implement an auto calibration algorithm similar to what is used in some CO2 sensors:
https://www.monnit.com/support/knowledgebase/sensors/co2-auto-calibration-feature/
TL;DR:
It takes the lowest reading during a long interval (multiple days) and assumes that that must be a specific value (400ppm).
from esp8266-vindriktning-particle-sensor.
Interesting report.
Honestly, I have no idea whether or not 0ug/m³ is a plausible reading or not, however that check was only there because I didn't know that there was a checksum in there to ensure that we only store valid readings.
As that has been added with 04701b2, all those > 0 checks are obsolete and can be removed I think
from esp8266-vindriktning-particle-sensor.
Thanks again - I'll give it a try!
from esp8266-vindriktning-particle-sensor.
I know this issue is closed, but I just wanted to give you measurements for transitions, just in case they're needed somewhere - according to the user guide attached to my Vindriktning sensor here they are:
- green: 0-35 (good+low)
- orange: 36-85 (OK+medicore)
- red: 86-... (bad+high)
from esp8266-vindriktning-particle-sensor.
Related Issues (20)
- Control LED HOT 4
- After connecting to personal WiFi an AP is still present HOT 2
- Is ESP8266 module (not D1 mini) 5V tolerant? HOT 1
- Received message with invalid header. HOT 3
- Not an issue, you probably need to clean the sensor regularly HOT 4
- 5V mention in the README HOT 3
- Not an issue, low noise mod skews sensor results by ~50% HOT 3
- Can't re-configure D1 after initial deployment HOT 1
- No pm25, ssid, ip values on esp01s
- Not Issue - I need help with code
- Set OTA password HOT 1
- Web interface problem HOT 4
- The sensor measure always 0 ug/mc! HOT 3
- Embarrasingly stuck HOT 5
- I don't have MQTT But I need help. HOT 2
- Not an Issue ! juste Topic Name HOT 2
- Seeing odd values on sensor UART
- No mqtt topic is visible HOT 1
- How to See the Data in an App ? & Simple Wiring to ESP8266 HOT 4
- Also working with the new version, VINDSTYRKA HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266-vindriktning-particle-sensor.