Hi group,
good morning,
I solved the part that the tft screen is working again. now to the real problem.
i cant get the code working on a teensy4.1, it worked before on a teensy3.6, its probably a simple question.
why is the Thermocouple not recognized. it doesnt show an error. also not over the Serial monitor. it just outputs 0 degrees and 0 Raw value.
Question:where do I place the SPI1.begin(); and where to SPI1.setSCK(27) and SPI1.setMISO(39)?;
also probing with the scope gets me Zero signals on the display
good morning,
I solved the part that the tft screen is working again. now to the real problem.
i cant get the code working on a teensy4.1, it worked before on a teensy3.6, its probably a simple question.
why is the Thermocouple not recognized. it doesnt show an error. also not over the Serial monitor. it just outputs 0 degrees and 0 Raw value.
- what i did:
I copied the exact same components from the Evaluation board for the max31855 https://datasheets.maximintegrated.com/en/ds/MAX31855EVKIT.pdf page 6 i added the inductors and the nup2105 in between. no results.
i removed the nup2105 and left the inductors where they are.
I am getting a reading on my serial monitor, however this also occurs before, during and after cutting the wires.
Question:where do I place the SPI1.begin(); and where to SPI1.setSCK(27) and SPI1.setMISO(39)?;
also probing with the scope gets me Zero signals on the display
Code:
**************************************************/
#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 39
#define MAXCS 36
#define MAXCLK 27
// 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);
}