r/esp32 • • Mar 18 '25 Bravo

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

255 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

Hardware help needed need help with connecting sd card reader to esp32

Thumbnail
gallery
16 Upvotes

hello its my first time messing around with this, ive checked my wiring plenty of times and i even changed the board, the reader and the cables i also changed cs to d4, d12 any ideas?


r/esp32 • • 4h ago

I made a thing! Espnow for halloween

4 Upvotes

It took me a while to post. This display was controlled by a central esp32 device sending messages to slave devices with espnow.


r/esp32 • • 1h ago

Hardware help needed I want to make a smart traffic light system model that turns on depending on the number of cars in the road and if no cars the traffic light stays red and so on

Post image
1 Upvotes

I got these

I have breadboard , jumper wires and led

I just want the connections

First time using an esp32

I want to hook up the camera with yolo so it detect how many cars and then turn to green light for a specific amount of time set in the code

I’m ok to keep it plugged to my laptop if my esp32 cam wasn’t that powerful to run locally

Why does the camera have 2 parts and how will I connect everything and hook yolo with it

Thanks in advance


r/esp32 • • 20h ago

I made a thing! ESP32-C3 Super Mini DNS adblocker

14 Upvotes

# I modified an ESP32-C3 Super Mini DNS adblocker and added ready-to-use blocklists

I came across Abozaid's ESP32-C3 Super Mini AdBlocker and decided to modify it a little to make it easier to set up and use.

All credit for the original project and its core implementation goes to Abozaid. I simply made a few additions and modifications.

**Why the ESP32-C3 Super Mini?**

It's small, inexpensive, readily available, and has Wi-Fi built in, making it a convenient little device for running a lightweight DNS-based adblocker without needing a dedicated computer or Raspberry Pi.

**What I added**

* A web flasher to make installation easier. You can simply connect your ESP32-C3 Super Mini and flash it without having to manually compile the firmware.

* A collection of ready-to-upload blocklists in the repository.

* Blocklists selected with social media compatibility in mind, so they block unwanted domains without intentionally breaking access to social media platforms.

**Limitations**

Like most DNS-based adblockers, it cannot effectively block ads on platforms such as YouTube and Facebook because they often serve advertisements from the same domains used for their regular content. Blocking those domains would also break the websites or apps themselves.

The goal was simply to make the original project a little more convenient to install and use.

https://github.com/Tr04blesome/ESP32-C3-SUPERMINI-AdBlocker

Again, all credit for the original project goes to Abozaid. This is just my modified version with a few additional features and improvements.


r/esp32 • • 13h ago

Hardware help needed Connection external antenna to ESP32 C3 supermini.

4 Upvotes

Hello :)

Basically I have this ESP32 C3 super mini V1 board from Diymalls and I need to use an external antenna with it, but after doing some research I found out that I have to modify the capacitor so the antenna is used instead of the onboard one, but I can't seem to find what exactly do I have to do or how to modify it. So does anyone know what do I have to do or have a video that shows how to do it?

Thanks.


r/esp32 • • 3h ago

I made a thing! Crypto Miner Desk Toy

0 Upvotes

Has anyone really made anything useful with these little crypto miners? I soldered a little amp and speaker. It works like a pretty good screen / tv. I did have to process the video on my computer instead of the devices itself. It also gets notifications.


r/esp32 • • 20h ago

I made a thing! I built an open-source ESP32 desktop companion with 66 facial expressions!

7 Upvotes

Hi r/esp32 — Robonavigators has built Desk-Companion, an open-source desktop robot for the Seeed Studio XIAO ESP32-C3 and ESP32-S3.

It uses an SSD1306 128x64 OLED and a TTP223 capacitive touch sensor. The firmware provides 66 selectable facial expressions, an NTP-synchronised clock, weather/forecast support, a local web dashboard, dual Wi-Fi configuration with recovery, deep sleep, and OTA updates.

The small XIAO form factor was a good fit for a compact desktop device, while dedicated C3 and S3 firmware keeps their board-specific touch mapping explicit: C3 uses D1/GPIO3 and S3 uses D10/GPIO9.

