From b64ffb6ca631bdace2f351165ce90a5016eb30fd Mon Sep 17 00:00:00 2001 From: smueller Date: Wed, 15 May 2024 16:16:01 +0200 Subject: [PATCH] add warning to conditioning add warning to: - Readme - Example Usage - Function description Closes #5 --- README.md | 8 ++++++++ examples/exampleUsage/exampleUsage.ino | 4 +++- src/SensirionI2CSgp41.h | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a37446..40f91e7 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,14 @@ Note: Installation via the Arduino Library Manager is coming soon. Plotter` via the `Tools` menu to observe the measurement values. Note that the `Baud Rate` in the corresponding window has to be set to `115200 baud`. +# Conditioning + +After each restart of the sensor or when the hotplates have been switched off, the conditioning command must +be called from idle mode. The conditioning heats the hotplate of the NOx pixel to a different temperature compared +to the measurement mode enabling a faster switch-on thereafter. + +It is recommended to execute the conditioning for 10s, but **10s must not be exceeded** to avoid damage to the sensing material. + # Contributing **Contributions are welcome!** diff --git a/examples/exampleUsage/exampleUsage.ino b/examples/exampleUsage/exampleUsage.ino index f49a8ca..f3a8cc2 100644 --- a/examples/exampleUsage/exampleUsage.ino +++ b/examples/exampleUsage/exampleUsage.ino @@ -40,7 +40,9 @@ SensirionI2CSgp41 sgp41; -// time in seconds needed for NOx conditioning +// Time in seconds needed for NOx conditioning +// WARNING: To avoid damage to the sensing material the conditioning must not +// exceed 10s! uint16_t conditioning_s = 10; void setup() { diff --git a/src/SensirionI2CSgp41.h b/src/SensirionI2CSgp41.h index 5915ef4..a94ec95 100644 --- a/src/SensirionI2CSgp41.h +++ b/src/SensirionI2CSgp41.h @@ -62,6 +62,9 @@ class SensirionI2CSgp41 { * different temperature for conditioning. This command returns only the * measured raw signal of the VOC pixel SRAW_VOC as 2 bytes (+ 1 CRC byte). * + * WARNING: To avoid damage to the sensing material the conditioning must + * not exceed 10s! + * * @param defaultRh Default conditions for relative humidty. * * @param defaultT Default conditions for temperature.