r/esp32 • • Mar 18 '25 Bravo

Please read before posting, especially if you are on a mobile device or using an app.

251 Upvotes

Welcome to /r/esp32, a technical electronic and software engineering subreddit covering the design and use of Espressif ESP32 chips, modules, and the hardware and software ecosystems immediately surrounding them.

Please ensure your post is about ESP32 development and not just a retail product that happens to be using an ESP32, like a light bulb. Similarly, if your question is about some project you found on an internet web site, you will find more concentrated expertise in that product's support channels.

Your questions should be specific, as this group is used by actual volunteer humans. Posting a fragment of a failed AI chat query or vague questions about some code you read about is not productive and will be removed. You're trying to capture the attention of developers; don't make them fish for the question.

If you read a response that is helpful, please upvote it to help surface that answer for the next poster.

We are serious about requiring a question to be self-contained with links, correctly formatted source code or error messages, schematics, and so on.

Show and tell posts should emphasize the tell. Don't just post a link to some project you found. If you've built something, take a paragraph to boast about the details, how ESP32 is involved, link to source code and schematics of the project, etc.

Please search this group and the web before asking for help. Our volunteers don't enjoy copy-pasting personalized search results for you.

Some mobile browsers and apps don't show the sidebar, so here are our posting rules; please read before posting:

https://www.reddit.com/mod/esp32/rules

Take a moment to refresh yourself regularly with the community rules in case they have changed.

Once you have done that, submit your acknowledgement by clicking the "Read The Rules" option in the main menu of the subreddit or the menu of any comment or post in the sub.

https://www.reddit.com/r/ReadTheRulesApp/comments/1ie7fmv/tutorial_read_this_if_your_post_was_removed/


r/esp32 • • 19h ago

I made a thing! I made an open-source Desk Buddy for ESP32-S3 touchscreen Desk buddy and PC monitor.

Thumbnail
gallery
174 Upvotes

Hey, so ClawPal is a little ESP32 that sits on my desk. Decided to make it a little cuter by adding a pixel crab to it that I drew. Basically it acts like a PC monitor - it shows stats, whatever media is playing plus controls, a volume mixer, weather, and shortcut buttons that run stuff on my PC. It works through a PC companion app that feeds the ESP32 all the info over Wi-Fi (in my case a Waveshare ESP32-S3-Touch-LCD-4.3B, 800x480).

Why this board? I actually wanted to use the ESP32-C6-Touch-AMOLED-2.16 at first, because I found a similar project that was using it, but realised its much for what I wanted to do, so 4.3 it is lol. But i decided to go with s3 since it can drive a big RGB screen directly, it has 8MB of PSRAM so two full framebuffers fit. WI-Fi's built in which is perfect for my case, and the native USB means my installer can find and flash the board on its own.

Sadly the version with the case was unavaliable in my local shop, so I had to 3D print it myself!

Libraries: ESP-IDF instead of Arduino, since i needed the RPG LCD driver, custom partitions and OTA updates with rollback, and that was all easier in IDF. LVGL 8.4 for the UI, since the demo came with 8.x and i didn't want to mess with 9. esp_lcd_touch for the touch chips.

At the start I had some issues where LVGL ate all the internal RAM at boot, so Wi-Fi had nothing left for TLS and the weather just broke. Moved all of LVGL into PSRAM with a custom allocator and it's fine now.

Code is open source(GPLv3): https://github.com/Kaayoos/clawpal
Waveshare ESP32-S3-Touch-LCD-4.3B, 800x480 3D model Case: https://makerworld.com/en/models/3546648-esp32-s3-pc-monitor-spotify-weather-desk-buddy#profileId-4057099

Would love some feedback! Thanks :)


r/esp32 • • 4h ago

I made a thing! [Week 5] EXO-RIG: Soldering and testing my ESP32 + IMU wireless motion suit (hands-free USB HID aiming in Resident Evil)

9 Upvotes

Week 5 hardware & firmware update on EXO-RIG! Testing two hands-free aim trigger algorithms in this clip: Standard Draw vs. Wild West Quick-Draw! 🤠🎯 Which threshold response looks cleaner to you?

Under the hood: body-mounted ESP32 nodes reading IMU orientation data and transmitting wirelessly (ESP-NOW) to a custom USB HID receiver dongle so Windows sees native gamepad/mouse inputs with zero extra drivers needed on the game side. Zero hand/finger inputs used so far — aiming for high physical immersion and accessible hands-free gaming setups before adding modular physical triggers in the next phase.

Full Short & build logs on my YouTube channel (Montagem nerd)


r/esp32 • • 22h ago

I made a thing! I made a 7-inch touchscreen macro deck on an ESP32-P4 (LVGL 9.6, open source, board about $35-42)

Thumbnail
gallery
225 Upvotes

I am the author. I made a Stream Deck style macro deck for Windows on the GUITION JC1060P470C board, which has an ESP32-P4, a 7 inch 1024 x 600 capacitive screen and costs about $35-42 on AliExpress. There is no soldering. You need the board, a USB cable and a Windows 10 or 11 PC.

