r/esp32 • • Mar 18 '25 Bravo

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

256 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 • • 4h ago

I made a thing! AirSense – An Open-Source Smart Air Purifier Built with ESP32-S3

Thumbnail
gallery
106 Upvotes

Air purification shouldn't stop at filtering the air. Understanding the environment around us is equally important.

AirSense is an open-source smart air purification system designed to bring air quality monitoring, intelligent connectivity, and HEPA filtration together in one integrated device.

Built around the Waveshare ESP32-S3, AirSense combines custom embedded firmware, environmental sensors, and Arduino IoT Cloud to deliver a connected air purification experience using accessible hardware.

Inside the System

Environmental Intelligence

  • Real-time PM2.5 and AQI monitoring
  • Indoor air quality (IAQ) measurement
  • Temperature, humidity, and atmospheric pressure monitoring

Embedded & IoT

  • Waveshare ESP32-S3 as the central controller
  • Custom firmware and sensor integration
  • Arduino IoT Cloud for remote monitoring and control
  • Web-based environmental monitoring dashboard

Air Purification & Mechanical Design

  • Xiaomi Air Purifier 4 Lite HEPA filtration system
  • Custom enclosure designed in Autodesk Fusion 360
  • Integrated electronics and filtration assembly

Designed to Be Open

AirSense is a completed, functional build. The complete project is documented and publicly available, including source code, hardware resources, design files, and build instructions.

The intention is simple: make a capable smart air purifier that others can understand, build, modify, and improve.

Explore the Project

Built with accessible hardware. Designed with purpose. Open for everyone.

I'd love to hear your technical feedback, ideas, and suggestions for future improvements.


r/esp32 • • 23h ago Bravo Heartwarming

I made a thing! 7 ESP32-S3 boards running a tiny fictional republic on ~6.4 W

Post image
971 Upvotes

Six ESP32-S3 boards each host 20 tiny neural nets (9-6-3, 81 int8 weights each, 120 "citizens" in total). A seventh board is the gateway: it collects the regions over radio, runs elections, and publishes a small newspaper and raw data files every night.

The whole country draws about 6.4 W at the wall (measured with a smart plug). In seven weeks the citizens have built a shared vocabulary of 40 common words, elected 6 presidents in 16 elections, and lived through two revolts.

It's a personal art + science side project (I'm an optometrist, not an engineer). The firmware isn't public yet, but the nightly data is. Happy to answer questions on the hardware, the power budget or the radio setup.

https://www.microcontroland.org/en/?from=reddit-esp32

What the Republic owns today:
• 120 citizens, 6 regions, 1 capital (it moves with each president)
• A daily bilingual newspaper, La Puce Libre (49 issues), plus a rebel paper that appears only under censorship
• A language of about 40 common words and a national chant
• A National Museum: 8 rooms, 300+ artworks drawn from the citizens' own weights, and a gallery of presidents
• A National Library of books the country writes about itself
• A national polling institute, an Embassy (with a very bureaucratic help desk), a tourist office and a digital customs post that turns away suspicious bots
• A 4th national treasure in testing: a quantum 'Eye' (a camera reading light noise) for a future national lottery

The final firmware, the PC simulator and the 3D files (including the case of the random generator for the future lottery) will be released on the Microcontrôland data site once I finish the roadmap, in less than a year: https://donnees.microcontroland.org/
For now the project is at update 2 of 7.

I hid a few easter eggs in the virtual tour of the Microcontrôland museum. Good luck! The museum grows every day.

Edit: Sorry for my English, I'm French. I ask an AI to help me write and correct my replies so I can communicate. From now on I write them myself first and the AI only fixes the spelling. Thanks for all the questions!

A bit about me: I started programming on a Thomson MO6, an Atari 520 STE and an Amiga 500 and 1200, then made video games for my kids, even my own small home-made consoles, and my first chat robot around 2000. Microcontrôland is the latest one, after its ancestor "Hinton", the school project.


r/esp32 • • 9h ago

Hardware help needed What is this component?

Post image
15 Upvotes

Hello, I accidentally released some magic smoke from (fried) this circled component on my ESP32 Cam programmer board, and I would like to replace it, but I am unsure of what it is. Would you please try to identify it and let me know what it is?

I appreciate your help!


r/esp32 • • 8h ago

I made a thing! ESP32-P4 bike rear-view: int8 detection, tracking through potholes, TTC — full build details

8 Upvotes

I'm building a rear-view for my bicycle. A USB camera points backwards, an ESP32-P4 runs a vehicle detector locally, and the same MJPEG stream goes out a second USB port to a handlebar display. The display shows navigation when the road behind is clear and switches to the live rear view with a warning when something is closing in. This post is the vision half — work in progress, and no road-tested numbers yet.

Hardware

  • ESP32-P4 board with an ESP32-C6. The C6 runs ESP-Hosted 3.0.10 as a co-processor (SDIO 4-bit, 40 MHz); it is not used for video.
  • Camera: USB UVC, 640×480 MJPEG at 25 fps, on the P4's high-speed USB host. Camera power is gated by GPIO29.
  • Output: full-speed USB device on GPIO24/25, UVC bulk MJPEG, 25 fps target, 40 ms absolute pacing, latest-frame-wins.
  • Display: handlebar unit that consumes the MJPEG plus JPEG APP15 metadata — box coordinates, risk level, TTC, track ID.
  • Why this shape: the P4 is the only chip in this class I know of that does USB host capture, int8 inference, and USB device output without a second MCU in the middle.

Libraries vs code I wrote

  • Used: ESP-IDF v6.1, ESP-DL 3.3.11, esp_new_jpeg, esp_usb_host_uvc, TinyUSB.
  • Model: single-class vehicle detector built with ESP-DL (ESPDet head), int8, 288×384 input, trained on whole-frame labels rather than tiles. On my 280-image val set: mAP50 0.62 int8 / 0.70 fp32. Enough for this job, not a benchmark win.
  • ESP-DL is pinned in-tree as a source overlay, because the registry version alone dropped P4 conv/resize/tensor fixes. The overlay also adds the P4 reduce-s16 kernel and hardens the dual-core workers (8 KiB aligned stacks, release/acquire handoff).
  • Mine: UVC capture with reconnect, the full-speed UVC bulk output, a ByteTrack-style tracker with global motion compensation, a 1.8 s lost pool and a 4× box-width re-anchor pass, the τ = h/ḣ risk estimator, a sparse optical-flow veto, the APP15 TSD1/TSR1 encoder, and the C6 link.

Three things that actually took the time

  1. Internal RAM ordering. The model wants one contiguous 300 KB internal block. If I open the UVC stream first it takes ~57 KB and leaves 296 KB — fails by a hair. The detector now loads before the stream. I also hit a double free in usb_host_uvc on the stream-open failure path that aborted the whole firmware; the fixed driver is pinned in patches/.
  2. Potholes vs track IDs. On a bike, one bump translates the entire frame by tens to hundreds of pixels, IoU association dies, every car gets a new ID, and the box-height history that TTC depends on is gone. I estimate global translation on an 80×60 grayscale thumbnail, using only a band near the horizon (self-motion makes the near road unusable), compensate each track by accumulated offset, keep confirmed IDs hidden for 1.8 s, and add a wide re-anchor pass at 4× box width. Offline over 28 clips, near-box ID switches went from 0.11% to 0.07%.
  3. Parked cars vs real approaches. Box-height τ (Lee 1976) lives or dies on the slope: Theil–Sen instead of least squares, 70th-percentile residual, pixel SNR gate, width and height must grow together, minimum box height 8.5% (41 px), bump frames discarded, single-frame jumps over 35% reset the window. TTC uses a short 0.75 s window minus half a window, so at 8 fps the red level turns on with ~1.4 s left on a true 3 s TTC. A sparse optical-flow expansion estimate inside the box can only veto an escalation, never trigger one.

