PT100 Arduino MAX31865 Guide: 2, 3 and 4-Wire RTD Temperature
PT100 with Arduino and MAX31865: 2, 3 and 4-wire wiring, the 430 Ω reference resistor, -200 to 850 °C, Uno, ESP32 and Pico code, and RTD vs thermocouple.
Pairing a PT100 with an Arduino gives you one of the most accurate temperature measurements you can get in hobby electronics. A PT100 is a platinum resistor (RTD) whose resistance changes very regularly with temperature; it reads exactly 100 Ω at 0 °C and can measure from -200 °C to +850 °C. But because its resistance only changes by 0.385 Ω per degree, reading it directly with the Arduino's analog input would be both very coarse and inaccurate. This is where the MAX31865 comes in: it drives the PT100 with a stable current, measures it with a 15-bit ADC and sends the result over SPI.
In this guide you'll see, with real numbers, how the PT100 and PT1000 work, what the MAX31865's reference resistor is for and how 2, 3 or 4-wire wiring affects accuracy. We'll write Arduino Uno code with the Adafruit MAX31865 library, an oven thermostat with a solid-state relay on the ESP32, and a library-free MicroPython version for the Raspberry Pi Pico. In the final sections we'll compare the PT100 with a thermocouple and look at industrial and oven applications and the most common mistakes.
What are the PT100 and PT1000 and how do they work?
An RTD (Resistance Temperature Detector) relies on the fact that a metal's resistance rises with temperature. Platinum is ideal for the job: it's chemically stable, gives the same value for years, and its resistance-temperature relationship is defined by the Callendar-Van Dusen equation in the IEC 60751 standard. The number in the name is the resistance at 0 °C: a PT100 is 100 Ω and a PT1000 is 1000 Ω. The PT1000 changes ten times more per degree (3.85 Ω/°C), so it's less affected by long cables. Standard sensors come in accuracy classes: class B has a tolerance of ±(0.3 + 0.005·|t|) °C and class A ±(0.15 + 0.002·|t|) °C, so at 100 °C class B can be off by ±0.8 °C and class A by ±0.35 °C.
| Temperature | PT100 resistance | PT1000 resistance |
|---|---|---|
| -200 °C | 18.52 Ω | 185.2 Ω |
| -100 °C | 60.26 Ω | 602.6 Ω |
| 0 °C | 100.00 Ω | 1000.0 Ω |
| 25 °C | 109.73 Ω | 1097.3 Ω |
| 100 °C | 138.51 Ω | 1385.1 Ω |
| 200 °C | 175.86 Ω | 1758.6 Ω |
| 400 °C | 247.09 Ω | 2470.9 Ω |
| 600 °C | 313.71 Ω | 3137.1 Ω |
| 850 °C | 390.48 Ω | 3904.8 Ω |
What is the MAX31865 and what does it do?
The MAX31865 is a converter made by Analog Devices (formerly Maxim) specifically for RTD measurement. Inside it has a bias voltage that drives the sensor, a 15-bit ADC that makes a ratiometric measurement, a filter that rejects 50 or 60 Hz mains noise, and fault detection circuitry that catches open wires and short circuits. The chip doesn't calculate temperature directly; it gives the ratio of the sensor resistance to the reference resistor as a 15-bit number. Converting that to temperature is the job of the Arduino library. Adafruit's board pairs the chip with a 3.3 V regulator and level shifting, so it works directly with both the 5 V Uno and the 3.3 V ESP32.
| Feature | MAX31865 |
|---|---|
| ADC resolution | 15 bits (about 0.03 °C with a PT100) |
| Total accuracy | 0.5 °C worst case (chip contribution) |
| Supported sensors | PT100 to PT1000, 2, 3 or 4-wire |
| Interface | SPI, mode 1 or 3, up to 5 MHz |
| Conversion time | About 62.5 ms with the 50 Hz filter, 52 ms at 60 Hz |
| Chip supply | 3.0–3.6 V (3–5 V input on the Adafruit board) |
| Fault detection | Open wire, short circuit, threshold exceeded, over/under voltage |
The reference resistor: 430 Ω or 4300 Ω?
The MAX31865 passes the same bias current through the PT100 and through a precision reference resistor (Rref) on the board, then measures the ratio of the two voltages. The beauty of this method is that small drifts in the bias voltage don't affect the result. The code that's read is converted to resistance with: R = Rref × code / 32768. Since the code can be at most 32767, the highest measurable resistance equals Rref. PT100 boards use 430 Ω: it easily covers the 390.48 Ω at 850 °C and gives a resolution of 430 / 32768 = 0.013 Ω, or about 0.034 °C. PT1000 boards use 4300 Ω for the same reason. The RREF value in your code must match the resistor on your board exactly; otherwise all readings shift proportionally. The sensor's own value, 100 or 1000 Ω, goes into RNOMINAL.
2, 3 and 4-wire connection: how does the wire count affect accuracy?
The copper wires that connect the sensor to the MAX31865 have resistance too, and in a 2-wire connection that resistance adds directly to the PT100. Let's work through an example: copper wire with a 0.22 mm² cross-section has about 0.078 Ω per metre. With a 2 metre cable, there and back adds up to 4 metres, or 0.31 Ω. That's an error of 0.31 / 0.385 = about 0.8 °C, and with a 10 metre cable it exceeds 4 °C. In a 3-wire connection the third wire lets the chip measure and subtract the cable resistance; as long as the wires have the same length and cross-section, the error drops to almost zero. In a 4-wire connection the current flows through one pair of wires, the voltage is measured on the other pair, and the cable resistance is taken out completely. Using a PT1000 also cuts the 2-wire error by a factor of ten.
| Connection | Cable resistance | Typical error with 2 m of cable (PT100) | When to use it |
|---|---|---|---|
| 2-wire | Added to the reading | +0.8 °C (+4 °C at 10 m) | Very short cable, PT1000, rough readings |
| 3-wire | Subtracted, assuming equal wires | Below 0.1 °C | Most common in industry, good balance |
| 4-wire | Completely eliminated | Practically zero | Lab work, calibration, highest accuracy |
- 4-wire (factory setting): Don't touch any solder jumpers on the Adafruit board. Use a multimeter to find the wire pairs that read about 0 Ω to each other; put one pair in the left terminal block and the other in the right.
- 3-wire: Solder the '2/3 Wire' jumper closed; cut the thin trace on the left side of the two-way jumper above Rref and solder its right side ('3'). Put the two wires that read 0 Ω to each other into F+ and RTD+ on the right, and the third wire into either terminal on the left.
- 2-wire: Solder the jumpers next to the terminal blocks closed, or join the terminals on each side with a short piece of wire; put one sensor wire on the left side and the other on the right.
- Select the same wire count in the code as on the board: MAX31865_2WIRE, MAX31865_3WIRE or MAX31865_4WIRE.
MAX31865 wiring: Uno, ESP32 and Pico
| MAX31865 pin | Arduino Uno | ESP32 | Raspberry Pi Pico | Role |
|---|---|---|---|---|
| Vin | 5V | 3V3 | 3V3 (OUT) | Supply; also sets the logic level |
| GND | GND | GND | GND | Common ground |
| CLK (SCK) | D13 | GPIO 18 | GP18 | SPI clock |
| SDO | D12 | GPIO 19 | GP16 | Data from chip to board (MISO) |
| SDI | D11 | GPIO 23 | GP19 | Data from board to chip (MOSI) |
| CS | D10 | GPIO 5 | GP17 | Chip select (active LOW) |
| RDY | Not connected | Not connected | Not connected | Conversion-ready signal; not used by the library |
Step by step: reading a PT100 with an Arduino Uno
- Search for Adafruit MAX31865 in the Library Manager and install it; accept the Adafruit BusIO dependency if asked.
- Set the jumpers on your board for your sensor's wire count (most industrial probes are 3-wire).
- Connect the MAX31865 to the Uno's SPI pins as in the table and put the sensor in the terminals.
- Check RREF and RNOMINAL in the code against your board and sensor, and pick the wire count in begin().
- Upload the code and open the Serial Monitor at 115200 baud; at room temperature you should see about 108–110 Ω and 20–25 °C.
- Dip the sensor into ice water: the reading should be close to 0 °C. It's the cheapest way to verify your setup.
1#include <Adafruit_MAX31865.h>
2
3// Donanım SPI: SDI D11, SDO D12, CLK D13, CS D10 / hardware SPI: SDI D11, SDO D12, CLK D13, CS D10
4Adafruit_MAX31865 rtd = Adafruit_MAX31865(10);
5
6const float RREF = 430.0; // PT100 kartı 430 Ω, PT1000 kartı 4300 Ω / PT100 board 430 Ω, PT1000 board 4300 Ω
7const float RNOMINAL = 100.0; // PT100: 100 Ω, PT1000: 1000 Ω (0 °C'deki direnç / resistance at 0 °C)
8
9void printFault(uint8_t fault) {
10 Serial.print(F("Hata / Fault 0x"));
11 Serial.println(fault, HEX);
12 if (fault & MAX31865_FAULT_HIGHTHRESH) Serial.println(F("RTD yuksek esik: kopuk tel? / high threshold: open wire?"));
13 if (fault & MAX31865_FAULT_LOWTHRESH) Serial.println(F("RTD dusuk esik: kisa devre? / low threshold: short?"));
14 if (fault & MAX31865_FAULT_REFINLOW) Serial.println(F("REFIN- > 0,85 x Vbias"));
15 if (fault & MAX31865_FAULT_REFINHIGH) Serial.println(F("REFIN- < 0,85 x Vbias (FORCE- acik / open)"));
16 if (fault & MAX31865_FAULT_RTDINLOW) Serial.println(F("RTDIN- < 0,85 x Vbias (FORCE- acik / open)"));
17 if (fault & MAX31865_FAULT_OVUV) Serial.println(F("Asiri/dusuk gerilim / Over/under voltage"));
18 rtd.clearFault();
19}
20
21void setup() {
22 Serial.begin(115200);
23 rtd.begin(MAX31865_3WIRE); // 2 telli: MAX31865_2WIRE, 4 telli: MAX31865_4WIRE / 2-wire or 4-wire
24 rtd.enable50Hz(true); // 50 Hz şebeke gürültüsünü bastır (Avrupa, Türkiye) / reject 50 Hz mains noise
25}
26
27void loop() {
28 uint16_t raw = rtd.readRTD(); // 15 bit oran / 15-bit ratio
29 float ohms = RREF * raw / 32768.0; // R = Rref x kod / 2^15
30 float tempC = rtd.calculateTemperature(raw, RNOMINAL, RREF); // Callendar-Van Dusen
31
32 uint8_t fault = rtd.readFault();
33 if (fault) {
34 printFault(fault);
35 } else {
36 Serial.print(F("Ham / Raw: "));
37 Serial.print(raw);
38 Serial.print(F(" Direnc / Resistance: "));
39 Serial.print(ohms, 3);
40 Serial.print(F(" ohm Sicaklik / Temp: "));
41 Serial.print(tempC, 2);
42 Serial.println(F(" C"));
43 }
44 delay(1000);
45}
46readRTD() first switches the bias on, waits 10 ms, starts a single conversion and reads the result 65 ms later, then switches the bias off again. This reduces self-heating of the sensor from the current, but each reading takes about 75 ms. We read the raw code once and convert it both to resistance and, with calculateTemperature(), to temperature; if we also called temperature(), the chip would take a second measurement. If readFault() returns a fault register, printFault() explains which bit is set. The most common ones are the high threshold (usually an open or loose wire) and the low threshold (a short circuit). The enable50Hz(true) line rejects noise from 50 Hz mains, as used in Europe; in 60 Hz countries such as the USA, set it to false.
A PT100 oven thermostat with the ESP32
On the ESP32 we connect the MAX31865 to the VSPI pins and turn the reading into a simple thermostat that drives a solid-state relay (SSR). The heater switches on when the temperature drops 3 °C below the target and off when it rises 3 °C above it; this hysteresis stops the relay from constantly clicking on and off. The most important part is the safety logic: if the MAX31865 reports a fault or the temperature goes to a nonsensical value, the heater is switched off immediately. A broken sensor wire can produce a high reading on its own, and code that leaves the heater on in that case is a real fire risk. You can change the target by typing a number into the Serial Monitor. For smoother control, you can extend this skeleton with PID control.
1#include <Adafruit_MAX31865.h>
2
3// ESP32 VSPI: SCK 18, MISO 19 (SDO), MOSI 23 (SDI), CS 5
4Adafruit_MAX31865 rtd = Adafruit_MAX31865(5);
5
6const float RREF = 430.0;
7const float RNOMINAL = 100.0;
8const int SSR_PIN = 26; // katı hal rölesi girişi (SSR) / solid-state relay input
9float setPoint = 180.0; // hedef fırın sıcaklığı (°C) / target oven temperature (°C)
10const float HYST = 3.0; // histerezis: 177 °C'de aç, 183 °C'de kapat / hysteresis: on at 177, off at 183
11const float MAX_SAFE = 300.0; // bu değerin üstü arıza sayılır / above this is treated as a fault
12bool heating = false;
13unsigned long lastRead = 0;
14
15void setHeater(bool on) {
16 heating = on;
17 digitalWrite(SSR_PIN, on ? HIGH : LOW);
18}
19
20void setup() {
21 Serial.begin(115200);
22 pinMode(SSR_PIN, OUTPUT);
23 setHeater(false); // güvenli başlangıç: ısıtıcı kapalı / safe start: heater off
24 rtd.begin(MAX31865_3WIRE);
25 rtd.enable50Hz(true);
26 Serial.println(F("Hedefi degistir: seri porta sayi yaz (or. 200) / type a number to change the set point"));
27}
28
29void loop() {
30 if (Serial.available()) { // seri porttan yeni hedef / new set point from serial
31 float v = Serial.parseFloat();
32 if (v > 20 && v < 260) setPoint = v;
33 }
34 if (millis() - lastRead < 500) return; // saniyede 2 ölçüm / two readings per second
35 lastRead = millis();
36
37 uint16_t raw = rtd.readRTD();
38 uint8_t fault = rtd.readFault();
39 float t = rtd.calculateTemperature(raw, RNOMINAL, RREF);
40
41 if (fault || t < -50 || t > MAX_SAFE) { // kopuk tel, kısa devre ya da saçma değer / open, short or nonsense
42 setHeater(false);
43 rtd.clearFault();
44 Serial.printf("ARIZA / FAULT 0x%02X, isitici kapali / heater off\n", fault);
45 return;
46 }
47 if (!heating && t < setPoint - HYST) setHeater(true);
48 if (heating && t > setPoint + HYST) setHeater(false);
49 Serial.printf("T=%.2f C hedef/set=%.0f isitici/heater=%s\n", t, setPoint, heating ? "ON" : "OFF");
50}
51PT100 with the Raspberry Pi Pico and MicroPython
On the Pico you don't need a ready-made library; reading the MAX31865's registers directly over SPI is short and instructive. The configuration register (0x00) holds the bias, one-shot, wire count and filter bits; when writing, the top bit of the address is set (0x80). The RTD value lives in registers 0x01 and 0x02: the lowest of the 16 bits is the fault flag and the remaining 15 bits are the measurement. If the fault flag is set, the details are read from register 0x07. The MAX31865 works in SPI mode 1 or 3, which is why polarity=0, phase=1 is chosen. The temperature calculation is the same Callendar-Van Dusen formula the Adafruit library uses; below 0 °C a fifth-order polynomial takes over.
1# PT100 + MAX31865, Raspberry Pi Pico (MicroPython)
2# SPI0: SCK GP18, SDI (MOSI) GP19, SDO (MISO) GP16, CS GP17
3from machine import Pin, SPI
4import time, math
5
6RREF = 430.0 # referans direnci (Ω) / reference resistor (Ω)
7R0 = 100.0 # PT100: 100 Ω, PT1000: 1000 Ω
8A = 3.9083e-3 # IEC 60751 katsayıları / coefficients
9B = -5.775e-7
10BASE = 0x11 # 3 telli (0x10) + 50 Hz filtre (0x01) / 3-wire + 50 Hz filter
11
12spi = SPI(0, baudrate=1000000, polarity=0, phase=1, # SPI mod 1 / SPI mode 1
13 sck=Pin(18), mosi=Pin(19), miso=Pin(16))
14cs = Pin(17, Pin.OUT, value=1)
15
16def write_reg(addr, value):
17 cs.value(0)
18 spi.write(bytes([addr | 0x80, value])) # yazmada adresin 7. biti 1 / bit 7 set for writes
19 cs.value(1)
20
21def read_regs(addr, n):
22 cs.value(0)
23 spi.write(bytes([addr & 0x7F]))
24 data = spi.read(n)
25 cs.value(1)
26 return data
27
28def read_rtd():
29 write_reg(0x00, BASE | 0x80 | 0x02) # bias aç + hataları temizle / bias on + clear faults
30 time.sleep_ms(10)
31 write_reg(0x00, BASE | 0x80 | 0x20) # tek ölçüm başlat / start a one-shot conversion
32 time.sleep_ms(65)
33 msb, lsb = read_regs(0x01, 2)
34 write_reg(0x00, BASE) # bias kapat, kendi kendini ısıtma azalsın / bias off, less self-heating
35 raw = (msb << 8) | lsb
36 return raw >> 1, raw & 0x01 # 15 bit değer, hata bayrağı / 15-bit value, fault flag
37
38def to_celsius(ohms):
39 # Callendar-Van Dusen, 0 °C üstü / above 0 °C
40 t = (math.sqrt(A * A - 4 * B * (1 - ohms / R0)) - A) / (2 * B)
41 if t >= 0:
42 return t
43 r = ohms / R0 * 100 # 0 °C altı için polinom / polynomial below 0 °C
44 return (-242.02 + 2.2228 * r + 2.5859e-3 * r ** 2 - 4.8260e-6 * r ** 3
45 - 2.8183e-8 * r ** 4 + 1.5243e-10 * r ** 5)
46
47while True:
48 code, fault = read_rtd()
49 if fault:
50 status = read_regs(0x07, 1)[0]
51 print("Hata / Fault: 0x%02X" % status)
52 else:
53 ohms = RREF * code / 32768
54 print("R = %.3f ohm T = %.2f C" % (ohms, to_celsius(ohms)))
55 time.sleep(1)
56PT100 or thermocouple?
| Feature | PT100 + MAX31865 | Type K thermocouple + MAX6675 / MAX31855 |
|---|---|---|
| Range | -200 to +850 °C (in practice, as far as the probe allows) | -200 to +1250 °C (MAX6675: 0–1024 °C) |
| Accuracy | Class A/B ±0.35–0.8 °C (at 100 °C) | Standard class ±2.2 °C or 0.75% |
| Stability | Same value for years | Can drift over time and at high temperatures |
| Response time | Slower (depends on the probe body) | Very fast, under a second for fine-tip types |
| Cable | Ordinary copper, 3 or 4-wire | Needs special thermocouple extension cable |
| Price | More expensive | Cheaper |
| Best for | Precise processes, food, lab, ovens up to 400 °C | Kilns, exhaust, forges, above 1000 °C |
In short, wherever 0.5 °C matters and the temperature stays below 400–500 °C, the PT100 is the better choice; at very high temperatures or for fast-changing readings, the thermocouple wins. For thermocouple details, see the MAX6675 thermocouple guide, and to see every option side by side, the temperature sensor comparison.
Industrial and oven applications
- Choosing a probe: 850 °C is only for special probes with ceramic elements. Ready-made probes are usually limited by their cable: PVC about 105 °C, silicone 200 °C, PTFE (Teflon) 260 °C, fibreglass around 400 °C. For an oven, choose a mineral-insulated (MI) probe.
- Pizza and bread ovens: The 250–450 °C range is easy for a PT100; place the probe near the cooking area, not on the heating element.
- 3D printer hotend: For high-temperature filaments many printers use a PT1000 or PT100 instead of a thermistor; with a PT1000 the cable error is tiny.
- Food and sous vide: With a stainless steel sheathed probe you can get close to 0.1 °C stability; a class A probe is ideal for a water bath.
- Industrial processes: In factories a PT100 is usually connected to a PLC through a head-mounted 4–20 mA transmitter; the MAX31865 lets you do the same job directly with a microcontroller.
- Refrigeration and HVAC: In -40 °C freezers and air conditioning lines, a 3-wire PT100 gives reliable monitoring.
Common mistakes and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Reads -242 °C or 0 Ω | No SPI connection, wrong CS or a short | Check that SDI/SDO aren't swapped and the CS pin; look for a short in the sensor wires |
| Around 988 °C with a high threshold fault | Broken sensor wire or loose terminal | Tighten the terminals and measure the sensor with a multimeter (~108 Ω at room temperature) |
| Reading a few degrees too high | Cable resistance in 2-wire mode or wrong jumper setting | Switch to 3 or 4-wire and match the wire count in code to the board |
| All readings shifted proportionally | RREF in the code differs from the board | Measure the reference resistor and correct RREF |
| Nonsense values with a PT1000 | RNOMINAL left at 100 | Set RNOMINAL = 1000 and RREF = 4300 |
| Values jitter | Mains noise, long unshielded cable | enable50Hz(true), use shielded cable and ground the shield at one end |
The PT100 and MAX31865 pair is a serious temperature measurement solution that scales from a student project to a factory process. If you'd like to start measuring temperature with simpler sensors, show it on a screen or log it, the DHT11, NTC and ESP32 temperature projects in the BlueGrays app walk you through the circuit diagram and ready-made code step by step, and you can then make those projects more precise with a PT100.
Frequently asked questions
What's the difference between a PT100 and a PT1000?
A PT100 has 100 Ω at 0 °C and a PT1000 has 1000 Ω; both follow the same platinum curve. Because the PT1000 changes ten times more per degree, it's much less affected by cable resistance and gives good results even with 2 wires. To use a PT1000 with the MAX31865, you need a board with a 4300 Ω reference resistor and RNOMINAL = 1000.
Can I connect a PT100 to an Arduino without a MAX31865?
Technically yes, with a voltage divider and an analog input, but the result is very coarse. The Uno's 10-bit ADC gives steps of about 4.9 mV at 5 V, and the PT100's 0.385 Ω/°C change works out to a resolution of several degrees. The current through the sensor also heats it up. For accurate readings you need a dedicated RTD converter such as the MAX31865.
How do I connect a 3-wire PT100?
On a 3-wire probe two wires share the same colour and read about 0 Ω to each other on a multimeter; these two go to the MAX31865's F+ and RTD+ terminals, and the third, differently coloured wire goes to one of the terminals on the other side. On the Adafruit board the '2/3 Wire' jumper is closed and the '3' side is soldered. In code, select begin(MAX31865_3WIRE).
Why does my MAX31865 show 988 °C or -242 °C?
These aren't real temperatures but signs of a wiring fault. Around 988 °C with a high threshold fault usually means a broken sensor wire or a loose terminal. -242 °C corresponds to a 0 Ω reading: there's no SPI connection, the CS pin is wrong or the sensor wires are shorted.
What's the maximum temperature a PT100 can measure?
Standard PT100 elements are specified from -200 °C to +850 °C. The real limit of the probe you buy, though, is usually set by its cable insulation and body material: silicone-cable probes handle about 200 °C and PTFE-cable probes 260 °C. Above 400 °C you need special mineral-insulated probes.
Does the MAX31865 work with the ESP32?
Yes. Since the Adafruit board can be powered from 3–5 V and has level shifting, you can connect Vin to 3V3 and use it directly on the VSPI pins (SCK 18, MISO 19, MOSI 23, CS 5). The Adafruit MAX31865 library compiles on the ESP32 without changes; you just pass 5 as the CS pin in the constructor.
Projects to build after reading this
See all projects
Temperature and Humidity with DHT11
How warm is your room, and is the air humid or dry? The DHT11 sensor measures temperature and humidity, and the Arduino writes the values on a two-line LCD screen, refreshing every couple of seconds.

