MQ7 & MQ135 Gas Sensors

Microcontroller, DSP and FPGA Topics

MQ7 & MQ135 Gas Sensors

Postby lakindu93 » Mon Oct 13, 2014 5:03 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
lakindu93
 
Posts: 21
Joined: Wed Jun 26, 2013 7:15 am
Cash on hand: 716.20
Location: Colombo

Invitations sent: 0
Registered friends: 0
Reputation point: 0
Lance Corporal

Re: MQ7 & MQ135 Gas Sensors

Postby SemiconductorCat » Mon Oct 13, 2014 9:56 pm

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 ?
User avatar
SemiconductorCat
 
Posts: 462
Joined: Mon Aug 22, 2011 3:12 pm
Cash on hand: 23,861.30
Location: currently in hyperspace

Invitations sent: 0
Registered friends: 0
Reputation point: 9
Corporal

Re: MQ7 & MQ135 Gas Sensors

Postby lakindu93 » Tue Oct 14, 2014 3:48 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)
User avatar
lakindu93
 
Posts: 21
Joined: Wed Jun 26, 2013 7:15 am
Cash on hand: 716.20
Location: Colombo

Invitations sent: 0
Registered friends: 0
Reputation point: 0
Lance Corporal

Re: MQ7 & MQ135 Gas Sensors

Postby lakindu93 » Fri Oct 17, 2014 2:46 am

anyone having coding related to the MQ7 and MQ135 to get the ppm values from sensor readings...?
User avatar
lakindu93
 
Posts: 21
Joined: Wed Jun 26, 2013 7:15 am
Cash on hand: 716.20
Location: Colombo

Invitations sent: 0
Registered friends: 0
Reputation point: 0
Lance Corporal

Re: MQ7 & MQ135 Gas Sensors

Postby Neo » Sun Oct 19, 2014 7:07 am

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.php?f=14&t=18447&p=86747&hilit=carbon+monoxide#p86747
http://forum.arduino.cc/index.php?PHPSESSID=5gkuotbrd7qctj811lv0j8llr1&topic=55799.msg399839#msg399839

Once you are done, please be sure to update the topic here.
User avatar
Neo
Site Admin
Site Admin
 
Posts: 2612
Joined: Tue Jul 14, 2009 8:37 pm
Cash on hand: 221,202.10
Bank: 15,536,454.00
Location: Colombo/London
Medals: 2
EC_Bronze_Star (1) EC_Achievment (1)

Invitations sent: 94
Registered friends: 12
Highscores: 13
Reputation point: 74
Lieutenant

Re: MQ7 & MQ135 Gas Sensors

Postby lakindu93 » Mon Oct 20, 2014 3:37 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.php?f=14&t=18447&p=86747&hilit=carbon+monoxide#p86747
http://forum.arduino.cc/index.php?PHPSESSID=5gkuotbrd7qctj811lv0j8llr1&topic=55799.msg399839#msg399839

Once you are done, please be sure to update the topic here.


thanks lot...
User avatar
lakindu93
 
Posts: 21
Joined: Wed Jun 26, 2013 7:15 am
Cash on hand: 716.20
Location: Colombo

Invitations sent: 0
Registered friends: 0
Reputation point: 0
Lance Corporal

Re: MQ7 & MQ135 Gas Sensors

Postby SemiconductorCat » Tue Oct 21, 2014 10:08 am

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.
User avatar
SemiconductorCat
 
Posts: 462
Joined: Mon Aug 22, 2011 3:12 pm
Cash on hand: 23,861.30
Location: currently in hyperspace

Invitations sent: 0
Registered friends: 0
Reputation point: 9
Corporal


Return to Embedded Processors & Programming

Who is online

Users browsing this forum: No registered users and 1 guest