Current state and honest limits Inference runs at ~8 fps on-device while the bridge keeps its 25 fps target. 4 fps is the practical floor for the risk logic — below that it refuses to escalate rather than false-alarm, which is the tradeoff I chose. On-device int8 behaviour is still being tuned against the offline simulation, so I'm not quoting field numbers yet. Not handled: headlights at night, lateral crossers, and there's no metric distance. The rear mmWave module is a separate sensor; fusing its range and approach speed is the next step, so nothing above depends on radar. I'll open-source the whole thing once it's in decent shape. My main debugging tool right now is the 5-second log line


r/esp32 • • 7h ago

I made a thing! 3270 terminal using TTGO VGA32

6 Upvotes

I have created a stand alone 3270 terminal using a TTGO VGA32 for all the mainframe nerds.

It can be found at: https://github.com/centar2007/ESP3270


r/esp32 • • 18h ago

I made a thing! Arcline One: my DIY touchscreen macro pad (ESP32-S3 + 4" display)

Thumbnail
gallery
31 Upvotes

A Stream Deck–style pad with a 4" touchscreen and volume knob in a 3D-printed case. A desktop app designs the pages and feeds the pad live data: now playing, per-app volume, PC stats and Discord.

Why the Esp32 S3 N16R8

Native USB: the S3 shows up as a USB keyboard and media keys and a serial link on one cable, with no driver and no USB-to-serial chip. The older ESP32 can't act as a USB device

8 MB PSRAM**:** a full 480×320 picture is about 300 KB in RGB565. The PSRAM holds a 4 MB cache of tile pictures and preloads the neighboring pages, so swiping doesn't stall.

16 MB flash**:** leaves room for a 9 MB file partition that stores every tile picture right on the pad.

Libraries and why

LVGL 8.4: a real UI toolkit (sliders, animations, layered menus) instead of drawing pixels by hand. Slide transitions and pop-ups would have been painful otherwise.

LovyanGFX: the screen and touch driver. Chosen over TFT_eSPI because it does fast DMA transfers over SPI and is set up in code, not by editing library header files.

ArduinoJson 7: reads the layout file the PC app sends.

PC side: Python with Pillow to render the tile faces, pycaw for per-app volume on Windows (pactl on Linux), and pywebview + pystray for the app window and tray icon.

Hurdles and edge cases

Frosted glass is too heavy for the S3 to draw live. I moved all the rendering to the PC: every tile face is pre-baked and dithered, and the pad just shows pictures. That's also what made full theme reskins possible.

Screen variants: some panels glitch at high SPI speeds, so display speed (40/60/80 MHz), rotation, colour inversion, r/B swap and touch calibration are all settings.

Apps fighting the volume: my music player resets its own volume on every song, so the app now watches each channel and puts the level back within half a second.

Old firmware vs a new app: an older pad refused a new file type and the connection kept dropping. Now the app checks the firmware version before sending it.

Status: built, printed and tested on real hardware, and everything works as planned.


r/esp32 • • 12h ago

I made a thing! Oriole: open-source smartwatch-style firmware for the round Waveshare ESP32-S3 AMOLED

Thumbnail
gallery
6 Upvotes

I made a Pixel Watch-style interface for the Waveshare ESP32-S3-Touch-AMOLED-1.75C. It has a push-to-talk Gemini assistant, 10 clock faces, iPhone/Android notifications and music control, weather, Home Assistant and a bunch of small apps, all running at 60 fps.

The device has a really nice screen and I wanted to have an on desk companion that I can carry if I want. I used Claude and Gemini to create it. It uses its own driver to achieve constant 60fps. Supporting notifications for both iOS and Android was a with of a hurdle since iOS has native support for most things. Whereas Android requires a companion app.

You can install it straight from the browser, no toolchain needed: https://el.github.io/oriole/

I picked the name Oriole because I love birds, and it had to be a bird name 🐦

Code: https://github.com/el/oriole

Feedback and ideas welcome!


r/esp32 • • 11h ago

Hardware help needed Resources for building your first pcb?

5 Upvotes

Hi! Looking to build/design my first esp32 (c6) board, with low power consumption in mind, do you have any pointers where to start/advice on resources?

Thanks!


r/esp32 • • 1d ago

I made a thing! Music video snow globe using a T-Display S3 H741-02

616 Upvotes

I saw a post somewhere a while back showing off a display playing into a half-sphere, and tracked down the Lilygo T-Display S3 version H741-02 that is an ESP32 S3 round OLED device with such a sphere attached from the factory. It also comes with a microSD slot. A bit of AI-accelerated trial and error with performance later, and I got it playing 30fps MJPEG from the SD. The rest was just hooking it into the existing BT remote eco system I have which includes multiple ESP32s and an Innioasis Y2, so that entire pipeline was already done. The video is local, the sync is BT, with fallback to album cover that also comes via BT. Video conversion is handled by the Android app or via the Windows companion app (much much faster).

The stand is from a $5 mini snow globe I found in a local store, with a 180 degree USB-C adapter glued to the bottom so the entire ESP32 "blob" is removable.

Need to look into the delay, but that's just accounting for communication delays.
Edit: Delay is fixed. I totally didn't forget to measure BT roundtrip delay despite the fact that was already working fine on the Y2, no no, that would be silly.


r/esp32 • • 11h ago

Hardware help needed Tips for removing black plastic from esp32 headers.

4 Upvotes

I have to mount my esp32 flush with my PCB and the only way I know to do it is to remove the black plastic from the header pins and then solder to the PCB.

But, removing these is harder than i thought it would be, it takes a while, sometimes i bend the pins by accident, and i'm stressing the solder joints.

I figure someone must have a tip for doing this.

Any help would be appreciated!


r/esp32 • • 13h ago

Hardware help needed Thoughts on the ESP32 P4 Display for my project?

4 Upvotes

Hello everyone! Im just getting into ESP32 and I want to make a small little project. This project is a small little dashboard that I can put on my desk. I was wondering if the ESP32 p4 is good for this? The software might be a bit heavy, as it has very smooth animations and lots of background animations going on, so I was wondering if lag would be an issue with this. Thank you in advance for any help!


r/esp32 • • 1d ago

I made a thing! Solar ESP32 + LoRa board

Thumbnail
gallery
46 Upvotes

Share Project.

I made a small solar powered node board for Meshtastic and put everything on Github,

It's an ESP32-WROOM-32 with an RFM95W (915 MHz) . Power side is a CN3791 MPPT charger for a Li-ion cell, an INA219 to read battery voltage and charge current, a MT3608 boost to 5V and a STI3408B buck down to 3.3V. Programming is over USB-C with a CH340C and auto reset.

For sensors there are two I2C ports (JST-EH, 4 pin: SCL, SDA, 3.3V, GND) that share the bus with the INA219, and three analog ports (JST-EH, 3 pin) on GPIO32, 33 and 34. Each analog port has its own solder jumper to pick the sensor supply, 5V or 3.3V, and the signal goes through a 10k/15k divider so a 5V sensor output is scaled down to about 3V before it reaches the ESP32. Those pins are ADC1, so they still work with Wi-Fi on.

More Detail on Github.
Link


r/esp32 • • 1d ago

I made a thing! Made a gameloader/bootloader for my game boyish device with a bunch of games

Thumbnail
gallery
16 Upvotes

It's a basic bootloader that flashes bin files from the sd card and you can switch between games and not be stuck with one game till you reflash it with your ide. The especially esp32 being used is a generic esp32 dev board.

These games push esp32 to their absolute limit, like the doom(ish) game utilised almost all of its resources. Other games are mostly basic ones. The display being used here is 1.8" ST7735 tft display and it having an inbuilt sd card slot came in clutch but you can use an external sd card reader aswell. There is also a buzzer which you can toggle on or off by double pressing the down button.

I know it's not fresh idea or anything but this just something i made with hardware i have. Also feel free to port/make new games, I have added instructions on how to make it work with the bootloader.

Here is the repo link for anyone wanna check it out.


r/esp32 • • 1d ago

I made a thing! New to ESP32? Which Board Should You Start With?

7 Upvotes

ESP32: A good starting point for basic Wi-Fi projects, sensors and simple IoT devices.​

ESP32-S3: Worth looking at if you're working with displays, cameras, audio or USB.​

ESP32-C6: A good fit for projects involving Wi-Fi 6, BLE, Thread or Zigbee.​

ESP32-S31: Another option to explore for more interactive hardware projects. Check the actual board's peripherals before choosing.

My advice: Don't pick a board just because it has the biggest spec sheet. Start with what you actually want to build.


r/esp32 • • 21h ago

Hardware help needed USB keyboard on the Waveshare ESP32-P4-WIFI6-Touch-LCD-7B - a few questions.

2 Upvotes

Hey people,

I am looking a putting together a r/writerdeck using a the Waveshare ESP32-P4-WIFI6-Touch-LCD-7B.

I am completely new to this stuff so just wanted to ask a few questions before I pull the trigger on all the parts.

I want to plug a normal wired USB keyboard into its USB-A port. The wiki docs describe that port as USB 2.0 OTG High Speed, but I can't find a keyboard example for this board specifically.

A few questions for anyone who's tried it:

- Has anyone used a USB keyboard with this board (or another ESP32-P4 board)?

- Is Espressif's USB host HID example the right starting point, or is there something better?

- Any gotchas with mechanical keyboards, e.g. power draw etc.

Thanks in advance!


r/esp32 • • 1d ago

I made a thing! The smallest to do list that's ever lived

Thumbnail
gallery
77 Upvotes

Xiao esp32c3, 0.96 inch oled screen with built-in encoder and 2 airpods batteries connected in parallel. Dimensions: 30x30x17.2 mm.

I've decided to use seeedstudio xiao esp32c3 because it's small, has built-in battery charging circuit and uses 44 μA (according to docs).

UI was made by using lopaka and exported as u8g2 code. u8g2 is good for monochrome displays, but working with it was pain. Esp32 was bootlooping without any meaningful error message. I've fixed it using esp-exception-decoder. In u8g2 you must define font before any text.

Tasks are stored as json file in littlefs file system,which you can edit on webpage.

Webpage files also located in littlefs and deployed using EspAsyncWebServer library.

Sketch, webpage and 3d models are on github


r/esp32 • • 1d ago

Hardware help needed Using JTAG pins

Post image
8 Upvotes

my proyect is about an making a car with the esp32, the model i got is the one above. i got 2 tt motors and one of them can be connected to the free pins on 21 and 47. i tried to put the other motor on the 42 and 41 pins but they are not working. ive been reading online that they can be reprogrammed but ive also been told that i could wreck the internal system if i changed them. any help is welcomed.


r/esp32 • • 1d ago

I made a thing! I got lidar SLAM, particle-filter localization and Nav2-style navigation running on a single ESP32-S3 (simulated robot for now)

Thumbnail
gallery
3 Upvotes

I teach ROS at universities in Korea, and I wanted to see how far one ESP32-S3 can go without a Raspberry Pi or Jetson on the robot.

Robolet runs the whole 2D-lidar navigation stack on one ESP32-S3-N16R8 (240 MHz, 8 MB PSRAM): SLAM, AMCL-style particle-filter localization, kidnapped-robot detection and relocalization, path planning and tracking, recovery behaviors and a collision monitor. They are written as ROS 2-style nodes with topics, services, parameters, lifecycle and actions, and the messages are byte-identical to ROS 2 CDR (checked against rosbags for 86 types).

Measured on the chip (robot and lidar simulated on the chip, 5 environments):

- longest cycle 124-136 ms, inside one lidar revolution (143 ms)

- about 29% of one core while mapping, 14-20% while navigating

- kidnapping detected after 0.29 s, relocalization error 0.01-0.04 m

Honest limits:

- not yet tested on a physical robot (next version, with a YDLIDAR X4)

- no DDS/Zenoh on the chip; a PC bridge republishes the topics to ROS 2 so rviz2 can show them

- fixed map size, no loop closure

Code (Apache-2.0): https://github.com/robolet-os/robolet

DOI: https://doi.org/10.5281/zenodo.24574818

It's a research prototype. I'd really like to hear what you'd change, or what you'd want to see tested on real hardware first.


r/esp32 • • 1d ago

Software help needed My esp32 keeps failing

2 Upvotes

So I just got my first esp32-wroom for my first ever project but whenever i click upload and it says connecting it gives me a fatal error I've tried holding boot, boot then reset then holding boot nothing seemed to work i need help :/


r/esp32 • • 2d ago

I made a thing! I built an ESP32-powered planter that can sense, remember, and interact

65 Upvotes

I've been working on a project called Rooted Intelligence, exploring what a quieter form of physical AI could look like.

What if AI didn't have to look or behave like a human or a pet, but could be something more stationary and connected to its environment, like a plant?

Here's what I've built so far:

Hardware & features:

  • ESP32-S3-CAM as the main controller
  • Soil moisture and BH1750 light sensors for environmental sensing
  • A tiny OLED display with pixel animations that respond to sensor readings
  • A camera that periodically captures moments from its surroundings
  • A web app for monitoring sensor data, browsing photos, and reading AI-generated diaries
  • Conversational AI with voice and text interaction through the web app
  • A custom 3D-printed enclosure

Why ESP32-S3-CAM:

I mainly chose it for its camera support and Wi-Fi connectivity. I didn't put too much thought into the board selection at the beginning, but for the next iteration, I'm considering a custom PCB to reduce the hardware footprint and improve component integration.

Libraries:

I'm using Wire, ESP_I2S, esp_camera, WiFi, WebServer, DNSServer, Preferences, HTTPClient, WiFiClientSecure, and ESPmDNS, along with a custom OLED runtime module.

Hardware challenges:

The biggest challenge was fitting all the components inside the custom enclosure. I had to carefully position the sensors and other electronic components, make sure they didn't interfere with each other, and keep everything securely in place. Moving from a breadboard prototype to a soldered setup was also part of the challenge.

Coming from a design background, this is my first attempt at bringing hardware, software, industrial design, and AI together into a physical product.

Any constructive feedback or technical suggestions would be greatly appreciated. Happy to answer any questions about the build!


r/esp32 • • 2d ago

I made a thing! I built an ESP32 emulator that can run Doom in the browser

97 Upvotes

Video: Doom shareware on a real ESP32-S3 + ILI9341 on a breadboard, then the exact same firmware running in my emulator in the browser.

Demo (no sign-up): https://flomotion.app/schematic/3214c185-666a-42e0-9c09-ed17b9079799

Chip: ESP32-S3

Picked the S3 for the octal PSRAM (heap and .bss live there) and native USB OTG, which drives a PS5 DualSense as a USB-host gamepad. 16 MB flash, 240 MHz, DevKitC-1.

Libraries

- Based on Espressif's esp32-doom (Sprite_tm's PrBoom port), since it's already built around ESP32 constraints.

