; poorBird - ESP32-S3 camera node ; Board: Seeed Studio XIAO ESP32S3 Sense (ESP32-S3R8, 8 MB flash, 8 MB PSRAM, OV2640) ; ; PLATFORM NOTE ; The official `espressif32` platform in the PlatformIO registry lags well behind ; Arduino-ESP32 3.x / ESP-IDF 5.x and has poor ESP32-S3 support. The community fork ; `pioarduino` is what current S3 work uses. ; ; The pin below (53.03.13 = Arduino core 3.1.x / IDF 5.3) is chosen to match ; PlatformIO Core 6.1.x. The `stable` release alias now requires Core >= 6.2.0; ; if you upgrade Core, you can switch to: ; https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip [platformio] default_envs = xiao_s3_sense ; --------------------------------------------------------------------------- ; Everything you are likely to edit lives in [common]. Secrets belong in ; secrets.ini (gitignored) - see secrets.ini.example. ; --------------------------------------------------------------------------- [common] fw_version = 0.1.0 build_flags = -DFW_VERSION=\"${common.fw_version}\" -DHW_REVISION=\"xiao-esp32s3-sense-ld2410\" -DCORE_DEBUG_LEVEL=3 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 -DBOARD_HAS_PSRAM ; --- camera defaults (runtime-overridable from the endpoint) ---------- ; Use the enum SYMBOLS, never the numbers: esp32-camera has inserted ; entries into framesize_t between releases, so a literal index silently ; changes resolution after a driver update. -DCFG_FRAME_SIZE=FRAMESIZE_SVGA ; 800x600 stills -DCFG_STREAM_FRAME_SIZE=FRAMESIZE_VGA ; 640x480 while streaming -DCFG_JPEG_QUALITY=12 ; 4..40, lower = better = bigger ; --- pre-trigger ring buffer (the reason mains power is worth it) ----- -DCFG_RING_FRAMES=24 ; PSRAM history depth -DCFG_PRE_ROLL=4 ; frames sent from *before* the trigger -DCFG_POST_ROLL=6 ; frames sent after the trigger ; --- ops -------------------------------------------------------------- -DCFG_HEARTBEAT_S=300 -DCFG_COOLDOWN_S=5 ; --------------------------------------------------------------------------- [env:xiao_s3_sense] platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.13/platform-espressif32.zip board = seeed_xiao_esp32s3 framework = arduino board_build.partitions = partitions/poorbird_8mb_ota.csv board_build.flash_mode = qio board_upload.flash_size = 8MB ; PSRAM is mandatory: the frame ring and the camera framebuffers both live there. board_build.arduino.memory_type = qio_opi monitor_speed = 115200 monitor_filters = esp32_exception_decoder, time lib_deps = bblanchon/ArduinoJson @ ^7.2.0 build_flags = ${common.build_flags} extra_scripts = pre:scripts/load_secrets.py ; --------------------------------------------------------------------------- ; Same firmware, verbose logging - for bring-up on the bench. [env:xiao_s3_sense_debug] extends = env:xiao_s3_sense build_type = debug build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=5 -DPB_VERBOSE_RADAR=1