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

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

258 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 • • 18h 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.4k 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 • • 4h ago

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

I made a thing! 3d printed giant esp32

Thumbnail
gallery
1.1k 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 • • 56m ago

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

Thumbnail
gallery
9 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! I made an e-ink “bookshelf” to show my recently finished ebooks

Thumbnail
gallery
32 Upvotes

This guy is based on esp-32 s3 and shows my most recently finished books from top to bottom, with the book I’m currently reading at the top.

It simply wakes up and fetches and draws an image rendered on a “sidecar” docker container server I host on my homelab. My thought here is, I want to do as much work on the server as possible and as little work on the battery operated device as possible . The server makes an API request Hardcover to get my most recently finished books, renders it in a headless chrome instance, then performs the dithering, using the color palette the screen can draw (black, yellow, red and “white”). I find that spending time dialing in the dithering can yield really high quality results, even from a limited palette and resolution.

https://www.waveshare.com/10.85inch-e-paper-hat-plus-g.htm?srsltid=AYCX9vJWSMS1157VgiyKYqRVcVfY0kO8TzlXL1Z-kfTClh1cWw70he1c

I used the above epaper display as well as an esp32-s3. I picked the S3 because its my go to for anything that I don’t have a reason to opt for another variant for. I put a beefy 10k mAH battery and utilize deep sleep between daily renders (or no-ops if I haven’t finished a book that day). Battery is still going on the first charge after 4 months!

Highly recommend Boom Town btw!


r/esp32 • • 4h ago

I made a thing! I made a virtual pet for the Waveshare round AMOLED ESP32-S3: 385 animals and legends drawn entirely by code, installs from the browser

Thumbnail
gallery
11 Upvotes

Tamanimals is a virtual pet that lives on the Waveshare ESP32-S3-Touch-AMOLED-1.75 (466×466 round AMOLED). You hatch a real animal from Africa, Asia or the Americas, raise it from cub to adult, keep it fed, clean and happy, and fill a field guide of 325 animals plus 60 creatures of myth and legend.

- **Every animal is drawn by code**: a small Python sprite library builds each body from shapes, then a second pass adds light, shadow and outlines. 18 animations × 3 ages per animal, all generated.

- **Each animal has a face for every mood**: tears when sad, drool when hungry, mud when dirty, heavy eyes when tired.

- **The IMU counts steps**, so walks matter. It also has minigames, a stadium, a mine, places to visit, rangers in each region, and 8 languages.

- **Installs from Chrome or Edge** with a web installer (no Arduino IDE), and updating keeps your pet. The animal art goes on a microSD card.

- Runs on a desktop emulator too, with about 70 headless test suites.

It's open source (MIT) and built on the TamaPoke engine, with all-new animals, art and regions. I made it with a lot of help from Claude Code.

Install: https://botero50.github.io/TamaAnimal/web/

Code: https://github.com/botero50/TamaAnimal

Happy to answer questions.


r/esp32 • • 11h ago

I made a thing! Retro game on ePaper and ESP32S3

Post image
15 Upvotes

I recreated a classic retro handheld game (Nu, Pogodi!) using an ESP32-S3, an SSD1683 e-Paper display, and a piezo buzzer.

Why ESP32-S3?

I already had a board on hand and wanted to try it out for a bare-metal project.

Tech Stack & Libraries

The game is written entirely in Ada (using a custom GNAT runtime). On the C/IDF side, it uses various standard ESP-IDF components (GPIO/SPI/RMT/Timer) along with espressif/button. Drivers of MIPI layer and SSD1683 display controller are custom.

Technical Highlights & Challenges

  • Fast e-Paper refreshes: The trickiest (and most interesting) part was optimizing the SSD1683 redraw speed to make it playable. Detailed notes on the waveforms/LUT/refresh tweaks are available in the repository.
  • Half-duplex SPI: The ESP32-S3 SPI peripheral turned out to be great to work with—it handles both reads and writes over a single bidirectional data line (3-wire SPI) with on-the-fly clock speed switching, without needing any hardware/software workarounds.
  • RMT for audio: I was also really impressed by the RMT peripheral and how cleanly it can be repurposed to generate retro sound effects for the buzzer.

r/esp32 • • 1d ago

I made a thing! I made a KolibriOS-compatible OS that runs natively on the ESP32-P4

