Hello
I have a max31855 Datasheet , using arduino (1.8.13) and I am seeing the values of the thermocouple bouncing, I would love to say that the problem lies in the code but the code uses a library that is a bit hard for me to understand . Or that the problem is in connection
I also noticed that the code belongs to another breadkoub board that is completely different from mines on the left is my breakout board and on the right is the board that the library uses
The library board’s datasheet is Datasheet of the arduino used in the library
Can you please help me to figure this out ??
Thank you very much
The code below looks like this
The setup looks like
the results look like this
I have a max31855 Datasheet , using arduino (1.8.13) and I am seeing the values of the thermocouple bouncing, I would love to say that the problem lies in the code but the code uses a library that is a bit hard for me to understand . Or that the problem is in connection
I also noticed that the code belongs to another breadkoub board that is completely different from mines on the left is my breakout board and on the right is the board that the library uses
The library board’s datasheet is Datasheet of the arduino used in the library
Can you please help me to figure this out ??
Thank you very much
The code below looks like this
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 <SPI.h>
#include "Adafruit_MAX31855.h"
// Default connection is using software SPI, but comment and uncomment one of
// the two examples below to switch between software SPI and hardware SPI:
// Example creating a thermocouple instance with software SPI on any three
// digital IO pins.
#define MAXDO 3 // pin 3 connect to pin 3
#define MAXCS 4 // pin 3 connect to pin 4
#define MAXCLK 5
// initialize the Thermocouple
Adafruit_MAX31855 thermocouple(MAXCLK, MAXCS, MAXDO);
// Example creating a thermocouple instance with hardware SPI
// on a given CS pin.
//#define MAXCS 10
//Adafruit_MAX31855 thermocouple(MAXCS);
void setup() {
Serial.begin(9600);
while (!Serial) delay(1); // wait for Serial on Leonardo/Zero, etc
Serial.println("MAX31855 test");
// wait for MAX chip to stabilize
delay(500);
Serial.print("Initializing sensor...");
if (!thermocouple.begin()) {
Serial.println("ERROR.");
while (1) delay(10);
}
Serial.println("DONE.");
}
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.readFahrenheit());
delay(1000);
}
the results look like this