Temperature Measurement with NTC and 2x16 Lcd Display
Measure the temperature around you with a sensor that looks like a tiny bead. This part, called an NTC, lets electricity through more easily as it warms up; the Arduino reads that change, turns it…

ESP32 DHT22 Temperature and Humidity (with LCD Display)
This project measures ambient temperature and humidity using a DHT22 sensor and displays the data in real time on a 16x2 I2C LCD. Data is read from the sensor using the one-wire protocol via the Adafruit DHT library. This project serves as the foundation for IoT weather stations, smart home automation, or environmental monitoring systems in greenhouses. Communication with the DHT22 is established via the ESP32's GPIO 4 pin.

ESP32 Temperature Data Logger (DHT22 + DS1307 RTC + microSD + OLED)
Build a timed temperature and humidity logger with the ESP32! A DHT22 sensor reads temperature and humidity once a minute, and each reading is saved to a microSD card in CSV format with a real-time stamp from the DS1307 RTC module. The OLED display shows the latest temperature, humidity, timestamp and total number of records live, in large text.

Using LCD Screen with I2C
Give your Arduino its own screen and make it write its first message. The two-line LCD screen hooks up with just a few wires; a greeting appears on the top line, then a second message on the bottom…

ESP32 I2C LCD Display (16x2)
In this project we connect a 16x2 character LCD to the ESP32 over I2C and display text. With I2C, just 2 data pins (SDA and SCL) control the screen, instead of the 6+ pins a classic parallel connection wastes. The code prints a fixed message on the first line and a counter that goes up every second on the second. At startup an I2C scanner also prints the display's address to the Serial Monitor (usually 0x27 or 0x3F).

Lighting 220V Bulb with Push Button
As long as you hold the button, a real 220-volt bulb stays lit, and it goes out the moment you let go.

Using a Buzzer
Ever wondered how a doorbell or an alarm makes its sound? The Arduino makes a small buzzer beep at short intervals: beep, pause, beep, pause.
More articles
BlueGrays app
Build this circuit step by step on your phone
Wiring diagram, code and parts list on one screen. 500+ Arduino, ESP32, ESP8266, Pico, mBot and micro:bit projects ready to build.
Scan with your phone
Point your camera at the code and your phone's app store opens.
or open the store

