r/esp32 • • 2h ago

I made a thing! Open-Style City Game on XIAO ESP32-S3

126 Upvotes

I've been working on a new game for the Seeed Studio XIAO ESP32-S3, and I wanted to see how far I could push this little board.

It's an original open-city action game where you can walk around, get into cars, drive through the streets, and escape from the police. The graphics use a 2.5D rendering approach to create a 3D-like world while keeping it lightweight enough to run on the ESP32-S3.

I'm building (with the help of AI, obviously, gentlemen) it in stages. The first part is a procedurally generated city where the player can explore on foot. Then come drivable cars, traffic that follows the roads, pedestrians, and police chases with a wanted-level system.

I also want the city to feel alive, with different districts, a harbour, a skyline, traffic lights, a day and night cycle, and animated pedestrians. The game will also have a radar, map, HUD, car damage, and support for loading city data from a microSD card.

One of the interesting challenges is getting all of this running on such a small board, especially the graphics, memory usage, and performance.

The same XIAO ESP32-S3 handheld also runs my other projects, including esp32s3-arcade-3d and my MGS and SOTN ports.

I'm still working on it, but it's been a fun experiment to explore the gaming capabilities of the ESP32-S3.

https://github.com/davidmonterocrespo24/esp32s3-open-city

Feel free to ask your questions because even though I used AI to do the project, I'm an expert in embedded systems.


r/esp32 • • 2h ago

I made a thing! One ESP32 runs my whole pinball machine: 10 coil drivers, 17 switches, LEDs, display, 2 sound players, OTA

80 Upvotes

I built a fully playable tabletop pinball machine (video + build files linked at the bottom). One ESP32 runs all of it, and this sub's rules asked for the engineering story, so here it is.

**Why this chip: ESP32-WROOM-32 (D0WD-V3) on a 38-pin DevKitC + screw-terminal breakout**

I started with it for a one-flipper bench test, and it turned out to have exactly what the full machine needed:

- LEDC: 10 independent PWM channels, one per MOSFET driver (9 coils + a disc motor). Each coil gets a short full-power kick, and the flippers drop to a 25% hold so 12 V coils survive on 24 V.

- RMT: hardware-timed WS2812B data, so the light chain never glitches when Wi-Fi or interrupts are busy.

- Two spare hardware UARTs: Serial1 and Serial2 each drive a DFPlayer, so music and sound effects play at the same time.

- Wi-Fi: OTA updates and a telnet console. Once the playfield is in, there's no getting a USB cable to it, so every test after that ran over Wi-Fi.

- Pins: with one MCP23017 for 16 playfield switches, the rest fit on native GPIO. The spinner and the 3rd trough sensor go to input-only pins with interrupts.

**Libraries: only the Arduino-ESP32 core (WiFi, ArduinoOTA, Preferences, Wire). No third-party libraries.**

- MCP23017: plain Wire reads. The firmware scans 0x20–0x27 at boot because my Waveshare board shipped at 0x27, not the 0x20 every example assumes.

- WS2812B: the core's RMT API directly. 12 LEDs didn't justify FastLED/NeoPixel, and I wanted the timing in hardware.

- MAX7219 display: bit-banged on purpose, slowly. It sits at the end of a 1.2 m run through a 74HCT245, and fast edges on that run gave garbage or a blank display. Slow clocking, sending only digits that changed, and a full re-init once a second fixed it.

- DFPlayer: the raw 10-byte serial protocol, no library. The libraries I looked at wait for replies; I only ever send, and I don't want the game loop blocking on a sound module.

- Preferences: the high score survives power-off.

**The hurdles (most of the time went here)**

- GPIO 12 is a strapping pin. The display's CS line held it high at reset, so the chip picked 1.8 V flash and boot-looped with "csumerr". Fix: burn the flash-voltage eFuse to 3.3 V (WROOM-32 has 3.3 V flash). Now GPIO 12 is ignored at boot.

