miguel5612 / MQSensorsLib

We present a unified library for MQ sensors, this library allows to read MQ signals easily from Arduino, Genuino, ESP8266, ESP-32 boards whose references are MQ2, MQ3, MQ4, MQ5, MQ6, MQ7, MQ8, MQ9, MQ131, MQ135, MQ136, MQ303A, MQ309A.
MIT License
169 stars 64 forks source link

Calibration Methodology (for MQ7) #27

Closed amirsalman93 closed 4 years ago

amirsalman93 commented 4 years ago

If you look at the datasheet of MQ7, it says that R0 is the resistance of sensor in 100 ppm of CO. image

In this library, it assumes R0 to be the resistance of sensor in clean air. Where as, the wording from the datasheet are R0: sensor resistance at 100 ppm CO in the clean air. which means that there is no other gas in the air except 100 ppm of CO.

I believe we need a source of CO (with known concentration in ppm) which we need to use to expose to our sensor. and then measure R0.

What is your opinion?

Thanks

miguel5612 commented 4 years ago

Hi amirsalman93. Everything you say is correct, calibration should be performed by subjecting the sensor after preheating to an atmosphere that meets the conditions described by the manufacturer, which in this case is 100 ppm of CO. Supported by a previously calibrated instrument that guarantees that it is neither more nor less than 100 ppm. We, in order to simplify the use of the library and avoid it to give very high values, execute the calibration routine in the setup, but nevertheless we leave a comment for the people that make their use in productive measurement instruments (that is to say, whose data will be used for analysis and other applications, not only for detection) we recommend that the calibration routine is only done when a button is pressed, button that should be pressed only when the sensor has preheated and is in that atmosphere that has been established by the manufacturer.

amirsalman93 commented 4 years ago

Sounds Good. Thanks.