Hey Reddit! I’m 15, and since my summer break, I’ve been developing an experimental blockchain for innovation and learning purposes. The blockchain itself isn't really the main topic here, so I’ll try to keep things simple. A blockchain can be an open network that anyone can join (what we call a P2P network—though a blockchain isn't necessarily a P2P network, and a P2P network isn't necessarily a blockchain, you get the idea...). The issue is that when a P2P network is just starting out, you usually need to find peers to connect to, so I decided to make this easier by building a bootstrap node. It's basically a participant in the network that acts as a meeting point.
Sorry for the pretty long post that doesn't necessarily fit this sub, I just wanted to share this because I’m amazed that a tiny circuit board costing under 10 euros can become the central point of a network and act as a sort of server.
Thanks for reading, and feel free to ask if you have any questions or recommendations!
A little light can make a workspace feel different.
Halo is a compact, rechargeable RGB desk lamp designed to bring ambient lighting and a touch of colour to your everyday spaces.
Built around the Waveshare ESP32-C3 Mini, Halo combines custom 3D-printed mechanical components, an ultra-slim RGB LED strip and a rechargeable power system in a minimal, circular design.
Inside the Design
Mechanical & 3D Printing
Custom enclosure designed from scratch in Autodesk Fusion 360
Four-part enclosure assembly
3D-printed housing and structural components
Circular diffuser designed for smooth, uniform illumination
Embedded & Lighting
Waveshare ESP32-C3 Mini as the central controller
Ultra-slim 2.7 mm Waveshare RGB LED strip
Custom Arduino firmware using FastLED
Automatic ROYGBIV colour cycling with five-second intervals
Power & Portability
Rechargeable 18650 Li-ion battery
USB Type-C charging
Compact, cable-free design
Designed to Be Built
Halo is a complete, documented maker project. The repository includes the firmware, Fusion 360 CAD files, STL models, circuit diagrams and build resources.
The idea is simple: create a thoughtfully designed desk lamp that anyone can build, customize and make their own.
Whether it's on your desk, bedside table or shelf, Halo adds a little colour to your everyday moments.
- New custom keywords can be added without any training. Just retrieve the encoding from the web console and paste it in your code. Up to 15 keywords can be used in parallel.
- CPU: It uses 45% of one of the cores at 240 MHz and 63% at 160 MHz. During silence, CPU consumption will be close to zero.
- Memory: Very low RAM usage (15 KB) without any heap allocation. 300 kB of Flash, which can be optionally moved to PSRAM for slightly better performance.
- 8 languages are supported (English, Spanish, German, French, Italian, Chinese, Japanese, Portuguese). Each has its own library build.
- License is MIT for the demo and Apache 2.0 for the engine (TinyKW).
A decathlon-style game where the board is the controller: shake to sprint, tilt in rhythm to swim/cycle/paddle, punch to throw. Ten events, hot-seat multiplayer, replays, ghosts, OTA updates and an optional online leaderboard. Video above, source at the bottom.
## Why the ESP32-S31 / ESP-Mosaico
Honestly, I picked the board before the chip: the Mosaico has everything a handheld game needs in one package: a 480×480 AMOLED, an IMU, audio, a vibration motor, a battery with a fuel gauge, and USB. But the S31 turned out to matter:
- **32 MB of PSRAM** is what makes replays and ghosts possible. Every event records per-frame state snapshots and replays them through its own renderer. - **Enough CPU to software-render the whole screen at 40 fps** (everything is drawn in code, no sprite sheets apart from a few kayak sprites), with time left for audio synthesis. - **16 MB of flash** fits two 3 MB OTA slots plus a separate NVS partition for the leaderboard cache. - **Wi-Fi** for the leaderboard sync and OTA, but it's only switched on during a sync to save the 65 mAh battery.
## Libraries, and why
- **ESP-IDF 6.1 (plain C), not Arduino.** I needed direct control over DMA, the partition table, OTA with bootloader rollback and the USB stack. Most of the hard problems below would have been hidden (or unfixable) behind Arduino's abstractions. - **No LVGL, my own strip renderer.** LVGL is great for widget UIs, but a game redraws the whole screen every frame. I render 48-row strips into two DMA buffers (one being drawn while the other goes out to the panel), so I never need a full framebuffer in the hot path. - **TinyUSB CDC (through the board's USB console component)** for the serial port, plus a small protocol of my own to stream screenshots to a Python script. That's why the screenshots are pixel-perfect. - **No MIDI player on the device.** A Python script converts national anthem MIDI files into melody + bass tables at build time, and a tiny software synth plays them. Much smaller and more predictable than parsing MIDI at runtime. - **ESP Web Tools + esptool-js** so people can install it from the browser without installing ESP-IDF. - **Cloudflare Workers + D1** for the leaderboard: no server to maintain, and the free tier covers a hobby project. Syncs are signed per board and sanity-checked server-side.
## Hurdles and edge cases
- **The serial port wasn't what I thought it was.** I assumed the game's COM port was the S31's built-in USB-Serial/JTAG. It's actually a TinyUSB CDC device on the USB-OTG HS controller. The USJ driver installed fine and received... nothing. On top of that, writing binary data through stdout got corrupted, because the console VFS translates line endings. The fix was talking to the TinyUSB CDC API directly, and muting logs while a screenshot is streaming. - **Two COM ports.** The running game and download mode enumerate as different ports, and toggling RTS resets the chip. My flash script has to reset into download mode, wait for the other port to appear, then flash. - **The fuel gauge lies for this battery.** The BQ27220's state of charge is way off for a 65 mAh cell, so the battery percentage comes from voltage instead. - **Gestures you can't actually do.** My first discus had you physically spin the board. It was impossible and a bit dangerous. Flicking the board while steering a ball was too hard as well. The controls that work best turned out to be rhythm tilting and rolling a ball around the screen with tilt. - **You can't watch the screen while shaking it.** Every action needed an eyes-free cue (a sound plus a vibration pattern), otherwise the 100 m was just guessing. - **Keeping saves across updates.** NVS stays fixed at 0x9000 so OTA updates never touch records or athletes. Boards flashed before I changed the partition layout needed one web flash to move over. - **Real-world Wi-Fi.** Testing on a phone/PC hotspot that gave no usable DNS, so the board falls back to public DNS servers.
## Known limitations
- It only runs on the Mosaico. Porting means swapping the board layer (display, IMU, audio). - Gesture thresholds are tuned mostly on me, so I'd like to hear how they feel in other hands. - The leaderboard has sanity checks but isn't cheat-proof.
Feedback welcome, especially on the gesture detection and the renderer.
Hallo r/esp32, I went to Synthfarm, a residency program for people who are interested in, or play/build music synthesizers, and I built this using the Waveshare ESP32S3 AMOLED (I posted this two days ago, but the firmware wasn't on github yet)
What it does: record up to 60 seconds with the watch’s mics, and it splits into four screens to play around with sounds/audio recorded
Why this board: has two mics (ES7210), a DAC, amp and speaker (ES8311 + NS4150B), accelerometer, touch AMOLED, and 8 MB of PSRAM for the tape
How it’s built
PlatformIO + Arduino-ESP32, Arduino_GFX for the panel (art is from a WIP space game)
32 kHz audio, one 64-sample block every 2 ms
Core 1 only makes sound; core 0 does touch, tilt and the screen rendering
The engine is plain C++, so the same code runs on the watch, in tests and in the browser (as an 80 KB WebAssembly file; used Claude Code for these bits)
What didn't/doesn't work well
speaker sometimes rattles below about 170 Hz
it's still tricky to use unless you get used to it
repetitive sounds work poorly compared to a varied sound sample
Built with lots of help from friends at Synthfarm.
If you have this board, and flash it - I would love to know how it works out for you!
I wanted to make the smallest little webserver I could so I chose an ESP-01, which is ESP8266, not ESP32 based. It has 80KB of RAM, and 1MB of flash running at 80MHz, wifi only in terms of radio.
I utilized the arduino framework due to issues with the native RTOS support on the ESP8266 under PlatformIO
I have several bits of tooling involved in making the project work.
ClASP is used to embed a React site into a C header for delivery over a waiting socket.
htcw_buffers is used to generate serdes code for the struct sent over the websocket.
I used my gfx_web to create the headers for the font and icons.
In terms of libraries, I am using my htcw_gfx library for the display.
The main hassle was fitting everything into flash, and figuring out a way to deliver ClASP content without the ESP-IDF. I had never done it from Arduino before.
The thing is ClASP expects a waiting socket to send data out on, and it handles the HTTP headers, encoding, etc.
With the ESP-IDF you can get a socket handle off of a web request and take over the handling yourself.
With Arduino I had to write a remedial webserver and websocket mechanism by hand. Fortunately it wasn't too bad, but figuring out I had to do it in the first place took more time than I care to admit.
With 55 neighbor routers crowding 2.4 GHz around my desk (~76% channel load), I wanted my DIY Home Assistant hallway camera off 2.4 GHz instead of building around another ESP32-S3 camera board. Espressif's ESP32-C5 brings 5 GHz Wi-Fi 6, though it has no camera interface or display bus of its own. Meanwhile, the 8-inch ESP32-P4 camera touchscreen I bought had the MIPI-CSI camera pipeline, MIPI-DSI display, and hardware JPEG encoder I needed, except its internal companion radio was a 2.4 GHz-only ESP32-C6. Holding that onboard C6 in reset at boot let me wire a small ESP32-C5 onto its three-wire UART so the P4 handles video and UI while the C5 handles 5 GHz Wi-Fi.
Both chips run ESP-IDF 5.5. I looked at esp-hosted and PPP network tunneling first, then dropped both because Wi-Fi retries over a three-wire UART with no RTS/CTS flow control can stall the pipe; sending framed JPEGs into a custom ESPHome component on the C5 kept failure modes simple and gave me native Home Assistant discovery without maintaining a separate MQTT or RTSP stack. On the P4 side, Espressif's esp_video V4L2 stack and hardware jpeg_encode driver made more sense than porting older DVP-focused esp32-camera code or burning CPU on software JPEG, squeezing 320x240 frames into ~6 KB in about 3 ms while LVGL 9.3 drives the 8-inch UI and live charts at 15 fps.
My first fresh P4 build went straight into a boot loop, which is how I learned ESP32-P4 boards in the wild span early silicon and newer v3.0 steppings that need separate sdkconfig targets. Once it booted and I spent a few late nights going back and forth with AI on the glue code, two link quirks showed up at 2 Mbaud. Without hardware flow control, a sharp, text-heavy scene could swell past the C5's 16 KB UART buffer or block the UI thread, so the P4 drops frames non-blockingly when the wire is busy and re-compresses oversized frames harder on the fly. A normal dual-band Wi-Fi scan on the single-radio C5 also parked the radio off-channel long enough to freeze the live feed, so I interleaved 130 ms passive listens on one channel with 140 ms windows back on Channel 153 to flush queued frames. That scanner picked up 68 physical radios on 5 GHz vs 55 on 2.4 GHz around my desk, which looked like a bug in my math until the per-channel view showed only 8 of them sharing Channel 153 with me.
Plotting P4 serial output right above C5 Wi-Fi output on the screen also made wireless retries easy to spot, while keeping Wi-Fi video traffic at zero whenever nobody has Home Assistant open. The camera is still aimed at my office ceiling while I put off designing a rear mount for the C5, with source code, prebuilt images for both P4 revisions, and build notes on GitHub:
My first post here, I am building a little device that will act as my main entry point for AI and second brain with voice dictaction by default - there are many challenges but recently a paper on oido really surprised me so I had to try it
Code not included for the moment as this is still in totally more than beta - I will post updates on the YT channel as the thing goes
I'm working on a computer vision project using an ESP32-P4-Pico-M board and a Raspberry Pi Camera Module v2 (OV5647). I need to transfer captured image data from the ESP32-P4 to a Windows PC over the board's native USB port.
I'm currently trying to get native USB device communication working in Arduino IDE, but the USB device does not enumerate on Windows.
Programming/debug: Separate onboard CH343 USB-UART bridge, connected to COM6
Host: Windows PC
The P1 native USB connector is separate from the CH343 programming/debug port. I am using COM6 to upload firmware and monitor logs, while P1 is intended for native USB communication with the PC.
Software
Arduino IDE
ESP32 board package by Espressif Systems: 3.3.11
Board selected: ESP32P4 Dev Module
Upload mode: UART0 / Hardware CDC
USB mode: USB-OTG (TinyUSB)
USB CDC On Boot: Disabled
Chip Variant: Before v3.00
Flash size: 32 MB
PSRAM: Enabled
What I have already verified
Previously, I used ESP-IDF 6.1 on this same board and successfully:
Booted the ESP32-P4.
Initialized and tested the 32 MB PSRAM.
Detected the OV5647 camera.
Initialized the camera through esp_video.
Captured an 800 × 800 RGB565 image.
Verified that the captured image data changes between frames.
I also confirmed from the board schematic that P1 is the native USB connector and is separate from the CH343 USB-UART interface.
I previously attempted native USB using ESP-IDF/TinyUSB, but P1 did not enumerate on Windows. I switched to Arduino IDE to try a simpler USB device test.
Current problem
I located the Espressif USB library's USBSerial example directly in the installed Arduino package and compiled/uploaded it through COM6.
The upload completed successfully. However, the native USB connection on P1 still does not appear to enumerate as a USB CDC device on Windows.
I also tried the Arduino IDE's USB Keyboard example, but it failed to compile because it uses the generic Arduino Keyboard library and cannot find HID.h:
C:\Users\parth\AppData\Local\Arduino15\libraries\Keyboard\src/Keyboard.h:25:10:
fatal error: HID.h: No such file or directory
This appears to be the generic Arduino Keyboard example rather than an ESP32-P4-specific native USB example.
After flashing the USBSerial sketch, the programming UART showed the following boot output:
The output stops there. I am not currently trying to debug the core-dump warning; my immediate goal is to get native USB device enumeration working.
What I need help with
Has anyone successfully used the ESP32-P4-Pico-M native USB P1 connector as a USB device with Arduino-ESP32?
Is USB-OTG (TinyUSB) the correct Arduino Tools setting for native USB device mode on the ESP32-P4?
Are there known issues with native USB CDC enumeration on Arduino-ESP32 3.3.11, especially on ESP32-P4 revision v1.3?
Is there a minimal, known-working Arduino sketch for the ESP32-P4 that enumerates as USB CDC or another USB device class through the native USB connector?
Are there any specific board-level requirements for enabling the native USB peripheral on this board that are not covered by the Arduino ESP32P4 Dev Module configuration?
I would appreciate advice from anyone who has successfully used native USB on this board or a similar ESP32-P4 board.
I'm building Vroo, an open-source group intercom for motorcycle riders. The phones do the audio work (Opus, encryption), and an optional ESP32 box on each bike carries voice where there's no mobile signal.
How the box is designed:
it runs a Wi-Fi access point for its rider's phone, and talks to the other bikes' boxes with ESP-NOW in long-range mode
it's a deliberately simple relay: it never has the group key, so it can't decrypt anything. It reads a small plain routing header, filters by group, drops duplicates and passes packets on
firmware in C on ESP-IDF 5.x, with the packet logic in a component that has host-run tests, sharing test vectors with the app
Where it is: phone to box works on my desk (an iPhone and an Android phone talking through one box, 10–30 ms round trip). Box to box is the next step, and I'd love advice from anyone who has used ESP-NOW long range outdoors:
realistic range between two moving bikes, and antenna placement (I'm planning on ESP32-WROOM-32U boards with external antennas)
how many 20 ms voice streams fit at the long-range rate once packets are relayed over a few hops
running the soft AP and ESP-NOW together on one radio
I am trying to create a self balancing robot, but the steppers keep jittering when trying to balancing. I'm thinking its a gyroscopic code calibration issue (I'm using MPU6050) but I'm I am also thinking it's a physical NEMA 17 issue. As I have bought these a couple months ago, I am having doubts. If you some how know the fix to this issue, please let me know. I haven't added the PID algorithm yet and it is still jittering
Cannibalised a cheap Aliexpress Echo clone, ripped out the insides, retaining the speaker and the button board which I was able to re-purpose.. Now a nice little bedside ESP32 for reading audiobooks from Music assistant with led effects..
(note the schematic has an 18 led ring, but i went with 8, for the sole reason, the 8 led arrived in the post first.. as it turns out, it was more than adequate)
needs more hotglue :D (everything is soldered, the glue was just to avoid breaks when cramming it in the case)
I'd like to share a small embedded project I've been working on: a Flappy Bird-inspired game running on a real ESP32-WROOM-32 development board.
The game runs on a 1.8-inch ST7735S TFT display (128×160, used in landscape orientation at 160×128).
Why this ESP32 board?
I used the ESP32-WROOM-32 because I already had this development board available. It provided sufficient processing power, memory, and GPIO pins for the game and the ST7735S display.
Hardware
ESP32-WROOM-32 development board
ST7735S 1.8-inch TFT display
SPI interface
Built-in BOOT button (GPIO 0) for game control
Software
ESP-IDF 5.5
C++
LovyanGFX 1.2.33
I chose LovyanGFX after comparing several graphics libraries. I wanted a flexible graphics library with support for the ST7735S display and the features needed for this project.
A technical challenge
One of the biggest challenges was getting the ST7735S display working correctly. I had to work through the display configuration to achieve proper colors and reliable operation.
Features
Real-time gameplay with a 30 FPS target
One-button control using the BOOT button
High score saved in ESP32 NVS, so it persists after reboot
Custom pixel-art graphics
Landscape display orientation
The project includes the complete source code and build instructions. LovyanGFX is included as a Git submodule.
Demo
Here's a short video showing the game running on the actual hardware:
The EDP32-S3-Plus has just arrived and I’m looking forward to trying it out. The Plus means I have lots of PSRAM to use for audio announcements, at least I hope so. It’s going to be the uC element of my e-paper Lantern status monitor, all battery powered of course and BLE communications between the lanterns and monitor.