GithubHelp home page GithubHelp logo

mq135's People

Contributors

georgk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mq135's Issues

Hello please help!

So basically, I'm looking for codes for MQ-135 and MQ-2. I hope everyone could see this and thank you so much in advance! ^^

Problems using this code on ESP32

Hi , I tried using this code on ESP32 but the values from the getPPM() function were just not the same like on the UNO.

I know for a fact that the GPIO on esp32 is 4096, but changing the value on the getPPM() function, did not work. Any ideas? Thank you.

Pass RLOAD as a parameter

Why not pass RLOAD as a parameter instead of hardcoding it into the library? The same with RZERO.

Wrong sensor resistance calculation

It seems that formula for calculating sensor resistance in getResistance() has an error, 5.0 multiplier (probably analog reference voltage) is unnecessary. The formula should read:

((1023./(float)val) - 1.)*RLOAD

Getting Inifinite RZero (both raw and Corrected)?

After quite a while running the sensor (+24hrs) and correcting temp/humidity using the DHT22 I keep getting inf RZero and CorrectedRZero, while PPM (and correctedPPM) stays at 0.00.

Currently using a CCS811 that reads CO2 at about ~500ppm which seems ok.
If I throw a bit i light gas into the sensor, RZero drops to zero, and then rapidly rises up untill 100k and then infinite, while PPM moves slightly (like 0.1 or 0.5, something like that).

I've already corrected the getResistance formula on my local library, but was wondering if there was anything else I should be doing. Thanks.

Missing division by 1000 in MQ135::getRZero()

I thing there is a missing division by 1000 in the function MQ135::getRZero()
The function should look like:

float MQ135::getRZero() {
return getResistance() * pow((ATMOCO2/1000./PARA), (1./PARB));
}

Without this division, you get for RZero match to high values. I got same values by 500 and not by 76. After doing the division by 1000 I got values near 76.

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.