Source: https://mokxi.com/parts/max31855
Updated: 2026-11-19

Part

# Thermocouple converter, MAX31855

A K-type thermocouple in 32 bits: the tip in quarter degrees, the cold junction, and open and short faults.

See every part

- 5 pins
- 2 settings
- In 1 project
- In 1 lesson

Drawn live by the editor's own code, at the size you see it.

At a glance

## The Thermocouple converter, MAX31855 in brief

What it is, and every setting the properties panel gives it.

The MAX31855K reads a K-type thermocouple from -270 to 1800 degrees C, with its own cold junction temperature and fault bits, over read-only SPI. It is the MAX6675’s successor: 32 bits instead of 16, below zero temperatures, the board’s own temperature, and separate faults for an open probe and a probe shorted to either rail. The pins are VCC and GND, 3 to 5 V on the board, DO, the data out, high-Z while CS is high, CS, low to read, and CLK. The temperature property is the probe tip and ambient the board, the cold junction. Bits 31 to 18 are the tip in quarter degrees, bits 15 to 4 the board in sixteenths, and bits 2, 1 and 0 a short to VCC, a short to GND and an open probe. It converts every 100 ms.

Family

Sensors

Pins

5

temperature

25

ambient

22

Pins

## 5 pins

Named as the editor names them, so a wire lands where you expect it.

Pin

Role

What it does

VCC

Input or output

Supply, 3 to 5 V on the board.

GND

Input or output

Ground.

DO

Output

The data out, high-Z while CS is high.

CS

Input

Low to read.

CLK

Input

The clock, from the board.

How to use it

## How to read a K-type thermocouple with a MAX31855 and an Arduino

VCC goes to 5 V and GND to ground. CLK goes to pin 7, CS to pin 6 and DO to pin 5, which is the order of the Adafruit library’s constructor, CLK, CS, DO. DO is the chip’s output, so it never goes to the board’s MOSI. In the project the probe tip is at 850 degrees and the board at 24, and the same Uno reads a MAX31865 on the SPI pins.

CS low stops the conversion and puts bit 31 on DO, then each falling edge of CLK puts the next, 32 in all. readCelsius() returns the tip and readInternal() the board. A fault returns NaN, so the sketch prints fault. The value only changes every 100 ms, so reading faster than ten times a second gains nothing. Move the two sliders while it runs.

Part pin

Board pin

VCC

5 V

GND

GND

CLK

Pin 7

CS

Pin 6

DO

Pin 5

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

The tip and the board, with Adafruit_MAX31855

Common errors

## Common Thermocouple converter, MAX31855 errors and fixes

What goes wrong

The fix

The sketch prints fault.

Bits 2, 1 and 0 say a short to VCC, a short to GND and an open probe. Check the thermocouple is connected and not touching a rail.

The reading is stuck.

The chip converts every 100 ms, so the value only changes ten times a second. Reading faster gains nothing.

No data comes back.

DO is the chip’s output, so wire it to the board’s MISO or input pin, not to MOSI. Check CS and CLK too.

Questions

## Questions and answers

### What is the difference between the MAX31855 and the MAX6675?

The MAX31855 sends 32 bits, reads below zero, reports the board’s own temperature and has separate faults. The MAX6675 sends 16.

### What range does the MAX31855K read?

-270 to 1800 degrees C with a K-type thermocouple.

### Is the thermocouple’s nonlinearity modeled?

No. The chip assumes a straight line, and so does the model, so the tip reads exactly the slider.

How it is modeled

## What is true about the Thermocouple converter, MAX31855, here

In its help article’s own words: what the simulation gets right, and where it stops.

### Not modeled

The K-type's nonlinearity (the chip assumes a straight line, and so does the model, so
the tip reads exactly the slider), and the accuracy figures.

From MAX31855 thermocouple converter, in full.

Projects

## See the Thermocouple converter, MAX31855 in a project

One built-in project uses it. It opens in the editor, already wired.

Lessons

## Where it turns up in a lesson

One lesson places it in its own circuit.

### Learn articles

1 lesson

- Arduino MAX31855: K-Type Thermocouple Code

Boards

## The boards it is shown on

This board has a built-in project with the Thermocouple converter, MAX31855 in it.

- Arduino Uno R3

Libraries

## Arduino libraries for the Thermocouple converter, MAX31855

Built in, so the sketch compiles with nothing to install. Each page has the calls, the wiring and an example to run.

- Adafruit MAX31855

Keep going

## Keep going

- Arduino MAX6675 Thermocouple: Wiring and Code
- SPI Explained: Clock, Data and Chip Select
- Thermocouple converter, MAX6675
- IR thermometer, MLX90614
- Temperature sensor, DS18B20

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the Thermocouple converter, MAX31855

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.

Start building free Open the editor