Thumbnail
gallery
332 Upvotes

Wanted to see how far the P4 can go, so I built an OS for the Waveshare 5" touch board that runs KolibriOS programs. There's no emulator involved. KolibriOS is written in x86 assembly, so instead of porting it I wrote a kernel in Rust that provides the same system calls, and the original C programs run on top of that.

You use it only by touch, with an on-screen keyboard for typing. Wi-Fi runs over the C6 that's on the board. So far there's a browser (NetSurf with JavaScript), an image viewer, a PDF viewer and a few games. Doom works well. From power on to desktop takes around 3.5 seconds.

Not everything works yet. Quake crashes when you start a new game, a lot of modern websites are too heavy for the browser, and there's no standby yet. I'm working on those now.

I built most of it with Claude Code. If you have the board you can flash it from the browser, links are in the comments. Curious what you think.


r/esp32 • • 16h ago

I made a thing! I turned a Creative Stage SE soundbar into a 2.1 DSP speaker system using an ESP32-S31

Thumbnail
gallery
27 Upvotes

My Bose SoundLink Mini II died for the second time, so instead of buying another desktop speaker, I decided to build my own.

I repurposed a Creative Stage SE soundbar as a subwoofer, built a pair of small 3D-printed satellite speakers, and designed a replacement PCB around an ESP32-S31, an ADAU1451 SigmaDSP, and two TAS5825M Class-D amplifiers. I called the project Chime.

I needed both native USB Audio and Bluetooth Classic. The original ESP32 lacks native USB, and the ESP32-S3 lacks Bluetooth Classic. Fortunately, the S31 had just started shipping when I began designing the board. It was pretty much exactly what I wanted.

The firmware is based on ESP-IDF 6.1. I used its native USB and Bluetooth components rather than building another layer on top of them. For additional Bluetooth codecs, I integrated parts of the ESP32-A2DP-SINK-WITH-CODECS-UPDATED project, which saved me from having to implement everything from scratch.

I chose an external ADAU1451 because I wanted to experiment with audio processing algorithms in SigmaStudio+ without having to write DSP code every time I changed something.

For bring-up, I started with diagnostic firmware to verify communication with the DSP and amplifiers, then generated a sine wave to test the audio path before getting USB Audio working.

The hardware wasn't entirely cooperative. I'd connected the electrolytic capacitor pads directly to three large copper pours without thermal reliefs. Soldering that capacitor was a nightmare. At one point I was seriously tempted to staple it onto the PCB.

Getting decent bass out of the original soundbar was another challenge, involving quite a few REW measurements and some rather aggressive EQ.

USB Audio, Bluetooth, crossover and PEQ are now working. I still have Dynamic Loudness, Virtual Bass and Virtual Surround on my to-do list.

I used ChatGPT extensively for design discussions and analysis, and Codex wrote most of the firmware. As an embedded software engineer with over ten years of experience, I found that part of the project particularly interesting.

I've documented the entire build, including photos, measurements, mistakes and questionable engineering decisions:

https://branzhu.github.io/chime-dsp-audio/

Firmware and design files:

https://github.com/branzhu/chime-dsp-audio


r/esp32 • • 18h ago

I made a thing! ESP32-S3 e-paper upgrade: NM-EPD-420-BW screen full refresh <1.5s, partial updates ~700ms

27 Upvotes

We've upgraded the NM-EPD-420-BW with a faster-refreshing B/W e-paper panel, and added a short animation demo.

The screen upgrade brings full refresh down from around 3 seconds to under 1.5 seconds, with partial refresh around 700 ms on our updated setup. The display is 400 × 300, black and white.

To make the improvement visible in use, the demo plays a rotating-crystal sequence and transitions into a static RockBase IoT page. The final page also uses partial refresh, keeping a full-refresh flash out of that transition.

• One initial full refresh establishes the baseline. The next 16 updates use the partial-refresh waveform over the 400 × 300 image area, including the final brand frame, which holds for 3.6 seconds.

• BUSY completion gates each update. This scene temporarily allows 16 partial updates, then restores the normal refresh limit on exit.

The goal is a short startup or page-transition animation that ends on a still screen. We're still evaluating the trade-off between uninterrupted playback, ghosting, and when to schedule a cleaning refresh.

