Giter VIP home page Giter VIP logo

Comments (5)

brev-dev avatar brev-dev commented on August 22, 2024 1

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.

01_ambient

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³).

02_smoke

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.

Hypfer avatar Hypfer commented on August 22, 2024 1

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.

Hypfer avatar Hypfer commented on August 22, 2024

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.

brev-dev avatar brev-dev commented on August 22, 2024

Thanks again - I'll give it a try!

from esp8266-vindriktning-particle-sensor.

pejotigrek avatar pejotigrek commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.