Calculate temperature based on resistance from thermistor with lookup chart

Files at this revision

API Documentation at this revision

Comitter:
joeata2wh
Date:
Sat Apr 02 03:48:56 2016 +0000
Parent:
5:88bf5a42812e
Commit message:
basic data log working

Changed in this revision

thermister_ert-j0eg1.cpp Show annotated file Show diff for this revision Revisions of this file
thermister_ert-j0eg1.h Show annotated file Show diff for this revision Revisions of this file
--- a/thermister_ert-j0eg1.cpp	Wed Mar 30 13:32:40 2016 +0000
+++ b/thermister_ert-j0eg1.cpp	Sat Apr 02 03:48:56 2016 +0000
@@ -1,3 +1,9 @@
+/* thermister_ert-j0eg1.cpp
+  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 
+*/
+
 #include "mbed.h"
 #include "ohms.h"  // from library ohms_law
 #include "thermister_ert-j0eg1.h"
--- 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