File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
SCD4x_I2C_FRC_Forced_Recalibration_Example Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,11 @@ void setup() {
58
58
Wire.write (0xb1 );
59
59
Wire.endTransmission ();
60
60
61
- // wait for first measurement to be finished
62
- delay (2000 );
61
+ // wait for 5 minutes to equilibrate sensor to ambient
62
+ Serial.println (" # Waiting 5 minutes for equilibration" );
63
+ delay (5 * 60 * 1000 );
63
64
64
- Serial.println (" # CO2 values before recalibration " );
65
+ Serial.println (" # CO2 values before calibration " );
65
66
66
67
// measure 5 times
67
68
for (repetition = 0 ; repetition < 5 ; repetition++) {
@@ -93,10 +94,7 @@ void setup() {
93
94
94
95
delay (2000 );
95
96
}
96
-
97
- // wait for another 5 minutes to equilibrate sensor to ambient
98
- Serial.println (" # Waiting 5 minutes for equilibration" );
99
- // delay(5 * 60 * 1000);
97
+
100
98
101
99
// stop scd measurement
102
100
Wire.beginTransmission (SCD_ADDRESS);
@@ -110,6 +108,8 @@ void setup() {
110
108
111
109
// assuming an external reference shows 650 ppm
112
110
calibration = 650 ;
111
+ Serial.print (" # Calibrating with reference value [ppm]: " );
112
+ Serial.println (calibration);
113
113
114
114
// prepare buffer with data for calibration
115
115
// calculate CRC for each 2 bytes of data
You can’t perform that action at this time.
0 commit comments