- Ported it to ESP-IDF 5.5 / CMake for the S3.

- Display: the port's own SPI LCD driver on the IDF spi_master, not TFT_eSPI or LovyanGFX. ILI9341 at 320x240 on SPI2 with DMA at 26 MHz, with the 8-bit framebuffer converted to RGB565 in DMA chunks.

- usb_host_hid for the gamepad, plus 8 push buttons on GPIO.

Hurdles

- Old PrBoom C code on a modern toolchain: needed -fcommon, and .bss had to move into PSRAM to fit.

- The WAD sits in a raw 4 MB flash partition and is memory-mapped once instead of per lump.

- The timing had to move to esp_timer.

- Moved the display pins so the breadboard jumpers run straight. A slower 10 MHz SPI build for long jumpers was tried and reverted.

The emulator

Written from scratch in Rust, compiled to WASM. It emulates the Xtensa LX7 cores, octal PSRAM, SPI2 DMA and the ILI9341, enough to boot unmodified ESP-IDF 5.5 firmware. Getting Doom playable needed a JIT that compiles Xtensa code to WASM: compiled blocks chained inside WASM, compiled interrupt/window-exception paths, and shared code compiled once (22 MB down to 8 MB of WASM per run, half the host CPU).

Full disclosure: Claude Opus 5.5 wrote all of the emulator's Rust code.

