The new Raspberry Pi B Model B+ is here - Pick one up in the store and check our detailed guide!

MAX31855 averaging readings?

by RosscoS on Fri Nov 16, 2012 3:18 pm

Hi All,
I have just upgraded from the MAX6675 to the MAX31855.
With the MAX6675 to get an average of several readings the code was
Code: Select all | TOGGLE FULL SIZE
temp_out = temp0.read_temp(20);

However I cannot figure out how to get averaged readings from the MAX31855.

Thanks in advance for any help!
Posts: 44
Joined: Wed May 09, 2012 1:41 pm

Re: MAX31855 averaging readings?

by adafruit on Fri Nov 16, 2012 8:42 pm

use a loop to read 5 times in a row, add up all the numbers, then divide by 5
User avatar
Posts: 11635
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc