Updated MQ-5

This commit is contained in:
miguel5612
2020-03-26 12:41:20 -05:00
parent 1311d9446d
commit 50342b0bc6
2 changed files with 48 additions and 54 deletions

View File

@ -37,7 +37,7 @@ void setup() {
//Set math model to calculate the PPM concentration and the value of constants
MQ4.setRegressionMethod("Exponential"); //_PPM = a*ratio^b
MQ4.setA(4.8387); MQ4.setB(-2.68); // Configurate the ecuation values to get Benzene concentration
MQ4.setA(1012.7); MQ4.setB(-2.786); // Configurate the ecuation values to get CH4 concentration
/*
Exponential regression:
Gas | a | b