Hello.
My project is very simple. I have a MAX6675 termocouple an arduino Uno and a Nextion display. I want it to show the values every second on the display, but after uploading the code to the display and arduino Uno it doesnt update the number. Any ideas why please? I find the tutorials confusing... Many thanks
#include <Nextion.h>
#include <max6675.h> // max6675.h file is part of the library that you should download from Robojax.com
int soPin = 4;// SO=Serial Out
int csPin = 5;// CS = chip select CS pin
int sckPin = 6;// SCK = Serial Clock pin
MAX6675 Module(sckPin, csPin, soPin);// create instance object of MAX6675
// Definovať Nextion objekty (page ID , komponent ID, objname)
NexText t1 = NexText(0, 4, "t1");
NexWaveform s0 = NexWaveform(1, 0, "s0");
void setup() {
Serial.begin(9600);// initialize serial monitor with 9600 baud
Serial.println("MAX6675");
}
void loop() {
// basic readout test, just print the current temp
Serial.println(Module.readCelsius());
delay(1000);
n0.addValue(0,Module.readCelsius());
}