Giter Site home page Giter Site logo

Comments (2)

roscoe81 avatar roscoe81 commented on June 18, 2024

I agree with you @MetPhoto, that simply recording and displaying raw resistance levels is of dubious value and it would be much better to use the MiCS-6814 data sheet to convert those levels to ppm concentrations.

It appears that you're proposing to map the "Sensing Resistance in air" specs for each sensor (on page 2 of the data sheet) against the gas concentration graphs for each sensor (on page 1 of the data sheet) by using the end-points and linear interpolation.

If that understanding is correct, I see a few issues, based on my understanding of how the MiCS-6814 works.

The main issue I see is that the "Sensing Resistance in air" specs are not the resistance values for the gas concentration extremities. They're the range of resistance values for each sensor in "synthetic air" (i.e. where the gases level are consistent with ambient air). Those resistance values do need to be measured as part of the calibration process and used to set R0 for each sensor. I therefore don't believe that you can use the "Sensing Resistance in air" specs in the way you propose.

The other issues are that the graphs on page 1 don't map raw resistance values against gas concentration levels. They map the raw resistance value divided by R0 (i.e. the resistance value in "air") against gas concentration levels. They're also logarithmic graphs and interp does linear interpolation.

I spent many hours working through the data sheet and I hope this explanation helps you. The exercise in converting raw resistance values into gas concentration levels is not easy and not exact. It requires calibration in "air" (for R0), compensation for temperature/humidity/air pressure/time and even then, each sensor responds to a broad spectrum of gases.

If you're interested, I have come up with a method here: https://github.com/roscoe81/enviro-monitor but it's still far from perfect.

from enviroplus-python.

MetPhoto avatar MetPhoto commented on June 18, 2024

Hi @roscoe81 I had series of similar thoughts. Reporting of resistance values of little real use. The use of 'synthetic air' in the specs also concerned me; how would this relate to world usage?

Finally the non-linearity of the graphs was also a concern. I was left wondering how these sensors are implemented in commercial applications.

Thanks for pointer to your project and the Adafruit IO example looks like a lot of fun.

from enviroplus-python.

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.