MQ-X Arduino Library 1.0.0
This is a library for the MQ-X Sensors.
Loading...
Searching...
No Matches
MQ136 Class Reference

#include <MQ-Sensor-SOLDERED.h>

Inherits MQ_Sensor.

Public Member Functions

 MQ136 (int aPin=-1, int dPin=-1, sensorType sType=Blank_config)
 
- Public Member Functions inherited from MQ_Sensor
 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.
 
- Public Member Functions inherited from MQUnifiedsensor
 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)
 

Additional Inherited Members

- Public Attributes inherited from MQUnifiedsensor
bool native = 1
 
byte addr = 0
 

Constructor & Destructor Documentation

◆ MQ136()

MQ136::MQ136 ( int aPin = -1,
int dPin = -1,
sensorType sType = Blank_config )
inline

The documentation for this class was generated from the following file: