MAX31855 Thermocouple Library for Proteus Simulation: the MAX31855 board, an I2C LCD 16x2, three LEDs and a buzzer on an Arduino UNO V4.0

MAX31855 Thermocouple Library for Proteus Simulation

1 View
40
700
60
25
60
PCBWay

Hello friends, I hope you all are doing great. Today, I am going to share the new MAX31855 Thermocouple Library for Proteus Simulation. Thermocouples are the sensors for real heat - ovens, kilns, furnaces, exhausts, soldering - and the MAX31855 is the small chip that turns the few millivolts of a K-type thermocouple into a clean digital temperature, from -200 C to well over 1000 C. With this library you can run a full Proteus simulation of the common MAX31855 breakout, read its 32-bit frame bit by bit, decode both temperatures and catch a broken probe.

MAX31855 thermocouple Proteus simulation: a reflow oven monitor with an I2C LCD, three LEDs and a buzzer on an Arduino UNO V4.0
Figure: The MAX31855 simulation running: preheat, soak, the 245 C reflow peak, cooling and an unplugged probe.
Updates

MAX31855 Thermocouple Library for Proteus

Latest version: V1.0 (December 2026, this tutorial)

Helping Tools

The demo is a reflow oven monitor: an Arduino UNO V4.0 reads the thermocouple four times a second while the oven runs a solder reflow profile - preheat, soak, a 245 C peak and cooling - names each stage on a 16x2 LCD, shows it with three LEDs, beeps when the reflow is done and raises the alarm when the probe comes loose.

NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the temperature sensor board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the MAX31855 Thermocouple Library for Proteus Simulation:

MAX31855 Thermocouple Library for Proteus Simulation: the MAX31855 board, an I2C LCD 16x2, three LEDs and a buzzer on an Arduino UNO V4.0
Figure: The MAX31855 Thermocouple Library for Proteus Simulation.

What Is the MAX31855 Thermocouple Amplifier?

A thermocouple is two different metals joined at one end. When that junction is hotter than the other end, a small voltage appears - about 41 microvolts per degree for the common K type, made of chromel and alumel. It is simple, robust and works up to more than 1000 C, but the voltage is tiny and it only tells you the temperature difference between the hot tip and the "cold junction" where the wires end. To get the real temperature you must also know the cold junction's temperature and add it back.

The MAX31855 does all of that in one chip: it amplifies and digitises the thermocouple voltage, measures its own temperature as the cold junction, combines the two and reports the result in 0.25 C steps. It also checks the wiring and reports three faults: the probe open, the probe shorted to ground and the probe shorted to the supply.

The 32-Bit Frame

The chip has no registers to write - it is read-only. Each reading is one frame of 32 bits, most significant bit first:

  • Bits 31-18: the probe temperature, a signed 14-bit number in 0.25 C steps.
  • Bit 16: a fault flag, set when any of the three fault bits is set.
  • Bits 15-4: the board (cold-junction) temperature, a signed 12-bit number in 0.0625 C steps.
  • Bits 2, 1, 0: SCV (short to VCC), SCG (short to GND) and OC (open circuit).
  • Bits 17 and 3: reserved, always 0.

With the probe unplugged the probe field reads all ones - +2047.75 C - with the OC bit set, so a sketch must always look at bits 2-0 before it trusts the temperature.

Reading It

The interface is SPI without a data input. Pull CS low and bit 31 appears on DO. Each falling edge of CLK brings the next bit, so you read DO, pulse the clock, and repeat 32 times; then CS goes high again. The clock may run up to 5 MHz, but a simple bit-banged loop is fast enough. One detail matters: the chip converts all the time, about every 70 ms, but it only copies a new result to its output while CS is high - holding CS low freezes the reading.

The Breakout Board

The common breakout is about 20 x 23 mm. It carries the MAX31855 (a 3.3 V chip), a 3.3 V regulator and level shifting on CLK and CS so it works with 5 V boards, a small terminal block for the probe - yellow lead to +, red lead to - - and a five-pin header: VCC, GND, DO, CS and CLK. The probe must not be grounded: the chip measures the thermocouple floating and reports a grounded probe as a fault.

Features of the MAX31855 Library

  • A real-looking board: the breakout at its true size with the chip, the regulator, the terminal block and the header; the PWR LED lights and a fault is marked over the terminal block.
  • The frame of the datasheet: the probe and board fields, the fault flag and the three fault bits, +2047.75 C with an open probe.
  • The timing of the datasheet: bit 31 on CS falling, each next bit on a falling clock edge, DO floating while CS is high.
  • Conversions every 70 ms, copied to the output only while CS is high.
  • A probe: the DEMO reflow oven with an unplugged moment, a STEADY temperature, or a FAULT; the pop-up switches to 25, 100, 250 or 1000 C, unplugs or shorts the probe.
  • A pop-up: both temperatures and the last frame bit by bit with its fields decoded; graphs, an event log and a check page.
  • A complete package: about 2.7 MB with the library, our I2C LCD, resistors, LEDs and buzzer, our Arduino UNO V4.0 and the demo, without the source code of the model.

The MAX31855 in Proteus

The device is MAX31855TEP in TEPMAX31855.LIB, under Modules > Sensors, with the model TEPMAX31855.DLL. Search MAX31855 or thermocouple in Pick Devices. Its five pins are the header of the real board. Three properties set it up: PROFILE (DEMO or STEADY), TEMP (the probe for STEADY) and FAULT (NONE, OPEN, SCG or SCV).

MAX31855 thermocouple amplifier board from the MAX31855 Library for Proteus Simulation, with the terminal block and the header
Figure: The MAX31855 board.

Download MAX31855 Thermocouple Library for Proteus Simulation

Click the button below to download MAX31855-Thermocouple-Library-for-Proteus-v1.0.zip (about 2.7 MB, without the source code of the models):

MAX31855 Thermocouple Library for Proteus V1.0
  • README.txt: installation, the demo, the wiring, troubleshooting and the limits of the simulation.
  • Proteus Library Files: TEPMAX31855.LIB, TEPI2CLCD16X2.LIB, TEPRESISTOR.LIB, TEPLED5MM.LIB, TEPBUZZER.LIB and ArduinoV4TEP.LIB.
  • Proteus Model Files: TEPMAX31855.DLL, TEPLCD.DLL, TEPRESISTOR.DLL, TEPLED5MM.DLL, TEPBUZZER.DLL and TEPARDUINO.DLL.
  • Arduino Code: the demo sketch (Wire only).
  • Proteus Simulation: the demo project, its HEX file and copies of the DLLs.

No Proteus yet? Read How to Download and Install Proteus 7 and 8. New to libraries? Follow How to Install a New Library in Proteus.

How to Install MAX31855 Thermocouple Library for Proteus Simulation

  1. Close Proteus and extract the whole zip file, for example to your Desktop.
  2. Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
  3. Copy the files from Proteus Model Files into the MODELS folder.
  4. Delete TEPMAX31855.IDX from the LIBRARY folder if it is there.
  5. Start Proteus, press P and search for MAX31855.

Proteus Simulation of a Reflow Oven Monitor

The demo uses an A4 sheet with our Arduino UNO Library for Proteus V4.0. The board (U1) has CS on D10, CLK on D13 and DO on D12. A 16x2 LCD from our I2C LCD 16x2 Library for Proteus sits on the I2C bus at 0x27; three LEDs on D5 to D7 show the stage - green ready or done, yellow warming, red reflow - and BZ1 from our Active Buzzer Library for Proteus on D8 beeps when the reflow is over and while a fault lasts. The Arduino's monitor is built in, the same window as our TEP Serial Monitor Advance for Proteus. Open MAX31855-Reflow-Monitor-ArduinoUnoV4.pdsprj. The oven is the DEMO profile, run in fast time: a real reflow takes about four minutes, the simulation does it in six seconds.

MAX31855 simulation in Proteus: the MAX31855 board, an I2C LCD 16x2, three LEDs and a buzzer on an Arduino UNO V4.0, A4 sheet
Figure: The whole simulation on an A4 sheet.

The Sketch

A frame is 32 rounds of "read DO, pulse CLK" with CS low; the next bit comes after the falling edge:

    v = (v << 1) | digitalRead(DO);
    digitalWrite(CLK, HIGH); delayMicroseconds(1);

