|
upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the MICS-VZ89 Gas Sensor. More...
The MiCS-VZ-86/89 combines state-of-the-art MOS sensor technology with intelligent detection algorithms to monitor VOCs and CO2 equivalent variations in confined spaces.
The MICSV89 comes in 4 variants, PWM and I2C in 3.3 volts and 5 volts. This library only implements the I2c version of the device.
Device output is not valid until a warm up of 15 minutes of operation.
Public Member Functions | |
| synchronized void | delete () |
| MICSV89 (int bus, short address) | |
| MICSV89 (int bus) | |
| String | name () |
| float | co2equ () |
| int | vocshort () |
| float | tvoc () |
| float | resistor () |
| void | update () |
| boolean | valid () |
| MICSV89 | ( | int | bus, |
| short | address | ||
| ) |
MICSV89 constructor
| bus | i2c bus the sensor is attached to. |
| address. | Device address. Default is 0x70. |
| float co2equ | ( | ) |
Returns the CO2 equivalent value.
| String name | ( | ) |
Returns the name of the sensor
| float resistor | ( | ) |
Returns resistor value.
| float tvoc | ( | ) |
Returns Total VOC.
| void update | ( | ) |
Performs a write/read cycle.
| boolean valid | ( | ) |
Returns true if a valid write/read cycle has been completed. At startup and during write/read cycle will be false.
| int vocshort | ( | ) |
Returns VOC Short value.
1.8.9.1