Demo codebase (MIT; original work by Zectrix Lab, with RockBase IoT contributions):

https://github.com/RockBase-lab/NM-EPD-420

https://gitee.com/Rockbase-iot/rockbase-note4-epd-demo


r/esp32 • • 1h ago

Advertisement Henglos IO – a self-hosted, node-based platform for microcontrollers (demo: ESP32 distance indicator)

1 Upvotes

I'm building Henglos IO, a self-hosted platform for programming microcontrollers with visual, node-based workflows. You build flows from actions, run them on a real board and step through them action by action with every value live on the canvas. Boards run MicroPython, so you can drop into a plain script whenever that's easier. Boards and components are installable packages, and you can write your own.

In the video, an ESP32 reads an HC-SR04 and lights one of 3 LEDs depending on the distance. Green means safe (under 15 cm), yellow means caution (under 10 cm) and red means danger (5 cm or less). Above 15 cm, all LEDs turn off. The whole logic is a single flow: read the sensor, compare the distance and turn on the right LED.

It's in beta. Feedback is very welcome!

👉 https://www.henglos.com/henglos-io


r/esp32 • • 11h ago

I made a thing! Spectrum visualizer with clock and weather station

Thumbnail
gallery
6 Upvotes

Spectrum visualizer with clock and weather station - gearip.net

This is an audio spectrum visualizer built around the ESP32-S3 Espressif DevKit and the Adafruit 64×32 RGB matrix. The device shows the spectrum graph while audio signal is detected at the RCA inputs and defaults to a screens showing the clock and weather details using WiFi.

Electronics and PCB design

The central piece of the project is the ESP32-S3 Dev board from Espressif. It drives the RGB matrix (Adafruit 2279, 62×32 pixels, 3mm pitch). Since the ESP32-S3 outputs 3.3V signals, level shifters SN74HCT245N wer used to step up the voltage to the 5V needed by the RGB matrix. I’ve tried on the breadboard without the level shifter and the matrix was driven without problems, but the voltage is at the limit where the matrix could not handle it properly so I decided to use the level shifters. Between the SN74HCT245N chips and the matrix I placed 33 ohm resistors to help with ringing (voltage spikes and oscillations) and voltage overshoot on the ribbon cable that connects the PCB to the matrix. I actually used 4116R-1-330LF resistor arrays for space and simplicity reasons. The buffer chips have their DIR pins tied to HIGH to enable them to pass signals from A side (ESP32) to B side (matrix).

R17 is a pull-up resistor that keeps the display blank which the buffers are disable during initialization. It’s not essential, but without it, until the ESP32 initializes and the buffers are disabled and in high impedance mode, you’ll see weird flashes and figures on the display. R13 is the pull-up resistor that keeps the buffers disabled until ESP32 fully initializes. R3-R5 keep the unused pins of the buffers to a logic LOW rather than leaving them floating.

J2 is the connector of the ribbon cable that links to the RGB matrix that follows the HUB75 standard. It carries six color data signals (R1, G1, B1 and R2, G2, B2) for the pannels’s upper and lower halves, row address signals (A-D), clock (CLK), latch (LAT), output enable (OE) and GND. The matrix receives 5V power from the PSU on a separate cable.

The analog part of the PCB does the isolation and mixing of the audio source and shift the signal over 0V to prepare it for the ESP32 ADC.

The device is designed to be run in parallel with a power amp signal input. So it shouldn’t interfere with L/R channel separation or add noise to the audio source. Initially I tested without the transformers but I got noise back in the amplifier probably from the ESP32 digital side, matrix signals or WiFi. So I found these relatively cheap Triad TY-250P transformers. They have 1Kohm impedance on primary and secondary. RV1 adjusts the signal level so it doesn’t go over the 3.3V needed for the ESP32 ADC and to avoid clipping.

The most important part of this opamp section is to shift the level of the audio signal in the positive range. Normally an audio signal swings both positive and negative relative to ground. The ESP32 ADC can only handle voltages on the positive side. So to preserve the full waveform of the signal (both halves), the circuit adds a DC bias. R9 and R10 establish a reference of around 1.67V, which becomes the center voltage of the amplifier’s output.

