Calculate temperature based on resistance from thermistor with lookup chart

Revision:
6:3c9cb2bd08c6
Parent:
5:88bf5a42812e
--- a/thermister_ert-j0eg1.h	Wed Mar 30 13:32:40 2016 +0000
+++ b/thermister_ert-j0eg1.h	Sat Apr 02 03:48:56 2016 +0000
@@ -1,3 +1,16 @@
+/* thermister_ert-j0eg1.h
+   Read the ERT0xxx thermister and return the temperature
+   in C on the specified pin.   Includes lookup table to 
+   compute precision temperature based on non-linear 
+   change of resistance in thermister.   
+   
+   Update the resitance array in cpp to properly reflect
+   your specific device. 
+
+  By Joseph Ellsworth CTO of A2WH
+  Take a look at A2WH.com Producing Water from Air using Solar Energy
+  March-2016 License: https://developer.mbed.org/handbook/MIT-Licence 
+*/
 #ifndef thermister_ert_j0eg1_h
 #define thermister_ert_j0eg1_h
 #define ERTThermisterAdcRef  3.30f
@@ -10,9 +23,6 @@
 float ERTThermisterAvgReadTemp(AnalogIn adcpin, int numRead);
 
 
-// Read the ERT0xxx thermister and return the temperature
-// in C on the specified pin. 
-// TODO:  How do we detect and report error of -999;
 
 // Shorthand to read thermister by pinName
 // rather than reading it with pre-allocated