For the firmware, I used U8g2 for OLED rendering, ArduinoJson for JSON handling, and NTPClient for time synchronisation. WiFi, WebServer, DNSServer, ESPmDNS, Preferences, ArduinoOTA, and Wire come from the ESP32 Arduino core rather than additional libraries.

The important implementation edge cases were keeping those C3/S3 hardware differences separate and providing a usable Wi-Fi recovery path: saved settings live in NVS, a device with no usable connection can fall back to its open access point and captive portal, and the dashboard exposes the network setup.

There’s also a browser-based firmware installation workflow for the supported XIAO boards, alongside the Arduino firmware and wiring/setup documentation.

GitHub: https://github.com/Robonavigators/Desk-Companion

Desk-Companion is complete and hardware validation is complete. I’d value feedback on the wiring, firmware approach, and anything you think could be improved.


r/esp32 • • 1d ago

I made a thing! TouchDeck: Home Assistant touch panel with a glass style UI on the Guition JC3248W535 (ESP32-S3)

176 Upvotes

Hi all,

I know there are already a lot of ESP32 touch panels for Home Assistant. But I always liked glass style interfaces and wanted something of my own, with smooth animations I hadn't really seen in other projects.

Why this chip
The Guition JC3248W535 is a cheap all-in-one board: ESP32-S3, 3.5" 320x480 IPS with capacitive touch, 16 MB flash and 8 MB PSRAM. The S3 mattered for two reasons. The PSRAM holds full-screen frames and wallpapers, and the second core lets me split frame building between both cores. It also runs on the Waveshare ESP32-P4 7" (7B) board, which is still beta (photo attached). I moved to the P4 for the bigger screen: MIPI-DSI, a hardware JPEG decoder and the C6 for WiFi.

Libraries
- LVGL 9.5 for the UI: widgets, layouts and its animation system. It's pinned to an exact version because my frame pipeline was measured against it.
- ArduinoJson for Home Assistant messages and the config. Large HA replies are parsed as a stream so they don't all have to sit in RAM.
- arduinoWebSockets for the Home Assistant WebSocket API, so state updates are pushed instead of polled.
- PubSubClient for the Bambu printers' local MQTT.
- JPEGDEC for album covers. It can do a fast DC-only decode of progressive JPEGs, which many cover images are.
- Improv WiFi, so the web flasher can set up WiFi right after flashing.
- Arduino_GFX: I only use its AXS15231B init table. The display transport is my own (reason below).

The hard part: the display
The AXS15231B panel uses QSPI and only accepts full 320x480 frames: no partial updates and no hardware rotation, so rotation is done in software. At the 40 MHz clock ceiling a full frame takes about 15.4 ms to send, and the panel refreshes every 16.4 ms. The write is slower than the scan, so every frame has to start within about 1 ms of the TE signal, or it gets overtaken and you see tearing. Generic drivers didn't give me that control. So I drive spi_master directly, hold CS for the whole frame, stage chunks through two DMA bounce buffers in internal RAM and start each frame on the TE rising edge. On top of that sits a small compositor that builds frames in PSRAM on both cores while LVGL renders ahead. Page slides now run at a full 60 fps. Heavier effects are a bit lower.

It's a hobby project, so there are probably still some bugs. Free and open source.
Flasher: https://touchdeck.stolaris.dev
GitHub: https://github.com/Keralots/TouchDeck

Feedback welcome, especially from anyone who has fought with the same panel :)


r/esp32 • • 7h ago

AI Content Grease VS - A Free and token efficient VS Code extension to help you program and debug your sensors, build filters and mechatronic systems together!

Post image
0 Upvotes

When I started with microcontrollers, the hard part wasn't the idea or the hardware construction. It was everything around it: picking the right board and port, chasing compile errors, and staring at Serial Monitor numbers trying to work out what the sensor was doing. Imagine having a smart friend with you, debugging the behavior of your system. With this friend we give the orders and observe, in the real world, how those cool LD2450 sensors behave at a 256000 baud rate on your esp32-c6! Build your sensor fusion together (a ToF distance sensor, perhaps?), and ask your wheeled robot to follow you around.

With this in mind, I built Grease VS. Install it in VS Code (or Cursor, Windsurf, Antigravity, and Claude/Codex users can install the .mcpb version), type /grease, and describe what you want in plain English:

/grease blink the LED on my ESP32-C6 and print the LED state every 200ms

The agent writes the sketch, compiles it, uploads it, then reads the board's serial output itself to check that it worked. If something's off, it debugs from the real signals instead of guessing. You see the same data in the sidebar. What should Grease do next? We assume you wanted something BEYOND just blinking LEDs, right?

It also comes with three plotters:

  • Time: the classic live signal plot
  • XY: print pos_x and pos_y to draw paths and trajectories. Good for traditional cartesian localization.
  • Radar: print name_deg and name_cm. Great for ultrasonic/LiDAR/LD2410/LD2450 scanners

It runs as an MCP server, so Claude, Copilot, Codex, Cursor and others all work with it. Board cores and libraries install without the terminal. It supports ESP32, RP2040/RP2350, nRF52840 and Arduino. Anything related to arduino-cli, official from the folks that made Arduino.

Reinforcement Learning? Inverse Kinematics? Navigation? Or perhaps questions related to circuit wiring? Plotting a comparison of raw and complementary filter filtered signals? A home project programming an esp32-s3 with Matter compatibility? Just type /grease and Grease, with an appropriate LLM, will do it for you!

I'd love feedback, especially from people just starting out!

robotfab.github.io/grease-vs
https://open-vsx.org/extension/RobotFab/arduino-grease
https://github.com/RobotFab/grease-vs/releases

Side note

Back in 1874 people invented the typewriter, but early adoption did not go well. Probably some said that it was not really writing, and that it would be offensive to type a letter for someone, instead of writing.

AI is a powerful tool. Software is not your limitation anymore, so you should start mastering the Theory behind the program you are building, and the skills to bring that project to the real world. (usually electronics and mechanical assembly/construction)


r/esp32 • • 1d ago

I made a thing! TFN-OS, a small and powerful OS for ESP32S3/P4 devices

103 Upvotes