R12/C19 and R18/C21 for a passive low-pass filter before the signal reaches GPIO1, to attenuate high-frequency signals and noise before sampling, to reduce aliasing. The cutoff is at about 20KHz. It’s important that C21 (1nF) is placed as close as possible to ESP32 GPIO1 to reduce interferences picked up by the circuit from WiFi or other digital signals. I’ve been experimenting all kinds of interference while on breadboard.

I ordered the PCB from JLCPCB, I couldn’t dream of etching it myself, too complex and double-sided. There’s a keepout area around the Wi-Fi antenna to avoid blocking the signal. There’s sockets for all ICs and the ESP32 Dev board. You can find the KiCAD files for the schematic and PCB at the end of the article.

I used a small 5A switching power supply to powers the RGB matrix and the PCB separately. The RGB matrix can (theoretically) draw up to 4A at 5V, but I haven’t seen anywhere near that. During operation, the PSU is just a bit warm.

ESP32-S3 Firmware

The firmware is written in C++ using the Arduino framework. It handles audio sampling and analysis, matrix rendering and clock, WiFi and weather functions. The ESP32 is sampling the mono audio signal received at GPIO1 at 40.000 samples per second. I fiddled around with Codex to display the spectrum accurately and it ended up splitting the dividing the spectrum between high and low frequencies, with different sampling rates and FFT sizes. The result is mapped to the 64 columns of the matrix covering the audio spectrum from 40Hz to 16KHz, which I found to be adequate. The frequency spacing is logarithmic, giving more space to lower frequencies. The bars rise quickly and fall more slowly, while white peak markers decay separately.

To accomodate for a signal that is picked up after volume control I added a global dynamics compressor that adjusts the scale of the spectrum analyzer.

There is no noticeable flicker or refresh on the display; I struggled with that as well for a while.

With no detectable audio signal for 30 seconds, the display switches to the clock and weather screen. It switches back to spectrum after 2 seconds of sustained audio signal. The screen shows the NTP synchronized clock at the top, then current temperature, today’s maximum and general weather conditions. After 18:00 it shows next day’s maximum and conditions, with an “N” in front. The weather data is pulled from open-meteo.com. If you use the same firmware, modify the location and add your WiFi SSID and password. Brightness changes from maximum during daytime and a lower setting after sunset (also linked to the location set in the code).

You’ll find the code at the end of the article.

Chassis build

I have to admit this was the hardest part for me. I designed the case in Fusion, without having any prior knowledge whatsoever about Fusion and product design, so it was a steep learning curve.

Having 3D models of the PSU, power connector and RCA connectors from the vendors helped a lot. I imported the PCB STEP model from KiCAD and built a model for the Adafruit matrix, of which I only had a picture with measurements. After I had all that built and imported I could build around them the case, that consists of 3 parts – a front frame that supports a glued acryl white translucid “window”, a middle chassis that has supports for the matrix and a back lid on which the PCB, PSU and connectors are mounted. For me, the hardest mental excercise was imagining how everything will be organized, where the acryl will sit, how will the matrix be mounted to sit behind the acryl and still leave 1mm of space for diffusing effect and where the other components will be screwed in. That on top of my total ignorance regarding Fusion.

The front frame has a recessed “pocket” that thins the normally 2mm wall of the frame to only 1mm and adds a 2mm lip around the acryl. The acryl is glued in that pocket. There are mounting posts in the corners for M3 inserts to connect with the middle chassis part with screws. This part was also new for me, using the inserts, but I found out it to be not that complicated. You can just use a soldering iron with a thicker tip to heat the inserts and then press them into the plastic. Leave 0.5-1mm of the insert above the rim and the use a flat object to press it down and cool it.

The middle chassis part also has posts to connect to the back lid, diagonal slots for ventilation and big “ears” to hold the matrix. The back lid has a cutout for the power connector, as described in the vendor’s documentation and cutouts for the RCA connectors. The PSU is sitting on posts and has its own threads for M3 screws. The reason I used posts is to shift the weight center inwards to the chassis so it doesn’t tip over easily. The PSU has a metal chassis and should be earthed but I didn’t have room for a big power connector with PE, so to counter that I’m ordering some (pretty expensive) M3 screws made from PEEK (Polyetheretherketone) which is an insulator. That way, even if the PSU chassis gets connected to mains, the screws won’t connect that to the outside. I should I add that this is not a replacement for the requirement to connect PE to the chassis of the PSU, so don’t launch this product commercially 🙂

