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

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

57 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 • • 3h ago

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

25 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 • • 5h 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

22 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 • • 15h ago

Hardware help needed My ESP32 project works on breadboard but fails on prototype PCB. The ESP32 runs fine when removed from the PCB but does not work when it is installed in the rest of the circuit. Post has full details along with GitHub repo link containing code and schematic.

Thumbnail
gallery
47 Upvotes

Github repo, including code and full schematic: https://github.com/rabbiabe/enchantress-quadrature-chorus/

I am working on a guitar effect pedal design that uses one of the generic aliexpress ESP32C3 super-mini boards to control and generate a low-frequency oscillator, but the actual audio processing is happening in discrete analog circuitry (no DSP on the ESP32). 

The ESP32 and DAC (MCP4728) worked when I set them up on a breadboard and read the LFO outputs with an oscilloscope, but on the fully-populated prototype PCB the ESP32 doesn’t work – it turns on (red LED) but nothing happens. 

When I remove the ESP32 from the PCB and plug it into my computer, I get the startup messages in serial monitor up to the point where it tries to initialize the DAC, at which point it obviously fails because the DAC isn’t there.

If I try to connect the ESP32 to serial monitor while it is installed in the PCB, nothing happens – the computer does not see a serial port for the ESP32. This holds true whether I am powering the ESP32 via usb or if I first power it via the main PCB power (PCB takes +9V and uses LM7805 to give +5V to ESP32).

Can anyone suggest what might be causing this problem? I checked the data sheet and as far as I can tell the pins I am using don’t have any “hidden” function that would interfere with USB serial. The PCB has test points for power and it seems like the ESP32 is getting the power it needs – the onboard LED comes on but that doesn’t tell me a whole lot. 


r/esp32 • • 1h ago

I made a thing! I turned an ESP32-S3 Cardputer into a FIDO2 + OpenPGP security key with on-screen approval (open source)

Post image
3 Upvotes

I built this, so I'm biased, but I think the ESP32-S3 parts might be interesting here.

SecTrustKey runs on the M5Stack Cardputer ADV (ESP32-S3, 8 MB flash). One USB composite device: HID for FIDO2/CTAP, CCID for OpenPGP and PIV APDUs, plus HID keyboard and a vendor interface. Every request runs on one command thread on core 1, and the UI on core 0 shows a prompt that you approve with Enter.

A few things I had to solve:

- Keys at rest: optional passphrase, PBKDF2-HMAC-SHA256 calibrated on the chip, AES-256-GCM sealing of the master keys.

- Power-cut safety: two mirrored key pages with generation numbers; the page that isn't current is always written first.

- Coexisting with M5 Launcher: Launcher copies whatever bytes your image has for each data partition, so the storage partition starts with a 4 KB pad that the image carries; the keys live after it and are never in the image.

Honest limit: no Secure Boot or flash encryption (deliberately, no eFuse burning), so without the passphrase someone with the chip can read the keys.

Installs from M5 Launcher, M5Burner or esptool.

GitHub: https://github.com/TakMashhido/SecTrustKey

Docs, with architecture diagrams: https://koustavmondal.com/SecTrustKey/concepts/architecture/


r/esp32 • • 19h ago

I made a thing! I designed a decent, inexpensive RF detection gadget 🔍📡

Thumbnail
gallery
48 Upvotes

It's built on a fun project called esp-sdr — it lets you pull raw IQ values straight off a microcontroller's RF peripheral.

Normally you're stuck with WiFi/Bluetooth protocols — this lets you go below all that. That's how this project started.

The best part? It accidentally fixed my game lag 🎮 (turns out my surveillance camera was hogging bandwidth 😅)

Hardware:

· Seeed XIAO ESP32-C5

· Seeed Round Display for XIAO (round screen) 🔵

This chip is wild 🤯 — it scans the entire 2.4G to 5G band. Blows the ESP32-S3 and C3 out of the water.

BTW — if you can't solder to save your life, this is for you 🙌 No soldering at all. Just slap on a 3D-printed case and you've got a complete device. Whole thing's only 4.5cm across 📏

Also got AI to build a slick desktop app for it 🤖💻

Code's on GitHub:

https://github.com/Atul-8/esp32c5-rf-gadget

Might come in handy for spotting hidden cameras next time I'm at a hotel 👀📷


r/esp32 • • 12h ago

I made a thing! I made a maze game with an esp32 and an mpu6050

13 Upvotes

I started learning electronics on my own outside work and school. For this project the sensor I tried was the MPU6050 IMU, and I used it to build a ball maze on a 1.3" OLED. You tilt the board to roll the ball to the exit, and each level is a new random maze.
The board is a standard ESP32 DevKit because that is the only board that I have currently. For the display I used Adafruit GFX with the Adafruit SH110X driver. For the MPU6050 I skipped a sensor library and read the registers directly with Wire. I only needed the X and Y accelerometer values, which a few lines of code covered. The display and the sensor share one I2C bus.
The first problem showed up on the very first upload, when the screen filled with static. The 1.3" module uses an SH1106 controller, and the SSD1306 library most tutorials use was writing to the wrong memory layout. Switching to SH110X fixed it. The next problem came from the physics. When the ball moved fast, it could jump straight through a 1-pixel wall in a single frame, so now it moves in small sub-steps and checks for a wall at each one. The raw tilt readings were also jittery. Calibrating at startup and adding a small deadzone made the ball sit still on a level table, and friction plus a little bounce off the walls made it feel like a real ball.


r/esp32 • • 3h ago

Hardware help needed Xiao Esp32c3 strange behavior

2 Upvotes

Hello,

I ordered a bunch of xiao Esp32c3 boards for iot projects.

I note issues with this board with usb native port. The first time I program it's OK. After reset, I can't see anything on serial debug port on arduino console. Must press boot / reset / release reset / boot for usb to be ok.

I used this board before without any problem.

Are there some users of this xiao board? Same issues?

Thx for your help.


r/esp32 • • 16h ago

I made a thing! Battery alarm clock on the ESP32-S3-RLCD-4.2: deep sleep between minutes, and a reflective panel that kept freezing

Post image
16 Upvotes

I wanted a bedside clock with no glowing screen and no cable across the nightstand, so I've been building one on the Waveshare ESP32-S3-RLCD-4.2. It's at the point where it's my actual alarm clock now, so here's how it went.

Why this board and the S3

I mostly picked the board and the S3 came with it. For about $27 it has a 4.2" 400x300 reflective LCD, a PCF85063 RTC, an SHTC3 temperature sensor, an ES8311 codec with a speaker, and an 18650 holder with charging. That's nearly the whole clock on one PCB. Still, the S3 fit for its own reasons:

  • 8 MB PSRAM, so the framebuffer, TLS buffers and later MP3 wake sounds can all sit in memory at once.
  • Native USB, so people can flash it from the browser without installing a toolchain.
  • Touch-capable pins free on the header, for snooze pads through the case later.
  • Deep sleep with ext1 wake on several pins, so the RTC interrupt and both buttons can wake it.

I also thought about a Pi Zero 2 W (slow boot, SD card wear, too much idle draw) and an e-paper board like the M5Stack PaperS3. I went reflective LCD over e-paper because it updates instantly with no full-refresh flash or ghosting, which matters when the minutes change every 60 s in a dark bedroom.

How it runs

The S3 deep-sleeps almost all the time. The RTC's minute interrupt (GPIO15) wakes it. It copies the RTC time into the system clock, reads the temperature and battery, redraws only the digits that changed using a partial window, and goes back to sleep. A wake takes about 23 ms, 25 with a redraw. The panel keeps its image through deep sleep as long as it's in low-power mode with DC/CS/RST held. Wi-Fi only comes on once a day for NTP, and alarms don't need it at all.

