User Tools

Site Tools


arduino:max6675

This is an old revision of the document!


Aukštos temperatūros matavimas

https://learn.adafruit.com/thermocouple/using-a-thermocouple

https://github.com/adafruit/MAX6675-library/archive/master.zip

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

#include "max6675.h"

int thermoDO = 4;
int thermoCS = 5;
int thermoCLK = 6;

MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
int vccPin = 3;
int gndPin = 2;
  
void setup() {
  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(""); Serial.print(thermocouple.readCelsius()); Serial.print(",");  Serial.println(thermocouple.readFahrenheit());
 
   delay(250);
}
arduino/max6675.1494170186.txt.gz · Last modified: by aistis