Need help with my project, max6675

I would like to know if someone could help me with my project, which consists of using a mega arduino, max6675, through blynk, but I can not think of how to put it together:grin:

Only instead of just displaying to the IDE monitor, you can also send it to your App, say a display widget or something using Blynk.virtualWrite(vPin, data)

Check out the Documents and Getting Started links at the Top Right of this page.

Thank you for being a great help

How could you send the temperature data to blynk

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include "max6675.h"
  
  int thermoDO = 4;
  int thermoCS = 5;
  int thermoCLK = 6;
  
  MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
  int vccPin = 3;
  int gndPin = 2;

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "e818933df44e420cb05f21bbefa933d4";

#define W5100_CS  10
#define SDCARD_CS 4
}
void setup()
{

  pinMode(SDCARD_CS, OUTPUT);
  digitalWrite(SDCARD_CS, HIGH); // Deselect the SD card

  Serial.begin(9600);
  Blynk.begin(auth);
  // You can also specify server.
  // For more options, see Boards_Ethernet/Arduino_Ethernet_Manual example
  //Blynk.begin(auth, "your_server.com", 8442);
  //Blynk.begin(auth, IPAddress(192,168,1,100), 8888);
  Serial.begin(9600);
  // use Arduino pins 
  pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH);
  pinMode(gndPin, OUTPUT); digitalWrite(gndPin, LOW);
  
  Serial.println("MAX6675 test");
  // wait for MAX chip to stabilize
  delay(500);
  
}

void loop()
{
  Blynk.run();
   // basic readout test, just print the current temp
   Blynk.virtualWrite(v6, data)
   Serial.print("C = "); 
   Serial.println(thermocouple.readCelsius());
   Serial.print("F = ");
   Serial.println(thermocouple.readFahrenheit());
   delay(1000);
}
1 Like

You need to read up about this information in the documentation and guide links I already posted above. Donā€™t just copy and paste the command I gave, as it needs specific parameters such as:

Blynk.virtualWrite(V6, thermocouple.readCelsius()) // V6 is a Labeled Display on V6 with  /pin/ Ā°C  in the label

Blynk.virtualWrite(V7, thermocouple.readFahrenheit()) // V7 is a Labeled Display on V7 with  /pin/ Ā°F  in the label

You also donā€™t want to run these commands in the void loop() as they will send too much data too quickly to the app and cause ā€œfloodingā€: http://docs.blynk.cc/#troubleshooting-flood-error

Look up SimpleTimer in the search option and there are also many examples using timers in the Sketch Builder - Top Right of this page.

Check out this one and add in the above commands into the timer loop: http://examples.blynk.cc/?board=Arduino%20Mega%202560&shield=Ethernet%20Shield%20W5100&example=GettingStarted%2FPushData

1 Like