Comments (8)
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.
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.
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.
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.
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:
from mqsensorslib.
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.
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.
@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:
- read the data
- write the results to a database and to a LCD display
- check for the limit for CO2 and CO
- 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)
- how to use MQ2 to detect smoke. as the A and B value not given. HOT 1
- MQSensorsLib ADS1115 HOT 1
- MQ-7 sensor connecting with nodeMcu V3 HOT 2
- Integrate ADS1X15 inputs for sensor reading HOT 1
- PPM of MQ135 at clean air HOT 2
- Why 10k resistor is needed HOT 1
- "Equation_V_ADC" is wrong HOT 2
- retries and retry_interval definitions may conflict with user's sketch definitions
- ESP-32 S2 Mini Compatibility HOT 2
- ADC pin cannot be set when creating a MQUnifiedsensor object using the short constructor
- Conflicted MQsensor library with ThinkSpeak library. HOT 1
- Include coeficient tables to library HOT 1
- Sensor won't finish the Calibration process if done in clean air.
- _type is too small for some sensor names HOT 1
- Probably Incorrect Readings HOT 3
- Parameters to model temperature and humidity dependence HOT 1
- PPM Value HOT 1
- How to obtain RL HOT 1
- Is RL correct for the 3.3V examples? HOT 1
- possible error in the calculation formula for _RS_Calc = ((_VOLT_RESOLUTION*_RL)/_sensor_volt)-_RL; HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqsensorslib.