GithubHelp home page GithubHelp logo

Comments (1)

nitram147 avatar nitram147 commented on September 26, 2024

There is a need to use function like:

Instead of previous designed function:

With the latter one (fucntion without "+c") it's not possible to get zero ppb when the ratio is equal to one.
So you will always get some concentration (at least 9.4783) in case that you use the latter function (function without "+c").
In extras/datasheet/ you can find files mq131_high_fit.py and mq131_low_fit.py which I designed for calculation of required a,b,c coeficients. If you want to make the function fit the lower concentration more precisely (trade-off would be that it will have bigger error on higher concentrations) you can play with sigma parameter in mentioned python scripts. Right now the higher fitting priority is set-uped for the first and last point of the curve (0 concentration, max concentration). You can add higher priority also to 10, 50 ppm/ppb points - by changing sigma line to sigma[[0, 1, 2, -1]] = 0.01

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.