Cannot get MAX 31855 readings

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Cannot get MAX 31855 readings

Postby Cadius » Fri Jun 29, 2012 8:25 am

I'm obviously doing something stupid and have beat my head against the metaphorical wall about as much as I can.

I've bought several MAX31855 breakout boards. I'm trying to get them to work, using the example included with the Adafruit_MAX31855 library, only changing the pin numbers to match my environment. I've tried this code on two Arduino Megas and with three MAX31855 boards and with different wiring at least 3 times. I'm using the 5v and Gnd pins at the ends of the pins 22 - 53 block for power, 35 for CLK, 37 for CS, and 39 for DO. I'm using the MAX library dated 6/15/2012.

I get 4.6v at the Arduino and at the MAx board, so I know power is getting to the boards.
I get 3.3v from the 3Vo pin at the Max board.
I get 2.2v from the DO pin at the Max board.
I get 4.5v from the CS pin at the Max board.
I get 4.5v from the CLK pin at the Max board.
I get fluctuating readings around 2.5v from the Thermocouple wires.

The example code just publishes 0.00 for both internal and KC temps.

Any idea what I'm doing wrong here?

Max31855.png
Max31855.png (941.49 KiB) Viewed 2258 times
Cadius
 
Posts: 29
Joined: Tue Nov 29, 2011 12:25 pm

Re: Cannot get MAX 31855 readings

Postby adafruit_support_bill » Fri Jun 29, 2012 8:45 am

Can you post the code you are using? Also a close-up of your solder connections.

I get fluctuating readings around 2.5v from the Thermocouple wires.

That doesn't sound right at all. The output from a T/C is in the microvolt range.
User avatar
adafruit_support_bill
 
Posts: 16644
Joined: Sat Feb 07, 2009 9:11 am

Re: Cannot get MAX 31855 readings

Postby Cadius » Fri Jun 29, 2012 9:17 am