M3 insert and chassis “lip”

RGB matrix screwed on the middle chassis

Repository with KiCAD schematic and PCB files, code and 3D models for print: https://github.com/gabriel-gearip/spectrum-analyzer.

And a sample of the spectrum analyzer in action: https://youtu.be/PjzRuayRK4k?si=L_JQ4ZCLeP2Vl_IA


r/esp32 • • 14h ago

AI Content ESP32-S3 Linux 7.2.4 SMP Build

8 Upvotes

The stable build for NOMMU Linux 7.2.4 on the ESP32-S3 8MB PSRAM and 16MB Flash with SMP (Dual core) - Github and Release

This build is specifically built and tested on the Arduino Nano ESP32. Go ahead and try it out please! Appended to the original post (Original Post)


r/esp32 • • 7h ago

Hardware help needed Issue with a ESP32-S3 AMOLED 1.75

2 Upvotes

Hello guys,

I have a weird issue. I just received an ESP32-S3 AMOLED 1.75. When I plugged in the USB-C, it turned on. I unplugged it, connected the GPS, and plugged the USB-C back in, but it hasn't turned on since.

Has this happened to anyone else, or did I do something wrong?

-don't show up in windows

-tryed with another computer and cable

-unplugged the GPS

-waited a hour

But nothing worked

Any idea ?


r/esp32 • • 8h ago

Hardware help needed Esp32s3 × ILI9341 Micropython is not working, help

2 Upvotes

So, i was vibecoding a little test-screen thing, and screen was just on, it was not showing anything but darkness, here is the code:

from machine import Pin, SPI

import time

print("Start hard test...")

spi = SPI(2, baudrate=10000000, polarity=0, phase=0, sck=Pin(18), mosi=Pin(11))

cs = Pin(10, Pin.OUT)

dc = Pin(9, Pin.OUT)

rst = Pin(14, Pin.OUT)

def cmd(c):

dc(0)

cs(0)

spi.write(bytearray([c]))

cs(1)

def data(d):

dc(1)

cs(0)

spi.write(bytearray(d))

cs(1)

rst(0)

time.sleep(0.1)

rst(1)

time.sleep(0.1)

cmd(0x01) # Software reset

time.sleep(0.1)

cmd(0x11) # Sleep out

time.sleep(0.1)

cmd(0x3A) # Pixel format

data([0x55]) # 16-bit color

cmd(0x29) # Display ON

time.sleep(0.1)

cmd(0x2A) # Column address set

data([0x00, 0x00, 0x00, 0xEF])

cmd(0x2B) # Page address set

data([0x00, 0x00, 0x01, 0x3F])

cmd(0x2C) # Memory write

print("Sending color...")

data([0xF8, 0x00] * 240)

print("Done! If screen is red, hardware is OK.")


r/esp32 • • 19h ago

Software help needed If TFT_eSPI doesn't compile with the ESP32 v4 board definitions ...

4 Upvotes

If you upgrade to the ESP32 v4 board definitions you'll get an error when you compile a sketch using the TFT_eSPI library:

In file included from d:\Dev\Arduino\ESP32\libraries\TFT_eSPI\TFT_eSPI.cpp:24:
d:\Dev\Arduino\ESP32\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32.c:36:36: error: 'HSPI_HOST' was not declared in this scope; did you mean 'SPI3_HOST'?
   36 |       spi_host_device_t spi_host = HSPI_HOST;
      |                                    ^~~~~~~~~
      |                                    SPI3_HOST
exit status 1

Compilation error: exit status 1

This because TFT_eSPI still uses the deprecated definitions HSPI_HOST and VSPI_HOST for the two SPI buses and v4 of the board defs removes those definitions.

To fix this simply edit your User_Setup.h file and add:

#ifndef HSPI_HOST
#define HSPI_HOST SPI2_HOST
#endif

#ifndef VSPI_HOST
#define VSPI_HOST SPI3_HOST
#endif

The library maintainer will presumably eventually fix this, but they don't seem to be responding to issues at the moment.


r/esp32 • • 23h ago

I made a thing! I built 9 ESP32 projects you can run free in your browser (no hardware, Wokwi links inside)

6 Upvotes

