Library to interface with the MAX31855 Cold Junction Compensated Thermocouple-to-Digital Converter

Fork of MAX31855 by Joe Staton

The libary is from Joe Station. The conversion factor for the internal chip temperature is changed from 0.25 to 0.0625 to read out the correct chip temperature.

Files at this revision

API Documentation at this revision

Comitter:
Franky_74
Date:
Fri Mar 07 09:57:48 2014 +0000
Parent:
1:5eeee89cb281
Commit message:
Max31855 from Joe Staton (internal Chip-temperatur conversation factor corrected from 0.25 to 0.0625 to read out the correct chip temperature)

Changed in this revision

max31855.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/max31855.cpp	Tue Oct 23 10:51:21 2012 +0000
+++ b/max31855.cpp	Fri Mar 07 09:57:48 2014 +0000
@@ -31,7 +31,7 @@
         tempChipLow = spi.write(0);
         
         //Set the chip temperature    
-        chipTemp = (tempChipHigh<<4 | tempChipLow>>4)*0.25;
+        chipTemp = (tempChipHigh<<4 | tempChipLow>>4)*0.0625;
         
         //Set CS to stop transfer and restart conversion
         deselect();