▼
E-Ink Dog Album on M5Stack PaperDIY displaying Leo

Final e-ink UI displaying Leo (Newfoundland, 1 year, Paseo de los Tristes, Granada)


The Hardware: M5Stack PaperDIY + USB-C & Tinkering

I wanted to bring the dogs I meet on the street onto my desk in a calm, paper-like format. So I bought the PaperDIY Complete Kit (ESP32-S3) from M5Stack, a compact e-paper display with side buttons and built-in WiFi.

Getting started was refreshingly simple:

  1. I plugged the device into my computer via USB Type-C.
  2. I opened Schematik (@schematikio) in the browser.
  3. I started prompting what I wanted it to do, iterating directly on the ESP32-S3 firmware without wrestling with display drivers from scratch.

From a Generic Dog API to API-fying Perretex with Cloudflare

At first, I hooked it up to a generic public dog API just to test fetching and rendering grayscale images on the e-ink screen.

Then it hit me: "Wait—I already have a whole database of real dogs I've met on my own website, perretex.com... why not use my own?"

So I took my Perretex project, API-fied it using Cloudflare, and exposed a public API (/api/v1/images/random plus breed filters) that serves a random dog from my collection along with its name, breed, age, and the exact place where we met.


How It Looks in Action

Once connected to the Perretex API, I went through a few UI redesigns for the e-ink screen—evolving from an initial centered layout with a paw loading screen ("Buscando un amigo...") to a clean card showing battery status, age, and location.

1. Press a button, meet another dog

Pressing the side button on the M5Stack PaperDIY fetches a new dog over WiFi and refreshes the e-paper display.

M5Stack PaperDIY fetching a new dog when pressing the button

2. The Public Perretex API on Cloudflare

Public endpoints powered by Cloudflare serving optimized photos and metadata for every dog logged on perretex.com.

Testing the public /api/v1/images/random endpoint on perretex.com

Try It Yourself

If you have (or grab) the M5Stack PaperDIY, trying out the project only takes a couple of minutes:

  1. Open the public project on Schematik.
  2. Enter your WiFi SSID and password.
  3. Plug in your M5Stack via USB-C and flash it.

Since the perretex.com API is completely public and requires no API key or sign-up, your desk screen will immediately start pulling dogs.

Have an M5Stack PaperDIY?

Open the project in Schematik, type in your WiFi credentials, and flash the device straight from your browser.

HomeProjectsArticlesAbout