upm
0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
|
API for the MQ3 Gas Sensor. More...
The Grove MQ3 Gas Sensor module is useful for gas leakage detection (in home and industry). It can detect alcohol vapors and benzine. It's highly sensitive but has a long warm-up time of about 1 minute. It's detection range is 0.04-4 mg/L Alcohol.
Public Member Functions | |
MQ3 (int gasPin) | |
~MQ3 () | |
std::string | name () |
![]() | |
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 | |
![]() | |
mraa::Aio | m_aio |
|
inline |
Returns the name of the sensor