MAX31855 Thermocouple Controller

Overview

This module interfaces to a MAX31855-series thermocouple controller. These are available for various common thermocouple types.

Wiring

Pin Connect to Example
1 GND GND
2 Thermocouple - Thermocouple
3 Thermocouple + Thermocouple
4 3.3v 3.3v
5 SPI SCK B3
6 CS (Any GPIO) C0
7 SPI MISO B4

Usage

Usage is very simple. Using the example pins shown above:

SPI1.setup({ miso:B4, sck:B3, baud:1000000 });
var max=require("MAX31855").connect(SPI1,C0);
console.log(max.getTemp());

getTemp() returns an object with either property temp, the temperature in C, or fault containing an error code, and for common errors, faultstring which contains a short discription of the error condition.

Buying

The MAX31855 is a very common part, and is widely available. Be sure to get the right variant of it for the type of thermocouple that you plan to use.

This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.