MQ7 & MQ135 Gas Sensors

Post Reply
lakindu93
Sergeant
Sergeant
Posts: 21
Joined: Wed Jun 26, 2013 12:45 pm
Location: Colombo

MQ7 & MQ135 Gas Sensors

Post by lakindu93 » Mon Oct 13, 2014 10:33 pm

?? ??????? ??????? ? MQ7 ?? MQ135 ???? Sensors ???????? ???? ?????? CO(Carbon-monoxide) ?? CO2(carbon-dioxide) ???? ???? ??? ??? ???? ?????????? ????...

MQ7 - CO
MQ135 - CO2

?? sensors ???? arduino compatible module ???? ?????? ????????...

?? ???? Sensors ???? ?? ?? ????????... ???????? CO ?? CO2 mix ????? ???? ????, ? ???? sensors ??? ?? ???? ???? ??? ??? ???? ????????? ???... ???? ? output result ?? percentage ???? ?????? ?? ppm value ???? ?????? display ???????? ??? serial monitor ???...

????? sensor ?? arduino ??? ???, ???????? ?????? ????? ???? ????? ?? ???? ??? sensor ??? ?? ???? analog reading ???? ???? ??? ? ?? readings ????? ?????? ?????? co or co2 ???? ???????...

?? sensors ???? ????? datasheet ?????? ?????? ???????? ?? ??...
??? ?????? ??????? equations ??????? ??????? ??? ?? ??? ?????? ???? ??????? ???? ????? ??.....
User avatar
SemiconductorCat
Major
Major
Posts: 455
Joined: Mon Aug 22, 2011 8:42 pm
Location: currently in hyperspace

Re: MQ7 & MQ135 Gas Sensors

Post by SemiconductorCat » Tue Oct 14, 2014 3:26 am

If your application is automobil then you need oxygen sensor too. Because parameters would change due to oxygen
concentration.So this question is all about sensor calibration right ?

so it's sensitivity graph. And please note that it's x and y axes are on logarithmic scale.
So sounds like the the simple way to handle this situation using a look-up table and use a curve fitting
function, you could simply use matlab or octive like software [on computer] to generate such curve fitting
function so easily derive a polynomial based equation for that.ex -
http://en.wikipedia.org/wiki/Calibration_curve
Image

Even such polynominal based equations were used in older model ECU's may be [ Nazi Germany people's car :) just kidding there are no ECUs in nazi era ].

But modern sensor calibration is so complicated and it's not two dimensional either. In that case they have using neural
and PID methods to calibrate it dynamically. PID is enforced when there are sensor degeneration effects does exist.
PID's and neural nets are so complicated but if you asking the question would that fit on small microcontroller like ardiuno board ? The answer is yes, it's more than enough for this because real ECUS are also using same chips till recent days.

I could help you on the first curve fitting method. It would work most probably with more than enough acceptable accuracy for a simple project , but if you serious and this is for automotive industry , then your ECU design will broke your clients emission certificate.

What is your application ?
lakindu93
Sergeant
Sergeant
Posts: 21
Joined: Wed Jun 26, 2013 12:45 pm
Location: Colombo

Re: MQ7 & MQ135 Gas Sensors

Post by lakindu93 » Tue Oct 14, 2014 9:18 am

SemiconductorCat wrote:If your application is automobil then you need oxygen sensor too. Because parameters would change due to oxygen
concentration.So this question is all about sensor calibration right ?

so it's sensitivity graph. And please note that it's x and y axes are on logarithmic scale.
So sounds like the the simple way to handle this situation using a look-up table and use a curve fitting
function, you could simply use matlab or octive like software [on computer] to generate such curve fitting
function so easily derive a polynomial based equation for that.ex -
http://en.wikipedia.org/wiki/Calibration_curve
Image

Even such polynominal based equations were used in older model ECU's may be [ Nazi Germany people's car :) just kidding there are no ECUs in nazi era ].

But modern sensor calibration is so complicated and it's not two dimensional either. In that case they have using neural
and PID methods to calibrate it dynamically. PID is enforced when there are sensor degeneration effects does exist.
PID's and neural nets are so complicated but if you asking the question would that fit on small microcontroller like ardiuno board ? The answer is yes, it's more than enough for this because real ECUS are also using same chips till recent days.

I could help you on the first curve fitting method. It would work most probably with more than enough acceptable accuracy for a simple project , but if you serious and this is for automotive industry , then your ECU design will broke your clients emission certificate.

What is your application ?
Thanks for your reply....
Our application is monitoring and notification system for factory emission gasses. For this application we are going to use CO and CO2 gasses.
yes, my problem is calibrating the sensors...
we use Arduino Uno board to get the readings from the gas sensors...
Is there any easy way to do that? (I mean without getting the oxygen levels)
lakindu93
Sergeant
Sergeant
Posts: 21
Joined: Wed Jun 26, 2013 12:45 pm
Location: Colombo

Re: MQ7 & MQ135 Gas Sensors

Post by lakindu93 » Fri Oct 17, 2014 8:16 am

anyone having coding related to the MQ7 and MQ135 to get the ppm values from sensor readings...?
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: MQ7 & MQ135 Gas Sensors

Post by Neo » Sun Oct 19, 2014 12:37 pm

Since the sensor was built to given a resistance to a certain pressure of CO, I'm not too sure it is possible to get an exact ppm value. Need to do a good literature survey on this. Most of the articles in the internet don't give direct information as well as the datasheet. However, I found following two articles little bit helpful.

https://forum.sparkfun.com/viewtopic.ph ... ide#p86747
http://forum.arduino.cc/index.php?PHPSE ... #msg399839

Once you are done, please be sure to update the topic here.
lakindu93
Sergeant
Sergeant
Posts: 21
Joined: Wed Jun 26, 2013 12:45 pm
Location: Colombo

Re: MQ7 & MQ135 Gas Sensors

Post by lakindu93 » Mon Oct 20, 2014 9:07 pm

Neo wrote:Since the sensor was built to given a resistance to a certain pressure of CO, I'm not too sure it is possible to get an exact ppm value. Need to do a good literature survey on this. Most of the articles in the internet don't give direct information as well as the datasheet. However, I found following two articles little bit helpful.

https://forum.sparkfun.com/viewtopic.ph ... ide#p86747
http://forum.arduino.cc/index.php?PHPSE ... #msg399839

Once you are done, please be sure to update the topic here.
thanks lot...
User avatar
SemiconductorCat
Major
Major
Posts: 455
Joined: Mon Aug 22, 2011 8:42 pm
Location: currently in hyperspace

Re: MQ7 & MQ135 Gas Sensors

Post by SemiconductorCat » Tue Oct 21, 2014 3:38 pm

Image

Please note that in MQ6 datasheet, page 1 table 1.
That PL should be corrected to RL.
And there are grammar and English mistakes in sheet too.
It's clear it's poorly written, but let not be a complainer, let's see how could we correct the mistakes and
go forward. Let's see what we could do.
Post Reply

Return to “Arduino”