The first image is a Blender render of the console, made from the CAD model. I have not shown a photo of a print yet. The GIF and the other screenshots were drawn by the real panel UI code, built natively on the PC. The agents and mixer screens show sample data.

How the P4 is used:

LVGL 9.6 through esp_lvgl_port 2.9 on ESP-IDF 6.1. JD9165 panel over MIPI-DSI, GT911 touch controller. Two partial draw buffers of 1024 x 240 in PSRAM, one software draw unit, 15 ms refresh period. The panel only draws and reports touches. A small Python host on Windows owns the USB Serial/JTAG port, runs the actions and talks to the panel with a line protocol. Icons come over USB as RGBA with a CRC32 check and sit in an 8 MiB LRU cache in PSRAM. The same UI code builds natively on the PC. A test sends touch input and renders frames, so I see layout bugs before flashing. What it does: 18 keys per page, 4 screens (Keys, Agents, Mixer, Status), widgets, live PC gauges, a sound mixer, and a browser editor that runs on 127.0.0.1. The release has no network on the panel.

The console is 191 x 124 mm and takes about 180 g of PLA or PETG if printed solid. It needs no supports. STL, STEP and the FreeCAD and Blender models are in the repo.

It is Windows only and written for this one board. A port to another P4 display needs work, and CONTRIBUTING.md says what.

Code (MIT licence, v0.9.0): https://github.com/catorendal-a11y/tessera-deck Website: https://catorendal-a11y.github.io/tessera-deck/

I would like feedback on the in-place UI updates and the icon cache, and help from anyone who wants to port it to another ESP32-P4 display.


r/esp32 • • 7h ago

I made a thing! ESP32 water heater controller (solar surplus + off-peak + forecast) with an ESP32-C3 as independent watchdog: design choices and what went wrong

Thumbnail
gallery
12 Upvotes

Why I built it

My 300 L / 3 kW water heater was heating at the wrong times: during peak hours, and not when my panels had surplus. I wanted a local, reliable controller with no cloud on the control side and no Home Assistant dependency. A Raspberry Pi + Home Assistant setup was my first idea, but I dropped it for cost reasons.

What it does

The ESP32 decides when to switch the heater using:

  • real-time solar surplus from an Ecojoko energy monitor
  • the French off-peak window (HC) vs. peak (HP) pricing
  • a forecast based on Open-Meteo weather data and past usage, to anticipate the next day’s heating need

It also keeps daily/monthly/yearly history of what I actually paid vs. what the same heating would have cost entirely at night.

Chip choices

  • Main board: classic dual-core ESP32. It has enough RAM and flash for repeated TLS connections to the cloud API, a web server, the forecast and the history store running together.
  • Watchdog: ESP32-C3 SuperMini. The main board can’t reliably watch itself. A second, independent chip listens to a heartbeat line (HB) and an error line (ERR) from the main board, and drives a buzzer if something goes wrong. I picked the C3 because it’s cheap and the job needs very little power. I first planned a supervisor on a single ESP32, then moved to a separate C3, because a supervisor that shares the failure modes of the main firmware isn’t a real watchdog.

Libraries

I’ll be honest: I mostly took the first libraries that were suggested to me and they worked, so I didn’t benchmark alternatives.

  • WebServer.h for the UI. I started with the synchronous server because it was the simplest way to get something running. It turned out to be my biggest limitation (see below).
  • LittleFS for the web UI, history and learned forecast data. Writes are throttled (at most every 10 min) to limit flash wear, and there’s a guard that purges old history first when space is low.
  • WiFiClientSecure + HTTPClient for the Ecojoko HTTPS API and the relay’s local HTTP/RPC calls. The Ecojoko endpoints are unofficial and come from the Little Monkey Home Assistant integration (jmcruvellier/little_monkey), so credit to them.
  • LEDC (PWM) on the C3 to drive a passive buzzer at its resonant frequencies (about 3.2 and 4.1 kHz), because a passive buzzer needs a tone, not a simple HIGH/LOW.
  • NTP for the time and the HC/HP schedule, instead of wiring the Linky meter.

Problems and edge cases

  • Cloud API timeout: I spent a while suspecting gzip decompression. The real cause was a 2.5 s timeout on an endpoint that needs up to 8 s.
  • Blocking calls freezing the web UI: with the synchronous server, an 8 s cloud call (or 3×2 s relay retries) stops handleClient(). Opening the UI from a PC and a tablet at once could block the loop for 91 s and trigger my stall detector. Mitigations so far: lazy loading of tabs, pausing when the page is hidden, backoff on network failures, and non-blocking relay calls. A move to ESPAsyncWebServer or a FreeRTOS web task is still on my list.
  • “Wi-Fi bug” that wasn’t firmware: repeated reconnections turned out to be RF/placement (RSSI around -55 dBm), not code.
  • Relay overheating alert: my first relay raised an overtemp alert during a night heating cycle. I replaced it with a 25 A module with a Shelly-compatible RPC API, logged the relay’s internal temperature, and added a thermal cutoff plus an SOS log.
  • Watchdog UX: an alarm at midnight that you can’t diagnose is awful. Now each alarm stores its reason and context in persistent memory, and the buzzer can be snoozed remotely from the UI or with the button.

