UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

MICSV89 Class

Module: micsv89

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.
micsv89.jpg

Methods

MICSV89

(
  • bus
  • address
)
Number

MICSV89 constructor

Parameters:

  • bus Number

    i2c bus the sensor is attached to.

  • address Number

    Device address. Default is 0x70.

Returns:

Number:

name

() String

Returns the name of the sensor

Returns:

String:

co2equ

() Number

Returns the CO2 equivalent value.

Returns:

Number:

vocshort

() Number

Returns VOC Short value.

Returns:

Number:

tvoc

() Number

Returns Total VOC.

Returns:

Number:

resistor

() Number

Returns resistor value.

Returns:

Number:

update

()

Performs a write/read cycle.

valid

() Boolean

Returns true if a valid write/read cycle has been completed. At startup and during write/read cycle will be false.

Returns:

Boolean: