GithubHelp home page GithubHelp logo

Comments (6)

ostaquet avatar ostaquet commented on September 26, 2024

The temperature and humidity influence has been designed based on data sheet details on page 4.

The formulas have been designed based on the sensitivity curves.

from arduino-mq131-driver.

ostaquet avatar ostaquet commented on September 26, 2024

Additional comment on this, @nitram147 fixed some bugs in the calculation of the environmental correction. Please use the v1.4.0 to have the last version.

from arduino-mq131-driver.

ferreiradiego avatar ferreiradiego commented on September 26, 2024

Hello @nitram147. Could You explain to me why the value of resistance is divided by the value of getEnvCorrectRatio()? As in the line code correctedValueR0 = _valueR0 / getEnvCorrectRatio();. My doubt is about how the resistance ratio is corrected, is the code to correct the ratio only a mathematical artifice?

PS.: I'm doing a study about MQ Sensors and the more details I get, the better will be my study.

from arduino-mq131-driver.

ostaquet avatar ostaquet commented on September 26, 2024

The idea is to compare apples with apples. ;-)

According to the data sheet, the resistance of the sensor is affected by the temperature and humidity. This impact is implemented with the corrective ratio coming from getEnvCorrectRatio().

But... this should be in the calibrate() function and not in the setR0().

from arduino-mq131-driver.

ostaquet avatar ostaquet commented on September 26, 2024

It is quite a good question...

At the moment, the correctedValueR0 is defined when the setR0() function is called. According to me, it is not exactly correct.

The R0 should be adjusted when we calibrate the sensor and when we get the R0 value (because the R0 value evolved with the environment).

from arduino-mq131-driver.

ostaquet avatar ostaquet commented on September 26, 2024

I dig a bit deeper in this and there was an error in the code uploaded before. Sorry about this.

If we look carefully to the data sheet, we can see that the environmental corrective ratio has to be applied on the Rs/R0 ratio and not on the measurements of the resistances.

image

It is fixed in v1.4.1.

from arduino-mq131-driver.

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.