Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding temperature and humidity compensation #3

Open
Cinezaster opened this issue Apr 27, 2017 · 7 comments
Open

Adding temperature and humidity compensation #3

Cinezaster opened this issue Apr 27, 2017 · 7 comments

Comments

@Cinezaster
Copy link

When I see the documentation of all the sensors I see a temperature/humidity compensation graph.
If your using these sensors outside, compensation would be a good thing.

@mdsiraj1992
Copy link
Owner

Yes compensation is very much required but i have not yet understood how to do that.
I am open to suggestions or help.

@Cinezaster
Copy link
Author

I'm going to test this library over the next days. Needed to burn in my sensors, first.
I'm having MQ-02, MQ-04 and MQ-09.
Happy to look into this issue.

@saberjam
Copy link

Hi has anyone know or have MQ codes that are correlated already with temperature and humidity?

@Cinezaster
Copy link
Author

I did research this and came to the conclusion that these sensors need to be calibrated against a reference gas, temperature and humidity. It is hard to get correct data based on this code although it is the beste effort to have a out of the box functions that generate a number that is somehow correlated to real world values.
I abandoned this road of using the MQ sensors. I'm using a setup with reference gas and added temperature and humidity sensors. To get data I'm using post processing of the raw output of the sensors and I calibrate my data to the measurements of the reference gas.

@zoomx
Copy link

zoomx commented Sep 11, 2017

The only calibration data that are available are the ones published on datasheet.

@Cinezaster
Copy link
Author

Cinezaster commented Sep 11, 2017

@zoomx if it would be calibration data you would receive a unique dataset for every sensor, when you buy it. There are to much outside factors that influence the output of these sensors.
Also, these sensors have a operation live of about 2 year, if they are used properly.
If they are used out of specification it is worse. Or if you would turn them on or off (= heating / cooling) frequently they degrade even faster, because of oxidation of the sensor.

The data on the sheet is more or less the specification of the sensor.
These sensors are to be used in alarm systems where they would trigger alarms when certain gasses are above a certain threshold.
But as I stated before, if you calibrate them against a know reference gas, it is possible to use them for sensing.
Look at this e nose example from Michael Madsen, he uses the raw data from multiple sensors and does some neat post processing on it to classify different agents.

@zoomx
Copy link

zoomx commented Sep 12, 2017

I know. When possible I use NDIR sensors but they too need calibration.
Calibrating MQ sensors is a challenge since they are sensible to many gases. But the use of all MQ together is a good idea! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants