DIY GUY Chris
Published © Apache-2.0

Portenta and Thermocouple Sensor (with MAX6675)

This Portenta things have become like an addiction here I post a new project where I used a thermocouple sensor through my Arduino Portenta.

BeginnerFull instructions provided2 hours1,729
Portenta and Thermocouple Sensor (with MAX6675)

Things used in this project

Hardware components

Arduino Portenta H7
Arduino Portenta H7
×1
Test Accessory, Thermocouple and Adapter
Test Accessory, Thermocouple and Adapter
×1
SparkFun Thermocouple Breakout - MAX31855K
SparkFun Thermocouple Breakout - MAX31855K
×1

Software apps and online services

Circuit Maker
CircuitMaker by Altium Circuit Maker

Story

Read more

Schematics

Throne board schematic

Code

Untitled file

Arduino
// this example is public domain. enjoy!
// www.ladyada.net/learn/sensors/thermocouple

#include "max6675.h"

int thermoDO = 10;
int thermoCS = 8;
int thermoCLK = 9;

MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
// int vccPin = 3;
// int gndPin = 2;
  
void setup() {
  pinMode(PC_7, OUTPUT);
  digitalWrite(PC_7, HIGH);
  delay(500);
  digitalWrite(PC_7, LOW);
  delay(500);
  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() {
  // basic readout test, just print the current temp
  
   Serial.print("C = "); 
   Serial.println(thermocouple.readCelsius());
   Serial.print("F = ");
   Serial.println(thermocouple.readFahrenheit());
  if(thermocouple.readCelsius()>30)
  digitalWrite(PC_7, HIGH);
  else
  digitalWrite(PC_7, LOW);
   delay(1000);
}

Credits

DIY GUY Chris
53 projects • 349 followers
I'm having fun while making electronics projects, I am an electrical engineer in love with "Do It Yourself" tasks.
Thanks to Altium Designer and JLCPCB.

Comments