- GPIO 14 puts out PWM during boot, so it drives the disc motor (a twitch is harmless) instead of a coil. Every coil is on a pin that stays quiet at boot.

- GPIO 36/39 glitch low on every Wi-Fi modem-sleep wake (errata 3.11). That produced phantom spinner turns until I set WiFi.setSleep(false).

- An interrupt storm on the spinner pin starved the loop and tripped the task watchdog. Fix: a storm guard in the ISR, plus requiring a steady "off" before a turn counts.

- DFPlayers ignore commands for 1–3 s after power-up, so the power-on sound never played on a cold start. Now sounds are held until 3 s after boot.

- Power: each coil pulls 3.9 A at 24 V, so the firmware lets at most both flippers plus one other coil kick at once. That's 12.5 A worst case on a 14.6 A supply, so it never browns out.

- Coil noise and the display's own current pulses garbled digits during play. Brightness 8 → 1 and a 0.1 µF cap at the display fixed most of it.

- The IR sensor modules run on their own 3.3 V regulator. At 5 V their outputs would be 5 V into a 3.3 V MCP23017.

Firmware (Arduino, everything in config.h): https://github.com/JackHillmann/tabletop-pinball/tree/main/firmware/pinball


r/esp32 • • 16h ago

I made a thing! I built a brew by weight for the Breville Dual Boiler

35 Upvotes

I made a brew by weight for my breville dual boiler. The esp32 is from a starter kit. 2kg load cell with hx711 module from ali express iirc. It uses a relay to simulate manual button press. The build was mostly AI guided and coded.

The relay wasn't working right on 3v3 (buzzing noise) so I needed to add a transistor to drive it from 5v.

Setting up the load cell was a bit tricky I removed the bdb front wheel and drip tray so I could use a tall cup and screwed the load cell onto the tray grate with some hardware from a different scales kit. The cup sits on an acrylic circle from another scales kit.

I want to clean everything up and separate it into machine side and scale side modules possibly working with off the shelf bluetooth scales. I assume the button tap in are the same across many breville machines so would probably work with them too.


r/esp32 • • 20h ago

I made a thing! I built a custom ESP32 LoRa sensor & telemetry node (Heltec V3.2) running standalone C++ firmware bridged over BLE to an off-grid local LLM

24 Upvotes

Soo... I’ve been tinkering with a personal project called Isaac, trying to build an infrastructure-free voice, AI, and off-grid communication layer that runs completely without cell towers, Wi-Fi, or cloud APIs.

​The heart of the hardware side is this custom ESP32 LoRa node (DaRC NODE 2). Instead of flashing standard firmware, I wrote standalone C++ firmware from scratch to drive the board, read the sensor suite (BME-280, MPU-6050, ADS-1115), render live telemetry to the OLED (86.1°F / 816.5 hPa), speak the Meshtastic LoRa protocol / Protobufs over 915 MHz, and bridge over BLE to a custom Dart app on my phone.

​This is a raw, unedited single-take capture on my S23 Ultra (in 100% Airplane Mode, Bluetooth-only) running local STT, a quantized Gemma 4 model, TTS, and screen recording all at once... so while it crunches, I flip to the rear camera to show the board's live OLED telemetry, 1TB local SD reference and knowledge vaults.

​Still very much a naked-board prototype, and I'm curious what the ESP32 crowd thinks of the architecture or any ways you'd optimize the node side.

​Hardware Stack:

▪ ​Heltec ESP32 V3 (v3.2)

▪ ​BME-280 (temp/humidity/barometric pressure)

▪ ​MPU-6050 (IMU/motion)

▪ ​ADS-1115 (16-bit ADC)

▪ ​Samsung S23 Ultra + 1TB Samsung PRO SD card for persistent memory and offline knowledge vaults

​Software/Firmware:

▪ ​Custom standalone C++ node firmware speaking Meshtastic LoRa protocol / Protobufs over 915 MHz