Code: Select all
/***************************************************
  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 = 39;
int thermoCS = 37;
int thermoCLK = 35;

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


IMG_20120629_091021.jpg
IMG_20120629_091021.jpg (185 KiB) Viewed 2251 times
Cadius
 
Posts: 29
Joined: Tue Nov 29, 2011 12:25 pm

Re: Cannot get MAX 31855 readings

Postby adafruit_support_rick » Fri Jun 29, 2012 9:19 am

Let's try to rule out some other things as well.
First of all, it looks like you've got some other stuff attached to the mega. Remove any other devices, so we can just focus on the MAX31855.
Which model/revision of the MEGA are you using?
Have you tried different locations on the breadboard?
Have you tried connecting the MAX31855 board directly to the MEGA - i.e., no CAT5, no breadboard?
Have you tried it with the thermocouple disconnected, to just access the internal temp?
Have you tried using the standard SPI pins 51 52 and 53?
Are you certain you've got the correct board-type selected for your sketch?
Have you changed anything else in the example sketch other than the pin numbers? Maybe start with a fresh copy, just to make sure.
Do you have a UNO available to try this with?
User avatar
adafruit_support_rick
 
Posts: 3158
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Cannot get MAX 31855 readings

Postby Cadius » Fri Jun 29, 2012 9:54 am

I'm using two Mega R3's

I haven't tried the direct link yet.For that, make the 5v pin a pinMode(..., OUTPUT) and the GND and Vo pins as pinMode(..., INPUT) right?

I did just take out the Cat5 cabling. Using jumpers directly from 51-53 (and 5v/gnd) to breadboard, I get either 0.00/0.00 OR -127.94 internal and "Something wrong with the thermocouple!" depending on which Max41855 board I try -- two give the -127, one gives 0.00.

Connecting or not connecting the TC seems to make no difference.

My sketch says Arduino Mega 2560 or Mega ADK.

I've tried with a fresh copy of the library / example from the same Zip. No change. No, I've only changed the pin assignments.

I have the two Megas, but no other Arduinos.
Cadius
 
Posts: 29
Joined: Tue Nov 29, 2011 12:25 pm

Re: Cannot get MAX 31855 readings

Postby adafruit_support_bill » Fri Jun 29, 2012 10:09 am

I did just take out the Cat5 cabling. Using jumpers directly from 51-53 (and 5v/gnd) to breadboard, I get either 0.00/0.00 OR -127.94 internal and "Something wrong with the thermocouple!" depending on which Max41855 board I try -- two give the -127, one gives 0.00.

Sounds like you are getting closer - but still have some intermittent connections. The solder photo is a little fuzzy to see well. But try re-touching those joints. Make sure they are smooth and shiny - and that the solder flows well onto both the wire and the solder pad.
User avatar
adafruit_support_bill
 
Posts: 16644
Joined: Sat Feb 07, 2009 9:11 am

Re: Cannot get MAX 31855 readings

Postby Cadius » Fri Jun 29, 2012 10:25 am

I redid the solders; making sure to completely cover the solder pad on both top and bottom. Smooth/shiny.
Still get 0.00 / 0 readings.
:(
Cadius
 
Posts: 29
Joined: Tue Nov 29, 2011 12:25 pm


Re: Cannot get MAX 31855 readings

Postby adafruit_support_rick » Sat Jun 30, 2012 7:54 am

Cadius wrote:I haven't tried the direct link yet.For that, make the 5v pin a pinMode(..., OUTPUT) and the GND and Vo pins as pinMode(..., INPUT) right?

You shouldn't be using I/O pins for power and ground. Just take the wires you've already soldered onto the MAX31855 and connect the clock and data pins to 35, 37, and 39 as have been doing, Vin to a +5V socket on the MEGA, and GND to a GND pin on the MEGA.
User avatar
adafruit_support_rick
 
Posts: 3158
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Cannot get MAX 31855 readings

Postby Cadius » Mon Jul 02, 2012 7:52 am

Using soldered wire for Gnd and Vin and using pins straight into the Arduino 47, 49, and 51, I still get 0.00 readings from internal and 0 from TC even with no TC wire connected.

This has completely thrown me.
Cadius
 
Posts: 29
Joined: Tue Nov 29, 2011 12:25 pm

Re: Cannot get MAX 31855 readings

Postby adafruit_support_bill » Mon Jul 02, 2012 7:54 am

Are you seeing that on all three boards now? Before you were getting different results with two of them.
User avatar
adafruit_support_bill
 
Posts: 16644
Joined: Sat Feb 07, 2009 9:11 am

Re: Cannot get MAX 31855 readings

Postby Cadius » Mon Jul 02, 2012 8:15 am

I've tried the direct-pin connection with two boards; one of those boards has never been attached to anything (just in case my attempts at getting this thing working somehow fried the other boards.)

I've also tried moving from the GND and 5v pins on the 22 - 53 block to the 5v/Gnd pins on the ethernet shield, and the 3.3v/Gnd pins on the ethernet shield.

Still get 0/0.00 on those attempts.
Cadius
 
Posts: 29
Joined: Tue Nov 29, 2011 12:25 pm

Re: Cannot get MAX 31855 readings

Postby adafruit_support_rick » Mon Jul 02, 2012 8:53 am

Ethernet shield? You should disconnect EVERYTHING from the MEGA until we figure out what's up with the MAX31855.
User avatar
adafruit_support_rick
 
Posts: 3158
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Cannot get MAX 31855 readings

Postby Cadius » Mon Jul 02, 2012 5:11 pm

Pulled the Ethernet shield.

Same response from two MAX31855 boards: 0.00 / 0.

I get no difference even if I remove the Vin line; it's like the module isn't communicating at all.
Cadius
 
Posts: 29
Joined: Tue Nov 29, 2011 12:25 pm

Re: Cannot get MAX 31855 readings

Postby Cadius » Sun Jul 08, 2012 9:52 am

Anything else I can try?
[list=]
[*]I've tested using the example code from the Max31855 library with seven different MAX breakout boards.[/*]
[*]I've tested with two Arduino MEGA 2560 R3's.[/*]
[*]I've tried compiling the example project under both the 1.0.1 and 1.0 Arduino IDE.[/*]
[*]I've tried with direct pins, multiple different sets of wires, with/without a breadboard, and with resoldered pins.[/*]
[*]I've tried with and without a TC wire connected.[/*]
[*]I've redownloaded the Max31855 library today, just to make sure I had a clean install there.[/*]
[/list]

Quite frankly, I have no idea what else to even think about trying. All I get is 0.00 and 0 readings.

I had nothing like this kind of problem with the Max6675 boards. But they won't read the ultra-low temps I need (and have been discontinued...).

I'm stumped. And frustrated. :?
Cadius
 
Posts: 29
Joined: Tue Nov 29, 2011 12:25 pm

Next

Return to Other Arduino products from Adafruit

Who is online

Users browsing this forum: franklin97355 and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]