Seeed-Studio / Mutichannel_Gas_Sensor

This Arduino library is used for driving "Xadow - Mutichannel Gas Sensor" and "Grove - Mutichanel Gas Sensor"
Other
25 stars 25 forks source link

Gas formula explanation? #23

Closed skanpt closed 5 years ago

skanpt commented 5 years ago

Hi guys, @Pilius already made a question like the one I'll do here but he had no response. At the moment I'm doing a project with MiCS-6814 and I would like to get your help, please. As it was asked before, what are those values and how do I get them?

//-1.552, 1.622, the expression.. Where does this expression come? I know there's a graph on datasheet but how do you relate it? c = pow(ratio1, -1.552)*1.622;

//The ratio is Rs/R0? Where does this expression come from? ratio1 = (float)An_1/(float)A0_1*(1023.0-A0_1)/(1023.0-An_1);

//A0_1 is equal to what? I know where it comes from but what does it represent? int A0_1 = get_addr_dta(6, ADDR_USER_ADC_CO);

//An_1 is equal to what? I know where it comes from but what does it represent? int An_1 = get_addr_dta(CH_VALUE_CO);

Sorry for so many repetitive questions but I really need to know that in order to present my project... Thank you :)