MAX31855 problem - reads zero

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
hb2013
 
Posts: 4
Joined: Thu Jun 20, 2013 5:47 pm

MAX31855 problem - reads zero

Post by hb2013 »

Can't get MAX31855 to read anything other than zero. Below is the code I am using.

Code: Select all

#include "Adafruit_MAX31855.h"
int GND = 4;
int VIN = 2;
int thermoDO = 5;
int thermoCS = 6;
int thermoCLK = 7;

Adafruit_MAX31855 thermocouple(thermoCLK, thermoCS, thermoDO);
  
void setup() {
  Serial.begin(9600);
  pinMode(GND,OUTPUT);
  digitalWrite(GND,LOW);
  pinMode(VIN,OUTPUT);
  digitalWrite(VIN,HIGH);
 
  
  Serial.println("MAX31855 test");
  // wait for MAX chip to stabilize
  delay(500);
     if (digitalRead(V3OUT)) {
      Serial.println("MAX31855 V3 IS HIGH");
    }
}

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);
}
Last edited by adafruit_support_bill on Thu Jun 20, 2013 7:52 pm, edited 1 time in total.
Reason: Please use the 'code' button when submitting code

User avatar
adafruit_support_bill
 
Posts: 88038
Joined: Sat Feb 07, 2009 10:11 am

Re: MAX31855 problem - reads zero

Post by adafruit_support_bill »

What thermocouple are you using? Is it grounded? Post a photo or wiring diagram.

User avatar
hb2013
 
Posts: 4
Joined: Thu Jun 20, 2013 5:47 pm

Re: MAX31855 problem - reads zero

Post by hb2013 »

Here are the pics. I am using K-type thermo-couple.
Attachments
arduino-max2.jpg
arduino-max2.jpg (33.04 KiB) Viewed 9624 times
arduino-max1.jpg
arduino-max1.jpg (34.64 KiB) Viewed 9624 times

User avatar
adafruit_support_bill
 
Posts: 88038
Joined: Sat Feb 07, 2009 10:11 am

Re: MAX31855 problem - reads zero

Post by adafruit_support_bill »

Is it grounded?

User avatar
hb2013
 
Posts: 4
Joined: Thu Jun 20, 2013 5:47 pm

Re: MAX31855 problem - reads zero

Post by hb2013 »

Do you mean thermocouple? It has two wires connected as shown. Ground what? The probe?

User avatar
adafruit_support_bill
 
Posts: 88038
Joined: Sat Feb 07, 2009 10:11 am

Re: MAX31855 problem - reads zero

Post by adafruit_support_bill »

Ground what? The probe?
If the junction is in contact with a grounded object, it will read 0 with this amplifier.

User avatar
hb2013
 
Posts: 4
Joined: Thu Jun 20, 2013 5:47 pm

Re: MAX31855 problem - reads zero

Post by hb2013 »

No it is not. It is seating on a wooden surface.

User avatar
adafruit_support_bill
 
Posts: 88038
Joined: Sat Feb 07, 2009 10:11 am

Re: MAX31855 problem - reads zero

Post by adafruit_support_bill »

Your connections look ok. Contact [email protected] with a link to this thread and we can send you a replacement.

jerm2119
 
Posts: 1
Joined: Wed Jun 26, 2013 12:33 pm

Re: MAX31855 problem - reads zero

Post by jerm2119 »

I have a similar problem. Using the arduino 1.0.5 software and an adruino uno, the serial monitor output is -127.94 Celsius regardless of where the thermocouples are. There is also a message saying "Something wrong with thermocouple!" I've checked the wiring and even if the wires were reversed, that number is not possible at room temperature. Help?

User avatar
adafruit_support_bill
 
Posts: 88038
Joined: Sat Feb 07, 2009 10:11 am

Re: MAX31855 problem - reads zero

Post by adafruit_support_bill »

That sounds more like a problem with the thermocouple than the MAX31855. Where did you purchase these? I don't see you in the customer database.

User avatar
paddygoat
 
Posts: 52
Joined: Thu Jun 27, 2013 11:50 am

Re: MAX31855 problem - reads zero

Post by paddygoat »

Just recieved my MAX31855 breakout board (invoice no. 303135) and wired it up BUT getting - Int. Temp = -127.94 and T/C Problem BUT I tested the thermocouple on a rocket scream MAX31855 board and it works fine. Please advise .... Thank you.

User avatar
paddygoat
 
Posts: 52
Joined: Thu Jun 27, 2013 11:50 am

Re: MAX31855 problem - reads zero

Post by paddygoat »

Also, there is a problem finding the avr folder. Just got the board working with the serial version of the software, but quite a few 'thermocouple errors'.

User avatar
adafruit_support_bill
 
Posts: 88038
Joined: Sat Feb 07, 2009 10:11 am

Re: MAX31855 problem - reads zero

Post by adafruit_support_bill »

Contact [email protected] with a link to this thread to arrange for a replacement.

User avatar
paddygoat
 
Posts: 52
Joined: Thu Jun 27, 2013 11:50 am

Re: MAX31855 problem - reads zero

Post by paddygoat »

It's the code that was not working actually. Got it working by replacing with this:

#include "Adafruit_MAX31855.h"
#include <LiquidCrystal.h>

int thermoDO = 3;
int thermoCS = 4;
int thermoCLK = 5;

LiquidCrystal lcd(7, 8, 9, 10, 11, 12);

Adafruit_MAX31855 thermocouple(thermoCLK, thermoCS, thermoDO);

void setup() {
Serial.begin(9600);
lcd.begin(16, 2);

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());

lcd.setCursor(0, 0);
lcd.print("Int. Temp = ");
lcd.println(thermocouple.readInternal());
lcd.print(" ");
lcd.setCursor(0, 1);
lcd.print("C = ");
lcd.print(c);
lcd.print(" ");

delay(1000);
}

User avatar
adafruit_support_bill
 
Posts: 88038
Joined: Sat Feb 07, 2009 10:11 am

Re: MAX31855 problem - reads zero

Post by adafruit_support_bill »

Interesting. The thermocouple part of that code looks identical to the serialThermocouple example.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”