The fault bits come first - when one is set, the temperature field means nothing:

  if (v & 0x07) {                                             // a fault: the temperature field means nothing

The probe is the top 14 bits. Shifting the frame as a signed number keeps the sign, so negative temperatures come out right:

  const float oven = ((long)v >> 18) * 0.25;                  // the probe: 14 bits, signed (an arithmetic shift keeps the sign)

The board's 12-bit field needs its sign extended by hand before it is multiplied by 0.0625. The stage then follows from the temperature: PREHEAT from 50 C, SOAK from 150 C, REFLOW from 217 C - where the solder melts - and COOLING and DONE on the way down.

MAX31855 Simulation Results

Open the project and press Run. The demo runs 6.4 simulated seconds and took about 2 minutes 30 seconds on our PC with the pop-up open and the pictures being taken. Click U1 for its pop-up. Every number below comes from one simulation run, the demo exactly as it ships.

Preheat

The oven starts at room temperature and switches on at 0.5 s. The sketch reads its first frame a quarter of a second after power-up, and from then on every 250 ms: at 0.66 s the monitor shows 38.50 C - READY, the green LED on - and at 1.16 s 79.25 C, PREHEAT, the yellow LED. The pop-up at 1.24 s shows the frame 0x04F41850 bit by bit: bits 31-18 hold 317, so 317 x 0.25 = 79.25 C for the probe; bits 15-4 hold 389, so 389 x 0.0625 = 24.31 C for the board; and all four fault bits are clear.

MAX31855 Proteus simulation pop-up: preheat at 79.25 C, the 32-bit frame bit by bit with its fields decoded
Figure: Preheat.
MAX31855 Proteus simulation: the thermocouple board with its PWR LED on
Figure: The board at work.
The MAX31855 thermocouple simulation running in the Proteus workspace
Figure: The simulation in the workspace.

Soak and the Cold Junction

From 2.0 s the oven holds the board between 150 and 180 C so that every part warms evenly - the soak. The monitor reads 154.00 C, 168.50 C and 189.00 C, all SOAK, and the board itself creeps up from 24 to almost 27 C as the oven heats the air around it. That is exactly why the MAX31855 measures its own temperature: the thermocouple only produces a voltage for the difference between its hot tip and the cold end at the terminal block, and the chip adds the board's temperature back. The pop-up at 2.48 s shows 164.44 C for the probe and 26.09 C for the board.

MAX31855 Proteus simulation pop-up: the soak at 165 C, the board warming
Figure: The soak.

The Reflow Peak

At 3.0 s the oven climbs to its reflow peak. At 217 C the solder melts and the sketch switches to REFLOW with the red LED. At 3.91 s the monitor reads the peak, 245.00 C, with the board at 28.12 C - the frame is 0x0F501C20, 980 x 0.25 for the probe. The tiles in the pop-up at 4.05 s show what that means electrically: the probe is 216.6 C hotter than the board, which a K-type thermocouple turns into only 8.941 mV. The MAX31855 resolves that tiny voltage in 0.25 C steps.

MAX31855 Proteus simulation pop-up: the reflow peak at 245 C, 8.94 mV from the thermocouple
Figure: The reflow peak.

Cooling

From 4.1 s the oven cools. At 4.41 s the monitor still shows REFLOW at 220.50 C; at 4.91 s, 176.50 C, the sketch says COOLING, the red LED goes out and the buzzer gives one beep - the reflow is over. The LCD keeps the peak: "Pk245".

MAX31855 Proteus simulation pop-up: the oven cooling down
Figure: Cooling.

An Unplugged Probe

At 5.6 s the DEMO unplugs the probe from the terminal block for 0.3 s. The next conversion detects it: the frame becomes 0x7FFD1C51 - bit 0 (OC) and bit 16 set, and the probe field filled with ones, +2047.75 C exactly as the datasheet describes. The sketch checks bits 2-0 before anything else and shows "PROBE OPEN!" on the LCD, flashes the red LED and beeps; the monitor prints "FAULT PROBE OPEN!" at 5.66 s. The pop-up at 5.74 s shows the red banner, the faulty frame and a red cross over the terminal block on the board.

MAX31855 Proteus simulation pop-up: the probe unplugged, the OC bit set and +2047.75 C in the probe field
Figure: The probe unplugged.

At 5.9 s the probe is back: the next frame reads 104.25 C, COOLING, and at 6.35 s the oven is below 100 C - the LCD shows DONE with the green LED. The board has started to cool too, 27.5 C. In all the sketch read 24 frames while the chip made 90 conversions: the conversions run every 70 ms whether anybody reads them or not.

MAX31855 Proteus simulation pop-up: the probe back, the oven nearly cool
Figure: The probe back.

The Graphs, the Event Log and the Check Page

The Graphs page plots the true probe temperature next to the frame's probe field - a staircase of 0.25 C steps that follows it closely - the board's temperature and the fault. The Event log lists the oven's stages and the fault. The Check page sums up the run: the supply at 5.00 V on the board's regulator; 24 frames read, the last one 32 clocks long; the probe connected again at about 96 C; the board at 27.5 C, inside the range where the cold-junction error is under 2 C; and 90 conversions.

MAX31855 Proteus simulation graphs: the probe, the frame's probe field, the board and the fault
Figure: The Graphs page.
MAX31855 Proteus simulation Event log: the oven stages and the unplugged probe
Figure: The Event log.
MAX31855 Proteus simulation Check page after the demo run
Figure: The Check page.

The Arduino's built-in serial monitor prints a line every 500 ms: the time, the oven, the board, the stage and the whole frame in hex - eight digits, printed one by one because Serial.print(value, HEX) drops the leading zeros - and a FAULT line when a fault bit is set.

Arduino UNO V4.0 serial monitor in the MAX31855 Proteus simulation: the oven, the board, the stage and the frame
Figure: The Arduino's monitor.

MAX31855, MAX6675 or MAX31865?

Our MAX6675 Thermocouple Library for Proteus is the older chip: it reads 0 to 1024 C in 0.25 C steps and reports only an open probe. The MAX31855 reads below zero too, gives the board temperature and reports shorts as well - it is the better choice for new designs. For precise measurements up to a few hundred degrees a platinum RTD is more accurate than any thermocouple; our MAX31865 RTD Sensor Library for Proteus covers that sensor.

Better Accuracy: the NIST Correction

The MAX31855 treats the K-type thermocouple as perfectly linear, 41.276 microvolts per degree. A real K type bends a little, so the chip's reading can be off by a degree or two in some ranges. When that matters, work backwards: turn the reading into the thermocouple voltage, add the voltage for the board temperature, and convert the total with the official K-type polynomials. The model reads the probe as an ideal K type, so the simulation shows the chip at its best.

Try It Yourself

  • Click U1 while the simulation runs and use the chips: 25, 100, 250 and 1000 C set a steady probe; Unplug and Short GND set a fault.
  • Set FAULT to SCG: the sketch shows SHORT TO GND! and never prints a temperature.
  • Set PROFILE to STEADY and TEMP to -100: the signed shift gives -100.00 C.
  • Hold CS low between reads in the sketch: the frame stops changing.
  • Read only 16 bits: the probe temperature and the fault flag are still there, but not the three fault bits.

Ideas to Extend the Demo

  • Control the oven: switch a solid-state relay to follow the reflow profile with a PID loop.
  • Log the profile to an SD card and plot it afterwards.
  • Use two boards on the same CLK and DO with separate CS pins for two probes.

Your Own Sketches

The demo sketch is in the zip file, and you can change it in the Arduino IDE. New to Arduino? Start with our Arduino Tutorial for Beginners. Export the compiled binary, and set the UNO's PROGRAM property to the new file. Our guide on How to get the HEX file from Arduino shows you where the file ends up.

Things to Know Before Using a Real MAX31855

  • K type only: the chip is made for one thermocouple type - the K version reads K-type wire.
  • Ungrounded probes: a probe whose tip touches its metal sheath or a grounded oven reads as a fault.
  • Keep the board cool: it is the cold junction - mount it away from the heat.
  • Polarity: swapped leads give a reading that goes the wrong way; yellow is +, red is -.
  • Noise: twisted thermocouple wire and a small capacitor across the input keep the readings steady.

Troubleshooting

  • The frame is 0xFFFFFFFF: nothing answers on DO - check the wiring and the supply.
  • The temperature reads 2047.75 C: the probe is open - check the terminal block.
  • The readings never change: CS stays low - the output only updates while CS is high.
  • The temperature moves the wrong way: the probe leads are swapped.
  • The part is not simulated: TEPMAX31855.DLL is missing from MODELS and from the project folder.

Limitations of the Simulation

  • The frame, the timing, the conversions and the faults follow the MAX31855 datasheet; the board is our own drawing.
  • Our own figures: the first result 0.1 s after power-on, a little noise, the board warming beside the oven and the DEMO profile in fast time.
  • Not modelled: the chip's own error from its straight-line K-type approximation, thermocouple types other than K and noise pickup on long wires.
  • Arduino is a name of Arduino; this library is not made or endorsed by Arduino, Labcenter or the maker of the MAX31855.
  • Tested in Proteus 8.5 in November 2026 (the demo as shipped). Proteus 7 is not supported.

So, that was all about the MAX31855 Thermocouple Library for Proteus Simulation. I hope it helps you measure the hot side of your projects with confidence. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!


Comments

0

Join the conversation