(Sorry for the dark video, there's a better video in the TFN website link below)

Seeing how cool is the Waveshare 3.49 ESP32-S3 device, I started wasting my tokens on it. Started with a simple tetris like game using ESP-IDF v6.1, then I couldn't stop. After several games and some apps a friend joined, so I thought - hey, why not make it a an "OS" on which other apps can be installed. 3.49 - Three four nine - became TFN OS.

This was quite challenging - creating an eco system that would be easy enough to integrate into, while keeping it running smoothly, keeping the UI responsive and fun, and patching the ESP-IDF in some cases to extend functionality.

Other ESP32-S3 based boards, with different form factors, quickly joined since I had some lying around. TAB5, CoreSE and more, all are details in GitHub and the website below. The AMOLED devices looks, as expected, great.

"Apps" are basically signed ELF files that uses TFN-OS services and requests permissions, and there's a nice SDK that can help quickly convert any existing ESP32-S3 code to TFN-OS app.

Some of the games contain my original music. Personally I especially like to play Quests on the 3.49, the wide screen is perfect for that.

There are also many utilities: simple things like hourglass, world clock and timer, wifi radio, Home Assistant app, BT keyboard & mouse, BT gamepad, music DAW, MIDI controller and more. I also took inspiration from many other amazing open source projects and converted them to TFN OS: tiny-voca for TTS, Oído for STT, Tiny-2.1 (the DOS LLM), and many more. Full list is at https://tfnos.xyz/thanks.html .

One nice outcome of that is that there's a full STT->LLM->TTS->... loop running completely offline, on the ESP32-S3, allowing to control the device using your voice - open apps and change settings, and the TTS is really great reading short text or wiki pages.

I would love to see contributions to the project. Basically The sky is the limit; any cool ESP32-S3/P4 application can be ported to TFN-OS app.

The landing page + web flusher is: https://tfnos.xyz

The TFN-OS can run in several modes: as a standalone, with a local manager or in developer mode.

Note: I'm working with ESP MCUs for a long time now but in this project I didn't write a single line of code. Did a lot of code review and QA though

I hope some of you would like it and I would appreciate (positive) feedback


r/esp32 • • 2d ago Bravo Heartwarming Mindblown

I made a thing! I turned the Waveshare ESP32-S3 3.49" bar display into a retro VFD-style desk gadget (open source, installs from the browser)

951 Upvotes

Phosphor is firmware for the Waveshare ESP32-S3-Touch-LCD-3.49 (the 640x172 bar screen). Every page comes in four retro looks: VFD (the glowing blue-green screens on 80s VCRs and car stereos), C64, Amiga and Atari 2600 style.

UPDATE: v2.0.0 is out

New: C64, Amiga 500 and Atari 2600 versions of every page, a game of 21 you play by knocking on the table (once = stand, twice = hit), and Lighthouse Keeper, my own Game & Watch-style game.

I'm really into tech and retro stuff. Instead of a standard screen I made something in the style I love, and I honestly didn't expect this many people to like it. Seeing how many of you think the same way, I finished about 90% of the ideas in my head and added them. What started very simple has turned into maybe one of the most complete firmwares for the Waveshare ESP32-S3-Touch-LCD-3.49. Thank you!

Why I built it

I'm an 80s kid and I love little gadgets like this, and retro visuals even more. The demo that came on the board didn't do it for me, so I sat down with AI (Claude) and turned the ideas in my head into this. The ideas and design are mine; Claude wrote much of the code with me.

What it does

  • Clock with alarm (it wakes you with the radio), weather, internet radio (stations editable from your phone), timer, pomodoro and an hourglass you flip over
  • Pixel scenes you can touch: aquarium (tap to feed), snowy cabin (hold for a snow globe), fireplace with a sleeping cat (tap to wake it), lighthouse (hold for a storm), an ocean liner that tilts with the board (fog horn) and a lava lamp
  • Games: 21 against a cartoon dealer that you play by knocking on the table (once = stand, twice = hit), Lighthouse Keeper (my own Game & Watch-style game: fixed segments with faint ghosts, Game A/B, 3 misses) and an endless runner
  • Tools: spirit level, coin flip (shake it), box breathing, scoreboard, screen lamp
  • Settings on the board itself: theme, clock style, language, brightness, city, night dimming, show/hide pages, help, and a QR code that opens the settings page on your phone
  • Once a day it checks for a new version and tells you. It never updates itself

Why the ESP32-S3

I picked the board for the screen, but the S3 turned out to be the right chip: 8 MB PSRAM for the 640x172 frame buffers, two cores (the radio streams on one, the UI draws on the other) and native USB for the one-click browser installer.

Libraries

  • ESP32-audioI2S: HTTP streaming plus MP3/AAC decoding
  • WiFiManager: Wi-Fi setup from your phone, no code editing
  • U8g2 for the setup screens; the pages use my own fonts (5x7 dots for VFD, 8x8 for C64/Amiga), Turkish characters included
  • No LVGL: the scenes are pixel art, not widgets
  • ESP Web Tools for the installer

Hurdles

  • The panel is natively portrait, so every frame is drawn landscape and rotated in software
  • The retro looks only looked right once I copied the old limits, not just the colours. The scene pictures started as AI images, and a converter cuts them down to each machine (C64 16 colours, Amiga 32 of 4096, 2600 4 colours per line). Prompts and converter are in the repo
  • Knock detection: the IMU is read every 2 ms, and a knock is a 0.12 g jump off a slow baseline
  • A rare boot loop at start-up (the audio task re-created on the same static TCB) took a while to find. v1.0.x has it too
  • Security: it's made for a home network and has no password. Firmware updates, renaming and Wi-Fi reset over the network are switched off in the published builds (they need a token you only set if you build it yourself). Settings writes need a custom header, so other websites open in your browser can't change them. Don't make it reachable from the internet (no port forwarding)

Install

USB-C + the web installer (Chrome/Edge). It replaces the firmware, the factory demo included; tick "Erase device" for a clean install. Coming from v1.0.x: install once over USB and leave "Erase device" unticked, your settings stay.

Builds come from GitHub Actions with a signed attestation; VirusTotal 0/61 (link in the README).

(GPL-3.0) GitHub: https://github.com/melihkoray/phosphor ⭐

Installer: https://melihkoray.github.io/phosphor/

Release notes: https://github.com/melihkoray/phosphor/releases/tag/v2.0.0

Screenshots of all 4 looks in the comments. Feedback and ideas welcome!


r/esp32 • • 20h ago

Board Review Revision To My Plant Waterer <Advice Needed>

1 Upvotes

Hi there,

I had created a plant watering system for my small garden balcony earlier this year. It worked great for like 4-5 months. But it was hardwired, (I hope you understand what it means, like the plants had to be exactly the way they were when I first made the project). And well i went to add more plants and my system wasn't able to sustain it. The pipe was the type of one you use in PCs for liquid cooling and the motor is a 5V DC submersible motor(I know its a bad choice). I checked online for more ideas but it is full of projects made for science exhibitions. It is not one of those fancy ones with a soil moisture sensor, just a timer for turning on the motor. I will surely upload pics of the finished project after it it done. If any of you had any insights, I would love to hear them.
(I am sorry for not uploading an image, I rage dismantled my earlier system after three hours of cutting the pipes to fit the new plants after realizing i ruined it).

(ESP32 Devkit V1 running on Matter , I didn't code it, uploaded firmware for ESP Zerocode)

Thanks,

Len36SSHW


r/esp32 • • 22h ago

Hardware help needed IR module camera for monitoring pellets

1 Upvotes

hello! I am looking for a ESP32-CAM module with an OV2640 camera that works with IR. I need to install inside my boiler room pellet storage so that I can remotely check in on the level of the pellets.

I found this on Amazon: https://www.amazon.co.uk/gp/product/B08X3GRK22?th=1

Where can I find the corresponding IR camera for this? I am a bit of a noob in this matter, so any help would be appreciated. I will then use AI to guide me on the software side.

Thanks!


r/esp32 • • 1d ago

I made a thing! Running Bad Apple!! on an ESP32 with a 16x2 LCD and Buzzer

38 Upvotes

Model: ESP-WROOM-32, had it lying around from high school projects time

basically a python script on the pc streams packets from the bad apple mp4 video to the esp with a .mid file for the buzzer

no external libraries used or needed, just built-in <Wire.h> and tone()

finding an mid that fit the song was annoying, the mid file I eventually found in this repo https://github.com/thewildwestmidis/midis was a bit sped up and had the first part before the singing empty, I had to expand it then chop a similar part of the song from the middle and place it in the beginning, took a few hours to figure it all out but it eventually worked yippieeee :D


r/esp32 • • 1d ago

Software help needed Got gifted an ESP32 from non trustworthy source. How to securely flash it?

Thumbnail
gallery
22 Upvotes

So basically the title and be kind, I am a noob with ESPs 😵. I got a "clawd mochi" (small claude logo styled desc pet) that I am not sure if I can trust to plug into my computer. It contains the attached PCB with an ESP32 Chip and a small TFT that just displays some cute faces and you could create your own customized faces over the wifi access of the ESP.

I would love to erase the board and flash the SW myself fresh to make sure I do not catch myself some unwanted security issues when plugging it into my computer. So I researched and fount that I could press the boot button while pluggin it in (test this with just a power socket and not the computer) and if this works I could do the same with a PC and should be fine? Is this really the case or do I need to consider anything else? I plan on using a raspberry Pi to erase and reflash the SW that I also deleted the wifi connection, even if this may be overshooting it?

Also could the TFT (also pic attached) be a problem? Don't think so but better safe than sorry I guess.

I know the part prices are not really worth the hustle and I could just order the parts and do it from scratch, but this seems wasteful and since I got it here, I thought maybe there is a safe way?

I appreciate any help :)


r/esp32 • • 1d ago

Hardware help needed ESP32-C3: does `app-flash` preserve XMC flash write-protection on reboot?

3 Upvotes

Hi all!

I’m developing an ESP-IDF game for a FoloToy AI Passport. The board uses native USB Serial/JTAG and has 8 MB of XMC flash (JEDEC \`20 40 17\`) with one factory app partition. The current app boots normally.
An earlier app-only update with \`esptool\` 4.13.0 in ROM mode succeeded: the app read back correctly and booted. I didn’t record the flash write-protection settings before and after. A newer custom installer stopped before writing:

STOP: Unreviewed NOR protection layout for JEDEC 174020; no write

That message came from my installer’s safety check, not from Espressif’s tool. \`174020\` is the same flash ID shown in reverse byte order. No new firmware was written.

I’ve read \[FoloToy’s build guide\]([https://github.com/FoloToy/ai-passport/blob/main/docs/development/engineering/build-and-test.md](https://github.com/FoloToy/ai-passport/blob/main/docs/development/engineering/build-and-test.md)) and \[hardware guide\]([https://github.com/FoloToy/ai-passport/blob/main/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md](https://github.com/FoloToy/ai-passport/blob/main/docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md)), and \[Espressif’s docs for \`app-flash\`\]([https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/tools/idf-monitor.html#keyboard-shortcuts](https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/tools/idf-monitor.html#keyboard-shortcuts)).

These explain what gets flashed, but I haven’t found a report showing whether write-protection stays unchanged on this board.

Has anyone tested an app-only update on this setup and checked the flash protection before connecting the flasher and again after a normal reboot?

If so, which ESP-IDF or \`esptool\` version did you use, and did you confirm the flash variant (XM25QH64C or XM25QH64D)?

I’m trying to replace only the app and keep the existing bootloader, partition table and saved settings. I don’t want to disable protection or force a write. Thanks!


r/esp32 • • 2d ago

I made a thing! No display? No problem — ESP32-S3 draws vector graphics on an oscilloscope

988 Upvotes

The S3 has no real DAC, so this uses the two sigma‑delta outputs with a 10 MHz carrier and an RC filter on each pin (1 kΩ series, 10 nF to ground, ~16 kHz corner). That gives a crude 8‑bit DAC per channel: X to channel 1, Y to channel 2, scope in X‑Y mode. 19 figures cycle on it


r/esp32 • • 2d ago

I made a thing! Camera Sprint — Built & Go!

18 Upvotes

A little weekend experiment with an ESP32-S3-CAM, a button, and an SD card.

No screen, no preview. Just point and shoot.
The fun part is not knowing exactly what you’re capturing. I ended up clicking way more than expected, and when I looked through the photos afterward, they almost felt like frames from a stop-motion animation.The results kept surprising me!

It’s a pretty simple build, but I’ve been having a lot of fun with it.

Curious what you guys think! Would you enjoy playing around with a camera like this?

Build Notes:

Why the S3? My S3-CAM board already had a camera connector, microSD slot, and PSRAM. A three-wire shutter button was all I needed to add.
Libraries: esp_camera gives me JPEGs directly. SD_MMC matches the onboard card wiring. Without a card, WiFi and WebServer let me download the latest shot.
Challenge: Connecting the camera sensor and shutter button went smoothly. The enclosure took a few tries, especially getting the clips to hold the board securely.


r/esp32 • • 1d ago

Hardware help needed Is ESP32 suitable for a board game turn-tracking device?

0 Upvotes

I want to make maybe 4-6 turn tracker pucks, with an illuminated light to indicate the turn of the current player. Once the current player presses a button on their puck, the light illuminates the next person's puck.

If possible, it would be a nice bonus to add some sort of speaker to each puck to play a customizable sound upon change of player turn.

is this a project well-suited for

A. ESP32

b. a complete beginner?

If so, can you guys help recommend

a. Recommended hardware to start with?

b. which wireless protocol would be best suited?

Thanks!!


r/esp32 • • 1d ago

Hardware help needed Help calibrating ESCs with an ESP32

1 Upvotes

Hello, I have built a quadcopter with an esp32 as the flight controller. My plan is to program it myself, and I am using ESP-IDF. So far, I am able to read the radio controller joysticks using IBUS. I am currently trying to control the ESCs for the motors. From what I have researched, most ESCs expect a 50hz PWM pulse from the flight controller (esp32), and high throttle is a 10% pwm pulse while low throttle is 5%. (Also it’s at 8 bit duty resolution if that matters.) I am converting the high and low throttle values from the RC controller to map out to these percentages and update the PWMs accordingly. I have verified that the PWM is indeed correctly set up and outputting (I connected LEDs and controlled their brightness using the same code and they worked); however, the ESCs are just not responding. They have been trying to calibrate and are beeping, which requires you to give it a sequence of low and high throttle input, but they just WILL NOT respond to the PWM. I have played around with various frequencies, percentages, etc. and at one point they started to respond but then went back to beeping.


r/esp32 • • 2d ago

I made a thing! (Update) I have published the DIY TimeCode generator that i have been working on using classic esp32

8 Upvotes

I posted about this project here earlier, while I was still building it:

past post

The past project i only use 1 esp32, but now on this project i use 2 in one device, battery is not that long with 1 single 18650 battery 3Ah, in lock mode it can run about 16 hours, pretty good for me.
Photos and the schematic are below.

i use arduine IDE, and classic esp32, mainly because it has its own DAC, and i think using that i can lower the output voltage via firmware , but boy oh boy was i wrong, to noisy ,halfway through i just use schmidt trigger with voltage divider to lower the volume. so thats why i use classic esp32.

The feature is, we have internal mic, and also we can insert external mic ( in mono mode ). we can select the input to ltc on 2 channel or 1 ltc 1 mic using the physical switch.
also i vibe code the LTC app, so it can works with davinci resolve and premiere i run it on both video editor and it works, i haven't check with final cut pro ( i dont have a mac ).

you can check it with only the modules tho, you dont actually need the pcb, just solder some wires, and all works. but make sure to pull the gpio pin 36 on LTC esp32 side, so it stuck at charging and doesn't turn off and enter deep sleep.

the PCB's really made by trial and error, i have created about 5 prototype, and by far this one is the most stable, so if you have any input, or suggestion, please tell me.

repo


r/esp32 • • 2d ago

I made a thing! Retro Monitor - 3D printed case with ESP32-4848S040 and old screensavers

Thumbnail
gallery
51 Upvotes

Hi everyone,

I had a spare ESP32-4848S040 laying around and wondered what I could do with it.
In the past I made a tiny retro PC with small OLED display.
https://www.reddit.com/r/esp32/comments/1r23liz/i_made_a_tiny_ibm_pc_model_powered_by_esp32_and/
So I thought, why not make it a little bit bigger.

The case is inspired by old CRT monitors and I made it myself in OnShape.
Printed with Bambulab Bone White, it is the perfect color for the old school look.

For power I used an USBC socket I soldered directly to the board.

Video with all modes:
https://www.youtube.com/watch?v=V1NQ0nH_kQc

Coding was done with Claude Code (Opus 5.5).
I used Claude Chat to create a plan with milestones and a CLAUDE md file.
With that file I started Claude Code.
And that was really mindblowing how good it worked. I just had to connect the display to my PC and Claude did everything (programming, compiling, flashing, testing). I just had to check after each milestone if all was good or something need to be changed.

Summary written by Claude:

Body:

I built a little desk “CRT monitor”: a Guition ESP32-S3-4848S040 (4" 480×480 IPS, ST7701S over 16-bit RGB, GT911 touch) in a 3D-printed retro monitor case. It runs a screensaver firmware with a fake CRT look.

Modes

  • BIOS-style boot screen (shows real PSRAM size, IP and mDNS name)
  • Big clock: 7-segment with dim inactive segments (VFD style), plus slow drift against burn-in
  • Movie-style hacker terminal (sprinkled with real IP, uptime and heap)
  • Pong (CPU vs CPU, you can grab a paddle by touch)
  • Snake with a BFS AI, highscore stored in NVS
  • Matrix rain, 3D starfield with warp, Game of Life, Lissajous oscilloscope

The CRT pipeline

  • All modes draw into a 240×240 8-bit “phosphor intensity” buffer. Afterglow comes from decaying the buffer each frame instead of clearing it.
  • No full framebuffer: esp_lcd RGB panel in bounce-buffer mode. Output lines are generated in the on_bounce_empty ISR straight from the small buffer, doubled to 480×480.

    • 32-bit LUTs do pixel doubling, bright/dim scanlines and phosphor colour (green P1, amber P3, white P4) in one lookup.
  • Effects: flicker, noise, a rolling bright bar, vignette, pre-rendered text glow, and the classic “collapse to a line, then a dot” power-off transition between modes.
  • Image rotation is done in the compose step, so the scanlines stay horizontal in any orientation.
  • Steady 45.6 fps at 12 MHz pixel clock, 60 fps at 16 MHz. The render task sits around 30–60 % of one core.

Easter egg
Tap “ACCESS GRANTED” in the hacker terminal and you land on an early-90s style desktop (“RETRO-TEK Fenster 3.11”). The same pipeline switches into a 256-colour palette mode, scanlines included. It has six screensavers: fire, plasma, Mystify, 3D pipes, tunnel and lava lamp metaballs.

Stack / libraries

  • PlatformIO with the pioarduino platform (Arduino core 3.3 / ESP-IDF 5.5)
  • ESP-IDF esp_lcd_panel_rgb directly. No LVGL and no Arduino_GFX at runtime, only its st7701_type9 init sequence was borrowed.
  • ESPAsyncWebServer + AsyncTCP (ESP32Async forks), ArduinoJson 7
  • Arduino core built-ins: WiFi, ESPmDNS, DNSServer (captive portal), Preferences (NVS), ArduinoOTA, Update
  • Custom minimal GT911 driver (polled, no INT/RST pins) with tap, double-tap, swipe and long-press detection
  • 8×8 IBM-VGA-derived bitmap font, public domain (dhepper/font8x8)

Other bits

  • Retro-terminal web UI at retro-monitor.local, gzipped into the firmware by a pre-build script. Settings apply live and persist in NVS.
  • REST API for status, config, mode and display, handy for Home Assistant
  • First-time WiFi setup through a captive portal AP
  • Night mode: display off or dimmed clock, a tap wakes it for a minute
  • OTA via web upload or straight from PlatformIO

r/esp32 • • 1d ago

Hardware help needed When do you bypass FreeRTOS ISRs on the ESP32-S3 and use RMT, MCPWM, or Dedicated GPIO (dedic_gpio) for deterministic timing?

3 Upvotes

While working with bare-metal C/C++ and ESP-IDF drivers on the ESP32, I have been looking closely at how much standard FreeRTOS GPIO interrupts introduce once Wi-Fi and flash cache misses are active in the background. Even with IRAM_ATTR on the ISR and critical sections kept short, worst-case interrupt latency still shifts by a few microseconds under load. The ESP32 has several hardware blocks (RMT, MCPWM, PCNT, and dedic_gpio CPU-register-mapped pins) that can generate or capture sub-microsecond edges without waking the CPU on every transition. I have couple of question which folks who are shipping tight-timing protocols or custom serial interfaces on the ESP32s. When one need deterministic edge timing without dedicating an entire core to a busy-wait loop, which peripheral do you reach first? Anyone who has used dedic_gpio in real projects for bit-banging or parallel handshakes, how will does it coexist with FreeRTOS task switching when interrupts are enabled?