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

#include <MQ-Sensor-SOLDERED.h>

Inherits MQ_Sensor.

Public Member Functions

 MQ9 (int aPin=-1, int dPin=-1)
 
- Public Member Functions inherited from MQ_Sensor
 MQ_Sensor (int _aPin, int _dPin, String type)
 
void begin (int _addr=0x00)
 Overloaded function for virtual in base class to initialize sensor specific.
 
bool digitalRead ()
 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

◆ MQ9()

MQ9::MQ9 ( int aPin = -1,
int dPin = -1 )
inline

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