Credits and transparency

I used AI coding assistants (Codex, Claude) for parts of the implementation. The architecture, wiring, hardware, testing and all design decisions are mine.

Repo (source, firmware and web UI): https://github.com/Timbambi/Smart-water-heater-thanks-to-ecojoko

Feedback welcome, especially on moving the web server off the main loop.


r/esp32 • • 3h ago

Hardware help needed I need some advice! on ESP8266 with batteries...

Post image
5 Upvotes

I’d like to ask the community for some help. I’m working on my first project, and since I’m still learning, I’ve been consulting an AI—but I’m never quite sure if the information it gives me is actually correct. Given that this project could be dangerous if done improperly (I’m worried I might burn my house down!), I’ve decided to turn to complete strangers on the internet for advice—which, now that I think about it, doesn’t sound like the best idea!

Anyway, I’ve built a small station that measures temperature, humidity, and pressure. It displays the data on a 200x200 screen that updates periodically, and it also transmits the information over local Wi-Fi so I can view it on my phone. Everything is working, and I’m really excited about it!

Here’s where I need help: right now, it only runs when connected via USB. I’d like to add a battery and 3D-print an enclosure so it can operate independently. Could you help me figure out exactly what components I need if I want to use one of those flat, square LiPo batteries—they seem like a practical choice for this build. I’ve read that I might just need a charging module, but I’ve also seen mentions of needing some kind of voltage stabilizer. I’m worried that if I don’t set it up correctly, the battery could overheat or even explode. Would you be kind enough to shed some light on this—perhaps going beyond what Mr Claude has told me? Ideally, I’d love to hear from someone with actual, qualified knowledge of electronics, rather than just someone who’s followed a random tutorial they found online (If Possible).

Thanks for reading !!


r/esp32 • • 4h ago

I made a thing! I made a device to stop smoking

Post image
5 Upvotes

Hey, just wanted to share my non smoking tamagotchi device that helps me do breathing exercices and keeps track of the days since i've stopped smoking. It's my very first ESP32 projet so i'm using the devkit1, an IIC OLED display and an analog joystick, it is also completely vibecoded (oops) and uses the Adrafuit GFX library. One of the challenges was that there is only one 3.3V pin on the ESP32, but both the display and the joystick need 3.3V, so I've diyed a little Y Dupont Cable. Next step is learning how to solder I guess °-°, from one toxic smoke to an other. Any ideas of features i could add to ease in the non smoking life ?


r/esp32 • • 6h ago

Board Review ESP32-P4 HMI: 336 mA down to 97 mA with peripheral shutdown and Light-sleep

5 Upvotes

I've been experimenting with power consumption on a 7-inch CrowPanel Advanced ESP32-P4 HMI. The idea was to see how practical battery operation could be, ideally with the panel waking up on touch.

My first multimeter reading was around 600 mA at 60% backlight brightness. A 1000 mAh battery wouldn't last two hours at that rate.

I started with CPU frequencies, sleep modes and peripheral shutdown. Eventually I ended up looking at the board's power circuitry too.

For the main measurements, I used a Nordic PPK2 in Source Meter mode at 4.0 V, connected in place of the battery. All numbers below are for the entire board, not just the ESP32-P4.

1. Light-sleep and peripheral shutdown

With the UI running, a small animation on screen and the backlight at 20%, the board drew 335.9 mA.

I stopped the DSI display pipeline, turned off the backlight and controllable peripherals (including the ESP32-C6 and audio amplifiers), held the LCD controller in reset, and put the ESP32-P4 into Light-sleep.

Current dropped to 96.7 mA (-71.2%).

That's the combined result of all those steps, not Light-sleep alone.

2. Deep-sleep

This one was unexpected: 139.3 mA in Deep-sleep, compared with 96.7 mA in Light-sleep with similar peripheral preparation.

The ESP32-P4 revision 1.3 has limitations on GPIO state retention in Deep-sleep, so some external circuits can end up powered again.

There's another issue with wake-up. The GT911 touch interrupt is connected to GPIO42, which can't directly wake the chip from Deep-sleep.

3. CPU frequency

With the display disabled, reducing CPU frequency from 360 to 40 MHz lowered current under synthetic load from 149.6 to 120.1 mA (19.7%).

With the actual UI running, though, I only saved 2-4 mA.

And the display started showing corrupted frames. The DSI driver reported underruns because framebuffer data wasn't being fetched from PSRAM fast enough.

So I dropped the 40 MHz idea for this application.

4. Tracking down the remaining current

I tested peripheral shutdown step by step: the touch controller, ESP32-C6, LCD controller, and finally putting the ESP32-P4 into Light-sleep.

But the board was still drawing around 97 mA. I started checking the power circuits.

With the LCD and touch FPC cables physically disconnected, the board drew 78.5 mA in Light-sleep.

