upm
0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
|
API for the DFRobot MQ7 CO Gas Sensor. More...
The Grove MQ7 Gas Sensor module is useful for detecting Carbon Monoxide (CO) concentrations in the air. It has a detection range of 20-2000 ppm.
For optimum use, it requires calibration after a pre-heat time of 48 hours. See the datasheet for details.
Public Member Functions | |
MQ7 (int gasPin) | |
~MQ7 () | |
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