Libraries, and what I wrote myself (with AI help)

  • PlatformIO + Arduino-ESP32 3.x (pioarduino, pinned, on IDF 5.5). Arduino gives me Wire, Preferences (NVS) and WiFi, and IDF calls like esp_http_server and the sleep/wake APIs are still right there. I passed on ESPHome because a custom alarm state machine and menu would fight it, and on bare IDF because Arduino is easier for contributors.
  • No LVGL, no GFX library. The display is my own small ST7305 driver plus a 15 KB framebuffer in the panel's native byte layout, with 1-bit fonts generated from Lato. That keeps wakes short, lets me send only the changed area, and it all builds and renders on a PC. LVGL may come back for widgets later.
  • Own small drivers for the PCF85063, SHTC3 and ES8311. I needed things the common libraries don't cover well: the RTC's minute interrupt and offset register, the SHTC3 CRC, and only a handful of codec registers for a beep (values taken from Waveshare's esp_codec_dev demo).
  • Own SNTP client and POSIX TZ parser instead of configTime. I wanted the measured offset and round trip, to write the RTC exactly on a second edge and measure the crystal drift between syncs. The TZ code converts any time, not only "now", which the alarm scheduler needs around DST jumps.
  • Nayuki's qrcodegen for the Wi-Fi setup QR code, and Unity for host tests. Everything hardware-free lives in lib/ and runs on a PC under pio test -e native.

What fought back

  • The panel freezing on battery. Now and then the screen kept the old image after a wake until reset. Once, after more than a day, it faded to blank and only a power cycle brought it back. The ST7305 datasheet showed I was breaking its timing: switching low-power to high-power mode needs 300 ms before writes, the way back needs 100 ms, and reset needs up to 120 ms. I skipped all of that on every minute wake. Now frames are written in low-power mode without switching modes at all. A long battery run is still going to confirm it.
  • No way to read the panel back. RDDPM reads 0xFF and the TE pin never pulses. On this module the controller's data-out doesn't seem to be wired, so the firmware can't even tell the panel is stuck.
  • Mirrored addresses. In landscape, the panel's column addresses run backwards. My first partial-refresh test box showed up bottom-left instead of top-left.
  • The RTC loses its time on power-off. The board has a J7 connector for a backup cell (ML1220, rechargeable, not CR1220), but I run it without one. So the firmware never guesses a time: it shows "Time not set" until you set it with the buttons or NTP. After power-up the RTC crystal also needs up to ~2 s before a time write sticks.
  • Crystal drift was about 3.5 s/day (~40 ppm). The NTP sync now measures it and trims the PCF85063 offset register automatically.
  • DST around alarms: alarms are scheduled in UTC, an alarm in the skipped hour rings at the jump, and in the repeated hour it rings only once.
  • RTC_DATA_ATTR gotcha. A struct with default member values got startup code that reset it on every deep-sleep wake. RTC-memory variables now have to be constant-initialized.

What it does today

Up to 16 alarms with weekdays, labels, per-alarm volume and a rising or steady beep. Snooze, stop and skip-next on the two buttons. A two-button menu for date/time, timezone, alarms and Wi-Fi. Optional Wi-Fi setup by QR code and captive page. Room temperature and a low-battery mark on the face.

Battery life should be weeks, but I haven't measured the sleep current yet. That's the next thing I need to check.

Next: a 3D-printed case

Right now it's a bare board on the nightstand. The case is a parametric OpenSCAD design meant for PETG on a home printer, with:

  • a sealed chamber behind a grille so the little speaker sounds less tinny
  • copper-tape touch pads under the top and sides for snooze and stop through the plastic
  • a vented pocket that keeps the temperature sensor away from the board's heat
  • a diffuser for a warm-white sunrise LED
  • easy access to the 18650 and the USB-C port

I'll publish the STLs and a print guide once the first prints actually fit the board. If you've done capacitive touch through 2-3 mm of PETG, I'd love tips.

Code is GPL-3.0, and you can flash it from the browser (steps in the README): https://github.com/braveadmin/inkwake

Happy to answer questions, especially from anyone else with this board.


r/esp32 • • 1h ago

AI Content Started prototyping a wearable push-to-talk voice input device on an ESP32-S3-Touch-AMOLED-1.8 (mic + IMU + touch + Wi-Fi/BLE).The basic audio-to-local-server loop (sending audio to my PC running transcribe.cpp + llama.cpp and getting cleaned text back in ~2s) was surprisingly smooth.Where it ge

Post image
1 Upvotes

Where it gets tricky is trying to make the ESP32 emulate a BLE HID keyboard/mouse so it can type or trigger shortcuts directly on macOS, Windows, Linux, and mobile without installing a client app on every machine:

  • Pairing/reconnection stability when switching hosts quickly
  • Different OS handling for non-ASCII / fast keystroke bursts
  • Power draw balancing Wi-Fi audio streaming + BLE HID on a tiny battery

For folks who've built multi-host BLE HID gadgets on ESP32-S3: did you stick with pure BLE HID, or end up using a tiny USB dongle / companion daemon instead?


r/esp32 • • 1d ago Bravo Heartwarming

I made a thing! Strangers on the internet have fed my chickens over 2,000 times with an ESP32!

692 Upvotes

Since July, anyone on the internet can press a button and feed my 7 hens. An ESP32-C3 in the coop spins a 3D-printed drum, a neon FED sign lights up, and the hens, who have figured out exactly what that sign means, come sprinting in.

Come feed my chickens yourself! https://bradycoop.com

edit: the feeder is closed for the night but it will be back open in the morning!

Things I learned along the way:

  • For treat dispensing, an auger wraps and jams. A gate dumps the whole hopper. I ended up with a rotating drum with one pocket: it fills from an upside-down mason jar, turns, and dumps down a chute. At every other angle the drum seals the outlet, so the worst failure is one scoop on the ground. It still jammed until v5, when I relieved the bore so the drum only touches the housing on thin lands, with 2.5 mm of clearance everywhere else. Flakes stopped getting pinched. Nine versions in about a week.
  • The first motor lost to oatmeal was an A 28BYJ-48 didn't have the torque. A NEMA 17 on a TMC2209 does.
  • Every feed has an event ID saved in flash (NVS). If MQTT delivers the same command twice, the ESP32 re-acks the stored result instead of feeding again. Bad Wi-Fi can't double-feed my chickens.
  • Commands older than 35 s are rejected, and no synced clock means no feeding.
  • The chickens have a bedtime the server can't override: the firmware refuses to feed at night even if the server asks.
  • Two jams in a row lock the feeder until I clear it from the admin page. A failed feed refunds the credit automatically (23 times so far).
  • A second ESP32 + TMC2209 + NEMA 17 now pans the main camera through a 20T:100T GT2 belt (5:1, 0.045° per step), hanging from a printed hub on two 6808 bearings. Viewers take turns steering it. It homes against a lever switch, and if a move ever bumps the switch it re-zeros on the spot and logs how far the count had drifted. Leave it alone for 30 s and it goes back to center.

The electronics started on perfboard and a DevKit V1. The feeder now runs on an ESP32-C3 SuperMini on a custom PCB I designed in KiCad and had made at JLCPCB.

So far I've gotten over 2000 feeds from over 100 people! busiest day 65 feeds, and one person hasn't missed a day in 55 days.

Ask me anything about the drum, the pan base, or the software!

Here are more images to some of the CAD demo's and the build! https://imgur.com/a/JsYSuqu


r/esp32 • • 1d ago

I made a thing! 2.4GHz-only ESP32 boards are dead to me after a weekend with the ESP32-C5

Thumbnail
gallery
155 Upvotes

I picked up an ESP32-C5 mainly to escape crowded 2.4 GHz Wi-Fi and merged-SSID router headaches. Most posts online just repeat the spec sheet, so I grabbed C3, C6, S3, and C5 XIAO boards from my drawer and ran five identical tests across all four. I used native ESP-IDF v6.1.1 and Python (`pyserial` + `ppk2-api`) instead of Arduino since Arduino hides the raw Wi-Fi 6 TWT wake windows and CAN FD bit-rate switching I needed.

Measuring sleep power on a PPK2 bit me first. Leaving USB plugged in leaks current and ruins sub-mA readings, so I had to run headless off the battery pads and sync logs over UDP (where the S3 immediately browned out at 3.7 V from a 730 mA Wi-Fi startup spike). Worse, ESP-IDF's stock TWT setup at a 500 ms interval pulled 28.5 mA on 5 GHz, double normal sleep, because the default 65 ms wake window keeps the radio wide awake. Moving to a 2 s interval with an 8 ms window dropped connected draw to ~1.4 mA (~5 mW). Even with TWT off, plain 5 GHz standby cut current nearly in half (11.9 mA vs 21.7 mA on 2.4 GHz).

Elsewhere on the bench, C5's single 240 MHz core edged out one S3 core in fixed-point math (though dual-core S3 still wins parallel loads and camera jobs), and C5's built-in CAN FD ran 10x faster than classic CAN at 5 Mbps with no external chip. Having 8 MB PSRAM and 8 MB Flash also fixes my main gripe with the C6, just watch out for C5's smaller 384 KB internal SRAM and >1 MB dual-band binaries.

Full write-up, plots, and all 5 ESP-IDF projects:

https://www.hackster.io/limengdu0117/is-the-6-90-xiao-esp32-c5-worth-it-over-c3-c6-and-s3-3cb24e

Next I'm testing 5 GHz ESP-NOW, a 2.4G-to-5G Home Assistant BLE proxy, and Marauder + Wi-Fi CSI motion. Anyone else playing with C5 boards yet?

(Note: English isn't my first language, so I used AI to help translate my write-up and redraw the summary graphics. All C benchmarks, bus tests, and PPK2 captures were run on real hardware.)


r/esp32 • • 8h ago

I made a thing! Central de Monitoramento — Sítio 4 Irmãos - ESP32 S3

Post image
2 Upvotes

I built a desk monitor for my family's farm water tanks with an ESP32-S3: LED matrix, voice assistant and Telegram alerts

I made a small desk unit that shows the water level of the tanks on our farm, plus weather and battery data. It runs on an ESP32-S3 with a 4x MAX7219 LED matrix.

What it does:

  • Clock, local temperature and humidity (DHT22)
  • Every 10 minutes it cycles through the farm data: tank levels, temperature, humidity, pressure and rain
  • Voice assistant: press a button and ask things like "what's the level of tank 1?". It transcribes with Groq (Whisper) and answers with synthesized speech
  • Alerts from the farm come through Telegram with a "Seen" button, and a blinking 8x8 icon stays on the matrix until I tap it
  • Data comes from a second ESP32 at the farm via Firebase Realtime Database
  • 3D-printed case (OpenSCAD files included)

Code, wiring table, parts list and case files are all in the repo (Portuguese README, comments in Portuguese): https://github.com/ricardoluizzuliani00/central-de-monitoramento-esp32

Happy to answer questions


r/esp32 • • 1d ago Bravo Heartwarming

I made a thing! Nomad Mk5: An ESP32-S3 media server, now streaming to 8 phones at once without running out of DMA memory

Thumbnail
gallery
200 Upvotes

Howdy!

Last time I posted here I said ROM support and offline maps were "coming along". Both are done now, as well as a whole bunch of other new features. Mk5 was moved into main yesterday, as a result I wanted to do a follow-up on what changed on the ESP32 side!

For anyone new, Jcorp Nomad is an offline media server that runs entirely on an ESP32-S3 (the Waveshare 1.47" LCD board), about the size of a thumbdrive. It makes its own Wi-Fi hotspot and captive portal, then serves movies, shows, music, books, offline Wikipedia, maps and more from a microSD card to any browser nearby. Up to 8 phones, tablets or laptops at once, with no internet, no app and no account.

I started this project almost 2 years ago with a mini PC running a full Jellyfin stack for road trips with my friends, then a Pi, and I kept trying to get it smaller and smaller until I landed on the ESP32. I travel a TON, regularly ending up without internet, and my friend group uses it for movie nights every other week. I've also gotten tons of comments from people using Nomad in power outages, learning environments, and many unique situations beyond what I had designed it for, I always love hearing how people use it. It's intentionally designed to have few guardrails, opening it up to a lot of different uses and customization.

What's new:

Most of Mk5 is just stability fixes, but it also adds a bunch of "toybox" features that I have put off adding in previous updates. Maps now have full navigation support using your phone's GPS, ROMs play through EmulatorJS, and yes it runs DOOM.

Setup is a lot easier too, Nomad Flash flashes the firmware and sets up the card from Chrome or Edge, no Arduino IDE needed.

Here are some technical details from the update:

  • 8 streams without running out of DMA memory. With 8 films going, internal RAM dropped under 600 bytes and card reads started failing. The Wi-Fi driver copies every frame into its own internal DMA buffer until it's sent, so now replies always leave it a reserve and films share a fixed amount of memory for what's being sent.
  • Faster SD reads. The S3's SD controller can't DMA into PSRAM, so IDF was reading file replies one sector at a time with the card lock held. Nomad now reads whole aligned 8 KB chunks through one internal DMA buffer and keeps them in PSRAM.
  • exFAT and files over 4 GB. The Arduino core's prebuilt filesystem library has exFAT compiled out, so Nomad runs SdFat on the SDMMC host for exFAT and FAT32 both. Cards work straight out of the package now, no reformat! (This was my most requested update for over a year)
  • Offline Wikipedia on the chip. ZIM archives are served by Nomad itself now instead of the browser worker. This uses some of the precious RAM, but unlocks full support for all ZIM types. ZIM clusters are zstd, and with ZSTD_d_stableOutBuffer a ~2 MB cluster only costs its own size plus about 230 KB of decoder, all in PSRAM.
  • Signed updates from the admin panel. Builds carry an ECDSA P-256 signature, and only the OTA slot that isn't running gets written. If the new build fails its self test after the restart it starts back up on the old one. USB flashing skips all of this, so your own builds flash like normal. Pulling an update from the flasher site only works in WiFi Mode, and uploading one needs the admin sign in, so it's hard to do unintentionally.
  • About 5 KB back from the screen driver, which goes straight to streaming (we take what we can get).

Now the uhhh... limitations y'all have all been waiting to see:

  • Nomad isn't designed for quality. Wi-Fi speed is the limit, so no 4K, Nomad is intended to run 480p, though it can handle higher quality trading off for lower total stream count.
  • Internal RAM is tight. Every new feature takes memory away from streaming so it's a bit of a balancing act.
  • Storage is a microSD card. It's great for space, but not long term storage. Keep a real backup of your files!! It also caps you at a max capacity of 2 TB (and with prices right now I would aim for 256 GB).
  • No external drives on the S3, that's what the P4 branch is for (more on that below).
  • It doesn't come with a battery, but since it's 5V any USB port should be enough to keep it going, even straight solar power usually does the trick. You can also power it off your phone like I usually do.
  • It's still Arduino IDE (yea, I never made the PlatformIO jump lol). Every library is pinned to an exact version in the README, or the browser flasher skips all of that. MANY people here have insisted I make the switch but uhhh... it's comfy here!
  • It's a student project, so there will be bugs. If you find one please let me know!

ESP32-P4 branch

The S3 is still the main version and it's my main focus for development. That being said, there's a P4 branch now for Waveshare's ESP32-P4-NANO and ESP32-P4-WIFI6. The NANO adds Ethernet and a USB-A port for external drives, unlocking much larger storage and generally more options. The Wi-Fi isn't any faster yet though. The P4 has no radio, both boards use a C6 for Wi-Fi, and the link between the two is the bottleneck right now. It's still pretty rough, and I haven't been able to test the WIFI6's Wi-Fi since I bricked the C6 on mine 😅. The hope is that I can find a way around the communication bottleneck to get the full speed of the C6, making streams a lot easier. In an ideal world the throughput limit would be the SD card.

Nomad Lite

Lite is out as a beta, a stripped down Nomad for most ESP32 boards with an SD attached or wired to it. It's read only, runs one loop on plain BSD sockets instead of the async library, and targets 4 MB boards with no PSRAM. It reads the same card as full Nomad, so one card works in both. I've only tested it on what I have lying around, so if you've got a C3, C5, C6 or a classic ESP32 in a drawer I'd love to know if it works. It's designed to be easy to adapt, but will take a lot more work before it's anything close to Nomad's usefulness.

Why an ESP32? (and not a Pi)

The whole idea was to go well below the usual self-hosted stack. No OS, no Docker, nothing to maintain, everything runs in the ESP32's firmware. I had trouble with normal SBCs on power, heat and stability, and with Pi prices going up it makes even less sense for this project. The biggest appeal to Nomad is the simplicity, it just runs when plugged in. The goal was something I could hand to my non-technical friends and have them be able to figure it out on their own. Eventually it also became about seeing how much I could squeeze out of a microcontroller lol.

I'm a mechanical engineering student, so software isn't really my specialty, Nomad has been how I learned to code. It's come a long way thanks to a LOT of help from y'all on past posts and the GitHub, and I'm sure there are still plenty of things I'm doing the wrong way, so any feedback is appreciated. There's no custom PCB, it's all off the shelf parts, and with Mk5 Nomad is now GPL-3.0 (Lite is MIT). If you want one of your own, building it is the way to go. Parts are cheap, it's under $40 to build, and I'd much rather people build their own. That being said I do sell prebuilts too, I won't say no to your money lol.

Now that you have gotten through my long ass post please enjoy this curated pile of links (I have many to offer):

Thanks for reading! I'll be lurking in the comments.

-Jackson


r/esp32 • • 11h ago

Hardware help needed Wall-to-adapter-to-esp32 connection recommendations for a sensor cluster for constant air monitoring

3 Upvotes

Hi, l'm new to electronics and wanted a sanity check on my idea of using an

adapter or a buck converter board(?) to power an

esp32 (or any microcontroller) from the mains. I

was intially thinking of buying an IRM-10-5 module

from mouser and connecting it somehow to a cut

mains cable from some old device. This sounds a

bit risky to me if I want a very reliable connection,

Also scary. Is there a safer option?

I have been only using my laptop as power source so far for smaller projects. So I wanted to doublecheck before trying T-T

[My project is to make a sensor module using a

microcontroller (so the esp32) and gas sensors

which would continuously store the data on an sd

card and also send it via wifi to a computer]


r/esp32 • • 2d ago

I made a thing! I Hid an ESP32 and 7 Hall Effect Sensors Inside a 3D Printed Pillbox to Check if Grandma Took Her Pills

1.6k Upvotes

My grandma takes a lot of medication throughout the day, and when everyone is at work nobody can double check whether she took the right pills at the right time. So I made a pillbox that looks like an ordinary plastic box, but knows when each of its lids has been opened.

There is no screen, no LEDs and no buttons on purpose, she shouldn't even know there are electronics inside. Each lid has a small magnet on it, and behind a thin plastic wall there is a long thin PCB with 7 hall effect sensors, one for each day of the week, and a XIAO ESP32-C3. The ESP32 hosts a small web dashboard on the local network where you can see the lids live, set up the schedule and check the history. In the video you can see the dashboard on the laptop behind picking up every lid I open.

The enclosure is 3D printed, and the clear lids are cut out of a 4 mm polycarbonate sheet. Funny enough, it ended up looking really close to the sketches I drew for it back in 2023.

It is a V0 and definitely not a medical device, it can only tell that a lid was opened, not that the pill was actually taken. That part is next on the list!

I documented the whole build, including the mistakes I made on the PCB, in a video for element14 presents: https://www.youtube.com/watch?v=0s0xqveTLLo

The whole thing is open-source, so the PCB files, CAD files, firmware and the dashboard are all on GitHub: https://github.com/MilosRasic98/EasyPillV0


r/esp32 • • 17h ago

Solved Would You Design This ESP32 Circuit Differently?

Thumbnail
gallery
4 Upvotes

Board Review
I designed a custom ESP32 circuit with RGB
LEDs on all four sides to create a candle-like lighting effect.
But I'm curious...
Would you have designed it differently, or do you like this approach?

The full build is now available on my YouTube channel!

Let me know what you think!


r/esp32 • • 21h ago

Hardware help needed Experience with ESP32 PCBA?

5 Upvotes

Hi everyone,

I’m designing a product with a ESP32 WROOM inside. I’ve looked into manufacturers for PCB with assembly, and some of them have ESP32 assembly capabilities (JLPCB for instance).
Do you have some experience with this module factory assembly ? Do you have good recommendations or tips for a first timer ? Maybe regarding the layout, the unused pins or programming connector ? Did you also get the module slashed in factory or did you do it yourself ?

Thanks for your help.


r/esp32 • • 20h ago

I made a thing! I wrote a secure-boot bootloader for the ESP32-C3/C5/C6 SuperMini

Thumbnail
github.com
4 Upvotes

I targeted the mainstream RISCV variants due to be better supported by the esp-hal project and not requiring a vendor specific LLVM fork.

I broadly based the project on MCUboot, due to being a fan of its architecture/design. Microtun boot was written to be a memory safe version of it (with additional IoT targets not supported upstream such as the Raspberry Pi Pico 2).

The biggest technical challenge continues to be the ESP-ROM, there's a lot of limitations to its secure boot implementation such as a size limit of 48KB for the first stage bootloader. Due to this I had to implement microtun boot as a second stage bootloader on ESP32 platforms, I believe the final bootchain design is neat and does a good job of hiding these limitations.


r/esp32 • • 2d ago

I made a thing! 3d printed giant esp32

Thumbnail
gallery
1.2k Upvotes

I made this for teaching purposes and to just have a cool decoration

After a lot of CAD I did it

The shield comes off and shows the stuff under it too

Let me know if you guys want the files for free

Edit: linkhttps://makerworld.com/models/3659241?appSharePlatform=copy

I want to make Arduino nano next


r/esp32 • • 22h ago

Hardware help needed Any Chinese manufacturers for esp32 and other robotic tools.

3 Upvotes

I am looking for manufacturer who can supply in bulk from china


r/esp32 • • 17h ago

I made a thing! I ran linux on esp32 s3 n8r8 and made a retro linux terminal

Thumbnail
youtu.be
0 Upvotes

I went from getting Linux running on an ESP32-S3 ( Xtensa 32-bit processor) to adapting it for different boards, adding SD card support, writing the e-ink display driver, and integrating a battery.

Along the way, I worked on the SDMMC card drivers, display management, and the software needed to make the device work as a standalone Linux terminal.
https://github.com/Zenilos/Retro-Linux


r/esp32 • • 1d ago

Hardware help needed Connecting an e-paper display to a LILYGO T-SIM7670G-S3 H802 via QWIIC/QWUART

3 Upvotes

Hi everyone!

I'm building an IoT freezer temperature monitor using a LILYGO T-SIM7670G-S3 Standard (H802), powered by an 18650 battery.

I'd like to connect a small e-paper display using the board's QWIIC or QWUART connectors, without any soldering.

I found the Seeed Studio Grove Triple Color E-Ink 1.54" (104020129), which uses UART, but I'm a beginner in electronics and I'm unsure about its electrical compatibility.

My main questions are:

  • Are there any e-paper displays directly compatible with QWIIC (I²C)?
  • Can I connect the Grove UART display to the QWUART port using a simple adapter cable?
  • Are the supply voltage, logic levels and pin assignments compatible?
  • Can I completely power off the display between refreshes to minimize battery consumption?

My goal is a solder-free, plug-and-play solution with very low power consumption.

Has anyone tried something similar? Can you recommend a compatible display and the appropriate cable?

Thanks in advance!

P.S:
Just to clarify: I'm not trying to use unsoldered header pins or improvised connections. My goal is to use the factory-installed QWIIC/QWUART connectors and commercially available cables.

I'm looking for an electrically compatible e-paper module, specifically regarding power supply, logic levels, pin assignments and communication protocols.