For Arduino boards.
The Library implements a set of methods for working with a thermocouple based on the MAX6675 driver. Provides a temperature reading in Celsius, Fahrenheit and Kelvin. Modified version of the MAX6675-library.
MAX6675 driver measures the output of a K Thermocouple and provides the result to the Arduino via a SPI interface.
- Download the Latest release from gitHub.
- Unzip and modify the Folder name to "MAX6675_Thermocouple" (Remove the '-version')
- Paste the modified folder on your Library folder (On your
libraries
folder inside Sketchbooks or Arduino software). - Restart the Arduino IDE.
SO: The module’s serial output. Your Arduino will read this output.
CS: Chip Select. Setting low, selects the Module and tells it to supply an output that is synchronize with a clock.
SCK: The Serial Clock, an input from your Arduino.
VCC: 5V supply
GND: Ground.
// Instantiation:
/**
SCK_PIN - SCK digital port number.
CS_PIN - CS digital port number.
SO_PIN - SO digital port number.
*/
MAX6675_Thermocouple thermocouple(SCK_PIN, CS_PIN, SO_PIN);
// Read a temperature in Celsius.
double celsius = thermocouple.readCelsius();
// Read a temperature in Kelvin.
double Kelvin = thermocouple.readKelvin();
// Read a temperature in Fahrenheit.
double fahrenheit = thermocouple.readFahrenheit();
// For older devices.
double farenheit = thermocouple.readFarenheit();
Created by Yurii Salimov.