amc2021:groupl:extras:mq-135:start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| amc2021:groupl:extras:mq-135:start [2021/09/03 01:59] – kshama001 | amc2021:groupl:extras:mq-135:start [2023/01/05 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== M_Q135.h ====== | ====== M_Q135.h ====== | ||
| + | Rzero is the value of the resistor in the MQ-135 sensor in the presence of clean air. Where the CO < | ||
| + | *RLOAD meanwhile is the external resistor value that is connected to the MQ-135 sensor, which in this case is 10kΩ. | ||
| + | *Important parameters are for calculating CO< | ||
| + | {{ : | ||
| + | From the below code, we replace the Rzero value(which we get with the function getRzero()) and use the float getPPM() to get the level of CO< | ||
| + | <file - M_Q135.h> | ||
| < | < | ||
| / | / | ||
| Line 24: | Line 30: | ||
| #define RLOAD 10.0 | #define RLOAD 10.0 | ||
| /// Calibration resistance at atmospheric CO2 level | /// Calibration resistance at atmospheric CO2 level | ||
| - | #define RZERO 65 | + | #define RZERO 65 //Dependent on the sensor |
| /// Parameters for calculating ppm of CO2 from sensor resistance | /// Parameters for calculating ppm of CO2 from sensor resistance | ||
| #define PARA 116.6020682 | #define PARA 116.6020682 | ||
| #define PARB 2.769034857 | #define PARB 2.769034857 | ||
| - | </ | ||
| - | *Rzero is the value of the resistor in the MQ-135 sensor in the presence of clean air. Where the CO < | ||
| - | *RLOAD meanwhile is the external resistor value that is connected to the MQ-135 sensor, which in this case is 10kΩ. | ||
| - | *Important parameters are for calculating CO< | ||
| - | {{ : | ||
| - | |||
| - | < | ||
| /// Parameters to model temperature and humidity dependence | /// Parameters to model temperature and humidity dependence | ||
| Line 44: | Line 43: | ||
| /// Atmospheric CO2 level for calibration purposes | /// Atmospheric CO2 level for calibration purposes | ||
| - | #define ATMOCO2 | + | #define ATMOCO2 |
| class MQ135 { | class MQ135 { | ||
| Line 62: | Line 61: | ||
| #endif | #endif | ||
| </ | </ | ||
| + | |||
| + | </ | ||
| + | [[amc2021: | ||
amc2021/groupl/extras/mq-135/start.1630627150.txt.gz · Last modified: 2023/01/05 14:38 (external edit)