No sound yet, the audio calls are stubs.

Doom shareware © id Software


r/esp32 • • 2d ago

I made a thing! I built a big-dog feeder with controller on ESP32 and parts breadboard-compatible, off a 5V USB charger do drive a worm gear motor and a set of 3D printed auger and chute geometry

44 Upvotes

My Golden Retriever Maya eats large kibble, and the commercial feeders I tried kept jamming on it. So I built my own. It took a lot of real-life iterations, and I learned a few things along the way that might help someone doing something similar.

The chute: getting the weight off the auger
A full box holds about 11 kg of kibble. If all that weight sits on the auger, kibble gets crushed, bridges, or wedges and stalls the motor. So the fix wasn't more torque, it was geometry.

The opening above the tunnel is more than 8 kibbles wide, with an angled floor inside it. Kibble slides down the wall first, then drifts into the tunnel, where the auger pushes it out. The auger fits the tunnel closely with no extra space, and I worked hard to leave no dead corner or ledge anywhere a kibble could get stuck, wedge against the auger, or start a bridge.

Power: everything on 5V USB
Because the auger only moves what's in front of it, it doesn't need to be driven hard. A nominal 12V worm gear motor driving a 3D-printed auger has enough torque at 5V, drawing less than 1 A and usually under 0.5 A. I ramp the PWM on start and on reverse to avoid current spikes, so a standard USB phone charger runs the whole thing.

