Skip to content

Commit 74e9384

Browse files
committed
added more fields to SD file
1 parent 0a26775 commit 74e9384

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

Open_Acidification_pH-stat/Open_Acidification_pH-stat.ino

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
/*
3-
Version #: 0.191 (0.190: Adding Real Time Clock, 0.191: Temperature compensation defeat & PT100 resistance to serial monitor.)
3+
Version #: 0.192
4+
(0.190: Adding Real Time Clock,
5+
0.191: Temperature compensation defeat & PT100 resistance to serial monitor,
6+
0.0192: added fields to SD card output)
47
Author: Kirt L Onthank
58
Date:2019/3/16
69
IDE V1.8.4
@@ -379,7 +382,7 @@ void setup()
379382
file_full = filename + ".txt";
380383

381384
myFile = SD.open(file_full, FILE_WRITE);
382-
myFile.println("time,tankid,temp,temp setpoint,pH,pH setpoint");
385+
myFile.println("time,tankid,temp,temp setpoint,pH,pH setpoint,onTime,Kp,Ki,Kd");
383386
myFile.close();
384387
SD_previousMillis = millis();
385388
///Starting the SD Card//////////////////////////////////////////////////////////////////////////////////
@@ -2482,7 +2485,16 @@ void LogToSD() {
24822485
myFile.print(",");
24832486
myFile.print(pH, 3);
24842487
myFile.print(",");
2485-
myFile.println(phset, 3);
2488+
myFile.print(phset, 3);
2489+
myFile.print(",");
2490+
myFile.print(onTime);
2491+
myFile.print(",");
2492+
myFile.print(Kp);
2493+
myFile.print(",");
2494+
myFile.print(Ki);
2495+
myFile.print(",");
2496+
myFile.println(Kd);
2497+
24862498
myFile.close();
24872499
}
24882500

0 commit comments

Comments
 (0)