mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-07-04 03:11:03 +03:00
Correct typos in source and example files
This commit is contained in:
@ -67,7 +67,7 @@ void setup() {
|
||||
// Explanation:
|
||||
// In this routine the sensor will measure the resistance of the sensor supposedly before being pre-heated
|
||||
// and on clean air (Calibration conditions), setting up R0 value.
|
||||
// We recomend executing this routine only on setup in laboratory conditions.
|
||||
// We recommend executing this routine only on setup in laboratory conditions.
|
||||
// This routine does not need to be executed on each restart, you can load your R0 value from eeprom.
|
||||
// Acknowledgements: https://jayconsystems.com/blog/understanding-a-gas-sensor
|
||||
// ISSUE 44 - MQ9 needs a low/high temperature cycle like MQ7 #44
|
||||
@ -101,8 +101,8 @@ void setup() {
|
||||
MQ9.setR0(calcR0/10);
|
||||
Serial.println(" done!.");
|
||||
|
||||
if(isinf(calcR0)) {Serial.println("Warning: Conection issue, R0 is infinite (Open circuit detected) please check your wiring and supply"); while(1);}
|
||||
if(calcR0 == 0){Serial.println("Warning: Conection issue found, R0 is zero (Analog pin shorts to ground) please check your wiring and supply"); while(1);}
|
||||
if(isinf(calcR0)) {Serial.println("Warning: Connection issue, R0 is infinite (Open circuit detected) please check your wiring and supply"); while(1);}
|
||||
if(calcR0 == 0){Serial.println("Warning: Connection issue found, R0 is zero (Analog pin shorts to ground) please check your wiring and supply"); while(1);}
|
||||
/***************************** MQ CAlibration ********************************************/
|
||||
MQ9.serialDebug(true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user