mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-07-02 02:11:04 +03:00
Updated regression model selection
This commit is contained in:
@ -46,7 +46,7 @@ unsigned long contador = 0;
|
||||
void setup() {
|
||||
//Init serial port
|
||||
Serial.begin(115200);
|
||||
MQ2.setRegressionMethod("Exponential"); //_PPM = a*ratio^b
|
||||
MQ2.setRegressionMethod(1); //_PPM = a*ratio^b
|
||||
MQ2.setA(574.25); MQ2.setB(-2.222); // Configurate the ecuation values to get LPG concentration
|
||||
//init the sensor
|
||||
MQ2.init();
|
||||
|
Reference in New Issue
Block a user