ESP32 Projects
Start a build
Markdown

ESP32 T Display S3 Amoled Up Air Quality

It uses ESP-IDF only. It does not use Arduino, PlatformIO, LVGL, LovyanGFX, or managed components.

LilyGO T-Display-S3ESP-IDF, Arduino, PlatformIOUnrated
Parts and source

Before you start

Check the exact AMOLED display configuration against the upstream wiring or parts list.

Parts, Cost & Where to Buy

Build total pending. Confirm the exact parts and prices first.

Parts to verify. These entries come from the project’s catalog information and may include alternatives or components already built into the board. Check the upstream schematic or parts list before ordering.

Quantity, price and supplier by part
PartQtyUnit (USD)Line totalSupplier
LilyGO T-Display-S3To confirmUnpriced—DigiKey search
AMOLED displayTo confirmUnpriced—DigiKey search

Check the upstream project for hardware revisions

Upstream README

ESP32 T-Display-S3 AMOLED UP-AirQuality

ESP-IDF firmware that displays live UniFi UP-AirQuality readings on the original LILYGO T-Display-S3 AMOLED 1.91-inch board.

It uses ESP-IDF only. It does not use Arduino, PlatformIO, LVGL, LovyanGFX, or managed components.

This targets the original 536 x 240 RM67162 board. It does not support the later SPI/Plus model.

T-Display UP-AirQuality sensor UniFi Protect readings
T-Display showing live air quality readings UniFi UP-AirQuality sensor Air quality readings in UniFi Protect

Setup

Requirements: ESP-IDF v6, OpenSSL, UniFi Protect, and an adopted UP-AirQuality sensor.

git clone git@github.com:angristan/esp32-t-display-s3-amoled-up-air-quality.git
cd esp32-t-display-s3-amoled-up-air-quality

Capture the UniFi console certificate:

UNIFI_HOST=192.168.0.1
openssl s_client \
  -connect "${UNIFI_HOST}:443" \
  -servername unifi.local \
  </dev/null 2>/dev/null \
  | openssl x509 -out main/unifi_local.pem

openssl x509 \
  -in main/unifi_local.pem \
  -noout -subject -dates -fingerprint -sha256

Verify the fingerprint before you continue. The certificate is embedded in the firmware and excluded from Git. TLS also requires the unifi.local certificate identity.

Build and flash:

. "$HOME/esp/esp-idf/export.sh"
idf.py set-target esp32s3
idf.py build
idf.py -p /dev/ttyACM0 flash monitor

On first boot, enter the Wi-Fi and local Protect account details over serial. Hold the touch screen during startup to replace the saved configuration. Exit the monitor with Ctrl+].

Notes

  • Readings refresh every 15 seconds.
  • The firmware uses the first UP-AirQuality sensor returned by Protect.
  • It uses the private local Protect API because the official API does not expose these readings. Protect updates can break it.
  • Credentials are stored in NVS. NVS is not encrypted by default. Use a dedicated local Protect account.

Tests

./tests/run-host.sh

License

MIT. Hardware driver values were derived from LILYGO's MIT-licensed LilyGo-AMOLED-Series. See THIRD_PARTY_NOTICES.md.