AMS CCS811 Element
The CCS811 element is used to measure the CO2 levels and total volatile organic compounds (TVOC) in the air. This element is for using the AMS CCS811 air quality sensor.
The CCS811 is a sensor element that can be imported into the Element Toolbox through the Add Elementbutton located in the toolbox from the Embedded tab. NXP Rapid IoT projects have this element imported by default.
The following properties can be changed for the CCS811 element:
The name of the element.
I2C Driver Instance
The I2C bus used to communicate with the sensor.
The I2C address the element sends data to.
The mode of data measurement rate. The sensor has four operating modes:
- Mode 0: Idle
- Mode 1 (default): Constant power mode, measurement every second
- Mode 2: Pulse heating mode, measurement every 10 seconds
- Mode 3: Constant power mode, measurement every 250ms
The following triggers are available to execute events from within the CCS811 element:
Execute an event when the source element connected to the CCS811 triggers.
Execute an event when TVOC data is read.
Execute an event when CO2 data is read.
The following abilities are available for the CCS811 element when its source element triggers:
Trigger the element(s) that follow the CCS811 element.
Enable the sensor.
Disable the sensor.
Set Enabled State
Set the state of the sensor: enabled or disabled.
Read the sensor’s TVOC data.
Read the sensor’s CO2 data.