Post a new topicPost a reply Page 1 of 1   [ 7 posts ]
Author Message
 Post subject: CO percentage calculation
PostPosted: Wed Mar 27, 2013 7:53 pm 

Joined: Fri Sep 28, 2012 2:28 pm
Posts: 51
Hello.
I have seen in java code from waspmote demo out the box that CO percentage is calculated in this way:
Quote:
co=PApplet.parseInt((co_signal-co_min)*100/(330-co_min));
if( co<0 ) co=0;

Could I use that equation?
or do you recommend me to apply ppm convert like this CO = pow(10, (log10(COO)-2.302)/(-1.151))?

Thank you.


Top
 Profile  
 
 Post subject: Re: CO percentage calculation
PostPosted: Mon Apr 01, 2013 8:56 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7453
Vicente,

Yes, you can use it. take a look into this post.

Regards


Top
 Profile  
 
 Post subject: Re: CO percentage calculation
PostPosted: Wed Apr 03, 2013 6:04 pm 

Joined: Fri Sep 28, 2012 2:28 pm
Posts: 51
Hello Libelium-dev.
But, Could I use the equation used in your demo out of the box?:
Quote:
co=PApplet.parseInt((co_signal-co_min)*100/(330-co_min));
if( co<0 ) co=0;

It doesn't use: log(R) = a * log(C) + b

Thank you.


Top
 Profile  
 
 Post subject: Re: CO percentage calculation
PostPosted: Thu Apr 04, 2013 1:31 pm 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7453
Vicente,

that equation was used as an approximation for a certain situation.

It is better for you to use the other equation.

Regards.


Top
 Profile  
 
 Post subject: Re: CO percentage calculation
PostPosted: Sat Apr 06, 2013 11:00 am 

Joined: Fri Sep 28, 2012 2:28 pm
Posts: 51
Hello Libelium-dev.
What is that certain situation?.

Thank you.


Top
 Profile  
 
 Post subject: Re: CO percentage calculation
PostPosted: Mon Apr 08, 2013 9:08 am 

Joined: Mon Sep 28, 2009 1:06 pm
Posts: 7453
vicente,

It was an approximation used for a Waspmote Demonstration, not used to obtain qualitative values, but quantitative ones.

Regards.


Top
 Profile  
 
 Post subject: Re: CO percentage calculation
PostPosted: Mon Apr 08, 2013 11:09 am 

Joined: Fri Sep 28, 2012 2:28 pm
Posts: 51
Thank you Libelium-dev.
It is a cualitative aproximation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 7 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use