Hello everyone,
I built a data logger with multiple temperature sensors and an SD shield.
I set it up to run overnight, logging the data from all of the sensors to a CSV file on an SD card every minute.
Everything works great EXCEPT the value of the thermocouple temperature was returned as "NaN" about 20% of the time.
I have attached the output file, the thermocouple is column E.
Any help is appreciated.
Thanks!
MAX31855 + Type K Thermocouple returns Nan 20% of the time
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 1
- Joined: Sat Dec 14, 2013 2:09 am
MAX31855 + Type K Thermocouple returns Nan 20% of the time
- Attachments
-
- NIGHT_3.CSV
- (20.55 KiB) Downloaded 179 times
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: MAX31855 + Type K Thermocouple returns Nan 20% of the ti
NAN is returned when any of the error bits is set. You can call the "readError()" function to determine which one(s). Error bits are defined on page 10 of the MAX31855 data sheet: http://www.adafruit.com/datasheets/MAX31855.pdf
D2 SCV Fault This bit is a 1 when the thermocouple is short-circuited to VCC. Default value is 0.
D1 SCG Fault This bit is a 1 when the thermocouple is short-circuited to GND. Default value is 0.
D0 OC Fault This bit is a 1 when the thermocouple is open (no connections). Default value is 0.
Please be positive and constructive with your questions and comments.