▪ ​BLE bridge between node and phone

▪ ​Custom companion app built in Dart

▪ ​Quantized Gemma 4 E4B running locally on-device (swappable for any model the phone can handle)


r/esp32 • • 21h ago

I made a thing! Davis Vantage Vue weather station receiver on a Heltec Wireless Stick Lite V3 (ESP32-S3 + SX1262), with a printed case

Post image
23 Upvotes

I bought a Davis Vue Weather Station and wasn't willing to spend an extra €400 for a cloud hub.

So I build an ESP32 board with 868 antenna that connects directly to the weather station. Data goes straight into Home Assistant without the Davis console or a cloud. Code, parts list, offset test and photos: https://github.com/PJDamen/davis-esphome-heltec. Printable case: https://makerworld.com/nl/models/3747745-case-for-heltec-wireless-stick-lite-esp32s3

Why this chip variant
I used a Heltec Wireless Stick Lite V3: an ESP32-S3 with an SX1262 radio on the same board. That gives me 868 MHz FSK, WiFi and native USB for flashing in one small module. It needs no separate radio board and no soldering: only an SMA-to-uFL cable and an antenna. ESPHome supports the SX1262 through its sx126x component, so I did not have to write a radio driver.

Libraries and why

  • ESPHome with its sx126x component. It gives me the native Home Assistant API, OTA updates and template sensors with little code. I did not use MQTT.
  • The Davis packet decoding and the 5-channel frequency hopping are based on an existing CC1101 ESPHome project (sylvilaurelin), which I converted to the SX1262.
  • Dew point, wind chill and heat index are calculated in the YAML, because the ISS does not send them (the Davis console computes them).

Hurdles and edge cases

  1. No packets at the nominal frequency. The CC1101 has automatic frequency correction, the SX1262 does not. My ISS transmits about 20 kHz below nominal, so every bit was mis-sliced and the CRC always failed. I wrote a test YAML that sweeps the frequency offset (0, ±10 … ±40 kHz). Only -20 kHz gave a valid CRC; -10 and -30 kHz gave nothing, because the usable window is about ±9 kHz (the FSK deviation). With all frequencies set 20 kHz lower I got 749/749 packets and 0 CRC errors over 30+ minutes.
  2. Radio settings. The sync word is 0xCB89 at 19200 baud, with preamble_detect set to 0. The board needs rf_switch enabled and a 1.8 V TCXO.
  3. Hopping. The ISS hops over 5 channels about every 2.56 s, so the receiver must stay in step with the hop sequence and handle missed packets.

Hardware limit: the 6357OV has no UV or solar sensor, so those stay empty in my use case.


r/esp32 • • 7h ago

I made a thing! ESP32 Camper Automation Kit: 8-Ch CAN Relay Dev Board w/ INA3221 #canbus #esp32 #campervan #vanbuild

Thumbnail
youtube.com
12 Upvotes

Hey everyone,

A while back I put together a 12V control setup for a friend's camper using off-the-shelf Chinese breakout boards. It worked, but dealing with the rat's nest of jumper wires, fragile connections, and ground noise was a real headache. So I decided to lay out a proper single-PCB version built around CAN bus, paired with a Guition touchscreen display as the main camper control panel.

Here is what's on the board (272 × 98 mm):

  • MCU: ESP32-C3-WROOM-02 (picked mainly for low idle power draw in 12V battery setups)
  • Relays: 8× SPST-NO automotive relays (JYT78F-S-DC12V-A, 20A contact rating, conservatively rated to 5A on the PCB) driven via an MCP23017 and a TBD62083AFG Darlington array, with 4 mm via-stitched power traces
  • Inputs: 8× GND-switched 12V digital inputs with hardware debouncing/filtering, interrupt-driven through the MCP23017
  • CAN bus: Galvanically isolated CAN transceiver so vehicle ground loops and voltage transients don't fry the MCU
  • Monitoring: Onboard 3-channel INA3221 for watching battery banks / rails (up to 3A design limit; stock firmware reports all three voltages out of the box)
  • Protection & extras: Resettable PTC fuse, B340 (40V/3A) Schottky diode for reverse-polarity protection on the 12V input, and an I2C header for an optional external SSD1306 OLED

