r/esp32 • • 3h ago

I made a thing! Procedurally generated 3D flight sim on ESP32C3 Supermini

291 Upvotes

Hello, this originally started as a vibe coded stress test for a 0.6 inch colour OLED display SSD1357, but I was impressed with the initial code so kept pushing it. The result is an endless, procedurally generated 3D flight sim, with 3 different planes, multiple biomes, day night cycle, shadows and more, all running on an ESP32C3. I'm more of a hardware developer than software, so I'm sure this could be massively further improved. Apologies for the terrible cinematography, I was really struggling with the tiny high contrast screen.

The code and more information is available here

https://github.com/lewtheegg/voxel-flight

I wouldn't normally post something like this but I'd been struggling with finding any information or demonstrations for these miniature OLED screens, and the 3D flight sim is just something I wouldn't have expected to work on an ESP32C3. Any feedback would be appreciated, I hope someone finds this interesting, thanks :)


r/esp32 • • 23h ago

I made a thing! I built a Pokémon virtual pet for my daughter that grows when she plays real chess games (ESP32-S3 round AMOLED, open source)

250 Upvotes

My daughter plays chess, so I turned a Waveshare ESP32-S3-Touch-AMOLED-1.75 into a small virtual pet that lives on her real games. Every night the board reads her public games from the chess.com Published-Data API: a finished rapid or daily game is 1 point, a win is 10. Points buy berries, eggs and little adventures for her Pokémon.

What it does:

- No battles: Pokémon compete in 11 sports events and in gyms played as 3-on-3 team sports, scored from their species stats, type and training
- All 1025 species in 9 regions that unlock in order; sprites from PMD SpriteCollab on the SD card
- A second board for her best friend: two boards pair over ESP-NOW (4-digit code check), play side by side, and send postcards and gifts through an encrypted mailbox when apart
- A parent's iPhone shortcut can give points for chores or reading (small HTTP endpoint on the board)
- English and Simplified Chinese, web installer (Chrome/Edge), website with a player's guide

Why this chip: the ESP32-S3 on this board has 8 MB of octal PSRAM and 16 MB of flash. The whole 466x466 screen is drawn into a ~430 KB RGB565 canvas in PSRAM and flushed to the CO5300 panel over QSPI, and Wi-Fi plus ESP-NOW are built in. The Waveshare board also puts the round AMOLED, touch, AXP2101 battery charging, RTC, IMU and SD slot on one PCB, so another parent can build one without soldering.

Libraries: I kept the original project's stack (Arduino core 3.3, Arduino_GFX, and Lewis He's SensorLib and XPowersLib, which cover every chip on the board) instead of moving to ESP-IDF or LVGL, so fixes can still go back upstream. On top of that: ArduinoJson for the chess.com and weather responses, arduinoWebSockets for the XiaoZhi MCP link, U8g2 font data for Chinese, and ESP Web Tools for the browser installer.

Hurdles:

- TLS out of memory: with chess sync, weather, mail and the XiaoZhi WebSocket all running, mbedTLS handshakes failed for lack of internal RAM. Pointing mbedTLS's calloc/free at PSRAM (mbedtls_platform_set_calloc_free) fixed it.
- Battery: the screen kept waking itself on battery. An I2C read error (-1) from the AXP2101 IRQ register was being treated as a PWR-key press. Now the screen turns off after 5 idle minutes on battery and only a real PWR press wakes it; light sleep only runs with the radio off, and steps keep counting in the QMI8658 FIFO while the CPU sleeps.
- Save data: when the points book gained a category, the loader detects the old NVS blob by its size and converts it instead of wiping a kid's progress.

It's a fork of socquique/TamaPoke, which did the hard part (display, case, the original game). I tested every build on the two real boards, and 372 host-side unit tests run in CI.

Website and guide: https://mu-muu.github.io/TamaPoke/
Source: https://github.com/Mu-Muu/TamaPoke

English isn't my first language, so I used AI to help with the wording and grammar of this post. Happy to answer questions about the hardware or the code.


r/esp32 • • 7h ago

Advertisement esp32sim 0.4.0: open-source ESP32 emulator now runs the ESP32-P4 and the new ESP32-S31 (ESP-Mosaico), also in the browser

25 Upvotes

esp32sim is an open-source emulator for Espressif chips. It boots unmodified ESP-IDF firmware images through the chips' own mask ROMs, with boards around them: displays, touch, sensors, audio, WiFi. It runs on the command line (macOS and Linux) or in a browser tab.

What's new in 0.4.0:

  • ESP32-P4: both RISC-V cores, SD card, USB-OTG, and WiFi through an emulated ESP32-C6 co-processor running the unmodified ESP-Hosted firmware. Board: Waveshare ESP32-P4 LCD-3.5.
  • ESP32-S31 on Espressif's ESP-Mosaico: the round 480x480 AMOLED, touch, IMU and magnetometers, audio, the vibration motor and WiFi. The board's factory firmware runs to its home screen.
  • esptool flashes the S3, C3, C6 and P4 through the ROM's download mode, as on a real board.
  • WiFi: several virtual access points, pcap capture, and a live network panel on the web page.
  • Speed: RISC-V code runs about 3x faster.
  • More classic ESP32 boards: the Cheap Yellow Display, the Ulanzi TC001 pixel clock and the ESP32-CAM.

