I’m doing a project with Blynk but I had a problem with presenting the output temperature value from thermocouple sensor + max31855k. Am using arduino mega and the sensor is working fine and I got the output using serial monitor, but I don’t know what I have to write in (Blynk.virtualWrite) to take the temp value by Blynk.
this is my code:
#define BLYNK_PRINT Serial // Enables Serial Monitor
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include “Adafruit_MAX31855.h”
#include <SimpleTimer.h>
SimpleTimer timer;
char auth[] = “a0305e81ba784c0187aacc48d2691b53”;
int maxSO = 12;
int maxCS = 10;
int maxSCK = 13;
//Create a MAX31855 reference and tell it what pin does what
Adafruit_MAX31855 kTC(maxSCK, maxCS, maxSO);
void setup() {
Serial.begin(9600);
// The MAX31855 needs a little time to stabilize
delay(500);
Blynk.begin(auth);
timer.setInterval(2000, sendUptime);
}
void sendUptime()
{
}
void loop() {
Serial.print("C = ");
Serial.println(kTC.readCelsius());
Serial.print("F = ");
Serial.println(kTC.readFarenheit());
// delay so it doesn’t scroll too fast.
delay(2000);
}