Error: Something wrong with thermocouple

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
malik2013
 
Posts: 4
Joined: Tue Nov 12, 2013 5:23 pm

Error: Something wrong with thermocouple

Post by malik2013 »

Hello,

I am just using an example code I downloaded from the website: http://www.github.com and followed the instructions given on adafruit site to do the wiring of the arduino uno board but when I upload it in the Arduino Software it shows the constant temperature of -127.94 and says "something wrong with the thermocouple". Below are the copy of the example code I am using and will attach pictures of the arduino board and the amplifier MAX31855 and wirings I have done. I would appreciate your help.

Code:
/***************************************************
This is an example for the Adafruit Thermocouple Sensor w/MAX31855K

Designed specifically to work with the Adafruit Thermocouple Sensor
----> https://www.adafruit.com/products/269

These displays use SPI to communicate, 3 pins are required to
interface
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution
****************************************************/

#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);
}
Attachments
photo 4.JPG
photo 4.JPG (619.14 KiB) Viewed 832 times
photo 3.JPG
photo 3.JPG (867.63 KiB) Viewed 832 times
photo 1.JPG
photo 1.JPG (824.13 KiB) Viewed 832 times

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: Error: Something wrong with thermocouple

Post by Franklin97355 »

You really need to solder wires or headers to the breakout board. Your problem could well be the connections you have there. You also don't have a thermocouple connected to the board.

malik2013
 
Posts: 4
Joined: Tue Nov 12, 2013 5:23 pm

Re: Error: Something wrong with thermocouple

Post by malik2013 »

Actually I had thermocouple connected when I ran the code, its just when I took the pics it was sitting on the side. I will solder them and see if the problem is fixed. Thanks for the reply.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Error: Something wrong with thermocouple

Post by adafruit_support_mike »

Loosely connected wires tend to produce noisy connections, and for high-speed signals like SPI, that kind of noise can mess up the signals to the point of being meaningless. You do need solder joints.

malik2013
 
Posts: 4
Joined: Tue Nov 12, 2013 5:23 pm

Re: Error: Something wrong with thermocouple

Post by malik2013 »

Thanks. I have soldered the wires and its reading temperature now but it seems like its reading the temperature backwards. What should i do ?? :?

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Error: Something wrong with thermocouple

Post by adafruit_support_mike »

Sounds like you have the wires from the thermocouple connected backwards. Try swapping them in the terminal sockets.

malik2013
 
Posts: 4
Joined: Tue Nov 12, 2013 5:23 pm

Re: Error: Something wrong with thermocouple

Post by malik2013 »

I just swap the wires and its reading correct temperature now. Thanks

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

Return to “Arduino”