The CAN link with the Guition display is already up and running. I put the pinout, CAN frame map, and working ESP-IDF source code (with a local WebSocket web UI and automatic Wi-Fi AP fallback) up on GitHub:https://github.com/SebastianS85/esp32c3-relay-board

Next on my list is adding Home Assistant / ESPHome support. I don't really have experience with HA yet, so that's the next thing I'm diving into.

Would appreciate any feedback on the hardware layout, protection stage, or tips on the cleanest way to integrate a board like this with Home Assistant.


r/esp32 • • 2h ago

I made a thing! I recreated the Windows Phone UI on an ESP32-P4 using LVGL

11 Upvotes

A little nostalgia for Windows Phone fans. I built a Lumia-inspired UI using LVGL on the M5Stack Tab5.

Source code: https://github.com/fbiego/lumi5


r/esp32 • • 4h ago

Hardware help needed ESP32 classic + pn532 + max98357A short/brownout on power up

Thumbnail
gallery
7 Upvotes

I am trying to make one of my first real projects with an esp32 (besides just some led lights) and struggling to get everything working together.

Project:
An NFC reader grocery scanner for in our house so our kids can scan tags and help build our grocery shopping list.

Hardware:
ESP32 v3

pn532

max98357A

8ohm speaker

3.3v buck/boost converter (1000mAH max)

tp4056 charger

2000mAh Lipo Battery

