GithubHelp home page GithubHelp logo

Comments (1)

ostaquet avatar ostaquet commented on September 26, 2024

Hi,
The time required to read the value is depending on the sensor. This kind of sensor is working by burning gas with the heather and measuring the concentration of some specific particles after a specific heating time.

The default heating time is 72s with the low concentration version and 80s with the high concentration version.

It is defined in the constructor of the driver:
// Setup default calibration value switch(model) { case LOW_CONCENTRATION : setR0(110470.60); setTimeToRead(72); break; case HIGH_CONCENTRATION : setR0(385.40); setTimeToRead(80); break; }

Those default values have been defined by experiments on the device I own.

The "time to read" should be the delay between the start of the heater and the moment when the value is stable. If you decide to measure the value of the device after 5 seconds, the value will be erroneous. The best way to define the correct value is to use the method calibrate().

After the calibration, you are able to read the value defined by the calibration with the method getTimeToRead() and you can change manually this heating time with the method setTimeToRead(long sec).

Kind regards,
Olivier

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.