Greetings everyone, I'm new to Arduino. Been hearing about it a lot in past years but I'm bad at coding almost as I am bad at math so I passed on it, until now.
I decided to start with some very simple projects and one of them is a little harder than I initially thought. Basically it's a room thermometer with 1 thermistor and I already ordered some 1% thermistors from eBay a few days ago (datasheet), while I work on it.
What I would like to achieve is a very accurate thermometer while still remaining simple (in the way of components, not code) and cheap (the price is a matter of principle and is important) but the further that I get along with the planing the more it seems accuracy will become an issue.
This is what I've done so far: Looked at the formulae of the thermistor on Wikipedia, did not understand a thing at first but after a day or two (seriously, told you I'm bad at math) I managed to get them under control. I understand how to calculate resistance/temp from the B value but the datasheet has a 'resistance at different temperatures' table and from it I inferred the A,B and C constants which I found to be more accurate than the B value. The values for the MF2-103 NTC Thermistor are:
A: 0.001107937929960092
B: 0.000238265586603961
C: 6.611377849685053e-8
Here is the circuit I plan to make:
Please ignore the zener, I've decided not to put it at all.
So what I plan to do is find the voltage on the ADC pin, calculate the resistance (Rt=39kVt/(12-Vt)) and then use the Steinhart–Hart equation to calculate the temperature, E.G. if Vt is 3v, then Rt=39000*3/(12-3) and T(k)=
1/(0.0011079379299600925+0.00023826558660396095ln(13000)+(6.611377849685053e-8)(ln(13000))^3).
Now for my questions:
-
Is there a way I can test to see if these thermistors are actually 1% accuracy and not, say, 5% or 10% ? (assume that I don't have a good thermometer, only a (very) cheap DMM)
-
I was looking for the atmega328p's (and possibly attiny85's) leakage current to the ADC pins but got confused with the results, namely:
Input impedance of Arduino Uno analog pins? - Electrical Engineering Stack Exchange
http://www.avrfreaks.net/forum/minumum-current-required-analog-pin-atmega328
Input Impedance of A0-A5 - General Electronics - Arduino Forum
Is the current 1uA or 50nA? Is it DC? Will a cap really help? Does the sampling rate matter? (I plan on sampling once every few seconds, maybe even as long as a minute)
Because if the current is a constant 1uA I will have to bias for that, 36mV is not negligible.
- So far, have I done anything wrong?
Any help will be appreciated!