I wanted a way to try smart-home ideas before buying parts, so I built each one in the Wokwi simulator first. Every project below runs in your browser: open the link, press play, change the code.

- **Radar** (ultrasonic + servo + TFT): [run it](https://wokwi.com/projects/480553709323310081) · [video](https://youtu.be/ccJs0e57m1o)

- **Tripwire alarm that only your PIN can stop**: [run it](https://wokwi.com/projects/480733139222115329) · [video](https://youtu.be/mImIPW5FaQg)

- **Smart water tank with pump control**: [run it](https://wokwi.com/projects/480764447091721217) · [video](https://youtu.be/gRrSUNiBJys)

- **Smart room** (DHT22 + relay + OLED): [run it](https://wokwi.com/projects/480452371981343745) · [video](https://youtu.be/qi0tLzO6L5M)

- **Hallway light** (motion + darkness): [run it](https://wokwi.com/projects/480779843424119809) · [video](https://youtu.be/rnktt2k1vOM)

- **Automatic pet feeder** (servo + RTC + OLED): [run it](https://wokwi.com/projects/480755119795351553) · [video](https://youtu.be/K8H9a7Nj8Qk)

- **Touchless parking gate**: [run it](https://wokwi.com/projects/480429097754757121) · [video](https://youtu.be/798P_geR5_Q)

- **Plant watering system**: [run it](https://wokwi.com/projects/480447725991238657) · [video](https://youtu.be/X_HNOA4A-fU)

- **Temperature alarm** (good first project): [run it](https://wokwi.com/projects/480350809747140609) · [video](https://youtu.be/Nl4FY9HRrEs)

Bonus: a [reflex challenge game](https://wokwi.com/projects/480409336763603969) for 1 or 2 players.

Which one would you actually build on real hardware? I'm picking the next project from the replies.


r/esp32 • • 1d ago

I made a thing! Is ESP32 practical for a DIY smartwatch?

120 Upvotes

I’ve been building smartwatch UIs with ESP32 and LVGL for a while. The goal was to make a watch I could wear daily and connect to my Chronos app over BLE. I got the UI working, but the battery life on the ESP32 builds made them hard to use as daily watches.

I came across the SiFli SF32 after SiFli made its SDK public. The chip is already used in some commercial smartwatches, so I decided to design my own board around it and stick with LVGL for the UI.

The current build gets about 3 days on a charge with BLE always on. The hardware still needs a few tweaks, but I’ve attached a short demo of the watch in action.

  • MCU: SiFli SF32LB52-MOD-1-N16R8
  • Display: Round 466 × 466 AMOLED
  • Battery: 400 mAh
  • IMU: BMI270 for step counting and gesture navigation

GitHub: https://github.com/fbiego/helios-sf32

Has anyone here built an ESP32 watch they wear daily? I’d be curious what battery life you’re getting with BLE on.


r/esp32 • • 1d ago

I made a thing! i2slink: a hands-free, no-APB, ~400KB/sec bidirectional 3-wire packet protocol between 2 ESP32-S3's driven by perpetually repeating DMA rings.

8 Upvotes

It's a pretty niche requirement that I had, but I thought somebody might find this useful. The use case I had is an ESP32-S3 with one core that is so locked down in a tight real time loop that *any* APB or peripheral use by the other core introduces wait states and makes the system miss timing requirements. I wanted a way to get off-chip with reasonable bandwidth, but without touching a peripheral after initial setup/config.

It could be useful in any setup where one ESP32 has constant real-time requirements a second ESP32 is used for I/O and utility work. In my specific case, the first S3 is bit-banging a 1.78Mhz 6502 memory bus, and the second S3 handles requests for SD cardIO, wifi, etc.

https://github.com/cowlove/i2slink


r/esp32 • • 1d ago

I made a thing! My ESP32-S3 desk robot: fixed brownout reboots and a flaky wake word, then taught it English

26 Upvotes

Pamk is a desk assistant on an ESP32-S3 (16 MB flash, 8 MB PSRAM) on a custom PCB. You say "Hey Pamk", it records your request and sends the audio plus a set of instructions to Gemini, which sends back what to do as JSON. Its replies are pre-recorded voice clips stored on the flash.

What I fixed in this update:

- Random reboots: the serial monitor showed a brownout. The USB hub couldn't give it enough power.

- Misheard commands: I rewrote the instructions sent to Gemini.

- Wake word: retrained with about 2,000 "Hey Pamk" recordings plus audio it must ignore. 2/5 before, 5/5 after on my test.

English: I re-recorded every line with my own voice and ran it through a voice changer.

Full video (French, English subtitles): https://youtu.be/52xpSCW41Hk


r/esp32 • • 1d ago

I made a thing! Wireless head node working up top while building the rig below (ESP32-C3 + MPU6050 + ESP32-S3)

42 Upvotes

Up top in the clip the headset is already running wireless, and down below I'm putting the rest of the setup together. All coded in the Arduino IDE: an ESP32-C3 with an MPU6050 sending wireless packets over ESP-NOW to an ESP32-S3 USB HID dongle.

The goal is to keep body awareness and head reference tightly integrated with hand aiming/clutching and drift tuning in code. Open to tips from anyone else tinkering with ESP32, MPU6050, and HID!


r/esp32 • • 1d ago

AI Content Flüstertüte: ESP-IDF audio story player for kids on T-Deck (S3) and Core2, streaming MP3 from your own NAS

8 Upvotes

My kids listen to audio stories on repeat, and our whole CD collection already lives as MP3s on a Synology. I didn't want figurine-based players or a phone in the kids' room, so I wrote an ESP-IDF firmware that turns off-the-shelf ESP32 devices into a dedicated player for the stories on your own NAS. No cloud, no account, MIT licensed.

Hardware (no soldering)

  • LilyGo T-Deck (ESP32-S3, 8 MB octal PSRAM, ST7789V, keyboard + trackball, I2S amp)
  • M5Stack Core2 v1.1 (classic ESP32, 8 MB PSRAM, ILI9342C, FT6336U touch, AXP2101 PMIC, NS4168 amp)

Both share one codebase; board_tdeck.c / board_core2.c hide display, touch, input, backlight, battery and I2S pins.

How the ESP32 is used

  • ESP-IDF 5.5, LVGL 9.4 via esp_lvgl_port, MP3 decoding with libhelix (esp-libhelix-mp3), output over I2S
  • Streaming: HTTP Range requests (WebDAV, or the Synology File Station share-link API) into a 1 MB ring buffer in PSRAM, about a minute of audio, so Wi-Fi dropouts don't stall playback. Position is saved every 20 s, so every story resumes where it stopped
  • Library index: a crawl of the NAS folders lands in its own 512 KB flash partition; the device notices new folders through the Synology Media Server's update id (DLNA) and otherwise refreshes every 3 hours
  • Typo-tolerant search on the T-Deck keyboard: UTF-8 folding (umlauts optional), prefix/substring matching plus a bounded edit distance that never forgives the first letter
  • Settings live in a separate 16 KB flash partition, so they can be rewritten without reflashing the app

Things that bit me (maybe useful to others)

  • On the classic ESP32, a task whose stack lives in PSRAM must not touch flash (the cache gets disabled, it asserts). Every runtime flash access goes through a small helper that runs it on an internal-RAM task when needed
  • Core2 boot was sluggish: 80 MHz PSRAM needs 80 MHz flash on the ESP32, and turning off CONFIG_SPIRAM_MEMTEST saved about 0.85 s
  • Screenshots for docs: sending 's' on the console runs lv_snapshot and dumps the frame as base64 lines; a small Python script reassembles them into a PNG
  • .local names resolve through lwIP's mDNS queries (CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES), no mdns component needed

Setup

Everything is done from a web page: esptool-js over Web Serial (Chrome/Edge) flashes the firmware plus a settings block built in the browser; afterwards the page reads the device log and translates errors ("check the Wi-Fi password", "folder not found"). Passwords never leave the browser except over USB.

Optional: CD ripping station

A Raspberry Pi with a USB CD drive rips, tags and files CDs onto the NAS; the ESP32 shows the progress and can correct the detected type. The Pi can also bridge to a Bluetooth speaker, controlled from the device.

Porting to other ESP32 boards with a display, a speaker and PSRAM should mostly mean a new board_*.c. If you have one you'd like supported, open an issue; PRs welcome.

Disclosure: written with a lot of help from an AI coding assistant (Claude); designed, tested on the real hardware and maintained by me.