sparkfun / SparkFun_SCD30_Arduino_Library

An Arduino library for the SCD30 NDIR CO2 sensor.
Other
84 stars 47 forks source link

Set Forced Recalibration value (FRC) #3

Closed Sedude closed 5 years ago

Sedude commented 5 years ago

Hi, I'm using the SCD30 sensor for my masterthesis. Therefore I need to calibrate it. Sadly I could not find the command for setting the Forced Recalibration value (FRC) in the library. Does anybody know how to implement the given example in the "Interface Description Sensirion SCD30 Sensor Module" sheet from Sensirion into the library? Thanks a lot! SCD30_Interface_Description.pdf

nseidle commented 5 years ago

Added to v1.0.2. Please give it a try and let us know if you have any issues.

mut0g3n commented 4 years ago

Hi, Just found this thread. I cannot get the FRC function to work. SCD30 otherwise works fine connected to my Adafruit Huzzah Feather. Tried using the FRC function in the library but when writing it into my code in the Arduino app (Mac OS X 10.14), the code line does not change text colour indicadting a recognised function. Tried pointing at the library directly "SCD30::" but same problem. By contrast the ARC function does change colour. Bit of a newbie with Arduino but will post a screen shot and code later. Any suggestions?

alfkoehn commented 3 years ago

I just wanted to add a reply here because this page was ranked quite high in my search for some information about the forced recalibration: the command to do this is setForcedRecalibrationFactor(co2_offset), if that was the question.

According to the datasheet, the sensor should be placed in stable conditions for at least 2 minutes before applying the forced recalibration. As a value for co2_offset, I used 410, as this is roughly the value we have outside at fresh air (well, at least at the moment...).