CCS811 Air Quality Sensor
Measure equivalent CO2 (eCO2) and the equivalent total volatile organic compound concentration (eTVOC)
Since R2023b
Libraries:
Simulink Coder Support Package for STMicroelectronics Nucleo Boards/
Sensors
Description
The CCS811 Air Quality Sensor block measures the equivalent CO2 (eCO2) and the equivalent total volatile organic compound concentration (eTVOC) for indoor air quality monitoring. This block also provides the option to provide temperature and humidity data to enable compensation (either by specifying the humidity and temperature values or by interfacing CCS811 with an external sensor).
Ports
Output
eCO2
— Equivalent CO2
scalar
The eCO2 port outputs the value for equivalent CO2 of indoor air in parts per million (ppm).
Data Types: single
| double
eTVOC — Total volatile organic compound concentration
scalar
The eTVOC port outputs the equivalent total volatile organic compound concentration of indoor air in parts per billion (ppb).
Data Types: single
| double
Status — Status of values read for eCO2 and eTVOC
0
|
1
Status of the values 0
indicates that the data read
for eCO2 and eTVOC is new and
1
indicates that the data read is not new.
Data Types: uint8
Parameters
I2C address — I2C address of sensor
0x5A
(default) |
0x5B
The I2C address of the CCS811 sensor from which the block reads the values.
The I2C address of the CCS811 sensor from which the block reads the values. The CCS811 sensor can have two I2C addresses depending on the logic level on pin ADDR of the sensor.
Pin Name | Pin State | I2C Address |
---|---|---|
ADDR | Low | 0x5A |
High | 0x5B |
Data acquisition interval (s) — Intervals for data acquisition
1
(default) |
0.25
|
10
|
60
Select the data acquisition interval in seconds for the sensor to read
data. For example, if you select value 1
, then the sensor
reads values every 1
second.
Specify environmental conditions — Environmental conditions
Mask dialog
(default) |
External sensor
Select the option to specify the source of environmental inputs for the sensor while reading data.
Humidity (%) — Humidity input to CCS811 sensor
50
(default) |
positive integer
Humidity in percentage provided as an input to CCS811 sensor connected to Arduino® hardware.
Dependencies
This parameter appears only if you select Mask
dialog
for Specify environmental
conditions parameter.
Temperature (oC) — Temperature input to CCS811 sensor
25
(default) |
positive integer
Temperature (in ℃) provided as an input to CCS811 sensor connected to Arduino hardware.
Dependencies
This parameter appears only if you select Mask
dialog
for Specify environmental
conditions parameter.
Enable data ready interrupt — Enable interrupt when data is ready
off
(default) |
on
If this option is selected, an interrupt is generated on pin nINT of the sensor when data is ready, allowing you to trigger other subsystems to perform any action.
Data type — Type of output data
double
(default) |
single
Select the data type for output.
Sample time — Time interval to read data
-1
(default) | positive integer
Specify how often this block reads the data from the CCS811 sensor. When you set this parameter to -1, Simulink determines the best sample time for the block based on the block context within the model.
Version History
Introduced in R2023b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)