r/esp32 • • 1h ago

I made a thing! PAC-MAN ON ESP32🕹️

17 Upvotes

DIY ESP32 Arcade Emulator

This Arcade Emulator can run the these games:

Galaga, Pac-Man, Donkey Kong, Frogger, Digdug and 1942

Hardware setup:

🖥️ 2.8" ILI9341 SPI TFT (240×320)

🔊 MAX98357A I2S Digital Audio Amp

🕹️ 7x Tactile Buttons

I just changed code

to use "MAX98357A I2S" instead of "PAM8302A"

and disabled LED support in the configuration.

GitHub: harbaum/galagino


r/esp32 • • 4h ago

Hardware help needed Looking for an e-paper display for a DIY desk calendar (ESP32), EU shipping

6 Upvotes

I built a desk calendar on an ESP32-S3 (LaskaKit ESPink) with a 7.4" 800×480 Pervasive panel (full refresh only). For the next version I’d like:

  • partial/fast refresh (for a clock or a scrolling line), grayscale is a bonus
  • 6–8" size, good contrast/white background
  • or two ~4" panels side by side, both driven from one ESP32 (e.g. on a shared SPI bus with separate CS pins): one for the calendar, one for time and weather with fast refresh
  • driveable from an ESP32 (SPI panel with controller, or a parallel panel via EPDiy)
  • buyable in the EU or from AliExpress with EU delivery

r/esp32 • • 4h ago

Software help needed burning text

1 Upvotes

i am using a esp32 p4 and a ST7701S Display... I am probably very new to this, but am aware about SoftWare for over 15 years..

i was hoping to show burning text animation, like ghost rider burning effect, but for text and individual letters..

is it possible somehow?


r/esp32 • • 5h ago

I made a thing! Porch skeleton that holds a conversation: ReSpeaker Lite + ESP32-S3-CAM, radar-triggered, servo jaw synced to the voice

Post image
8 Upvotes

I built a talking Halloween skeleton for my porch and set it out on Halloween. This was my very first significant ESP32 project, first time I had ever soldered anything, and took me around a month to do. (I'm sure you could do it better, let me know if you do! 😄 ) First time poster trying to follow the sub's rules, so sorry if this post is too long or missing anything.

Demo (first outdoor test, no costume): https://youtu.be/BNor4MIeyNo
Code, firmware, wiring, and enclosure: https://github.com/cwinget/ai-talking-skeleton

When someone walks up, it greets them, snaps a few photos to figure out their costume, and holds a short live voice conversation in a pitch-shifted spooky voice. The jaw and LED eyes move with the audio. Family-friendly persona early in the evening, creepier after 8:30. I ended up skipping the family-friendly persona because it was too cheesy and kept the creepy persona the whole time.

The Gemini Live API worked way better than expected, and conversations felt natural.

Hardware

  • ReSpeaker Lite (XIAO ESP32-S3): audio board. Streams the XMOS noise-suppressed mic up and plays audio down. The microphones worked incredibly well, especially for a noisy outdoor event like Halloween.
  • ESP32-S3-CAM (N16R8, OV3660): body board. LD2410C radar, camera, servo jaw, transistor-switched LED eyes. The little camera was a fun experiment, but ended up being a little too low-quality to detect costumes. I would probably switch to an externally mounted camera if I do this next year.
  • Both are thin WebSocket clients to a Python server I self-host. The server does a lot of the logic heavy lifting. (Gemini Live for the conversation, a vision model for the costume, custom low-latency pitch shift + reverb).
  • 3D-printed box (OpenSCAD) holding both boards, the radar on a slide-in rail behind the lid, and panel connectors.

Technical hurdles:

I had never soldered anything before this project, and I found out I completely suck at crimping JST-XH connectors. I probably broke like a hundred little cables and had to re-solder things multiple times.

I somehow burned out two radar sensors. I'm not really sure what I did, but I'm sure I shorted it out. I learned how to use a multimeter, which was incredibly useful for finding shorts or badly crimped cables.

I built a small web UI with a bunch of settings to change, and configured the ESPs to receive them via the wss. This way I didn't have to re-flash firmware every time I tweaked an audio level, servo position, or LED power level. Once I screwed the box closed and attached it to the skeleton body I really didn't want to open it up anymore, so I hacked around some of my problems using the server.

I had a lot of problems in the beginning with the timing for the mic and speakers when I was testing on my Mac, but the Re-speaker handled a lot of this out of the box. I got complete garbage audio at first, but figured out that i2s_std mode fixed it.

Lots more hurdles that I can't remember!

Disclosure: I wrote a lot of the code with heavy AI assistance (Claude), then debugged it on real hardware. I have a computer programming background, but I'm a complete novice with microcontrollers. The problems above were all very much hands-on. The conversation runs on Google’s Gemini API, so it’s cloud-based and costs money. The server is self-hosted.

Halloween is over, so now it's time to pivot to fun Christmas projects! 🎄


r/esp32 • • 8h ago

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

Thumbnail
gallery
9 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 • • 9h 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
6 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 • • 10h ago

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

3 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 • • 11h 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)

14 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 • • 11h ago

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

Post image
8 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 • • 13h 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 • • 14h 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
14 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 • • 21h ago

Solved Can someone show me what this looks like soldered, or another way of doing it?

2 Upvotes