Jam handling with an INA219
The INA219 reads motor current. A few thresholds tell me what kind of stall it is and which recovery to try. The auger then runs a back-and-forth clearing routine, counts the attempts, and uses the current reading to confirm it's free again.

Logging (screenshot attached)
Every feed and every reversal goes into a circular log on LittleFS (about 30 days), with each delivery graded by its current profile against a 0.50 A threshold:

  • Good: less than 10% of the meal time over the threshold, no reversal
  • Saved: a jam the reversal routine cleared
  • Partial / Jammed: attempts exhausted, or more than 50% over the threshold

So far it's 532 meals: 529 good, 3 saved by the reversal routine, and 0 partial or jammed. The last 30 days were 60 out of 60 good. The page also shows motor current per meal (min, avg, max), Wi-Fi outages and the last reboot. This was the most useful part for tuning. Instead of guessing whether a chute change helped, I could see it in the current data.

Schedule without Wi-Fi
Time syncs over NTP. If Wi-Fi drops, the internal clock keeps the schedule running, and it resyncs when the connection comes back.

Web app on the ESP32
The web app is served from the ESP32 itself. It works either as its own access point or on your home network (mDNS), and setup, manual feeding and stats are all done from a phone.

Platform

  • ESP32 DevKit V1 on Arduino. Cheap, easy to find, breadboard-friendly, Wi-Fi built in.
  • Every component is breadboard-compatible.
  • Libraries: WiFi, LittleFS, ArduinoJson, NTP time, mDNS.

Enclosure
A wooden farmhouse-style box with a food-safe kibble path. The chute sits inside the woodwork, so it doesn't look like a gadget in the kitchen.

I'm curious how others handle motor stall detection. Has anyone used something other than current sensing, like an encoder or a hall sensor on the auger? Happy to answer questions about any part of it.


r/esp32 • • 1d ago

I made a thing! esp32 access control

Post image
10 Upvotes

I've been building Limen, a self-hosted, open-source access control system. Here's the first reader prototype: an ESP32-S3 + PN532 + a relay, built from off-the-shelf parts.

It reads MIFARE and DESFire cards, and phones through a small Android app (APK) that works over both NFC and BLE. The reader decides locally, so doors keep working even if the server is down. The server is a simple web app you can run on a Raspberry Pi.

It's still a prototype, so feedback is very welcome.

Parts, photos, wiring diagram and the APK are on GitHub: https://github.com/isidorzabiku-pixel/Limen-Access-Control