Moderators: adafruit_support_bill, adafruit
#include "Adafruit_MAX31855.h"
int thermoDO = 3;
int thermoCS = 4;
int thermoCLK = 5;
Adafruit_MAX31855 thermocouple(thermoCLK, thermoCS, thermoDO);
void setup() {
Serial.begin(9600);
Serial.println("MAX31855 test");
// wait for MAX chip to stabilize
delay(500);
}
void loop() {
// basic readout test, just print the current temp
Serial.print("Internal Temp = ");
Serial.println(thermocouple.readInternal());
double c = thermocouple.readCelsius();
if (isnan(c)) {
Serial.println("Something wrong with thermocouple!");
} else {
Serial.print("C = ");
Serial.println(c);
}
//Serial.print("F = ");
//Serial.println(thermocouple.readFarenheit());
delay(1000);Looks like there was a bug in the 31855 library.
Scirocco wrote:Hello,
I'm getting very similar results to the OP. -2000 deg C, to about 10 deg C at room temperature. It seems like it's discontinuous between -2000 to 6 deg C, switching back and forth rapidly. Was there ever a resolution to the problem?
Scirocco
Return to General Project help
Users browsing this forum: No registered users and 7 guests