(MM) wild temp sensor readings


Author Message
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 2503
Posted: 10:32am 14 Jan 2012      

If, as seems likely, the OP's problem is noise or similar, IMO averaging is the wrong approach. Instead, the noise needs eliminating (rejecting) or if needs be the bad readings need to be detected and ignored.

An example of the latter: if the temp jumps more than a tiny amount between readings which are close in time then either soemone's using a blowtorch or it's a bad reading.

I'd go for the hardware approach. It's notoriously hard to fix this kind of thing in software that's in an interpreted language (or at all).

John