Skip to content
Proyectos

aitjcize/esp32-photoframe

Ver en GitHub

Acerca de

Feature-rich firmware for ESP32-based e-paper displays with superior image quality.

Diseño y multimedia

Cómo se miden estas cifras

What you can do

  • 🎨 Superior Image Quality: dithering with the panel's measured colors, calibrated for your own display, on color and grayscale panels
  • 🔋 Smart Power Management: deep sleep for months of battery life, or always-on for Home Assistant
  • 📁 Flexible Image Sources: rotate through photos stored on the frame, or fetch a new picture from a URL on a schedule
  • 🌐 Web Interface: drag-and-drop uploads, gallery, settings and battery status

Crecimiento de estrellas medido

in 24h
+1
in 7 days
+2
in 15 days
+10
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

ESP32 PhotoFrame

Firmware for ESP32-based e-paper photo frames from Waveshare, Seeed Studio and M5Stack. It replaces the stock firmware with a web interface, a REST API and significantly better image quality.

PhotoFrame

Key Features

  • 🎨 Superior Image Quality: dithering with the panel's measured colors, calibrated for your own display, on color and grayscale panels
  • 🔋 Smart Power Management: deep sleep for months of battery life, or always-on for Home Assistant
  • 📁 Flexible Image Sources: rotate through photos stored on the frame, or fetch a new picture from a URL on a schedule
  • 🌐 Web Interface: drag-and-drop uploads, gallery, settings and battery status
  • 📱 Mobile App: companion app for WiFi setup, image processing and AI generation
  • 🖼️ Image Server: companion server with Google Photos, Immich, Synology Photos, Unsplash, Pexels, Telegram and AI generation, plus date/time and weather overlays
  • 🏠 Home Assistant: companion integration
  • ⬆️ Firmware Updates: over the air from GitHub releases, optionally automatic
  • 🔌 REST API: full programmatic control (API docs)

Supported Hardware

Board Display Storage Board Name Support
Waveshare PhotoPainter 7.3" 6-color SD card (SDIO) waveshare_photopainter_73 Official
Seeed Studio XIAO EE02 13.3" 6-color Internal flash seeedstudio_xiao_ee02 Official
Seeed Studio XIAO EE03 10.3" 16-level grayscale (ED103TC2 or ES103TC1)* Internal flash seeedstudio_xiao_ee03 Community
Seeed Studio XIAO EE04 7.3" 6-color, or 7.5" 4-level grayscale or black and white* Internal flash seeedstudio_xiao_ee04 Community
Seeed Studio reTerminal E1001 7.5" 4-level grayscale SD card (SPI) + Internal flash seeedstudio_reterminal_e1001 Community
Seeed Studio reTerminal E1002 7.3" 6-color SD card (SPI) + Internal flash seeedstudio_reterminal_e1002 Official
Seeed Studio reTerminal E1003 10.3" 16-level grayscale SD card (SPI) + Internal flash seeedstudio_reterminal_e1003 Official
Seeed Studio reTerminal E1004 13.3" 6-color SD card (SPI) + Internal flash seeedstudio_reterminal_e1004 Official
M5Stack M5Paper v1.1 4.7" 16-level grayscale SD card (SPI) m5stack_m5paper_v11 Community

* A driver board that takes more than one panel: you pick yours when you set up WiFi, or later under Settings > General > Panel. See Choosing the panel.

  • Official: I own the board and test changes on it.
  • Community: I don't have the board. Support was built from its documentation and is tested by users who have one, so a release can break it without my noticing; please open an issue if it does.

Sensors, storage and known issues for each board are in Board Notes. Want a board added, or moved to Official? See Donate a board.

Getting Started

1. Flash the firmware

🌐 Flash from your browser (Chrome, Edge or Opera). Your settings and WiFi are kept unless you tick "Erase device".

2. Connect it to WiFi

The frame starts a setup hotspot and shows a Scan to connect WiFi QR code. Either:

  • use the ESP Frame app (App Store, Google Play): tap + and follow the steps, or
  • scan the QR code with your phone's camera to join the hotspot, then pick your network on the setup page that opens.

The frame only joins 2.4 GHz networks. WiFi Setup has the details, setup from an SD card, and how to change the network later.

3. Open the web interface

Go to http://photoframe.local (or the frame's IP address) to upload photos and change settings. The frame is reachable while it is awake; press its wake button if it is sleeping.

Device password (optional): off by default. Turn it on under Settings > General > Advanced to require a password for the web interface and the API. The image server, the Home Assistant integration and the app then need the same password. It keeps casual visitors on a shared network out; it is not strong protection, since it travels over plain HTTP. See API.md → Authentication, which also explains how to clear a forgotten password.

Buttons

Board Wake Rotate Clear
Waveshare PhotoPainter BOOT button KEY button —
Seeed Studio XIAO EE02 / EE03 / EE04 Button 3 Button 1 Button 2
Seeed Studio reTerminal E1001 / E1002 / E1003 Green button Left button Right button
Seeed Studio reTerminal E1004 Refresh button Right button Left button
M5Stack M5Paper Centre (push) button Left button Right button (awake only)
  • Wake: wakes the frame and keeps it awake with the web interface running
  • Rotate: shows the next image (from deep sleep: wakes, rotates, sleeps again)
  • Clear: clears the display to white (from deep sleep: wakes, clears, sleeps again)

