wayland/scd30-co2-rh-temp@0.0.2

License: MIT

CO2, relative humidity and temperature sensor. Arduino library for the Sensirion SCD30 sensor module (https://www.sensirion.com/en/environmental-sensors/carbon-dioxide-sensors-co2/). Wraps a modified version of the SparkFun SCD30 Arduino Library (https://github.com/sparkfun/SparkFun_SCD30_Arduino_Library).
NodeDescription
example-1-test-sensor
Patch for testing sensor. Run in debug mode.
example-2-text-lcd-16x2-i2c
An example of displaying the output from an SCD30 sensor on a text LCD screen.
example-3-configure-sensor
Demonstrates configuration of SCD30 device. Here we configure the following settings: (1) auto self-calibration ; (2) temperature offset; (3) altitude compensation; and (4) measurement interval. Run in debug mode.
init
Initializes SCD30 device.
read-data
Reads carbon dioxide concentration (ppm), relative humidity (%) and temperature (°C).
scd30-device
Create SCD30 device.
set-altitude-compensation
Measurements of carbon dioxide concentration based on the non-dispersive infrared (NDIR) principle are influenced by altitude. Use this node to set the altitude compensation of the SCD30. The altitude compensation setting is disregarded when an ambient pressure is given to the sensor. Altitude value is saved in non-volatile memory. The last set value will be used for altitude compensation after repowering.
set-ambient-pressure
Measurements of carbon dioxide concentration based on the non-dispersive infrared (NDIR) principle are influenced by ambient pressure. Use this node to set the ambient pressure compensation of the SCD30. Ambient pressure value is saved in non-volatile memory. The last set value will be used for ambient pressure compensation after repowering. Setting the ambient pressure will overwrite previous and future settings of altitude compensation. Setting the MBAR input to zero will deactivate the ambient pressure compensation.
set-auto-self-calibration
(De-)activate automatic self calibration (ASC). When activated for the first time a period of minimum 7 days is needed so that the algorithm can find its initial parameter set for ASC. The successfully calculated parameters are stored in non-volatile memory of the SCD30 having the effect that after a restart the previously found parameters for ASC are still present. The ASC parameters are continually updated as the sensor runs. Finding a new parameter set by ASC will always overwrite the settings from set-forced-recalibration-factor and vice-versa.
set-forced-recalibration-factor
Forced recalibration (FRC) is used to compensate for sensor drifts when a reference value of the CO2 concentration of the air surrounding the SCD30 is available. For best results, the sensor has to be run in a stable environment in continuous mode at a measurement rateof 2s for at least two minutes before triggering this node. Setting a reference CO2 concentration using this node will always supersede corrections from set-auto-self-calibration and vice-versa. The reference CO2 concentration has to be within the range 400 to 2000 ppm.
set-measurement-interval
Set interval between measurements. The measurement interval is saved in non-volatile memory.
set-temperature-offset
The on-board relative humidity and temperature sensors are influenced by thermal self-heating of SCD30 and other electrical components. A temperature offset can be specified to compensate for self-heating. Temperature offset value is saved in non-volatile memory. The last set value will be used for temperature offset compensation after repowering.
simple-scd30-sensor
Combines lower level nodes to create a ready to use sensor.
To use the nodes in your project you should have the wayland/scd30-co2-rh-temp library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.