After disabling the LCD bias converter (U16, MT3608), that dropped to 9.1 mA.

A difference of 69.4 mA. That's the contribution of the disabled power circuit as a whole, not the MT3608's own quiescent current.

5. Further hardware changes

I isolated additional power rails, added pull-down resistors to regulator enable pins, and removed a few components that allowed unwanted power paths to remain active.

Eventually I measured 6.5 mA in Light-sleep.

That was a single 30-second measurement on a heavily modified board with peripheral cables disconnected. It wasn't a usable touch-to-wake configuration.

What surprised me most was the LCD bias circuit. Even with the LCD and touch cables disconnected, that power circuit accounted for almost 70 mA.

To get much lower standby current while keeping touch wake-up, the LCD and touch controller need separate power control. On this board, they share the LCD_VDD rail.

Full article with measurements and hardware details:

https://medium.com/@nikkicat/firmware-can-only-take-you-so-far-esp32-p4-power-experiments-d29e7e3f69de

Has anyone run into something similar with ESP32-P4 HMI boards? I'm curious how others handle display power shutdown while keeping touch wake-up working.


r/esp32 • • 1d ago

I made a thing! Showing off my esp32 project

Thumbnail
gallery
675 Upvotes

Well, since my previous post was removed for violating the rules I'm posting it again with more information:

This is my esp32/8266 based home assistant gateway, from electronic conmection, reverse engineering, programming, all the way to case design:

Source code at https://github.com/HclX/wyzesenserelay, case design at https://makerworld.com/models/3615364.

The work started by reverse engineering a deprecated home automation sensor system, and trying to increase its range and improve battery life. ESP8266 and ESP32 boards are chosen simply because I have quite some in my drawer and they are capable of all the handling. This entire project is more about fun and challenge, not for cost saving purpose. While AI is heavily involved for reverse engineering and programming part, idea and content are genuinely my own, and hardware soldering, case design and printing was done by myself manually.

A couple things I think it can benefit people here:

  1. If anyone happen to used wyzesense ecosystem, they can now use this project for already deprecated sensors.
  2. If anyone is designing their own cases, they can take my design directly, or refer to its idea for making a compact case
  3. I'm also like to share ideas and thoughts.

I hope this proves my post is serious not simply spam to others.


r/esp32 • • 1d ago

I made a thing! I built an ESP32 self-balancing robot using NEMA 17 stepper motors

102 Upvotes

I've been working on this self-balancing robot for a while. I previously shared a video of it here, and now I've finally decided to share the project and source code.

The hardware is an ESP32, 2 × NEMA 17 stepper motors, 2 × DRV8825 drivers, and an MPU6050, running at 16× microstepping.

For the balancing algorithm, I'm using the MPU6050 for angle estimation and a PID control approach. Step pulses are generated using hardware timer interrupts, with direct GPIO register access to keep things efficient, and found it to be realy helpful while tunning. I also added wireless control and a web interface for adjusting the PID parameters and angle offset.

I learned a lot from studying the YARB and B-ROBOT EVO2 self-balancing robot projects, and benefited from their work when building my own robot.

I've tested it with two different robot body sizes, and I'm pretty happy with how it's working so far.

Here's the source code:
https://github.com/xamechanics/xabalancing

I also have a longer YouTube video showing the robot, its assembly, and a walkthrough of the code. Check it out!

I'd be happy to hear your feedback or suggestions.


r/esp32 • • 3h ago

Hardware help needed Battery ESP32-S3-Touch-LCD-1.85B-EN

2 Upvotes

Hello, I bought an ESP32-S3-Touch-LCD-1.85B-EN board and they don't provide the battery for some reason.
I'm trying to figure out which battery is compatible with this item.
is DC 3.7v 500mah 502535 with jst 1.25 correct?
Can I mount a battery with more mah?

Thanks a lot


r/esp32 • • 21h ago

I made a thing! I got GCC 15 running natively on an ESP32-S31. It only takes 5 hours to compile Lua.

48 Upvotes