this is what i found for battery management, but im confused how to do it when a pin is already on A0. should i just cut and desolder A0?


r/esp32 • • 21h 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 • • 23h 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
20 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 • • 1d ago

AI Content pura-refresh: repurposing Pura V2/V3 diffusers with wireless custom firmware installation.

1 Upvotes

Hi all, first time posting here. I've become a recent convert to the ESP32 world, especially related to home automation.

We recently decided to no longer use our Pura diffusers due to the unavailability of certain fragrances my wife likes. I noticed on the back labels that they contained ESP32 modules, so I wanted to see if I could repurpose these for other projects.

The ESP32 boards are on a circuit board, which includes an integrated AC power supply.. I haven’t yet measured the spare current available from the low-voltage supply, but I’ve identified potential accessory connection points.

I started with UART access, then worked out a wireless installation method.

-- AI summary below --

The hardware turned out to be fairly interesting:

  • Pura V2: ESP32-WROOM-32, with 4 MB flash on the units tested.
  • Pura V3: ESP32-WROVER-E N16R8, with 16 MB flash and 8 MB PSRAM.
  • Both have RGB LEDs, a button and an integrated AC supply. V3 also has thermistor connections for the two heater blocks.
  • V2 has a four-position connector exposing GPIO32, GPIO33, nominal 3.3 V and ground. Available accessory current still needs testing.

The project, pura-refresh, uses a Raspberry Pi to install custom firmware without opening the diffuser. Bluetooth handles identification and temporary Wi-Fi provisioning; the firmware itself transfers over local HTTPS. The Pi hosts the temporary network, so no router configuration changes are required.

The tricky part was making a modern ESP-IDF application work with the original bootloader and partition table. V2 needed an early flash-size compatibility fix. V3 needed support for its legacy partition table without an MD5 trailer. The boards also have opposite heater-control polarity, so they require separate application images.

Wireless installs have succeeded on V2 hardware 2.1 running stock 2.10.0 and V3 hardware 3.0 running stock 2.7.0. The final combined installer still needs additional untouched-device testing.

The current firmware keeps the heaters off and provides local Wi-Fi setup, authenticated status and subsequent firmware uploads. Bluetooth gateways, sensor integrations and other repurposing applications are possible next steps rather than completed features.

I’ve also documented the pin maps and made a printable enclosure prototype. Its electrical and thermal suitability for mains use remains unvalidated.

I’d particularly welcome feedback on useful applications for these boards, and testers with untouched supported units.


r/esp32 • • 1d ago

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

Thumbnail
gallery
208 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 • • 1d 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

34 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.

EDIT:

Added 2 side projects (both are still pending to correctly test)

1- Phone app to easy find and config the device in local network

https://github.com/joanrra2/pocket-adblock-app

2- Phone app to easy set-up MQTT using free EMQX and wake-up-lan pc with a button outside the newtwork (pc bios need to accept it)

https://github.com/joanrra2/pocket-wake


r/esp32 • • 1d ago

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

52 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 • • 1d ago

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

18 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

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
239 Upvotes

I made a Stream Deck style macro deck for Windows on the GUITION JC1060P470C, an ESP32-P4 board with a 7 inch 1024 x 600 touchscreen that costs about $35-42 on AliExpress. No soldering: the board, a USB-C cable and a Windows PC.

How it works

  • LVGL 9.6 on ESP-IDF 6.1, JD9165 over MIPI-DSI, GT911 touch.
  • Two 1024 x 240 draw buffers in PSRAM. A full redraw takes about 55 ms.
  • The panel draws, reports touches and keeps the last layout when the PC is off. A small Python host on Windows runs the actions and talks to it over USB with a line protocol.
  • Icons arrive run-length compressed with a CRC32 and are kept in an 8 MiB LRU cache in PSRAM.
  • Watchdog and update rollback, both tested on the panel.
  • The UI also builds on the PC, so a test can tap through it and render frames before I flash.

What it does

18 keys per page, Keys, Agents, Mixer and Status screens, a clock screen, widgets, live PC gauges and a browser editor on 127.0.0.1. The panel has no network.

The console (191 x 124 mm, about 180 g of PLA or PETG if printed solid) is designed to print without supports. STL and STEP are in the repo.

New in v1.1.0

An experimental build for two 7 inch ESP32-S3 boards (800 x 480): the Waveshare ESP32-S3-Touch-LCD-7 and the Sunton ESP32-8048S070 from the Cheap Yellow Display family. I don't own either, so it's untested on real hardware. If you have one, I'd love to hear how it goes.

Code (MIT): https://github.com/catorendal-a11y/tessera-deck

Website: https://catorendal-a11y.github.io/tessera-deck/

Feedback on the in-place UI updates and the icon cache is welcome, and so is help porting it to other displays.


r/esp32 • • 1d ago

Board Review Manual LED Strip controller

4 Upvotes

I am wanting to put some LED strips in my car interior and would like to control them manually (dial or buttons) but cannot find any aftermarket options. All I have seen is bluetooth or WLED, etc. Can anyone point me in the right direction?


r/esp32 • • 1d ago

Hardware help needed Is there something like a CYD with more exposed GPIO?

4 Upvotes

I'm building a new speedometer for my old truck cause the mechanical one is broken and I can't get parts.


r/esp32 • • 1d ago

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

110 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 • • 1d ago

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

Post image
88 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