I am using the +5V and GND pins of the board for input voltage and ground. Supply is from a PC USB port via sparkfun ftdi dongle.
I read the input voltage several times, perform several calculations to derive the temperature and compute an average.
The thing works correctly and within the tolerance of the thermistors for a few hours, then suddenly the readings from the three pins seem to jump together, and I record higher temperature.
There is no actual change in the temperature, and the jump happens at the same time for all three thermistors, i.e. it is not a problem of the environment, or the sensors. The temperature ranges measured are well within the tolerance of the equipment.
Resetting the board several times seems to fix the problem for a while.
I tried to search the forum, but frankly I am lost at what to search for and haven't found anything useful. Has anyone experienced a similar problem? Any ideas where to start looking?
The set-up looks o.k. You normally connect the R and the NTC vice versa, but that is no issue. Also this devider makes you independant of the actual value of the supply voltage, as it cancels out with the ADC reference.
So everything should be fine...
What do you mean by SEVERAL resets???
If one reset helps, it could be a hidden software issue, most notorious are overflows of timer related variables....
By "resetting it several times" I mean sometimes it gets back to normal measurements the first time, sometimes it takes several resets, after which the value drops to the expected values. That is why I don't think it is a software issue.
I've double-checked the software, and there is nothing that would overflow -- I am not using timers in the temperature calculations.
Since it happens randomly I haven't yet be able to actually measure the voltages "after", so I am now waiting for the defect to occur again.
As I said, I am totally out of ideas as to what is wrong -- being a hardware newbie doesn't help
Aref is generally not decoupled, which can cause similar effects. Can you connect a 100nF cap between Aref und ground ? It will do no harm, but might help...
Use a DMM and measure the voltages output at the takeoff points to the arduino, if they stay put and the arduino reads differently, it will give you some clues.
I'd be checking the USB output voltage stays put as well......
In this case, however, there's no confusion as to the kind of sensor. Also, I am looking for clues to the possible source of the error, not a replacement sensor.