Setting up WiFi again: for a new network or a changed password, hold the Wake button for 5 seconds while the frame is awake (press it once first if the frame is sleeping). The frame forgets only its WiFi network and password, keeps every other setting, and restarts into the setup hotspot from step 2.

Power and Rotation

Deep sleep (default): the frame sleeps between scheduled rotations and button presses, and a battery lasts months. The web interface is reachable only while it is awake. Always-on (deep sleep off in Settings > General) keeps it reachable, which suits Home Assistant, but a battery lasts days to weeks.

Auto rotate (Settings > Auto Rotate) shows a new picture on a schedule, in your time zone (set in Settings > General):

  • Storage rotates through photos stored on the frame (SD card or internal flash), randomly or in order.
  • URL fetches a picture from a URL, such as the image server. A failed fetch keeps the current picture and shows the error in the settings. A sleeping frame whose fetches keep failing backs off, from 5 minutes up to 6 hours, rather than spending battery on every scheduled wake; a successful fetch or a button press resets it.

Low battery badge: when the battery drops below the threshold in Settings > Power (10% by default), a small empty-battery icon appears in the picture's top-right corner. It is never shown on USB power or while charging, and can be turned off.

Firmware updates: the frame checks GitHub for a new release once a day; install it from the Firmware Update card at the bottom of the web interface. With Update firmware automatically on (off by default), a sleeping frame installs a release on a scheduled wake after showing the next picture, but waits for a later day if the battery is below 3.6 V. Firmware that keeps crashing after an update is rolled back, and the frame won't install that version on its own again.

AI Image Generation 🤖

The web interface can generate images from a text prompt with OpenAI (GPT Image) or Google Gemini (Nano Banana). Generation runs in your browser with your own API key, then the image is uploaded to the frame. Add your keys in Settings > AI Generation.

Image Quality

🎨 Try the Interactive Demo - Drag the slider to compare algorithms in real-time with your own images!

Original Image Stock Algorithm
(on computer)
Stock Algorithm
(on device)
Our Algorithm
(on device)
Source JPEG Theoretical palette
(looks OK on screen)
Theoretical palette
(washed out on device)
Measured palette
(accurate colors)

Why Our Algorithm is Better:

  • ✅ Accurate Color Matching: Uses actual measured e-paper colors
  • ✅ Automatic Calibration: Built-in palette calibration tool adapts to your specific display
  • ✅ Better Dithering: Floyd-Steinberg algorithm with measured palette produces more natural color transitions
  • ✅ No Over-Saturation: Avoids the washed-out appearance of theoretical palette matching

The measured palette accounts for the fact that e-paper displays show darker, more muted colors than pure RGB values. By dithering with these actual colors, the firmware makes better decisions about which palette color to use for each pixel, resulting in images that look significantly better on the physical display. The automatic calibration feature allows you to measure and optimize the palette for your specific device.

📖 Read the technical deep-dive on measured color palettes →

Companion Projects

Project Description
ha-esp32-photoframe Home Assistant integration for control, monitoring, and automation
esp32-photoframe-server Image server aggregating many photo sources — Gallery uploads, Google Photos, Immich, Synology Photos, Unsplash, Pexels, Telegram bot, URL proxy, and AI generation (OpenAI/Gemini) — with date/time & weather overlays and smart collage. Can be run as a Home Assistant add-on.
esp32-photoframe-app Mobile companion app for WiFi provisioning and device control. iOS: App Store (USD 2.99, to offset Apple's USD 99/yr developer fee). Android: Google Play (free); join the beta testers Google Group for early access to new features.
epaper-image-convert CLI tool & npm library for e-paper image conversion with advanced dithering

Third party: the Puppet Home Assistant add-on renders a dashboard as an image; use its URL as the frame's auto rotate URL.

Troubleshooting

  • Can't find the WiFi network / won't connect: the frame only supports 2.4 GHz networks.
  • "Wi-Fi password rejected" on the screen: the network turned down the saved password and the frame keeps retrying it. If the password changed, hold the wake button for 5 seconds to set up WiFi again.
  • SD card not detected: format it as FAT32, or try another card.
  • Device not detected when flashing: put it in download mode (on the PhotoPainter: hold BOOT and press PWR).
  • Frame restarted on its own: if the firmware crashed, Settings > Maintenance > Last Crash has a one-line record; Copy Report copies it for a bug report.
  • Board-specific issues: see Board Notes.

For Developers

Donate a board 🎁

Adding a board is far easier, and keeping it working far more reliable, with the hardware on my desk. If you'd like a board supported, or a Community board moved to Official, consider donating one: open an issue naming the board and saying you'd like to donate it, and I'll follow up there on where to send it.

Support

If you find this project useful, consider buying me a coffee! ☕

Buy Me A Coffee

License

MIT. See LICENSE. The project started from Waveshare's ESP32-S3-PhotoPainter sample code.

Credits

  • Original PhotoPainter sample: Waveshare ESP32-S3-PhotoPainter
  • E-paper drivers: Waveshare
  • ESP-IDF: Espressif Systems

Explorar proyectos relacionados

Cargando…