Files

copied
Last update 7 years 1 month by Jeremy Poulter
FilesWandFirmwareThermocouple_MAX6675_Test
..
Thermocouple_MAX6675_Test.ino
Thermocouple_MAX6675_Test.ino
// this example is public domain. enjoy! // www.ladyada.net/learn/sensors/thermocouple #include "max6675.h" int thermoDO = MISO; int thermoCS = SS; int thermoCLK = SCK; 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("C = "); Serial.println(thermocouple.readCelsius()); Serial.print("F = "); Serial.println(thermocouple.readFahrenheit()); delay(1000); }
Report a bug