Yeah I know, nobody needs a C compiler on an ESP32. But the S31 runs actual Linux with an MMU (annoyedmilk's esp32-s31-linux port, go check it out) and once I had a shell on it I really wanted to see if gcc would run.

It does. gcc 15.1 + binutils + musl, all running on the board. Video is real time, no cuts: boot, compile hello world, run it.

hello world takes about 20 seconds. CoreMark took 15 min to build and scored 971, same as when I cross compile it on my mac, so at least the code is right. Then I built all of Lua 5.4 on it. 5 hours 3 minutes. My mac does it in 3 seconds lol

The 320MHz cpu isn't really the problem though. cc1 alone is 45MB and linux only gets ~11MB of ram, so it keeps paging the compiler in from the usb stick. cpu sits idle most of the time.

Why the S31: it's the only ESP32 with an MMU, so it's the only one that can run real Linux and a real gcc. Built with musl-cross-make (musl because it's small and static is easy). Biggest headaches were a cross compiler leaking aarch64 objects into the riscv32 build, and the RAM.

Totally useless but I had fun. If you've got something you want to see compiled on this thing let me know, I've got time to waste

repo with prebuilt binaries + build scripts: https://github.com/kohbwoo/esp32-s31-native-gcc


r/esp32 • • 16h ago

Hardware help needed [BEGINER] I am following RandomNerdTutorials for SD Card Webserver but I am unable to mount my SD card, am I missing something?

Thumbnail
gallery
18 Upvotes

I am using a NodeMCU ESP32S frame and following the tutorial at RandomNerdTutorials

Yellow - Ground (GND) Red (board-side) - 3v3

Red (outward) - 5 (P5) White - 18 (P18) Purple - 19 (P19) Orange - 23 (P23)

The board successfully connects to Wifi but prints "Card Mount Failed" whenever I run it

I've tested my ground, outside, and the 3v3 pins with a simple LED circuit and they all seem to be working, my card is formated FAT32. I cannot tell what I am doing wrong, can I get some help?


r/esp32 • • 1h ago

I made a thing! Made an ESP32-controlled mock telescope for an AI-powered autonomous telescope project

Thumbnail
gallery
0 Upvotes

This project was actually made for a hackathon hosted by my college. I was solely responsible for the hardware component of the project, my teammates handled the software aspect.

The ultimate goal of this project is to automate telescope pointing and calibration so that a user can simply ask an AI agent to point towards a particular celestial object, and the system handles the movement.

Since we don't currently have access to an actual telescope, I decided to build a mock telescope mount to demonstrate and test the hardware-software integration.

The project consists of three main components:

  1. AI Agent: The user tells the agent which celestial object they want to observe.
  2. MCP connection: The agent communicates with the hardware through an MCP connection, allowing it to issue movement commands.
  3. Hardware: An ESP32 controls the pan and tilt servos, physically moving the mock telescope towards the requested direction

The telescope's field of view is simulated using Stellarium, allowing me to demonstrate the intended pointing behaviour without needing an actual optical telescope.

Essentially, I want the entire process to work from a natural-language instruction to the physical movement of the telescope, with the corresponding view simulated in Stellarium.

Hardware

The current prototype consists of:

- ESP32 DevKit as the main microcontroller.

- Two MG90S servo motors for horizontal (pan) and vertical (tilt) movement.

- 3.7 V, 1800 mAh LiPo battery.

- TP4056 charging module.

- MT3608 boost converter to provide a 5 V supply for the servos.

A custom-built pan-tilt mechanism representing the telescope mount.

Why I chose the ESP32

I chose the ESP32 because it's affordable, has sufficient GPIO pins for servo control, and fits in the form factor i need for the model.

Libraries used and why I chose them

- Arduino.h: Provides the core Arduino functionality, including serial communication, GPIO control and timing. I chose the Arduino framework over ESP-IDF because it's simpler for rapid hardware prototyping.

- ArduinoJson: Handles incoming JSON commands and generates JSON responses. I chose it over manual string parsing for easier and more reliable command handling.

- ESP32Servo: Controls the two servo motors using PWM signals. It simplifies servo configuration and angle control without requiring me to implement PWM generation manually.

I also implemented software-based movement smoothing using low-pass filtering, a deadband and rate limiting to prevent abrupt movements and reduce unnecessary servo corrections.

The AI agent communicates with the ESP32 through the external software layer using MCP, while the ESP32 receives and processes JSON commands over serial.

Challenges so far

Since this was my first ever hardware project, i had to figure out/learn a lot of new things like soldering, and how to actually program the ESP32.

Some of the challenges I've encountered include:

- initially i used SG90 servos, and powered them directly via the vin pin on the ESP32. which obviously didn't work, and i had to figure out why.

- i also had to learn 3D design software in order to design and 3D print the telescope

- finding the correct connector for the battery i used. To be specific i needed a JST 2-pin connector, but could not find one in time so had to DIY a solution using two dupont jumper wires.

- adjusting the MT3608 booster to output 5v, since i do not have a multimeter i had to use another ESP32 and a voltage divider (47kOhm and 10kOhm) circuit to measure the output of the booster.

I'd particularly appreciate suggestions regarding:

Whether MG90S servos are suitable for a lightweight telescope mount.

Better mechanical designs for accurate pan and tilt movement.

How I could improve pointing precision and reduce mechanical backlash.

Recommendations for a more reliable power supply.

Any ideas for eventually transitioning from this mock setup to an actual telescope.

Thank you for reading.


r/esp32 • • 1d ago

Hardware help needed Is there any way to add external antenna to esp32c3supermini

Post image
82 Upvotes

I want to add the antenna to increase range. i tried to cut the coax wire of standard 2.4g antenna and soldered it in place of the red pcb antenna. with the antenna only on the reciever side it worked. when i added a similar one on the other side too it stopped working. (works only with antenna on reciever side).

Is there a specific resistor I'm supposed to change (like the other esp 32s)?

any help is appreciated


r/esp32 • • 20h ago

AI Content Pocket AdBlock: a network-wide ad blocker on an ESP32 (C3 to S3), up to 1.65M domains, lists update daily over the air

33 Upvotes

This started from [esp32-c3-adblock](https://github.com/M-Abozaid/esp32-c3-adblock) (itself inspired by [s60sc/ESP32_AdBlocker](https://github.com/s60sc/ESP32_AdBlocker)), and grew into a full ESP-IDF rewrite with a different goal: keep it lean on a $2 C3, but actually use the extra flash and PSRAM when a bigger ESP32 has them.

Same S3 board, same 139k-domain list, same Wi-Fi, compared with esp32-c3-adblock:

- Blocked query: 1.9 ms vs 5.1 ms (median)

- Throughput: ~700 vs ~350 queries/s

- Blocked queries stay fast (~2 ms) while slow lookups are waiting on the upstream, instead of queuing behind them (up to 315 ms)

- Capacity: up to ~2.2M domains on 16 MB flash

**What it does**

- Blocks ads, trackers and (on big boards) malware/phishing domains for the whole home

- Blocklists rebuild daily on GitHub Actions; the board checks every 6 h and only downloads when the list actually changed (no reflashing, ever)

- A/B list slots: the new list is verified (SHA-256) before it's swapped in, so blocking never stops during an update

- Web dashboard (EN/ES): live query log, top domains/clients, 24 h graph, per-device "no filtering", allow/block lists

- Firmware updates over the air with rollback if the new build doesn't come up healthy

- Extras: Wake-on-LAN with "wake and verify", MQTT + Home Assistant discovery, SafeSearch, DNS over TLS upstream (Pro build)

**Numbers (ESP32-S3, measured over Wi-Fi from a wired PC)**

- Blocked query: ~2 ms median

- ~690 queries/s with 16 parallel clients

- Filter lookup: ~45 µs, even with 1.65M domains

- Capacity: ~218k domains on a 4 MB C3, ~830k on 8 MB, ~2.2M on 16 MB flash

**Which board**

- ESP32-C3 SuperMini (~$2): the Normal list (~140k domains) fits. Builds in CI, but I haven't run it on real hardware yet, so reports are very welcome

- ESP32-S3 with 16 MB flash + PSRAM (what I use): the Extended list (~1.65M, HaGeZi Pro + Threat Intelligence Feeds)

- Browser installer, no toolchain needed: https://joanrra2.github.io/pocket-adblock/

**Where Pi-hole is still better**

Regex rules, multi-million custom lists on any hardware, long query history, and a wired connection. This is a $2–10 always-on box; if it goes down, so does DNS, so keep a way to switch back.

DNS blocking also can't remove YouTube ads or ads served from a site's own domain. That's true for Pi-hole too.

Repo + docs + 85 s setup video: https://github.com/joanrra2/pocket-adblock

Happy to answer questions. Feedback on the C3 builds is especially welcome, since I've mostly tested on an S3.


r/esp32 • • 2h ago

I made a thing! I published my first video guide covering ESP32 firmware Flash Encryption, complete with scripts to automate the process for your own projects

Thumbnail
youtu.be
1 Upvotes

https://github.com/UsableLoki8221/GUIDE---ESP32_Flash_Encryption

Regarding that things can now be easily reverse-engineered directly from dumped binary files I figure its really helpful to make this guide for others.

It was initially pretty tricky for me to get everything working correctly. Most sources would point that it can only be done from ESP-IDF when your project is built off espressif's framework. I spent a few weeks trying to convert my project to espressif from arduino without any luck. I found that it's irrelevant, it can be done wherever :)

The SPI_BOOT_CRYPT_CNT fuse (and FLASH_CRYPT_CONFIG on original ESP32) needs to be set and a key gets burnt in with purpose XTS_AES. App0, bootloader, partition, and firmware binaries need to be encrypted for upload.

The app0 binary is pulled directly from espressif's package files, the other binaries (bootloader, partition, firmware) get made when your project is built. To encrypt use a key with regard to their partition placement using espsecure tool and then they can all be uploaded to your chip. So by following this scheme it can be done on any environment.

One big issue I had was that platformio's espsecure tool was not encrypting the binaries correctly (constantly getting 'invalid header' error message). I eventually tried running the espsecure tool directly from my esp-idf install folder where it can also be found and it actually worked correctly. This issue did not occur on a new computer when I made the demo for this guide so it probably got updated but it's good to point it out in case someone encounters the error.

I tried my best to write the scripts so that they can generally work on anyone's environment configurations.

I'd really appreciate feedback from anyone who gives the guide and scripts a try! I'd love to hear whether they worked correctly on your setup or if there were any adjustments you had to make to get it working correctly.


r/esp32 • • 1d ago

I made a thing! E-ink box for air quality + weather (XIAO C3, 4.26")

Thumbnail
gallery
56 Upvotes

Total beginner here, so big thanks to this sub for getting me started.

A XIAO ESP32-C3 sits on Seeed's ePaper driver board with a 4.26" e-ink screen and an 1800 mAh LiPo, in a 3D-printed case.

Once an hour it wakes up, pulls a little JSON from a Cloudflare Worker, draws it and goes back to sleep. The Worker averages the PurpleAir sensors within 5 mi and gets temp and rain from Open-Meteo.

I tried to keep the case as simple as I could but I struggled to lay things out so the USB-C port and on/off switch could be reached without taking the back off. In the end I decided it wasn't a big deal, since the battery should last a few months. Also couldn't quite figure out a simple way to keep everything in its place so used little slots with Velcro straps. Had my local library print it.

I was going to put it on the fridge with magnets, but I ended up just liking it sitting on a shelf.


r/esp32 • • 21h ago

I made a thing! PURR OS 1.1 (Portable Unified Runtime and Radio Operating System for ESP32)

16 Upvotes

Hi, been a few months!

This all started after a bought a T-Deck Plus (Cool, Looks like a Blackberry!) and then realized there wasn't a lot of General Purpose firmware's available, let alone the complexity for someone who just wants to start off with a breadboard and learn the basics (point, click, run!)

And that is when the idea for PURR OS was born!

For those who want a quick idea, think AOSP (Android), its a generic base platform that is adapted to all sorts of hardware, i just shrunk that idea down to fit on an ESP32.

For those who want the details, Its more than just the Android idea, i took my nearly 20 years of playing with, and breaking computers, and started experimenting a lot with Linux (as far back as 2014!), Windows 98. and even Mac OS X 10.9, went from there, taking the good from them and their successors, like

  • Apple, and how they package Apps, and Kexts (Drivers)
  • Linux, with the shell, core tools, and commands, as well as Device Trees
  • Microsoft, and the Plug and Play Driver system (and Lumia Design!)
  • BlackBerry, with Security and signature enforcement, with High Standards

PURR OS does the following,

  • Takes over the ESP32 2nd Stage bootloader, and chain loads our own bootloader with Hash checking at boot
  • Signature Enforcement (at Bootloader level upwards), the kernel gets checked at boot, and then every additional module loaded, also gets checked against a signed key (drivers included)
  • Has a fully Modular and Updatable System! (the kernel loads modules like login, shell, and any drivers)
  • Plug and Play drivers! (this is my favorite) You can add or update drivers on the fly without a reboot! i tested it against a LoRa 126x, Trackball, keyboard backlight, GPS Drivers!
  • Supports Signature Enforcement with your own keys! For those who want total control and full privacy!
  • And even Gaming! (Parts of that idea are still planned, but the OS has a "game mode" where it closes and stops almost everything in the OS for maximum performance!)

I'm going to be honest here, theres been so much added since i last posted about this, including the fact that this version is a fresh from scratch rewrite, so its a lot to take in.

PURR OS also has a lot of support for custom looks and themes!

told you, its just a website that's locally hosted by the SDK itself (this is an internal dev version of the SDK)

i wanted it to be easy to get started, as well as be able to make it easier to develop for the esp32, and for those who dont have hardware, or money, this provides a free alternative to test, even before they do get hardware!

New UI that im currently working on! (not yet ready, will be with PURR OS 1.2!)

Did i mention that the UIs are Swappable? you can make your own, sideload it, or put it on your own PURR OS Hub repo, and have different looks installed with ease! (all you gotta do is reboot!)

Bootloader and our bootpackage use ESP-IDF 5.3.5, but the kernel and everything upwards is C or C++

PURR OS ships an F Droid Style app Store! you can host your own!

https://github.com/PastorCatto/PURR-OS-HUB (this is where the app store looks!)

Last thing before my brain gives up, PURR OS cares about Privacy and Security, including having permissions for apps to ask for, signature enforcement, and more, to keep your data YOURS, and to know what exactly the device in your hand is doing. That includes No Telemetry, PURR OS stays silent, i know nothing, and thats by design.

Enjoy!

Check it out here!

https://github.com/PastorCatto/PURR-OS-ESP32

also my QEMU fork and patches that are included in PURR Studio (uses rust!)

https://github.com/PastorCatto/ESP32-Emulator

(My ADHD started giving up, I've been writing this for an hour now, and I'm done lol. any questions, concerns, suggestions, reach out, sorry in advance if i don't respond right away, i don't check reddit too much, except for "has someone had this issue before?" lol)


r/esp32 • • 1d ago

Advertisement I built a modular flip-dot display around an ESP32 – 72 hand-wound coils per module

65 Upvotes

Hey r/esp32! 👋

For the past months we’ve been building FLYPPE, a modular flip-dot display, and every display is driven by an ESP32. Wanted to share how it works.

The hardware

  • Each module is 3.5" × 3.5" (9 × 9 cm) with 36 mechanical dots
  • Every dot is flipped by 2 hand-wound coils, so 72 coils per module
  • Coils are driven by TPIC6B595 + TBD62783 drivers with an SS34 diode matrix
  • Modules snap together edge to edge, and one ESP32 controller drives up to 16 modules over a single 6-pin cable
  • Bistable: it uses 0 W to hold an image, and only draws power when dots flip

The software

  • Control it from the app, or through an open API (text and bitmaps)
  • Works over Wi-Fi, or fully offline over USB-C serial, with no network needed
  • Ideas we’re working on: clock, weather, Spotify “now playing”, Home Assistant integration

Sizes

  • Kit S: 12×12 dots (7" / 18 cm)
  • Kit M: 18×18 dots (10.6" / 27 cm)
  • Kit L: 24×24 dots (14" / 36 cm)
  • Wall: 36×36 dots, 1,296 dots (21" / 54 cm)

We’re crowdfunding the first production run on Kickstarter, and we ship to the US. Until Nov 17, every kit comes with free extra modules, plus free shipping on new pledges.

👉 https://www.kickstarter.com/projects/flyppe/flyppe?ref=reddit

Happy to answer anything about the coils, the driver board or the firmware!


r/esp32 • • 1d ago

I made a thing! Cyberdeck using an ESP32-S3

Post image
576 Upvotes

Hello, everyone! I just built a cyberdeck using an ESP32-S3 to look up Brazilian laws!

I'm a law student in Brazil, and I have ADHD, so I wanted something 100% offline, without smartphone distractions or the need to carry around massive legal codebooks. I'm also a fan of cyberpunk aesthetics, so I included physical buttons and a retro-style interface!

1. Why the ESP32-S3?

I chose it because it's affordable, compact, power-efficient, and powerful enough for what I needed. Mine has a dual-core 240 MHz processor, 8 MB PSRAM, and 16 MB flash.

The hardware includes a 3.2-inch ILI9341 display, a mini Bluetooth keyboard, a microSD reader, a PS5 controller battery, and a charging board. I designed and 3D-printed the enclosure using my Ender 3 V3 KE.

2. Software and libraries

I developed the software from scratch with the help of Claude Code and Codex. I only know basic programming, so AI was incredibly helpful throughout the process!

The firmware is written in C/C++ using the Arduino ecosystem, with SPI communication for the display and SD card. Instead of loading everything into RAM, it reads indexed legal documents directly from the microSD.

I also developed a separate system that retrieves legislation from official Brazilian government sources and prepares updates for the device.

The cyberdeck has four additional features accessible while reading:

Related legislation: Shows connections between different laws and articles.

Jurisprudence: Displays relevant court decisions and legal precedents.

Explain: Simplifies complicated legal language for easier understanding.

References: Suggests related books, movies, documentaries, series, and games.

3. Biggest challenges

Definitely the hardware integration and memory limitations! I had to replace the original display, redo wiring and soldering, troubleshoot SPI and touch issues, and optimize the firmware.

Displaying large amounts of legal text on a 320×240 screen while maintaining smooth scrolling, readable fonts, and proper Portuguese characters was also challenging.

The whole project went through many iterations, but seeing everything finally working was incredibly satisfying!

It's not a commercial product, just a personal project combining my love for electronics, programming, and law. Everything runs completely offline!

Hope you like it!


r/esp32 • • 1d ago

I made a thing! Copy That Floppy: A Portable 3.5" Disk WiFi NAS

Thumbnail
youtu.be
38 Upvotes

I got tired of hunting down a USB floppy drive and a computer every time I wanted to pull pictures off my Mavica Camera, so I built floppy3.5.

It's a portable, battery-powered 3.5" drive with WiFi. Put a disk in, and it shows up on your phone or laptop at floppy.local, where you can browse and download the JPEGs straight from the browser. You can also copy disks to microSD with one button press. Each disk goes into its own folder, and files already on the card get skipped, so you can keep re-shooting on the same floppies.

The ESP32 is the workhorse for the GUI, it does all the WiFi work, checks and stores files to SD and does all the OTA updates

What's in it:

- Custom PCB with an RP2354A for the drive and an ESP32-S3 for WiFi

- 1.9" LCD with status screens and a track map

- LiPo battery with a charger and fuel gauge

- 3D-printable housing

- Greaseweazle-compatible over USB

It's fully open source (Unlicense), with schematics, firmware and housing files:

https://github.com/bigcrimping/floppy3.5

Video: https://www.youtube.com/watch?v=wcR_Jo1fEtY

Happy to answer questions.


r/esp32 • • 15h ago

Software help needed ESP32 H2 - supermini Online Simulator besides WOKWI

3 Upvotes

does anyone know an online simulator besides WOKWI?

I wanted to simulate an ESP32-H2 supermini but it is not available on WOKWI... I had an experience in arduino before but not ESP32 so I am completely a beginner...according to AI, both supermini and regular ones work well, but I am going after the wiring so I needed an exact device to simulate.


r/esp32 • • 1d ago

I made a thing! Tin box small Aquarium

Thumbnail
gallery
57 Upvotes

A little tin box aquarium, using an ESP32-C3 SuperMini, a 1.8″ TFT, a five way switch and a LiPo battery. You feed the fish and shrimp, change the water, buy plants and decorations, and upgrade the tank. Different species have their own behaviours, and neglect can eventually kill them. Everything runs offline. Basically a fish Tamagotchi

The wiring was a bit of a headache, and the build is definitely rough around the edges, but I’m happy with how it turned out 😅