Code Monkey home page Code Monkey logo

Comments (8)

Raphael909 avatar Raphael909 commented on June 13, 2024

I am kind a seeing same sort of issue with arduino pro min 3.3V. This is what my constructor looks like MQUnifiedsensor MQ135("Arduino Pro Mini", 3.3, 10, pin, "MQ-135"); Also, replaced on board resistor with 20kOhms and have voltage divider for A0.
Any help is very much appreciated!

from mqsensorslib.

miguel5612 avatar miguel5612 commented on June 13, 2024

Good morning Raphael909.
Thank you for your question. And next will be the answer.
First, its correct, 200 PPM is CO2 at atmosphere, but when sensor calibrates it is assumed as "0", therefore you should place or add an offset of 400. This is a correction that I will make in the examples in the next update of the library. And yes, it's fine to switch to 3.3 volts if your card works at 3.3 voltage level, but as explained in the tutorials I expect your MQ sensor to be connected to 5Volts to guarantee the conditions under which its use is recommended and the voltage is reduced at the input of the ADC with a resistive voltage divider.
To solve the problem you have with the RL I recommend you to add this line during the setup of your arduino program, so the library will update the RL value.
MQ135.setRL(1);

from mqsensorslib.

miguel5612 avatar miguel5612 commented on June 13, 2024

I have closed the issue because we have updated the code and analyzed the problem, however if you still experience any other error please let us know :)

from mqsensorslib.

watama1299 avatar watama1299 commented on June 13, 2024

Hi Miguel,

First I want to say thank you to you and your team for putting together this library.

I'm currently using the latest build of the MQUnifiedSensor Library and I'm still having issues regarding measurements made using the MQ-135 sensor. The measurements made through the Arduino are around 1-10 ppm for CO2. Looking at the solution you provided above, you said that I might have to compensate this reading with the current atmospheric CO2 ppm which is around 411 ppm now. Is that still the case since you said that you have updated the code? Or perhaps I implemented the code wrongly. Please advice.

Best regards,
watama1299

from mqsensorslib.

MalteHillmann avatar MalteHillmann commented on June 13, 2024

Looking at the solution you provided above, you said that I might have to compensate this reading with the current atmospheric CO2 ppm which is around 411 ppm now. Is that still the case since you said that you have updated the code? Or perhaps I implemented the code wrongly. Please advice.

Hey @watama1299,

I'm very sure @miguel5612 changed this offset only in the MQ135-ALL example. So you have to add the offset yourself or calibrate the sensor with another already calibrated CO2 sensor.

See this:

Serial.print(" | "); Serial.print(CO2 + 400);

from mqsensorslib.

TPD95100 avatar TPD95100 commented on June 13, 2024

Dear all,

I am just Reading thru the sources and comments as I want to measure CO2 as well. Does anybody understand why it is written in the comments that 200 PPM is CO2 at atmosphere and then, one should add 400? I know that fresh air has about 400ppm - where does the 200 come from?

thanks

from mqsensorslib.

miguel5612 avatar miguel5612 commented on June 13, 2024

Best regards,
Yes you are right, that was my mistake, I have corrected and deleted the 200 in comments and added 400 as it should be.

from mqsensorslib.

k-str50 avatar k-str50 commented on June 13, 2024

@miguel5612 ,
thanks a lot for making this lib. It's very helpful to me.
I want to control my 3D printer.
This is the task:

  1. read the data
  2. write the results to a database and to a LCD display
  3. check for the limit for CO2 and CO
  4. if the values exceed the limits
    --> send a switch off comand to a plug controller (HS110) to cut the power

Now I have a question to the values generated by the software: What about the other measurement values like CO, NO4....?
Do I need also to correct it for a propper result in ppm?

from mqsensorslib.

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.