Hello friends, I hope you all are doing great. Today, I am going to share the new MAX31865 RTD Sensor Library for Proteus Simulation. A PT100 platinum probe is the thermometer of industry - ovens, kilns, labs and food processing trust it for its accuracy and stability - and the MAX31865 is the chip that turns its tiny change of resistance into a clean 15-bit number over SPI. With this library you can run a full Proteus simulation of the module with its probe, register by register, so that the code you test here works with the real one.
MAX31865 RTD Sensor Library for Proteus
Latest version: V1.0 (November 2026, this tutorial)
Other temperature and weather sensors: DHT11 / DHT22 · DS18B20 · BME280 · BMP280 · SHT31 · AHT20 · BME680 · MAX6675 · MLX90614 · AMG8833
Other health sensors: Heart Beat · MAX30102 · Flex Sensor
Helping Tools
- Serial Monitor Advance: a serial terminal window for the UART of your board
- Serial Monitor Expert: the serial monitor with extra debugging tools
- LCD Library for Proteus V3.0: 16x2, 20x4 and I2C LCDs to show your readings
The module is drawn with its probe and comes alive at run time: its PWR LED works, a DRDY LED blinks with every conversion, and the end of the probe glows with its temperature - or frosts over in ice water. The demo is an oven thermometer: an Arduino reads the probe as a small oven heats up, shows the temperature with a live trend on an OLED, and lights a HOT LED above 150 C.
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 thermistor board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the MAX31865 RTD Sensor Library for Proteus Simulation:
What is an RTD, and What Does the MAX31865 Do?
An RTD - a resistance temperature detector - is a fine platinum wire or film whose resistance rises with temperature in a very well-known way. A PT100 has exactly 100 ohm at 0 C and about 138.5 ohm at 100 C: roughly 0.385 ohm per degree. That is a small change, so you cannot simply put it in a voltage divider on an Arduino pin and expect good results. The MAX31865 drives a bias current through the probe and a precision reference resistor in series, and its 15-bit ADC measures the ratio of the two voltages. The ratio does not care about the supply or the current - only about the two resistances.
| MAX31865 module with a PT100 | |
|---|---|
| Sensor | PT100 (or PT1000 with a 4300 ohm reference), 2, 3 or 4 wires |
| Result | 15-bit code = R(RTD) / RREF x 32768, RREF = 430 ohm on the module |
| Resolution | about 0.013 ohm, 0.03 C |
| Conversions | automatic every 16.7 ms (60 Hz filter) or 20 ms (50 Hz), or one at a time |
| Interface | SPI modes 1 and 3, up to 5 MHz; DRDY low when a result is ready |
| Faults | high and low thresholds, an open probe, broken force wires |
| Board | 28 x 25 mm: a 4-way screw terminal F+, RTD+, RTD-, F-, the 2/3/4-wire jumpers, a 3.3 V regulator |
From a Code to Degrees
Read the two RTD bytes, shift right by one (bit 0 is the fault flag) and you have the code. The resistance is code x 430 / 32768. The temperature comes from the PT100's standard curve, IEC 60751: R = 100 (1 + 3.9083e-3 T - 5.775e-7 T²) above 0 C. That is a quadratic, so the sketch solves it directly; below 0 C a third term joins in, and a close fit does the job.
Why 2, 3 or 4 Wires?
The probe sits at the end of a cable, and the cable has resistance too - perhaps 0.4 ohm per wire. With two wires both of them are counted as part of the RTD: 0.8 ohm, which a PT100 reads as about 2 C too hot. A 3-wire probe lets the MAX31865 measure one lead and subtract it; with 4 wires the force and sense pairs are separate and the leads drop out completely. Our model counts the leads exactly this way: set WIRES to 2 and watch the reading climb.
The Registers
| Read / write | Register | What it holds |
|---|---|---|
| 00h / 80h | CONFIG | VBIAS, auto / 1-shot, 3-wire, the fault-detection cycle, the fault clear, the 50 / 60 Hz filter |
| 01h, 02h | RTD MSB, LSB | the 15-bit code in D15..D1, the fault flag in D0 |
| 03h - 04h / 83h - 84h | HIGH FAULT THRESHOLD | a code; FFFFh after reset |
| 05h - 06h / 85h - 86h | LOW FAULT THRESHOLD | a code; 0000h after reset |
| 07h | FAULT STATUS | above the high, below the low threshold; FORCE- open; over / under voltage |
Features of the MAX31865 RTD Sensor Library for Proteus Simulation
- A real-looking module: the blue board at its real size, 28 x 25 mm, with the screw terminal, the MAX31865, the reference resistor, the regulator, the 2/3/4-wire jumpers, the header and our small TEP mark - and the stainless PT100 probe on its cable.
- Animated: a PWR LED and a DRDY LED (our addition) that blinks with the conversions, and a probe whose end glows with the heat or frosts in ice water.
- The real registers: CONFIG, the RTD code with its fault flag, the fault thresholds and status, auto and 1-shot conversions with their times, DRDY, SPI modes 1 and 3 with auto-increment.
- A real PT100: the IEC 60751 curve, 2/3/4 wires with the leads' error, a probe that takes its time to follow the heat, and open or shorted probes for the fault code.
- A scene: a small oven heating to 180 C with its door opened, plus chips for the room, ice water, boiling water and a hot oven.
- A pop-up: the probe in its scene, the probe's and the measured temperature and the PT100's ohms over the run, eight live tiles, graphs, an event log and a check page.
- A complete package: about 2.3 MB with the library, our OLED, 5 mm LED and resistor libraries, our Arduino UNO V4.0 and the demo, without the source code of the model.
The MAX31865 in Proteus
The device is MAX31865TEP in TEPMAX31865.LIB, under Sensors > Temperature, with the prefix U and the model TEPMAX31865.DLL. Search MAX31865 or RTD in Pick Devices. Seven pins along the bottom: VIN, GND, CLK, SDO, SDI, CS and RDY. Its properties: PROFILE (OVEN or STEADY), TEMP (for STEADY), WIRES (2, 3 or 4) and RREF (430 ohm).
Download MAX31865 RTD Sensor Library for Proteus Simulation
Click the button below to download MAX31865-RTD-Sensor-Library-for-Proteus-v1.0.zip (about 2.3 MB, without the source code of the models):
MAX31865 RTD Sensor Library for Proteus V1.0- README.txt: installation, the demo, the wiring, troubleshooting and the limits of the simulation.
- Proteus Library Files:
TEPMAX31865.LIB,TEPOLED12864.LIB,TEPLED5MM.LIB,TEPRESISTOR.LIBandArduinoV4TEP.LIB. - Proteus Model Files:
TEPMAX31865.DLL,TEPOLED.DLL,TEPLED5MM.DLL,TEPRESISTOR.DLLandTEPARDUINO.DLL. - Arduino Code: the demo sketch (no extra library).
- 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 MAX31865 RTD Sensor Library for Proteus Simulation
- Close Proteus and extract the whole zip file, for example to your Desktop.
- Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
- Copy the files from Proteus Model Files into the MODELS folder.
- Delete
TEPMAX31865.IDXfrom the LIBRARY folder if it is there. - Start Proteus, press P and search for MAX31865.
Proteus Simulation of an Oven Thermometer
Our demo watches a small oven. U1 is the MAX31865 with its PT100, PROFILE OVEN and a 3-wire probe: the room at first, the oven switched on at 2 seconds heading for 180 C, its door opened at 14 seconds and closed again at 17. Its CLK, SDO, SDI and CS go to D13, D12, D11 and D10 of our Arduino UNO Library for Proteus V4.0 - the hardware SPI pins - and RDY to D9. Our OLED SSD1306 Library for Proteus shows the readings, and two LEDs from our 5mm LED Library for Proteus sit beside it: HOT (red, D5) and FAULT (yellow, D6), each through 220 ohm. The Arduino's built-in monitor is the same window as our TEP Serial Monitor Advance for Proteus. Open MAX31865-RTD-ArduinoUnoV4.pdsprj.
The Sketch
The sketch uses the hardware SPI in mode 1 - the MAX31865 accepts modes 1 and 3, and the UNO in Proteus runs mode 1 (it has no modes 2 and 3 there). A register write is the address with bit 7 set, then the value. At start it writes CONFIG:
wr(0x00, 0xD3); // CONFIG: VBIAS on, auto, 3-wire, fault clear, 50 Hz filter
It sets the fault thresholds to the codes of 250 C and -50 C, so anything outside - an open probe reads full scale, a short reads zero - raises the fault flag. Then it waits for DRDY and reads both RTD bytes in one transfer:
uint16_t readRtd() { // 0x01 and 0x02 in one transfer (auto-increment); DRDY goes high
The code becomes ohms with the reference resistor, and the ohms become degrees with the PT100's quadratic:
if (r >= 100.0) return (-A + sqrt(A * A - 4 * B * (1 - r / 100.0))) / (2 * B);
A fault is read from 0x07, printed and cleared by writing CONFIG again with its fault-clear bit:
const byte f = rd(0x07);
Every 0.2 s a point goes into a 100-point trend, and the OLED shows the temperature in double-size digits, the trend scrolling from right to left and the PT100's resistance with the run's maximum.
MAX31865 Simulation Results
Open the project and press Run. The demo runs 20 simulated seconds and took 260 seconds on our PC with the pop-up open and the pictures being taken. Click the module for its pop-up. Every number below comes from one simulation run, the demo exactly as it ships.
The Room
At start the sketch writes CONFIG = 0xD3 and reads it back as 0xD1 - the fault-clear bit clears itself - and sets the thresholds to 0x738E (250 C) and 0x2FD0 (-50 C). The first conversion follows 20 ms later, and DRDY falls every 20 ms after that. In the room the probe sits at 22.00 C: 108.578 ohm, code 8274, which turns back into 22.01 C. The monitor prints "T 22.12 C R 108.615 ohm code 8277" - the noise of a real measurement in the last digits.
The Oven Heats Up
At 2 seconds the oven switches on. The air heats towards 180 C and the probe follows with its own lag: 85.1 C at 5 seconds (132.700 ohm, code 10112), 150.7 C at 9 seconds (157.609 ohm) - and the red HOT LED comes on as it passes 150 C. At 13 seconds the probe is at 172.0 C: 165.599 ohm, code 12619, which reads as 172.21 C. On the sheet the end of the probe glows orange, and the OLED's trend climbs from the bottom left.
The Door Opens
At 14 seconds the oven door opens. The air cools fast and the probe follows a moment later: 148.1 C at 15.5 seconds, 119.1 C at 18.5 seconds (145.745 ohm), and the HOT LED goes out below 150 C. The door closes at 17 seconds and the temperature turns up again - 134 C at 20 seconds. The highest reading of the run was 174.48 C, and the trend on the OLED draws the whole story: the climb, the plateau, the dip and the recovery.
The Graphs, the Event Log and the Check Page
The Graphs page plots the probe's temperature, the temperature measured from the code, the RTD resistance and DRDY. The Event log keeps the CONFIG writes, the first conversion and the scene. The Check page sums up the run: VIN 5.00 V, SPI mode 1 with five register writes, CONFIG 0xD1 (VBIAS on, auto, 3-wire, 50 Hz), 994 conversions - the last 151.474 ohm, code 11543, 134.37 C with the probe at 134.23 C - no faults, and the thresholds 0x738E and 0x2FD0.
The monitor shows the sketch's side: CONFIG read back, the thresholds, and a line every second.
RTD, Thermocouple, Thermistor or Digital Sensor?
Each temperature sensor has its place. A thermocouple - our MAX6675 Thermocouple Library for Proteus - reaches 1000 C and more and is cheap and tough, but its signal is tiny and its accuracy a few degrees. A thermistor - our NTC Thermistor Library for Proteus - is very sensitive and costs almost nothing, but it is strongly non-linear and limited to about 150 C. A digital sensor like the one in our DS18B20 Library for Proteus is the easiest to use, up to 125 C. The PT100 with the MAX31865 sits in between: from -200 to 850 C, accurate to a few tenths of a degree, stable for years, and interchangeable - any PT100 follows the same curve.
Try It Yourself
- Click Ice water: the probe frosts on the sheet and settles at 100.00 ohm - exactly 0 C.
- Click Boiling water: 138.51 ohm, 100 C.
- Set WIRES to 2: every reading climbs about 2 C - the leads counted as part of the RTD.
- Click Probe open: the code goes to 32767, the fault flag sets, FAULT STATUS reads 0x84, and the yellow LED lights.
- Change the filter to 60 Hz (CONFIG 0xD2) and watch the conversions come every 16.7 ms instead of 20.
Ideas to Extend the Demo
- Control the oven: switch a heater relay to hold 180 C.
- Log a sterilizer's temperature and prove it stayed above 121 C long enough.
- Read two MAX31865 modules on one SPI bus with two CS pins.
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 MAX31865
- The jumpers: set the 2/3/4-wire jumpers for your probe, and CONFIG D4 for 3 wires.
- PT100 or PT1000: a PT1000 needs a 4300 ohm reference - check the resistor on your board.
- SPI mode: mode 1 or 3; this demo uses mode 1 because the UNO in Proteus has no modes 2 and 3.
- Self-heating: the bias current warms the probe a little; turn VBIAS off between 1-shot readings if it matters.
- The probe's lag: a thick sheath takes seconds to follow a change - the demo's probe takes 1.5 s.
Troubleshooting
- The code reads 0 or 32767: the probe is shorted or open - read 0x07 and check the terminal.
- No conversions: VBIAS or the auto mode is off - write 0xC3 (or 0xD3 for 3 wires).
- A few degrees high: a 2-wire probe, or the wrong wire setting.
- Nothing happens in Proteus: the SPI mode is 2 or 3 - use mode 1.
- The part is not simulated:
TEPMAX31865.DLLis missing from MODELS and from the project folder.
Limitations of the Simulation
- The registers, the SPI protocol, the conversions and their times, DRDY, the code, the faults and the PT100's curve follow the maker's datasheet and IEC 60751; the module is our own drawing of a MAX31865 board, the probe drawn compact.
- Our own choices: the oven scene, the probe's 1.5 s lag, the leads' 0.8 ohm, 0.03 ohm of noise, an open probe read as full scale and a shorted one as zero.
- Not modelled: the input filter's settling after VBIAS, the over / under-voltage fault and the exact fault-detection timing.
- Arduino is a name of Arduino; this library is not made or endorsed by Arduino, Labcenter or Analog Devices (Maxim).
- Tested in Proteus 8.5 in November 2026 (the demo as shipped). Proteus 7 is not supported.
So, that was all about the MAX31865 RTD Sensor Library for Proteus Simulation. I hope it helps you build your oven controller, your kiln monitor or your lab thermometer before the real probe arrives - and shows that precision temperature is a simple thing at heart: a platinum wire, a reference resistor, and one ratio of the two. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!