mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-06-07 22:30:13 +03:00
Fix in regression of MQ136
This commit is contained in:
parent
80025e8398
commit
6a035cc5d0
@ -38,14 +38,14 @@ void setup() {
|
||||
|
||||
//Set math model to calculate the PPM concentration and the value of constants
|
||||
MQ136.setRegressionMethod(1); //_PPM = a*ratio^b
|
||||
MQ136.setA(1043.3); MQ136.setB(-3.282); // Configure the equation to to calculate H2S Concentration
|
||||
MQ136.setA(36.737); MQ136.setB(-3.536); // Configure the equation to to calculate H2S Concentration
|
||||
|
||||
/*
|
||||
Exponential regression:
|
||||
GAS | a | b
|
||||
H2S | 1043.3 | -3.282
|
||||
NH4 | 309.6 | -1.407
|
||||
CO | 1728.9 | -1.879
|
||||
H2S | 36.737 | -3.536
|
||||
NH4 | 98.551 | -2.475
|
||||
CO | 503.34 | -3.774
|
||||
*/
|
||||
|
||||
/***************************** MQ Init ********************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user