|
upm
0.4.0
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the DFRobot MQ8 Hydrogen (H2) Gas Sensor. More...
The MQ8 Gas Sensor module is useful for detecting Hydrogen gas concentrations in the air. It has a detection range of 100-10000 ppm.
For optimum use, it requires calibration after a pre-heat time of at least 24 hours. See the datasheet for details.
Public Member Functions | |
| MQ8 (int gasPin) | |
| ~MQ8 () | |
| std::string | name () |
Public Member Functions inherited from Gas | |
| Gas (int gasPin) | |
| ~Gas () | |
| virtual int | getSampledWindow (unsigned int freqMS, int numberOfSamples, uint16_t *buffer) |
| virtual int | findThreshold (thresholdContext *ctx, unsigned int threshold, uint16_t *buffer, int len) |
| virtual int | getSampledData (thresholdContext *ctx) |
| virtual int | getSample () |
| virtual void | printGraph (thresholdContext *ctx, uint8_t resolution) |
Additional Inherited Members | |
Protected Attributes inherited from Gas | |
| mraa::Aio | m_aio |
|
inline |
Returns the name of the sensor


1.8.9.1