Guides · 8 min read

ESP32 Projects with Display: 15 Ideas with OLED, TFT and E-Paper

15 ESP32 projects with display: OLED weather, TFT clock, e-paper calendar, CYD panel, LED matrix. Display types, libraries, pins, power and three sketches.

ESP32 projects with a display let you see the data coming over Wi-Fi, or whatever a sensor measures, at a glance without opening your phone. The ESP32 fetches the time, the weather or exchange rates from the internet, and the display shows them on your desk, on the wall or on the device itself. The choice ranges from a tiny monochrome OLED to a colour touch TFT, from e-paper that keeps its image even without power to an LED matrix you can read across the room.

In this article we first compare display types by resolution, pin count, library and power consumption, then give a table showing which display connects to which ESP32 pins. After that we collect 15 display project ideas in one table and share compiled, working code for three of them: an internet clock on an OLED, scrolling text on a MAX7219 matrix and sending text to the display from a web page. The BlueGrays projects mentioned by name really exist in the app; the rest are ideas.

0.96 inch I2C OLED display module
0.96 inch SSD1306 OLED: 128×64 pixels with only two signal wires. Most ESP32 display projects start with this one.

Display types for the ESP32: which one should you choose?

When choosing a display, answer four questions: What will you show (a few numbers, a chart, a touch interface)? From where will it be read (up close or from across the room)? How many pins are free? Will the device sit on mains power or run on a battery? The currents in the table below are approximate; they vary with backlight brightness, the number of lit pixels and the module.

DisplayResolution and colourInterface and signal pinsLibraryApproximate currentBest for
0.96" SSD1306 OLED128×64, monochromeI2C, 2 pins (SDA, SCL)Adafruit SSD1306 + GFX, U8g25–20 mAStatus screen, small clock, sensor values
1.3" SH1106 OLED128×64, monochromeI2C, 2 pinsU8g2, Adafruit SH110X5–20 mASlightly larger text
16x2 I2C LCD16×2 charactersI2C, 2 pins (5 V supply)LiquidCrystal_I2C20–30 mA (backlight)Simple text and menus
1.3–2" ST7789 TFT240×240 or 240×320, colourSPI, 5–6 pinsTFT_eSPI, Adafruit ST778920–40 mA (backlight)Small colour gauge, clock
2.4–2.8" ILI9341 TFT240×320, colourSPI, 5–6 pins (+4–5 for touch)TFT_eSPI, Adafruit ILI934150–100 mACharts, panels, menus
CYD (ESP32-2432S028R)240×320 ILI9341 + touchBuilt into the board, no wiringTFT_eSPI, LVGL100 mA and more with the boardSmart home panel, touch interface
2.9–4.2" e-paper296×128 to 400×300, 2–3 coloursSPI, 6 pins (including BUSY)GxEPD2A few mA while refreshing, almost 0 while idleCalendar, battery-powered sign
MAX7219 4-module matrix32×8, red LEDs3 pins (DIN, CLK, CS), 5 VMD_Parola, MD_MAX72XX50 mA to 1 A depending on brightnessScrolling text, clock readable from afar
WS2812B 16×16 matrix256 RGB LEDs1 pin, 5 VAdafruit NeoMatrix, FastLEDUp to 60 mA per LEDAnimations, word clock, pixel art

Which library should you use?

LibraryWhich displays?StrengthWatch out
Adafruit GFX + driverSSD1306, ST7789, ILI9341 and moreEasy, lots of examples, the same commands on every displayThe built-in font doesn't support UTF-8, so accented letters break
U8g2Hundreds of monochrome OLEDs and LCDsMany fonts, UTF-8 support, page mode with little RAMNo colour TFT support
TFT_eSPIST7789, ILI9341, ST7735 and other SPI TFTsVery fast drawing on the ESP32, sprite supportPins are set in the User_Setup.h file
LVGLAny colour display through TFT_eSPI or another driverButtons, sliders, charts, animated interfacesNeeds more RAM and setup
GxEPD2Most SPI e-paper displaysPartial refresh, Adafruit GFX commandsPicking the exact display model is essential
MD_ParolaMAX7219 LED matricesReady-made scrolling text and transition effectsPick the right module type (such as FC16_HW)

Wiring: which display goes to which ESP32 pin?

DisplaySignal connections (display → ESP32)Power
OLED and I2C LCDSDA → GPIO 21, SCL → GPIO 22OLED on 3V3, I2C LCD on 5V (VIN)
ST7789 / ILI9341 TFT (TFT_eSPI)MOSI → 23, SCK → 18, CS → 15, DC → 2, RST → 4, MISO → 19 (if needed)3V3; backlight (BL/LED) to 3V3 or a PWM pin
E-paper (GxEPD2)DIN → 23, CLK → 18, CS → 5, DC → 17, RST → 16, BUSY → 43V3
MAX7219 matrixDIN → 23, CLK → 18, CS → 55V (VIN), a separate 5 V supply for large matrices
WS2812B matrixDIN → GPIO 13 (with a 330 Ω series resistor)Separate 5 V supply, grounds connected
TM1637 4-digitCLK → GPIO 18, DIO → GPIO 193V3 or 5V
The MAX7219 and WS2812B run on 5 V, and in theory their data inputs expect more than 3.5 V; the ESP32's 3.3 V signal usually works, but if you see glitches, add a logic level converter. A 256-LED WS2812B matrix can in theory draw 15 A at full white; never power it from the ESP32's 5V pin, use a separate power supply, connect the grounds and limit the brightness in code. We did the full current calculation in WS2812B LED Matrix.

15 ESP32 display projects in one table

#ProjectDisplayExtra partsLibraryLevel
1OLED weather station0.96" OLEDWeather APIAdafruit SSD1306, ArduinoJsonMedium
2Internet clock with Wi-Fi signal meter0.96" OLEDNoneAdafruit SSD1306Easy
3Colour clock with an analogue face1.3" ST7789None (NTP)TFT_eSPIMedium
4E-paper calendar and weather4.2" e-paper18650 batteryGxEPD2, ArduinoJsonMedium
5CYD smart home panelCYD 2.8"Relay or MQTTTFT_eSPI, LVGLHard
6Scrolling LED signMAX7219 32×8NoneMD_ParolaEasy
7Word clockWS2812B matrixSeparate 5 V supplyAdafruit NeoPixelMedium
8OLED robot eyes0.96" OLEDTouch sensor (optional)FluxGarage RoboEyesEasy
9Exchange rate and crypto ticker2.4" ILI9341Price APITFT_eSPI, ArduinoJsonMedium
10Temperature and humidity chart2.4" ILI9341DHT22 or BME280TFT_eSPIMedium
11Pomodoro timerTM1637 4-digit2 buttons, buzzerTM1637Easy
12Parking sensor display0.96" OLEDHC-SR04, buzzerAdafruit SSD1306Medium
13RFID door lock display0.96" OLEDRC522, servoAdafruit SSD1306, MFRC522Medium
14Text from a web page to the displayOLED or MAX7219NoneWebServer, Adafruit SSD1306Easy
15OLED mini game console0.96" OLEDButtons or joystick, buzzerAdafruit SSD1306Medium

OLED projects (1, 2, 8, 12, 13, 15)

The OLED is the easiest display to connect to an ESP32 and the one that uses the least energy, which is why most projects in the list use it. In the weather station, the ESP32 fetches the temperature, humidity and weather code from an API every ten minutes and shows them on the OLED; the ESP32 HTTPClient weather API with SSD1306 OLED project in the BlueGrays app gives you the ready circuit and code, and we explain the JSON parsing in ArduinoJson Tutorial. In the parking sensor and the RFID door lock, the OLED is a status screen showing the distance or whether a card was accepted; the ESP32 parking sensor (HC-SR04 + 5 LED bar + buzzer + OLED) and ESP32 RFID door lock (RC522 + servo + OLED + buzzer + LED) projects in the app are examples of these two ideas. Robot eyes and the mini game console take advantage of the OLED's fast refresh; you'll find the eye animations in ESP32 OLED Robot Eyes.

Project 2: internet clock and Wi-Fi signal on an OLED

This project is the best way into the world of ESP32 displays: without an RTC module, it gets the time from the internet (NTP) and draws the time in large digits, the date below it and a four-bar Wi-Fi signal meter in the top right corner. All you need is an ESP32, a 0.96 inch SSD1306 OLED and four wires. Install the Adafruit SSD1306 and Adafruit GFX libraries from the Library Manager:

C++ (Arduino IDE)
1// ESP32 + 0,96" SSD1306 OLED: internetten saat (NTP), tarih ve Wi-Fi sinyali
2// ESP32 + 0.96" SSD1306 OLED: internet time (NTP), date and Wi-Fi signal
3#include <WiFi.h>
4#include <Wire.h>
5#include <time.h>
6#include <Adafruit_GFX.h>
7#include <Adafruit_SSD1306.h>
8
9const char* WIFI_SSID = "AgAdi";
10const char* WIFI_PASS = "Sifre123";
11const char* SAAT_DILIMI = "<+03>-3";        // Türkiye (UTC+3); Almanya: "CET-1CEST,M3.5.0,M10.5.0/3" / Germany example
12
13Adafruit_SSD1306 oled(128, 64, &Wire, -1);  // 128x64, reset pini yok / no reset pin
14
15void setup() {
16  Serial.begin(115200);
17  Wire.begin(21, 22);                       // SDA 21, SCL 22
18  if (!oled.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {   // çoğu modülde adres 0x3C / address 0x3C on most modules
19    Serial.println("OLED bulunamadi / OLED not found");
20    while (true) delay(1000);
21  }
22  oled.clearDisplay();
23  oled.setTextColor(SSD1306_WHITE);
24  oled.setTextSize(1);
25  oled.setCursor(0, 0);
26  oled.print("Wi-Fi...");
27  oled.display();
28
29  WiFi.mode(WIFI_STA);
30  WiFi.begin(WIFI_SSID, WIFI_PASS);
31  while (WiFi.status() != WL_CONNECTED) delay(250);
32  configTzTime(SAAT_DILIMI, "pool.ntp.org");   // saati internetten al / get the time from the internet
33}
34
35void sinyalCiz(int rssi) {                  // sağ üstte 4 çubuk / 4 bars in the top right
36  int cubuk = rssi > -55 ? 4 : rssi > -65 ? 3 : rssi > -75 ? 2 : rssi > -85 ? 1 : 0;
37  for (int i = 0; i < 4; i++) {
38    int h = 2 + i * 2;
39    if (i < cubuk) oled.fillRect(110 + i * 4, 8 - h, 3, h, SSD1306_WHITE);
40    else           oled.drawRect(110 + i * 4, 8 - h, 3, h, SSD1306_WHITE);
41  }
42}
43
44void loop() {
45  struct tm t;
46  oled.clearDisplay();
47  if (getLocalTime(&t, 200)) {
48    char saat[9], tarih[11];
49    strftime(saat, sizeof(saat), "%H:%M:%S", &t);
50    strftime(tarih, sizeof(tarih), "%d.%m.%Y", &t);
51    oled.setTextSize(2);                    // 12x16 piksel karakter / 12x16 pixel characters
52    oled.setCursor(16, 24);
53    oled.print(saat);
54    oled.setTextSize(1);
55    oled.setCursor(34, 50);
56    oled.print(tarih);
57  } else {
58    oled.setCursor(0, 24);
59    oled.print("NTP bekleniyor...");      // saat henüz gelmedi / time not received yet
60  }
61  oled.setTextSize(1);
62  oled.setCursor(0, 0);
63  oled.print(WiFi.status() == WL_CONNECTED ? "Bagli" : "Kopuk");
64  sinyalCiz(WiFi.RSSI());
65  oled.display();                           // tamponu ekrana gönder / push the buffer to the screen
66  delay(250);
67}

The time zone string in the configTzTime line is UTC+3 for Turkey; if you live in a country with daylight saving time, you write a rule like the Germany example in the comment and the ESP32 handles the switch by itself. getLocalTime returns false until the time has arrived, so a waiting message appears for the first few seconds. The signal bars are drawn from the RSSI value: a signal stronger than -55 dBm means four bars, weaker than -85 dBm means none. You'll find the NTP details in ESP32 NTP Clock and every OLED command in SSD1306 OLED Display.

TFT and CYD projects (3, 5, 9, 10)

When you need colour and graphics, it's time to move to a TFT. A 1.3 inch ST7789 is ideal for a clock with an analogue face: if you draw the face in memory with TFT_eSPI's sprite feature and push it to the screen in one go, the hands turn without flicker. A 2.4–2.8 inch ILI9341 suits multi-line, colourful data such as a temperature and humidity chart or a currency ticker; you can keep the last 24 hours of readings in an array and draw them as a line chart. Details are in ILI9341 TFT Display and ST7789 TFT Display. If you want a ready-made single-board solution, the ESP32-2432S028R board known as the Cheap Yellow Display (CYD) combines the ESP32, a 2.8 inch touch screen and an SD card slot; it's the shortest route to a smart home panel with buttons built in LVGL. We set it up step by step in ESP32 Cheap Yellow Display.

ILI9341 TFT colour display module
ILI9341 TFT: 240×320 colour pixels and, on most modules, a touch layer. It connects over SPI and draws very fast on the ESP32 with TFT_eSPI.

E-paper calendar: a display that runs for months on a battery (4)

An e-paper display uses no energy to keep its image; it only draws current while the image changes. Combined with deep sleep, that lets you build a calendar or weather sign that runs for months on a battery: the ESP32 wakes up in the morning, joins Wi-Fi, fetches the date and the day's forecast, refreshes the screen and goes back to sleep. A full refresh takes a few seconds and the screen flashes several times meanwhile; that's normal. E-paper isn't suitable for a clock that changes every minute, because frequent refreshing wears the panel and leaves ghosting. For choosing a model and wiring, see E-Paper Display; for the sleep side, see ESP32 Deep Sleep.

LED matrix and 7-segment projects (6, 7, 11)

If you need to show something that's readable from across the room, an LED matrix is the best choice. A 32×8 panel made of four MAX7219 modules shows scrolling text in a few lines with the MD_Parola library. The Dot Matrix clock and calendar (MAX7219, DS1307) project in the BlueGrays app drives a MAX7219 matrix with an Arduino, while the code below uses the ESP32's hardware SPI pins. The word clock spells out the time in letters on a WS2812B matrix (ESP32 Word Clock), and the Pomodoro timer counts down 25 minutes on a four-digit TM1637 display; the ESP32 TM1637 4-digit 7-segment display project in the app shows the basics of that display.

MAX7219 8x32 dot matrix LED module
A 32×8 LED matrix made of four MAX7219 modules: ideal for scrolling text and clocks you read from a distance.
C++ (Arduino IDE)
1// ESP32 + 4'lü MAX7219 (32x8) LED matris: kayan yazı
2// ESP32 + 4-module MAX7219 (32x8) LED matrix: scrolling text
3#include <MD_Parola.h>
4#include <MD_MAX72xx.h>
5#include <SPI.h>
6
7#define DONANIM MD_MAX72XX::FC16_HW         // en yaygın modül tipi; yazılar ters çıkarsa GENERIC_HW dene / most common type; try GENERIC_HW if text looks wrong
8const int MODUL_SAYISI = 4;                 // 4 x 8x8 = 32x8 piksel / pixels
9const int CS_PIN = 5;                       // DIN -> GPIO 23, CLK -> GPIO 18 (donanım SPI / hardware SPI)
10
11MD_Parola matris(DONANIM, CS_PIN, MODUL_SAYISI);
12
13const char* mesajlar[] = { "BlueGrays", "ESP32 + MAX7219", "Merhaba!" };
14int sira = 0;
15
16void setup() {
17  matris.begin();
18  matris.setIntensity(3);                   // parlaklık 0-15; düşük = az akım / brightness 0-15; low = less current
19  matris.displayText(mesajlar[sira], PA_CENTER, 60, 1500, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
20}
21
22void loop() {
23  if (matris.displayAnimate()) {            // animasyon bittiğinde true / true when the animation ends
24    sira = (sira + 1) % 3;
25    matris.displayText(mesajlar[sira], PA_CENTER, 60, 1500, PA_SCROLL_LEFT, PA_SCROLL_LEFT);
26  }
27}

Install the MD_Parola and MD_MAX72XX libraries from the Library Manager. If the text looks reversed, scrambled or mirrored, the problem isn't the wiring but the module type: try GENERIC_HW, PAROLA_HW or ICSTATION_HW instead of FC16_HW. Keeping the brightness low with setIntensity is easier on the eyes and cuts the current dramatically; four modules at full brightness can approach 1 A, while at low brightness they stay below a few hundred milliamps. More on the MAX7219 in MAX7219 LED Matrix.

Sending text to the display from a web page (14)

One of the ESP32's most popular tricks is controlling a display from your phone. The code below turns the ESP32 into a small web server: at start-up the OLED shows the board's IP address; when you open that address on a phone connected to the same Wi-Fi, a text box appears and whatever you type is printed on the display straight away. With the same approach you can send messages to a MAX7219 sign or make an "Open / Closed" sign for a shop window.

C++ (Arduino IDE)
1// ESP32 web sayfasından OLED ekrana yazı gönder
2// Send text to an OLED display from an ESP32 web page
3#include <WiFi.h>
4#include <WebServer.h>
5#include <Wire.h>
6#include <Adafruit_GFX.h>
7#include <Adafruit_SSD1306.h>
8
9const char* WIFI_SSID = "AgAdi";
10const char* WIFI_PASS = "Sifre123";
11
12WebServer sunucu(80);
13Adafruit_SSD1306 oled(128, 64, &Wire, -1);
14
15const char SAYFA[] PROGMEM = R"HTML(<!DOCTYPE html><html><head><meta charset="utf-8">
16<meta name="viewport" content="width=device-width,initial-scale=1"><title>ESP32 OLED</title></head>
17<body style="font-family:sans-serif;max-width:420px;margin:24px auto;padding:0 16px">
18<h2>ESP32 OLED</h2>
19<form action="/yaz"><input name="metin" maxlength="60" style="width:100%;font-size:18px" autofocus>
20<p><button style="font-size:18px">Gonder / Send</button></p></form>
21</body></html>)HTML";
22
23void ekranaYaz(const String& metin) {
24  oled.clearDisplay();
25  oled.setTextSize(2);                      // satırda 10 karakter / 10 characters per line
26  oled.setTextColor(SSD1306_WHITE);
27  oled.setCursor(0, 0);
28  oled.print(metin);                        // uzun metin alt satıra geçer / long text wraps
29  oled.display();
30}
31
32void anaSayfa() {
33  sunucu.send_P(200, "text/html", SAYFA);
34}
35
36void yaz() {
37  String metin = sunucu.arg("metin");       // formdan gelen yazı / text from the form
38  ekranaYaz(metin);
39  Serial.println("Yeni yazi / new text: " + metin);
40  sunucu.sendHeader("Location", "/");       // forma geri dön / back to the form
41  sunucu.send(303);
42}
43
44void setup() {
45  Serial.begin(115200);
46  Wire.begin(21, 22);
47  if (!oled.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
48    Serial.println("OLED bulunamadi / OLED not found");
49    while (true) delay(1000);
50  }
51  WiFi.mode(WIFI_STA);
52  WiFi.begin(WIFI_SSID, WIFI_PASS);
53  while (WiFi.status() != WL_CONNECTED) delay(250);
54
55  ekranaYaz(WiFi.localIP().toString());     // önce IP adresini göster / show the IP address first
56  sunucu.on("/", anaSayfa);
57  sunucu.on("/yaz", yaz);
58  sunucu.begin();
59}
60
61void loop() {
62  sunucu.handleClient();                    // tarayıcı isteklerini karşıla / serve browser requests
63}

The page's HTML is kept in flash memory with PROGMEM, so it doesn't use RAM. When the form is submitted, the browser goes to /yaz with the metin parameter; the code prints the text on the display and sends the browser back to the form with a 303 redirect, so refreshing the page doesn't send the same text again. If you want a faster, two-way interface, use the method from ESP32 Web Server and WebSocket.

Power consumption: running a display project on a battery

In a display project, most of the current is often drawn not by the ESP32's Wi-Fi but by the display itself. On TFTs the backlight stays on all the time, even when the screen is black; connecting the backlight pin to a PWM output and halving the brightness cuts consumption noticeably. On an OLED only lit pixels use energy, so thin text on a black background is the most economical; because showing the same image for a long time can leave marks on an OLED, dimming the screen after a few minutes of inactivity is a good habit. For a battery-powered device, the most efficient option is e-paper combined with deep sleep. You can work out how long your own circuit will last with the battery life calculator.

Common mistakes and fixes

SymptomLikely causeFix
The OLED stays completely blackWrong I2C address, or SDA and SCL swappedRun the I2C scanner sketch and use address 0x3C or 0x3D
The TFT stays whiteTFT_eSPI's User_Setup.h isn't set up for your display and pinsDefine the driver (ILI9341 or ST7789) and the pins in that file
Colours are inverted or look negativeDifferent display driver or colour orderChange invertDisplay or the RGB/BGR setting
Accented characters are garbledAdafruit GFX's built-in font doesn't support UTF-8Use a font with extended characters in U8g2 with enableUTF8Print
Text on the matrix is scrambledWrong module type in MD_ParolaTry FC16_HW, GENERIC_HW or PAROLA_HW
Ghost images on the e-paperOnly partial refreshes are usedDo a full refresh every now and then
The ESP32 resets when the display turns onThe current from USB isn't enough for the display and Wi-FiUse a shorter, better cable or a separate 5 V supply
If you still can't tell which display suits what, our Arduino Display Types comparison, written for the Arduino, applies to the ESP32 too. If you want a touch display with a ready-made interface, the Nextion display is also a good option: you design the interface on your computer and the ESP32 only sends commands over the serial port.

A display turns an ESP32 project into a device you actually use on your desk or wall. In the BlueGrays app you can browse ESP32 projects with displays, such as the OLED weather station, the deep sleep counter, the parking sensor, the colour mixer lamp and the temperature logger, each with a step-by-step circuit diagram and ready-to-use code, and build the ideas from this article on top of them.

Frequently asked questions

What is the best display for the ESP32?

There's no single right answer. For a few numbers and short text, a 0.96 inch OLED is the easiest and cheapest option. For colour and graphics an ST7789 or ILI9341 TFT is better, for a sign that runs for months on a battery choose e-paper, and for a clock read from a distance a MAX7219 LED matrix.

How do you connect an OLED display to an ESP32?

Connect the OLED's VCC to 3V3, GND to GND, SDA to GPIO 21 and SCL to GPIO 22. In the code, start I2C with Wire.begin(21, 22) and open the display at address 0x3C. If nothing shows up, check the address with an I2C scanner sketch.

Why does my TFT_eSPI display stay white?

TFT_eSPI reads the display driver and pins from the User_Setup.h file in the library folder. If that file isn't edited for your display, the screen stays white. Select ILI9341 or ST7789 as the driver and set the MOSI, SCK, CS, DC and RST pins to match your wiring.

How long does an ESP32 e-paper display last on a battery?

E-paper draws no current to hold its image and only uses a few milliamps while refreshing. If the ESP32 waits in deep sleep and wakes a few times a day to refresh the screen, an 18650 cell can last for months with a bare module and a low-current regulator. What really decides it is the board's sleep current and the time spent on Wi-Fi.

Can you send text to a display from an ESP32 web page?

Yes. You turn the ESP32 into a small web server with the WebServer library; open the board's IP address on your phone, type into a form, and the text goes to the ESP32 and appears on the display. The third sketch in this article does exactly that with an OLED, and the same method works with an LED matrix or a TFT.

What is the Cheap Yellow Display (CYD)?

CYD is the common name of the ESP32-2432S028R board. It combines an ESP32, a 2.8 inch 240×320 touch TFT, an SD card slot and an RGB LED on one board, so you can build a display project without any wiring. It's programmed with TFT_eSPI and LVGL and is very popular for smart home panels.

See all projects
ESP32 HTTPClient + Weather API (with SSD1306 OLED Display)
ES-32Advanced
Premium

ESP32 HTTPClient + Weather API (with SSD1306 OLED Display)

In this project the ESP32 makes a REST API call over the internet to a weather API (wttr.in) using HTTPClient.h. Unlike the I2C LCD version, it uses an SSD1306 OLED (128×64) display, with large text and vector icons for a richer look. Seven weather icons (sunny, rainy, snowy and more) are drawn on the fly, with no bitmap files.

4.3(10)
22
ESP32 Deep Sleep — Battery Saving (OLED + RTC RAM Counter)
ES-33Advanced
Premium

ESP32 Deep Sleep — Battery Saving (OLED + RTC RAM Counter)

The ESP32's Deep Sleep mode shuts down the CPU and most peripherals, cutting current draw to about 10µA, which is vital for battery-powered IoT devices. This project uses three wake-up sources: a timer (15 s), an external pin (EXT0, the button on GPIO 33) and a touch pin (T0/GPIO 4). Counters marked with RTC_DATA_ATTR survive deep sleep.

4.3(10)
17
ESP32 Prayer Rakat Counter (HC-SR04 + SSD1306 OLED + 2 Buttons)
ES-34Advanced
Premium

ESP32 Prayer Rakat Counter (HC-SR04 + SSD1306 OLED + 2 Buttons)

Do you sometimes lose track of which rakat you are on during prayer? This project is a rakat counter that sits next to your prayer mat and counts your prostrations when you bring your hand close. The HC-SR04 ultrasonic distance sensor detects your hand, the SSD1306 OLED display shows the count, and two buttons let you choose 2, 3 or 4 rakats and reset. A 2.5-second debounce and a "hand-away" check make sure no prostration is counted twice.

4.8(11)
14
ESP32 RFID Door Lock (RC522 + Servo + OLED + Buzzer + LED)
ES-35Advanced
Premium

ESP32 RFID Door Lock (RC522 + Servo + OLED + Buzzer + LED)

We build a smart door lock with an ESP32, an RC522 RFID module, an SG90 servo, an SSD1306 OLED display, an active buzzer and 2 LEDs. When a card is scanned, its UID is checked against the authorized cards defined in the code; if it matches, the servo unlocks (green LED + 2 short beeps) and locks again after 5 seconds. An unknown card lights the red LED, gives 3 quick beeps and shows its UID on the OLED.

4.8(9)
16
ESP32 Color Mixer Light (3 Potentiometers + RGB LED + OLED)
ES-36Advanced
Premium

ESP32 Color Mixer Light (3 Potentiometers + RGB LED + OLED)

A smart color-mixer lamp: turn 3 potentiometers on the ESP32 and mix any color you like! As you turn the red, green and blue potentiometers, the common-cathode RGB LED changes color instantly. The SSD1306 OLED display shows each channel's 0-255 value, fill bars and the HEX web color code (like #FF8040) live.

4.7(6)
10
ESP32 Smart Lighting (PIR + LDR + Relay + OLED)
ES-37Advanced
Premium

ESP32 Smart Lighting (PIR + LDR + Relay + OLED)

With an ESP32, a PIR motion sensor, an LDR light sensor and a relay module, we turn your hallway, bathroom or pantry into smart lighting. If the room is already bright, the light stays off even when there is motion, so it never wastes energy during the day. The light stays on for 30 seconds, and the time extends automatically while motion continues.

4.3(6)
11
ESP32 Parking Sensor (HC-SR04 + 5-LED Bar + Buzzer + OLED)
ES-38Advanced
Premium

ESP32 Parking Sensor (HC-SR04 + 5-LED Bar + Buzzer + OLED)

The ESP32 version of a car parking sensor! The HC-SR04 ultrasonic sensor measures the distance to the object in front. As it gets closer, a 5-LED bar fills up (green → yellow → red) and the buzzer beeps faster. Very close (under 10 cm), a continuous alarm sounds and all LEDs light up. The SSD1306 OLED display shows the live distance in cm in large text, plus a status message.

14
ESP32 TM1637 4-Digit 7-Segment Display
ES-23Intermediate
Premium

ESP32 TM1637 4-Digit 7-Segment Display

We are controlling a 4-digit 7-segment display module with a TM1637 driver using an ESP32. Using just 2 GPIO pins (CLK and DIO), we run a counter from 0 to 9999, adjust the brightness level, and display the colon (:) character in clock format. Thanks to the TM1637Display library, controlling numbers, hex values, segments, and strings is very easy.

4.7(20)
32