P channel mosfet (to cut off the buck/boost converter from power while the device is charging. AKA I don't need the system to run while its charging, only when removed from external power and running off the lipo battery does it run which is why I chose the tp4056 instead of a better power path charger)

Test connections:
The final build would utilize the P channel Mosfet as mentioned above, but for initial testing I wanted to dumb the system down so I ran only these connections:

5v Vin -> tp4056 -> buck/boost converter -> (ESP32 (3v3 pin), PN532, MAX98357A)

[no lipo battery, no mosfet]

GPIO layout:
18 -> PN532 SCK

19 ->PN532 MISO

23 -> PN532 MOSI

27 ->PN532 SS

22 -> MAX98357A Din

25 -> MAX98357A BCLK

26 -> MAX98357A LRC

MAX98357A SD pin -> 3.3V from buck/boost

Gain -> None

Out +/- -> 8ohm speaker

I first tested each I/O component separately using the above connections for only the specific device being tested (pn532 / MAX98357A). Both the pn532 and the MAX98357A + speaker worked fine when only that device was connected to the esp32.

Finally I tested all components connected, and this is where the problems are happening. When all components are connected they system immediately fails (I usually hear buzzing in the speaker like a bzz - bzz - bzzz followed by the led's on the esp32/pn532 going dark, then coming back up but the esp32 is no longer reachable and the pn532 does not work even though leds are on).

I thought at first the issue was that I was peaking over current (1000mAh max from the buck/boost) so I connected the MAX98357A to a separate 5v power supply (connecting the common ground back to the esp32/pn532 ground) but the same situation occurred immediately upon power up.

I then decided to test each pin on the MAX98357A which gave some weird results. With the pn532 unplugged from the system, and the Vcc and Gnd unplugged on the MAX98357A but the BCLK/LRC/Din still plugged in, the MAX98357A + speaker still worked but very faintly. This didn't make sense to me but maybe the GPIO pins were supplying trace amounts of power on instructions so the amp + speaker were still able to run although not optimally.

Next test I connected the pn532 back up, disconnected everything except Vcc/Gnd to the MAX98357A and started up the system. No issues and the pn532 was able to read tags. I then connected the other pins 1 by 1 on the MAX98357A. All pins had no issues until I got to the BCLK pin. Once I connected the BCLK pin I immediately had the brownout/short/whatever failure from above.

Next test I tried to switch the BCLK pin GPIO connection so I moved it to be on GPIO32 thinking maybe it was a faulty pin on the ESP32, but no, same failure still happened. Then I thought the breadboard might be the issue so removed that connection from the breadboard and connected it directly via jumper wires, but still no. Then I thought maybe its an issue with the 8ohm speaker or the MAX98357A pins, so I swapped both of those out with identical counterparts and still had the same failure.

Then I thought maybe the issue is in trying to do SPI to the pn532 and i2s to the MAX98357A at the same time so I tried switching the pn532 to use I2C, but I can't even get the pn532 running with I2C (probably just my own failure but at this point I'm frustrated, and yes I swapped the dip switch on the module).

I'm looking for help in trying to identify what might be the issue. As I said previously, the nfc reading works when that's the only thing connected to the esp32, and the speaker works when that's the only thing connected, but when both are connected nothing works and it immediately fails upon power up.

I'm using ESPHome in Home Assistant to build the "code" for the system and install it, so my YAML configuration is posted below. I've also attached pictures of my components although they are pretty standard

# Board: ESPHome Starter Kit By Apollo (Apollo Automation)
# Definition: definitions/boards/apollo-esk-1/manifest.yaml
substitutions:
  friendly_name: NFC Grocery Scanner
          
esphome:
  name: nfc-grocery-scanner
  friendly_name: ${friendly_name}

esp32:
  variant: ESP32
  flash_size: 4MB
  framework:
    type: esp-idf

logger:

ota:
  - platform: esphome


captive_portal:

switch:
  - platform: gpio
    name: Accessory Power
    id: accessory_power
    internal: true
    pin: 4
    restore_mode: ALWAYS_ON
    setup_priority: 2000

web_server:
  version: "3"
  
# i2c:
#   sda: GPIO21
#   scl: GPIO19
#   scan: true
  
# pn532_i2c:
#   id: pn532_grocery_reader
#   update_interval: 250ms
#   on_tag:
#     then:
#       - logger.log:
#           format: "NFC tag scanned: %s"
#           args:
#             - x.c_str()
#       - media_player.speaker.play_on_device_media_file:
#           id: nfc_media_player
#           media_file: scan_sound
#           announcement: true
#       - homeassistant.tag_scanned: !lambda "return x;"

spi:
  clk_pin: GPIO18
  miso_pin: GPIO19
  mosi_pin: GPIO23
  
pn532_spi:
  id: pn532_grocery_reader
  cs_pin: GPIO27
  update_interval: 250ms

  # Send every scanned UID to Home Assistant
  on_tag:
    then:
      - logger.log:
          format: 'NFC tag scanned: %s'
          args:
            - x.c_str()
      - media_player.speaker.play_on_device_media_file:
          id: nfc_media_player
          media_file: scan_sound
          announcement: true
      - homeassistant.tag_scanned: !lambda return x;

# --------------------------------------------------
# MAX98357A AUDIO AMPLIFIER - I2S
# --------------------------------------------------

i2s_audio:
  i2s_lrclk_pin: GPIO25
  i2s_bclk_pin: GPIO26

speaker:
  # Physical I2S speaker connected to MAX98357A
  - platform: i2s_audio
    id: hardware_speaker
    dac_type: external
    i2s_dout_pin: GPIO22
    channel: mono
    sample_rate: 48000
    bits_per_sample: 16bit

# ==================================================
# HOME ASSISTANT MEDIA PLAYER
# ==================================================

media_player:
  - platform: speaker
    name: "${friendly_name} Media Player"
    id: nfc_media_player
    buffer_size: 4000
    announcement_pipeline:
      speaker: hardware_speaker
      num_channels: 1
    files: 
      - id: scan_sound
        file: "sounds/edr-beep-sound-8333.wav"

button:
  - platform: template
    name: "Test NFC Scan Sound"
    on_press:
      - media_player.speaker.play_on_device_media_file:
          id: nfc_media_player
          media_file: scan_sound
          announcement: true

r/esp32 • • 9h ago

I made a thing! My ESP32 robot's firmware also compiles into a simulator, so 49 maze tests run in CI before anything touches hardware

Post image
7 Upvotes

Testing a maze robot by walking to the club every time got old, so the same firmware now also builds as a desktop simulator. CI runs 49 maze scenarios on every push before anything touches hardware. Built for a day with orphaned kids: they tape a maze, Nuri explores it, races the shortest route, and writes their name on its OLED face.

Why the classic ESP32 (Dev Module)

  • Dual core: Wi-Fi and the https server live on core 0, the robot loop on core 1, so web traffic never stalls line following
  • Built-in Wi-Fi to run its own access point, so any phone drives it with no app and no internet
  • Enough LEDC channels for 6 motor PWM pins plus a servo
  • Cheap and in every club drawer, which matters when other students want to build one

Libraries: none outside the ESP32 Arduino core WiFi, WebServer, esp_https_server, Wire and Preferences. I skipped Adafruit's SSD1306 library and wrote a small driver on top of Wire, so I control exactly when frames go out over I2C (more on that below). Zero external libraries also means anyone can flash it from a fresh Arduino IDE install.

Hurdles

  1. The head servo kept resetting the ESP32 (brownouts). The firmware now logs reset causes and the servo is disabled until it gets its own supply.
  2. The servo's 50 Hz PWM must never share an LEDC timer with the motors, or one retunes the other. The simulator checks this.
  3. Sending the face to the OLED was delaying line reads. The I2C buffer holds 128 bytes, so each strip goes in two halves, and the longest gap between two line reads is now about 7 ms against a 4 ms control step.
  4. Tilt driving: phones only share motion sensors with secure pages, so the robot also serves a self-signed https copy of the page from core 0. Those connections share heap with Wi-Fi, so free and minimum heap are shown in the app.
  5. A small DNS server answers only the names phones check for sign-in pages, so the page pops up by itself when you join the Wi-Fi.

Try the sim in 30 seconds: https://codespaces.new/akeanti/nuri?quickstart=1 Repo: https://github.com/akeanti/nuri

How do you test your ESP32 firmware without the hardware?


r/esp32 • • 2h ago

I made a thing! A customizable animated Zigbee switch running on ESP32-C5

Thumbnail
gallery
6 Upvotes

I've always felt that smart home devices aren't personalized enough, so it hit me: why not use the Seeed round display and Xiao ESP32C5 I already had on hand to build a Zigbee switch that connects to my Home Assistant setup?

The best part is that I quickly put together a simple companion app. You can easily upload your favorite GIF, PNG, JPG, or WEBP images and flash them with a single click—no need to modify the code each time.

The code is open-sourced on GitHub: https://github.com/Atul-8/round-display-switch-ha


r/esp32 • • 14h ago

Solved Getting autofocus to work on the esp32s3 sense with an ali express ov5640

Post image
4 Upvotes

We have been experimenting with the OV5640 autofocus module. I've literally bought like 7 different versions of this camera off ali express just thinking maybe the next one will work, turns out no (but I did get it working, keep reading). 

I finally got one set of cameras that was at least detected, and so I thought it would just work. I was super confused how to tell if it's doing focus? Is it just doing it faster than I can see it? 

Abdullah found out that it was more than likely just a small pin issue, the last two pins on the esp32s3 sense are GND,VDD but the last two pins on the camera modules I bought were VCC,GND, the exact opposite. Bummer. See this pic, the left is esp32s3 sense, the right is the camera I bought 


So I pulled up the pins from the board and used some wire wrapping wire to connect the pins on the connector as they would be on the OV5640 from ali express. Turns out the "pins" are more like solid rails that go all the way inside so they are very stiff and not super easy. 

The solder job was not that great, but the DMM said it was working so we tested out, and yes it was indeed clearly doing focus. You can tell because it goes way out of focus then back in. Next image is a gif showing but dont know if it will come across right in this article.


So, yes as long as you swap those pins it works. But moving it around my crappy solder job broke and so I had to come up with a better way. First I found you really don't need the ground pin, there must be a common ground somewhere, so you can just rip that pin out of the header. Then you simply bend over the position 23 pin so it's close to position 24 pad and solder it. This makes a super solid connection and it does not get in the way anywhere for the rest of the board. I had already soldered this board too much but for the next one it should be very clean. See the pics below hopefully you can tell what I did.


I should point out Seeed sells a camera module that is auto focus, and I've heard rumor the esp32s3 sense may come default with it, BUT it's not in my units now AND it has a super long cable on it which our 3d design does not fit. So for us at least it's much more convenient to use the small cable model version which can be found on ali express.


r/esp32 • • 18h ago

Hardware help needed Battory for the 1.75c

0 Upvotes

I just realized that the Waveshare ESP32 1.75C WITHOUT a battery so I'm struggling to find which one fits inside the casing and found these 2 options, would love to know your experience and which one you are using, as I need to buy it. https://www.amazon.com/EEMB-402535-Rechargeable-Connector-Certified/dp/B08HD1N273 https://www.amazon.com/AKZYTUE-Battery-Rechargeable-Protection-Electronics/dp/B0FRFY1F76?th=1


r/esp32 • • 19h ago

Hardware help needed ESP32-C3 SuperMini with CDCOnBoot=cdc process slows if terminal not connected?

0 Upvotes

I've just jumped into the ESP32 world and I'm making friends with the quirks of the process. I use arduino_cli and build/upload from the commandline. I use minicom as the serial program to monitor serial output as I've done with all TI, Pi, and Arduino boards before. I've got an open question on the arduino_cli forum about where to properly set the CDCOnBoot=cdc option (boards.txt, etc.) rather than passing it as a build option during compile. The two questions I have are about the impact setting CDCOnBoot=cdc has on the behavior of the board. Specifically:

  1. can the serial monitor remain connected while I upload? (with all other boards using /dev/ttyACM0 there was no issue uploading (flashing) and resetting the board with the terminal program connected, but with the C3 SuperMini, I get an "Could not exclusively lock port /dev/ttyACM0: [Errno 11] Resource temporarily unavailable)"
  2. when built with CDCOnBoot=cdc if the serial monitor is NOT connected, the process on the ESP32c3 slows to a crawl. Once the terminal connects, it pops back to normal. Is this a known/normal issue with the way CDCOnBoot=cdc influences the board behavior?

I know most chips have no issue with port operations regardless whether there is a serial monitor attached or not, so I'm curious about what I'm seeing with the C3 board. If I know it's just a limitation of the board, I'll just work around it the way I currently am and quit wasting time trying solve it. On the other hand, if I just need to learn a bit more to solve it, then I'm all in.

The specific error for (1) above is:

$ acli upload --fqbn esp32:esp32:esp32c3 -p /dev/ttyACM0 sketches/ec3-blink/
esptool v5.3.1
Serial port /dev/ttyACM0:

A fatal error occurred: Could not open /dev/ttyACM0, the port is busy or doesn't exist.
([Errno 11] Could not exclusively lock port /dev/ttyACM0: [Errno 11] Resource temporarily unavailable)

Failed uploading: uploading error: exit status 2

The odd part about the error is "Could not exclusively lock port /dev/ttyACM0". Is that an arduino_cli issue or is it something the board is indicating that I can work around? I can put a pico or nano on the same port (nano is actually using ttyUSB0), and still flash and reset without any problem while minicom remains connected. So whatever is driving the "exclusive lock" issue seems like that is the problem -- but what is it esptool? Something else?

I've got no clue on (2) above, so I'm open to any insight you have.