SmartD / Mbed 2 deprecated mbed_pH_test

Dependencies:   mbed

Fork of mbed_pH225 by SmartD

Revision:
1:843151144560
Parent:
0:f610f2c606a8
Child:
2:46161d8200a2
--- a/main.cpp	Wed Feb 18 05:18:56 2015 +0000
+++ b/main.cpp	Wed Feb 18 05:26:48 2015 +0000
@@ -11,6 +11,7 @@
     float voltage, pH, tempC, tempF;
  
     while(1) {
+        //Take average of readings over 10 seconds
         double totalVal = 0.0;
         double pH_sensor_read = 0.0;
         int totalReadings = 0;
@@ -23,7 +24,7 @@
             totalReadings++;
             }
             double avgSensor = totalVal/(double)totalReadings;
-        //hard coded calibration values taken at pH 4 solution to return voltage in mV
+        //Hard coded calibration values taken at pH 4 solution to return voltage in mV
         voltage = avgSensor*(800/.24);
         //conversion to pH from sensor output voltage per LM61 data sheet
         pH = (0.0209*voltage)-12.696;