Try the Mosaico compass demo (and the others) in your browser, nothing to install: https://mikroverk.github.io/esp32sim/

Release notes and downloads: https://github.com/mikroverk/esp32sim/releases/tag/v0.4.0 Source: https://github.com/mikroverk/esp32sim

The P4 and S31 support is still marked draft. 80 pull requests went into this release, many from contributors. Bug reports and firmware that doesn't run are very welcome as issues.


r/esp32 • • 7h ago

I made a thing! I moved the ESP32-S3 module onto my climate controller PCB. Here's what works so far.

Thumbnail
gallery
17 Upvotes

A while back I posted my ESP32 climate controller here. Several of you asked why I was still plugging a dev board into a custom PCB. The new GROVA Core boards are on my bench now, with the ESP32-S3 module soldered directly onto the board.

Why the ESP32-S3-WROOM-1-N16R8. The S3 gives me Wi-Fi for the local interface, native USB for flashing, and enough usable GPIO for the sensor bus, fan channels, and control outputs. The N16R8 module gives me 16 MB of flash and 8 MB of PSRAM for room to grow.

Working on the bench. Automated Wi-Fi setup works, and an SHT4x on channel 3 of the TCA9548A reports temperature and humidity in the local web UI. (tested all channels with that sensor) I picked the mux so sensors with the same I²C address can sit on different channels. So far I've tested one SHT4x on this revision.

Library choices. The local pages and HTTP API fit Arduino-ESP32’s built-in WebServer. An async server would add another dependency for those routes. ArduinoJson gives the API and configuration backups one way to parse and write JSON. I use Arduino Wire with a small TCA9548A wrapper so each transaction stays on its selected channel. The Founder firmware reads the SHT4x directly and checks the CRC on the returned data.

What the board is designed for. It has eight I²C ports, two PWM fan headers, two 12 V outputs, one 5 V output, and two 0–10 V control signals for compatible external drivers. In the browser I can assign devices from the board map and choose manual control, a schedule, or a sensor rule. One example I want to test is increasing fan speed when humidity rises above a set point. Physical output and load tests are still pending.

Hardware lessons. Toggling a MOSFET output made the first PCB buzz and reset. I traced that to reversed flyback diodes and reworked them. That experience is one reason I’m checking the new outputs on the bench before connecting loads. I ran into trouble with a 1.5-inch OLED that the manufacturer listed as I²C-compatible. I couldn’t get the display working over I²C on this board.

What I'm working toward. I'm planning plug-in sensor modules with an ID and calibration data stored in an EEPROM on each module. I'd like to add CO₂ and light sensing alongside temperature and humidity. The PCB already has 1-Wire and RS485 connections. I’ll test them in a later bring-up phase. Support for the on-device display and knob is also planned.

If you've built a small greenhouse or terrarium controller, which sensor or control rule ended up being most useful in practice?

Open-source firmware and build notes


r/esp32 • • 42m ago

Software help needed ESP32-WROVER keeps restarting when initializing BLE

• Upvotes

Hey everyone

I'm trying to set up a BLE server on my ESP32-WROVER using the NimBLE-Arduino library.

However whenever I initialize BLE the ESP32 enters what seems to be a continuous restart loop. My COM8 connection keeps disconnecting and reconnecting making it difficult to upload code.

Without BLE initialization everything works perfectly.

My setup:

- ESP32-WROVER

- Arduino IDE (ESP32 Core 3.3.12)

- NimBLE-Arduino

- GC9A01 display and WS2812 LED ring

I simply want to connect my ESP32 to a smartphone via BLE to transfer Wi-Fi credentials.

Has anyone experienced this issue or knows what might cause it?

any help would be appreciated


r/esp32 • • 17h ago

Hardware help needed Help with robotic arm

3 Upvotes

So I am just starting out with ESP32 projects. I have done a bunch of projects already but this one requires me to use some stronger servos. I'm using 2 x MG996R for the base and the shoulder and then 2 x SG90 for the claw and elbow. I keep on spiraling down into a hole and seeing others use lab bench power supplies, some use regular power bricks plugged into a wall or some use batteries. I'm lowkey confused on what to use. If someone can help that would be nice:)


r/esp32 • • 19m ago

Hardware help needed OV7670 and LOLIN S2 Mini problem

• Upvotes

I made a project using ov7670 (no FIFO) and LOLIN S2 Mini, but I can't seem to fix this 0x106 problem... I've tried everything and basically gave up 3 months ago, but now im trying to get this thing to life.....