#include <MQ-Sensor-SOLDERED.h>
Inherits MQ_Sensor.
|
| MQ135 (int aPin=-1, int dPin=-1, sensorType sType=MQ135_config) |
|
| MQ_Sensor (int _aPin, int _dPin, String type, sensorType sType) |
|
void | begin () |
| Initializes the sensor with default configuration. Sets pin modes for analog and digital pins if they are defined.
|
|
void | begin (sensorType configcustom) |
| Initializes the sensor with custom configuration. Sets pin modes for analog and digital pins if they are defined.
|
|
bool | begin (int _addr) |
| Initializes the sensor with a specific I2C address. Overloaded function for virtual in base class to initialize sensor specific.
|
|
bool | begin (int _addr, sensorType configcustom) |
| Initializes the sensor with a specific I2C address and custom configuration. Overloaded function for virtual in base class to initialize sensor specific.
|
|
void | setRegressionModel (const sensorType &type) |
| Sets the regression model parameters for the sensor based on given type.
|
|
bool | calibrateSensor (int numOfCalibrations) |
| Calibrates the sensor by taking multiple readings and averaging them.
|
|
bool | digitalRead () |
| Reads the digital pin state of the sensor. Overloaded function for virtual in base class to initialize sensor specific.
|
|
| MQUnifiedsensor (int pin=1, String Placa="Arduino", float Voltage_Resolution=5, int ADC_Bit_Resolution=10, String type="CUSTOM MQ") |
|
void | init (int addr) |
|
void | update () |
|
void | setR0 (float R0=10) |
|
void | setRL (float RL=10) |
|
void | setA (float a) |
|
void | setB (float b) |
|
void | setRegressionMethod (int regressionMethod) |
|
void | setVoltResolution (float voltage_resolution=5) |
|
void | serialDebug (bool onSetup=false) |
|
void | setADC (int value) |
|
float | calibrate (float ratioInCleanAir) |
|
float | readSensor () |
|
float | validateEcuation (float ratioInput=0) |
|
float | getA () |
|
float | getB () |
|
float | getR0 () |
|
float | getRL () |
|
float | getVoltResolution () |
|
String | getRegressionMethod () |
|
float | getVoltage (int read=true) |
|
float | stringTofloat (String &str) |
|
◆ MQ135()
The documentation for this class was generated from the following file: