Updated regression model selection

This commit is contained in:
miguel5612
2020-03-26 22:18:07 -05:00
parent c67ceab56a
commit 510e8dac53
21 changed files with 428 additions and 102 deletions

View File

@ -37,7 +37,7 @@ void setup() {
Serial.begin(9600); //Init serial port
//Set math model to calculate the PPM concentration and the value of constants
MQ3.setRegressionMethod("Exponential"); //_PPM = a*ratio^b
MQ3.setRegressionMethod(1); //_PPM = a*ratio^b
MQ3.setA(0.3934); MQ3.setB(-1.504); // Configurate the ecuation values to get Alcohol concentration
/*
Exponential regression: