Components · 9 min read

E-Paper Display with ESP32: GxEPD2, Partial Refresh, Deep Sleep

E-paper (e-ink) display with ESP32: 2.9 and 4.2 inch modules, GxEPD2 class table, full vs partial refresh and a deep sleep weather display that runs for months.

An e-paper display (e-ink) is a type of screen that keeps its image exactly as it is even when the power is cut, reflects light like paper and only uses energy while the image is changing; combined with an ESP32, it's the best way to build weather stations, calendars, shelf labels and door signs that run on a battery for months. The technology used in e-book readers like the Kindle comes in ready-made 2.9 and 4.2 inch modules (Waveshare, WeAct) and joins your project with just a few wires.

In this guide we cover how e-paper works and how it differs from OLED or TFT, a table of popular modules with size, driver chip and refresh time, ESP32 and Pico wiring, a first program with the GxEPD2 library, the difference between full and partial refresh, and ghosting. Then we build a calendar display that wakes from deep sleep every half hour to fetch the weather from the internet, and we calculate the battery life. All the code has been compiled for the ESP32.

ESP32 development board
The ESP32 drives the e-paper display over SPI; thanks to deep sleep it can sleep at microamp-level current after updating the screen.

What is an e-paper (e-ink) display and how does it work?

Each pixel of an e-paper display contains microcapsules filled with black and white pigment particles. Because the particles carry different electric charges, the voltage applied to the electrodes behind the screen pulls either the black or the white ones to the surface. Once the particles have settled, they stay put even after the voltage is removed; that's why the display is bistable: it needs no energy at all to hold the image. There's no backlight; the screen reflects ambient light and is as readable as paper in direct sunlight. The price is speed: a full refresh takes 1 to 4 seconds, and on three-colour models it exceeds 15 seconds.

FeatureE-paperOLED (SSD1306)TFT (ST7789, ILI9341)
When power is cutImage staysGoes darkGoes dark
Current while holding the image010–25 mA20–80 mA (backlight)
Refresh time0.4–4 s (15–27 s for 3 colours)InstantInstant
In sunlightVery readableHard to readHard to read
ColourBlack and white; red or yellow on some modelsSingle colour65K colours
Animation and videoNot suitableSuitableVery suitable
Best useRarely changing info, battery devicesSmall live gaugesFast graphics and menus

Which e-paper module? Size and refresh time table

Most e-paper modules on the hobby market are Good Display panels put on a breakout board by Waveshare or WeAct. Even at the same size, different driver chips (SSD1680, SSD1683, UC8176) may be used, so in the GxEPD2 library you have to pick the class at the very top of the code to match your module. The times below are GxEPD2's own measurements and apply at 3.3 V and room temperature; refreshing gets slower in the cold.

DisplayResolutionDriverGxEPD2 classFull refreshPartial refresh
1.54" black-white200×200SSD1681GxEPD2_154_D672.5 s0.46 s
2.13" black-white250×122SSD1680GxEPD2_213_B743.5 s0.46 s
2.9" black-white (WeAct)296×128SSD1680GxEPD2_290_BS3.8 s0.74 s
2.9" black-white (Waveshare V2)296×128SSD1680GxEPD2_290_T94_V24.0 s0.74 s
2.9" black-white-red296×128SSD1680GxEPD2_290_C90c (GxEPD2_3C)26 sNone (full refresh)
4.2" black-white (WeAct, Waveshare V2)400×300SSD1683GxEPD2_420_GDEY042T811.1 s0.36 s
4.2" black-white (Waveshare V1)400×300UC8176 / IL0398GxEPD2_4201.5 s0.56 s
7.5" black-white800×480GD7965GxEPD2_750_T74.1 s1.6 s
If you pick the wrong class, the screen either doesn't change at all, draws only half, or the image comes out shifted and snowy; there's nothing wrong with the code, the driver just doesn't match. Check the label on the back of the module and the driver info from the seller, and if you're not sure, try the other classes of the same size. Three-colour models can't do partial refresh and flash for 15–27 seconds on every change; for frequently changing content like a clock, buy a black-and-white model.

E-paper wiring: ESP32 and Raspberry Pi Pico pins

E-paper pinESP32Raspberry Pi Pico (Arduino-Pico)Function
VCC3V33V3 (OUT)Power
GNDGNDGNDGround
DIN (SDA on WeAct)GPIO 23 (MOSI)GP19 (SPI0 TX)SPI data
CLK (SCL on WeAct)GPIO 18 (SCK)GP18 (SPI0 SCK)SPI clock
CSGPIO 5GP17Chip select
DCGPIO 17GP20Command / data select
RST (RES)GPIO 16GP21Hardware reset
BUSYGPIO 4GP22Goes HIGH or LOW while the display is busy
On WeAct modules the data and clock pins are labelled SDA and SCL, but the connection is SPI, not I2C; connect them to the ESP32's MOSI (23) and SCK (18) pins, not to its I2C pins (21, 22). Some newer Waveshare modules also have a PWR pin; if yours does, connect it to 3V3. On ESP32-WROVER boards with PSRAM, GPIO 16 and 17 are used for memory, so move RST and DC to, for example, GPIO 26 and 25. For SPI basics, see the what is SPI article.

Installing GxEPD2 and your first program

  1. Open the Library Manager in the Arduino IDE, search for GxEPD2 and install it; when it asks about dependencies, install Adafruit GFX and Adafruit BusIO too.
  2. In the GxEPD2_BW<...> line at the top of the code, enter the class from the table that matches your module; for three-colour models use GxEPD2_3C instead of GxEPD2_BW.
  3. Select ESP32 Dev Module as the board and upload the code. After the screen flashes a few times, the text and the bar appear.
  4. Unplug the USB cable: the image stays on the screen. That's e-paper's most impressive moment.
C++ (Arduino IDE)
1#include <GxEPD2_BW.h>
2#include <Fonts/FreeSansBold18pt7b.h>
3#include <Fonts/FreeSans9pt7b.h>
4
5// 2,9" siyah-beyaz SSD1680 (WeAct ve çoğu yeni modül) / 2.9" black-white SSD1680 (WeAct and most new modules)
6// Waveshare 2,9" V2: GxEPD2_290_T94_V2 · 4,2" WeAct / Waveshare V2: GxEPD2_420_GDEY042T81
7GxEPD2_BW<GxEPD2_290_BS, GxEPD2_290_BS::HEIGHT> display(GxEPD2_290_BS(/*CS=*/ 5, /*DC=*/ 17, /*RST=*/ 16, /*BUSY=*/ 4));
8
9void setup() {
10  display.init(115200, true, 2, false);    // seri tanı, ilk açılış, 2 ms reset, pulldown yok / serial diag, initial, 2 ms reset, no pulldown
11  display.setRotation(1);                   // yatay: 296 x 128 / landscape: 296 x 128
12  display.setTextColor(GxEPD_BLACK);
13  display.setFullWindow();                  // tam yenileme / full refresh
14  display.firstPage();
15  do {                                      // sayfa sayfa çizim / paged drawing
16    display.fillScreen(GxEPD_WHITE);
17    display.setFont(&FreeSansBold18pt7b);
18    display.setCursor(10, 40);
19    display.print("BlueGrays");
20    display.setFont(&FreeSans9pt7b);
21    display.setCursor(10, 72);
22    display.print("E-paper + ESP32");
23    display.drawRect(10, 90, 276, 28, GxEPD_BLACK);   // çerçeve / frame
24    display.fillRect(14, 94, 190, 20, GxEPD_BLACK);   // dolu çubuk / filled bar
25  } while (display.nextPage());
26  display.hibernate();                      // panel uyur, görüntü kalır / panel sleeps, image stays
27}
28
29void loop() {
30}

GxEPD2 draws page by page: the loop that starts with firstPage() runs several times on small boards whose memory can't hold the whole screen buffer at once, while on the ESP32 it finishes in a single pass because a full buffer is used. The 2 in init() means a 2 ms reset pulse for the reset circuit on Waveshare boards; it works fine on WeAct modules too. The hibernate() at the very end switches off the voltage generator inside the panel: the display's current drops to around 1 µA and the image stays in place. The next time you draw, the library wakes the panel up on its own.

The fonts come with Adafruit GFX (the FreeSans, FreeMono and FreeSerif families in the Fonts folder) and contain only basic Latin characters; for letters like ä, ö, ü, é or ñ, the U8g2_for_Adafruit_GFX library lets you use UTF-8 fonts together with GxEPD2. setRotation(1) gives a landscape view, setRotation(0) a portrait view.

Full refresh vs partial refresh

In a full refresh the panel flips every pixel to black and white several times and repaints it; that's why the screen flashes, but the result is spotless. In a partial refresh only the window you choose is updated, with a short waveform and without flashing; it takes 0.74 seconds on the 2.9 inch, so it's ideal for showing a clock, a counter or a sensor value. But each partial refresh leaves a faint trace of the old image (ghosting), and these traces build up. The fix is to do a full refresh after a few dozen partial refreshes. The counter below does a partial refresh every second and a full refresh every 60 seconds.

C++ (Arduino IDE)
1#include <GxEPD2_BW.h>
2#include <Fonts/FreeMonoBold24pt7b.h>
3#include <Fonts/FreeSans9pt7b.h>
4
5GxEPD2_BW<GxEPD2_290_BS, GxEPD2_290_BS::HEIGHT> display(GxEPD2_290_BS(/*CS=*/ 5, /*DC=*/ 17, /*RST=*/ 16, /*BUSY=*/ 4));
6
7const int BOX_X = 40, BOX_Y = 40, BOX_W = 216, BOX_H = 64;   // değişen alan; yatayda y ve h 8'in katı / changing area; y and h multiples of 8 in landscape
8const int FULL_EVERY = 60;               // her 60 kısmi yenilemede bir tam yenileme / one full refresh every 60 partial ones
9unsigned long counter = 0;
10
11void drawCounter(bool full) {
12  if (full) display.setFullWindow();
13  else display.setPartialWindow(BOX_X, BOX_Y, BOX_W, BOX_H);
14  display.firstPage();
15  do {
16    display.fillScreen(GxEPD_WHITE);     // kısmi modda yalnız pencere boyanır / in partial mode only the window is painted
17    display.setFont(&FreeSans9pt7b);
18    display.setCursor(10, 20);
19    display.print("Partial refresh");    // pencere dışında: yalnız tam yenilemede görünür / outside the window: shown only on full refresh
20    display.setFont(&FreeMonoBold24pt7b);
21    display.setCursor(BOX_X + 8, BOX_Y + 46);
22    display.print(counter);
23  } while (display.nextPage());
24}
25
26void setup() {
27  display.init(115200, true, 2, false);
28  display.setRotation(1);
29  display.setTextColor(GxEPD_BLACK);
30  drawCounter(true);                     // temiz başlangıç / clean start
31}
32
33void loop() {
34  delay(1000);
35  counter++;
36  drawCounter(counter % FULL_EVERY == 0);   // gölgeleri ara sıra sil / clear ghosting now and then
37}

The edges of the partial window must match the panel's byte layout: in portrait use x and width, in landscape (setRotation(1)) y and height must be multiples of 8; otherwise GxEPD2 enlarges the window on its own. The "Partial refresh" text in the code lies outside the window, so it's drawn only on full refreshes; in partial mode anything drawn outside the window is ignored. Partial refresh is also possible after waking from deep sleep (pass false as the second parameter of init()), but because the library's buffer is wiped during sleep, you have to redraw everything on the screen; in simple projects a full refresh on wake is the safer choice.

A weather and calendar display that runs for months with deep sleep

E-paper's real power shows up with ESP32 deep sleep. The ESP32 wakes every 30 minutes, connects to Wi-Fi, gets the time from NTP and the current temperature, humidity, weather code and the day's minimum and maximum temperature from Open-Meteo (no API key needed), draws them on the screen and goes back to sleep. Because the display shows the last image throughout the sleep, the device doesn't look switched off but always on. For details on weather APIs, see the ESP32 weather API article.

C++ (Arduino IDE)
1#include <WiFi.h>
2#include <HTTPClient.h>
3#include <ArduinoJson.h>
4#include <time.h>
5#include <GxEPD2_BW.h>
6#include <Fonts/FreeSansBold24pt7b.h>
7#include <Fonts/FreeSansBold12pt7b.h>
8#include <Fonts/FreeSans9pt7b.h>
9
10const char *WIFI_SSID = "WIFI_ADIN";             // ağ adı / network name
11const char *WIFI_PASS = "WIFI_SIFREN";           // şifre / password
12const char *TZ_INFO = "CET-1CEST,M3.5.0,M10.5.0/3";   // Almanya; Türkiye için "<+03>-3" / Germany; for Turkey "<+03>-3"
13const char *URL = "http://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41"
14                  "&current=temperature_2m,relative_humidity_2m,weather_code"
15                  "&daily=temperature_2m_max,temperature_2m_min&timezone=auto&forecast_days=1";
16const uint64_t SLEEP_MIN = 30;                   // güncelleme aralığı, dakika / update interval, minutes
17
18GxEPD2_BW<GxEPD2_290_BS, GxEPD2_290_BS::HEIGHT> display(GxEPD2_290_BS(/*CS=*/ 5, /*DC=*/ 17, /*RST=*/ 16, /*BUSY=*/ 4));
19RTC_DATA_ATTR uint32_t wakeCount = 0;            // derin uykuda silinmez / survives deep sleep
20
21const char *weatherText(int code) {              // WMO hava kodu, kendi dilinde yazabilirsin / WMO weather code, translate freely
22  if (code == 0) return "Clear";
23  if (code <= 3) return "Cloudy";
24  if (code <= 48) return "Fog";
25  if (code <= 67) return "Rain";
26  if (code <= 77) return "Snow";
27  if (code <= 82) return "Showers";
28  if (code <= 86) return "Snow";               // 85-86 kar sağanağı / snow showers
29  return "Storm";
30}
31
32void setup() {
33  wakeCount++;
34  WiFi.mode(WIFI_STA);
35  WiFi.begin(WIFI_SSID, WIFI_PASS);
36  unsigned long start = millis();
37  while (WiFi.status() != WL_CONNECTED && millis() - start < 15000) delay(200);   // en fazla 15 s / at most 15 s
38
39  bool ok = false;
40  float temp = 0, tMax = 0, tMin = 0;
41  int hum = 0, code = 0;
42  char dateStr[24] = "--", timeStr[8] = "--:--";
43  if (WiFi.status() == WL_CONNECTED) {
44    configTzTime(TZ_INFO, "pool.ntp.org");       // NTP ile saat / time over NTP
45    struct tm now;
46    if (getLocalTime(&now, 10000)) {
47      strftime(dateStr, sizeof(dateStr), "%a %d.%m.%Y", &now);
48      strftime(timeStr, sizeof(timeStr), "%H:%M", &now);
49    }
50    HTTPClient http;
51    http.begin(URL);
52    if (http.GET() == 200) {
53      JsonDocument doc;
54      if (!deserializeJson(doc, http.getString())) {
55        temp = doc["current"]["temperature_2m"];
56        hum = doc["current"]["relative_humidity_2m"];
57        code = doc["current"]["weather_code"];
58        tMax = doc["daily"]["temperature_2m_max"][0];
59        tMin = doc["daily"]["temperature_2m_min"][0];
60        ok = true;
61      }
62    }
63    http.end();
64  }
65  WiFi.disconnect(true);
66  WiFi.mode(WIFI_OFF);                           // ekran yenilenirken Wi-Fi kapalı / Wi-Fi off during the refresh
67
68  display.init(115200, true, 2, false);
69  display.setRotation(1);
70  display.setTextColor(GxEPD_BLACK);
71  display.setFullWindow();
72  display.firstPage();
73  do {
74    display.fillScreen(GxEPD_WHITE);
75    display.setFont(&FreeSansBold12pt7b);
76    display.setCursor(6, 24);
77    display.print(dateStr);                      // takvim satırı / calendar line
78    display.drawLine(0, 32, 295, 32, GxEPD_BLACK);
79    if (ok) {
80      display.setFont(&FreeSansBold24pt7b);
81      display.setCursor(6, 82);
82      display.print(temp, 1);
83      int x = display.getCursorX();
84      display.drawCircle(x + 6, 52, 4, GxEPD_BLACK);   // derece işareti / degree sign
85      display.setCursor(x + 14, 82);
86      display.print("C");
87      display.setFont(&FreeSans9pt7b);
88      display.setCursor(180, 58);
89      display.print(weatherText(code));
90      display.setCursor(180, 80);
91      display.printf("Hum %d%%", hum);
92      display.setCursor(6, 118);
93      display.printf("Min %.1f  Max %.1f", tMin, tMax);
94    } else {
95      display.setFont(&FreeSans9pt7b);
96      display.setCursor(6, 80);
97      display.print("No Wi-Fi / no data");
98    }
99    display.setFont(&FreeSans9pt7b);
100    display.setCursor(236, 118);
101    display.print(timeStr);                      // son güncelleme / last update
102  } while (display.nextPage());
103  display.hibernate();                           // görüntü uyurken de kalır / the image stays during sleep
104
105  esp_sleep_enable_timer_wakeup(SLEEP_MIN * 60ULL * 1000000ULL);
106  esp_deep_sleep_start();                        // uyan, setup() baştan çalışır / on wake, setup() runs again
107}
108
109void loop() {
110}

The latitude and longitude in the code belong to Berlin; enter your own city's coordinates and change the time zone in the TZ_INFO line too (for Turkey it's "<+03>-3"). Waking from deep sleep means a restart for the ESP32, so all the work is done in setup() and loop() stays empty. Variables marked with RTC_DATA_ATTR, like wakeCount, are kept in RTC memory during sleep. Turning Wi-Fi off before the screen refresh means the ESP32 draws tens of mA less during the 4-second refresh. If Wi-Fi can't connect, the screen shows "no data" and the device tries again on the next wake-up.

Battery life calculation

Two things determine battery life: the time spent awake and the current during sleep. If we assume each wake-up uses about 110 mA on average for 4 seconds with Wi-Fi and about 40 mA for 4 seconds of screen refresh, one wake-up costs 0.17 mAh. The sleep current depends on the board itself: the ESP32 chip draws around 10 µA in deep sleep, but ordinary development boards with an AMS1117 regulator and a USB-serial chip still use around 5 mA while sleeping. The table below is based on the usable 1600 mAh of a 2000 mAh 18650 cell; to calculate with your own values, use the battery life calculator.

Update intervalBoard current in sleepDaily consumptionEstimated battery life
15 minutes20 µA (low-power board)16.5 mAhAbout 3 months
30 minutes20 µA (low-power board)8.5 mAhAbout 6 months
60 minutes20 µA (low-power board)4.5 mAhAbout 1 year
30 minutes5 mA (ordinary DevKit)128 mAhAbout 2 weeks
For months of runtime, the choice of board matters more than the code: use an ESP32 board designed for deep sleep with a low-loss regulator, or disable the power LED and the USB-serial chip on an ordinary board. To go even further, a timer chip like the TPL5110 cuts the ESP32's power completely and switches it back on at set intervals; since the e-paper holds the image, the screen is never blank in the meantime. For choosing a battery, see the 18650 Li-ion battery article.

E-paper with the Raspberry Pi Pico

GxEPD2 also runs on the Raspberry Pi Pico in the Arduino IDE with Earle Philhower's Arduino-Pico core: in the code above, just change the CS, DC, RST and BUSY numbers in the constructor to GP17, GP20, GP21 and GP22 from the table; SPI0's SCK (GP18) and MOSI (GP19) pins are used by default. A Wi-Fi weather display is also possible with the Pico W, but the Pico's sleep current isn't as low as the ESP32's deep sleep; for a device that must run for months on a battery, an ESP32 or an external timer chip makes more sense. If you use MicroPython, Waveshare's e-paper driver files for the Pico work with the framebuf module and are copied to the Pico with the file upload steps in the MicroPython basics article.

E-paper project ideas

  • Wall calendar: Update the date, the days of the week and events pulled from Google Calendar once a day.
  • Room sign: A meeting room or door sign; the content refreshes only when it changes and runs on a battery for months.
  • Plant and greenhouse monitor: Show hourly readings from a soil moisture sensor and a temperature sensor on e-paper.
  • Price or exchange rate display: Update currency, crypto or electricity prices once an hour.
  • Home energy panel: Write values from Home Assistant to a small screen on top of the fridge.
  • Business card or name badge: Carry your name and a QR code with a 2.13 inch display and a small battery.

Common mistakes and fixes

SymptomPossible causeFix
Screen never changes, "Busy Timeout" in SerialWrong BUSY or RST pin, missing powerCheck the BUSY and RST wiring, connect VCC to 3V3
Image shifted, half drawn or snowyGxEPD2 class doesn't match the moduleTry the other classes in the table (e.g. GxEPD2_290_T94_V2 instead of GxEPD2_290_BS)
Shadows of old text after partial refreshToo many partial refreshes in a rowDo a full refresh at regular intervals
Image fades or gets blotchy over timePanel left powered on after the refreshCall display.hibernate() after every drawing
Three-colour display is very slowThe nature of colour panelsUse a black-and-white model for frequently changing content
Battery dies in a few daysHigh board sleep current, or Wi-Fi keeps retrying for a long timeUse a low-power board and add a timeout to the Wi-Fi attempt
Display doesn't work on ESP32-WROVERGPIO 16 and 17 are reserved for PSRAMMove RST and DC to other pins
E-paper panels are usually designed to work between 0 and 50 °C; in the cold, refreshing takes longer and the image can come out faint. Manufacturers also recommend putting the panel into sleep mode after a refresh and not leaving the same image unchanged for weeks: at least one full refresh a day extends the panel's life.

An e-paper display is the most elegant way to build devices that look "always on" but use almost no energy, and combined with the ESP32's deep sleep it can run for months on a single 18650 cell. In the BlueGrays app you'll find ESP32 deep sleep, internet time with NTP and weather API projects step by step with circuit diagrams and annotated code, and you can add the e-paper display from this article to those projects.

Frequently asked questions

Does an e-paper display really keep the image when the power is off?

Yes. Because the pigment particles stay in place after the voltage is removed, the image stays for days or even months without using any energy. It only draws current while the image is changing. Even so, manufacturers recommend at least one full refresh a day.

Which e-paper library should I use with the ESP32?

The most common library with the widest panel support is GxEPD2; it uses all of Adafruit GFX's drawing functions and fonts. What matters is choosing the class in the code that matches your module's driver (e.g. GxEPD2_290_BS for the WeAct 2.9 inch). Waveshare's own example code also works, but it's less flexible.

What is partial refresh on an e-paper display?

Partial refresh updates only a selected part of the screen, without flashing, in about half a second. It's used for frequently changing information such as a clock or a sensor value. Since every partial refresh leaves a faint trace, you need to do a full refresh at regular intervals.

How much current does an e-paper display draw?

Almost zero while holding the image, and under 1 µA in sleep mode. During a refresh a 2.9 inch panel uses a few mA (about 8 mA), and this lasts 1–4 seconds. In a battery device, most of the consumption comes from the ESP32's Wi-Fi and the board's sleep current.

Does an e-paper display work with an Arduino Uno?

It does, but since the Uno's 2 KB of RAM can't hold the 4.7 KB buffer of a 2.9 inch display, GxEPD2 draws page by page and gets very slow on large displays. The Uno's 5 V signals also need a module with a level shifter or a separate logic level converter. The ESP32, with its Wi-Fi, plenty of RAM and deep sleep, is much better suited to e-paper.

Are there colour e-paper displays, and why are they so slow?

There are three-colour models that show red or yellow alongside black and white, and large seven-colour panels. Because the coloured pigments move more slowly, a refresh takes 15–30 seconds and partial refresh isn't supported. They're fine for a calendar that changes once an hour, but not for information that changes every second.

See all projects
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 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 HTTPClient + Weather API (with LCD Screen)
ES-31Advanced
Premium

ESP32 HTTPClient + Weather API (with LCD Screen)

In this project the ESP32 makes a REST API call over the internet to a weather API (wttr.in) using HTTPClient.h. The JSON response is parsed with ArduinoJson v7, and the city, temperature, humidity, weather and wind are shown on an I2C LCD. wttr.in needs no API key; just type the name of any city.

4.7(13)
20
Real-Time Clock from the Internet via ESP32 NTP
ES-26Advanced
Premium

Real-Time Clock from the Internet via ESP32 NTP

The ESP32 connects to Wi-Fi and fetches the real time from NTP (Network Time Protocol) servers with millisecond precision. configTzTime() applies the Turkey time zone (TRT, UTC+3) automatically, and in countries with daylight saving time the DST switch is handled by a POSIX TZ string. The time is printed both to the Serial Monitor and to an optional I2C LCD.

4.5(13)
22
Digital Clock with ESP32 and DS1307 RTC (I2C + LCD)
ES-18Intermediate
Premium

Digital Clock with ESP32 and DS1307 RTC (I2C + LCD)

In this project, we display the time and date on a 16x2 I2C LCD screen using the DS1307 real-time clock (RTC) module. The DS1307 is a battery-backed RTC that maintains the time even if the ESP32 is powered off. Both modules share the same I2C bus (SDA/SCL), allowing us to learn how to control multiple devices using just two signal wires. Through this project, you will gain practical knowledge of the I2C communication protocol, RTC module operation, and dynamic data display on an LCD screen.

4.6(26)
40
ESP32 Temperature Data Logger (DHT22 + DS1307 RTC + microSD + OLED)
ES-40Advanced
Premium

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.

4.7(7)
12
ESP32 Wi-Fi STA Connection (with LCD Screen)
ES-25Advanced

ESP32 Wi-Fi STA Connection (with LCD Screen)

In this project, we connect the ESP32 to the home Wi-Fi network in Station (STA) mode in a secure, fault-tolerant manner. We store the SSID and password in a separate secrets.h file to prevent leaking to Git, set up an auto-reconnect mechanism, and display the RSSI signal level and IP address on an I2C LCD screen. The internal LED works as a status indicator. It is a production-grade connection manager.

4.4(21)
40
ESP32 DHT22 Temperature and Humidity (with LCD Display)
ES-15Intermediate

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.

4.8(38)
57