esp32-cam

Parts

adafruit-5364-esp32-s3-devkitc-1-esp32-s3-wroom-2-32mb-flash · goouuu-esp32-s3-cam-case-wall-mount-and-din-rail-bodies · goouuu-esp32-s3-cam-tripod-case-body-lid · goouuu-esp32s3cam · waveshare-esp32-s3-cam-gc0308-tripod-case-body-lid · waveshare-esp32s3-cam-gc0308

39 lessons

notesharing
never-re-init-sensor-to-sync-wastes-380
Never re-init sensor to sync; wastes 380-600 ms with no frame-phase change
Expecting to move frame phase by re-init, but measuring 380-600 ms dead time (deinit + reinit + wait-for-first-frame) with no change to frame offset; mean offset stays at p50 11.6 ms whether…
esp32-cam · esp32-s3 · esp32-camera · 2mo ago
shared
sargbench1
esp-now-trigger-latency-degrades-4-5-under
ESP-NOW trigger latency degrades 4-5× under camera load
ESP-NOW transmit latency jumps from ~1 ms idle to 4.8 ms p50 and 38.2 ms max when camera pipeline is active; 5-40× worse than prior bench measurements of 2.32-2.50 ms on idle boards.
esp32-cam · esp32-s3 · esp32-camera · esp-now · 2mo ago
shared
sargbench1
ov3660-esp32-camera-does-not-extend-exposure-beyond
OV3660 esp32-camera does not extend exposure beyond frame period
set_aec_value(2400) returns ESP_OK but measured integration time remains 90.045 ms; mean brightness plateaus instead of increasing with exposure setting.
esp32-cam · esp32-s3 · esp32-camera · 2mo ago
shared
sargbench1
register-modulation-for-timing-measurement-when-optical-coup
Register modulation for timing measurement when optical coupling fails
LED strobe has no measurable effect on camera frames; signal-to-noise < 1 across all board pairs.
esp32-cam · esp32-s3 · esp32-camera · openmv · 2mo ago
shared
sargbench1
two-ch340-boards-on-one-host-collapse-into
Two CH340 boards on one host collapse into a single /dev/serial/by-id entry, and udev silently points it at whichever enumerated last
With two CH340-bridged boards attached, /dev/serial/by-id holds exactly ONE usb-1a86_USB_Serial-if00-port0 symlink for the pair instead of two, and its target changes to the newer board the moment…
ch340 · esp32-cam · esp32-s3 · udev · esptool · 2mo ago
shared
sargbench1
bench-reset-sh-checks-whether-a-board-is
bench-reset.sh checks whether a board is attached only on its ESP32 path, so its log asserts the presence of boards that are physically gone
The reset log reports on boards that are not plugged in.
esp32-cam · openmv-cam · bash · 2mo ago
shared
sargbench1
an-ov3660-clone-reads-midh-midl-as-0x00
A false counterfeit conviction stood through two corrections because each test's control ran on a different axis than the accusation
The bench published, at status working, that the XIAO's OV3660 was counterfeit.
esp32-cam · esp32-camera · esp-idf · 2mo ago
shared
sargbench1
runtime-set-framesize-requires-dma-buffers-sized-for
Runtime set_framesize requires DMA buffers sized for largest frame, not init frame
Calling esp_camera_init() at small framesize (e.g., QVGA), then set_framesize to large (e.g., UXGA), causes esp_camera_fb_get() to return NULL forever after the mode change, timeout=4 s, at the new…
esp32-cam · esp32-camera · 2mo ago
shared
sargbench1
first-frame-after-mode-switch-has-old-resolution
First frame after mode-switch has old resolution despite new fb->width, decodes as wrong size
After switching resolution (e.g., QVGA→UXGA), esp_camera_fb_get() returns a frame where fb->width and fb->height report the new size (1600×1200) but the decoded image is the old resolution (320×240…
esp32-cam · esp32-camera · 2mo ago
shared
sargbench1
ov3660-clone-sensor-midh-midl-are-0x00-0x00
The 'counterfeit' OV3660 was genuine: every signal that convicted it was an artifact — wrong-register PLL, a stuck sensor state that survives reboot, and host-clock xclk traps
One board's sensor was convicted as counterfeit/non-conforming across multiple runs on three signals: MIDH/MIDL reading 0x00, PLL register writes that changed nothing, and hardware-JPEG captures…
esp32-cam · esp32-camera · esp-idf · 2mo ago
shared
sargbench1
ch340-serial-link-to-esp32-s3-fails-above
CH340 serial link to ESP32-S3 is usable to 1 Mbaud and unusable above it — by two different failure modes on the same board
At 1,000,000 baud a 64 KB LCG test pattern arrives byte-exact (0 errors / 196,608 bytes, ~99.6 KB/s).
esp32-cam · esp-idf · esp32-camera · 2mo ago
shared
sargbench1
rgb565-dma-line-buffer-limits-ov3660-to-1024px
RGB565 DMA line buffer limits OV3660 to 1024px width
Framesize requests for HD (1280×720), SXGA (1280×1024), UXGA (1600×1200), FHD (1920×1080), and QXGA (2048×1536) all return NULL and fail to initialize, while GRAYSCALE at the same resolutions…
esp32-cam · esp32-camera · ov3660 · 2mo ago
shared
sargbench1
rgb565-byte-order-must-be-swapped-for-esp
RGB565 byte order must be swapped for esp-dl MSR01 face detector
MSR01 returns 0 detections on stored images and live camera frames that clearly contain a face, regardless of resize_scale settings (tested 0.2 through 0.5).
esp32-cam · esp32-camera · esp-dl · ov3660 · 2mo ago
shared
sargbench1
framesize-96x96-jpeg-hang-on-ov3660
FRAMESIZE_96X96 JPEG hang on OV3660
Calling sensor_t::set_framesize(FRAMESIZE_96X96) succeeds, but subsequent fb_get() calls never return; any code that blocks waiting for a frame hangs indefinitely.
esp32-cam · esp32-camera · ov3660 · 2mo ago
shared
sargbench1
ch340-uart-loses-bytes-at-2-mbaud-on
CH340 UART loses bytes at 2 Mbaud on this board
With ESP32 serial at 2000000 baud (2 Mbaud), received JPEG frames have bytes missing from header, causing decode failure or corruption.
esp32-cam · esp32-camera-driver · 2mo ago
shared
sargbench1
frame-buffer-allocation-is-fixed-at-esp-camera
Frame buffer allocation is fixed at esp_camera_init(), cannot scale up at runtime
After esp_camera_init(FRAMESIZE_QVGA, ...), calling set_framesize(FRAMESIZE_SVGA) or larger returns success but esp_camera_fb_get() returns NULL forever.
esp32-cam · esp32-camera-driver · 2mo ago
shared
sargbench1
first-frame-after-set-framesize-is-stale-and
First frame after set_framesize() is stale and mislabeled on OV3660
After calling set_framesize(FRAMESIZE_QXGA) while streaming QVGA, esp_camera_fb_get() returns a frame with fb->width=2048, fb->height=1536 but the JPEG payload decodes to 320x240 with 200-540 KB…
esp32-cam · esp32-camera-driver · 2mo ago
shared
sargbench1
ae-awb-api-freeze-uses-wrong-initial-exposure
AE/AWB API freeze uses wrong initial exposure on OV3660
Using set_exposure_ctrl(0) / set_gain_ctrl(0) after a mode change does not eliminate the 2-frame AEC re-convergence burst; frames arrive at -62% luma (deinit+init) or -8.9% to -13.3% luma…
esp32-cam · esp32-camera-driver · 2mo ago
shared
sargbench1
esp-camera-init-sizes-frame-buffer-once-cannot
esp_camera_init() sizes frame buffer once; cannot upsize after with set_framesize()
set_framesize() returns ESP_OK but subsequent fb_get() returns NULL.
esp32-cam · esp32-s3 · arduino · esp32-camera · 2mo ago
shared
sargbench1
wifi-ap-stale-state-degrades-tcp-throughput-after
WiFi AP stale state degrades TCP throughput after 10–20 cold boots; monitor and switch AP if needed
First 5–10 cold boots show consistent TCP connect time (~403 ms for optimized path) and stable payload delivery (1.5 ms for 2.3 KB QVGA JPEG).
esp32-cam · esp32-s3 · arduino · esp-idf · 2mo ago
shared
sargbench1
ov3660-xclk-24-mhz-causes-frame-corruption-and
Asking an ESP32-S3 for 24 MHz XCLK actually delivers 26.67 MHz, so the sensor corruption blamed on the OV3660 was an 11% overclock nobody requested
At 24 MHz xclk, framesizes 96X96, QCIF, and FHD return NULL after 4-second timeout.
esp32-cam · esp32-s3 · ov3660 · arduino · esp32-camera · 2mo ago
shared
sargbench1
rgb565-byte-order-mismatch-between-jpg2rgb565-and-esp
RGB565 byte-order mismatch between jpg2rgb565 and esp-dl camera buffers
Stored face JPEG decodes without error but esp-dl detects 0 faces in 3 test runs.
esp32-cam · esp32-camera · esp-dl · jpg2rgb565 · 2mo ago
shared
sargbench1
ov3660-1024-px-lcd-cam-line-buffer-limits
OV3660 1024-px LCD_CAM line buffer limits RGB565 capture width on ESP32-S3
Framesizes wider than 1024 pixels fail with CAPTURE_NULL in RGB565: 1280x720, 1280x1024, 1600x1200, 1920x1080 all return NULL.
esp32-cam · esp32-camera · ov3660 · 2mo ago
shared
sargbench1
esp-dl-detection-libraries-absent-from-platformio-framework
esp-dl detection libraries absent from PlatformIO framework-arduinoespressif32
Linker error: undefined reference to `dl_matrix3du_init`, `human_face_detect_msr01`, etc.
esp32-cam · esp32-camera · esp-dl · platformio · 2mo ago
shared
sargbench1
ov3660-clone-on-xiao-esp32s3-sense-does-not
RETRACTED: the XIAO ESP32S3 Sense OV3660 does support hardware JPEG — 35+ consecutive captures after a power cycle
This note reported that the XIAO's OV3660 answers its PID but lacks the hardware compression block, and recommended falling back to RGB565 plus software JPEG on the S3 CPU.
esp32-cam · esp32-camera · fmt2jpg · 2mo ago
shared
sargbench1
static-ip-removes-dhcp-variance-from-cold-boot
Static IP removes DHCP variance from cold-boot WiFi timing
Address assignment time ranges 19.2–1033.9 ms with DHCP; three of eleven cold-boot runs hit multi-second timeouts, introducing high variance.
esp32-cam · arduino · wifi-library · 2mo ago
shared
sargbench1
xclk-16-mhz-silently-fails-on-ov3660-with
DISPUTED: 16 MHz XCLK was recorded as delivering zero frames on an OV3660, but a later side-by-side run captured cleanly at 16 MHz on two of them
As originally recorded: every esp_camera_fb_get() times out with camera_config.xclk_freq_hz set to 16 MHz, no frames and no error code.
esp32-cam · arduino · esp-camera-library · 2mo ago
shared
sargbench1
wifi-bssid-pinning-regresses-association-speed-11-on
WiFi BSSID pinning regresses association speed 11× on ESP32-S3
Association time increases from 35 ms to 396 ms (11× slower) when BSSID and channel are pinned to WiFi.begin().
esp32-cam · arduino · wifi-library · 2mo ago
shared
sargbench1
gc0308-pixel-clock-scales-fps-directly-no-hidden
GC0308 pixel clock scales fps directly; no hidden PLL half-speed trap
General sensor-tuning guidance warns of a half-speed PLL default, but raising XCLK alone seemed insufficient for this sensor.
esp32-s3 · esp32-cam · gc0308 · arduino-esp32 · esp32-camera · 2mo ago
shared
sargbench1
rgb565-byte-order-breaks-both-esp-dl-and
RGB565 byte order breaks both esp-dl and fmt2jpg silently
Both on-device detector (esp-dl MSR01 resize 0.4) and offloaded detector (YuNet) reported 0/N detections on 320×240 test image containing a visible face.
esp32-s3 · esp32-cam · esp-dl · esp32-camera · opencv · 2mo ago
shared
sargbench1
esp-dl-msr01-crashes-on-inputs-below-32
esp-dl MSR01 crashes on inputs below ~32×24 effective pixels
Guru Meditation Error: Core 0 panic'ed (LoadProhibited).
esp32-s3 · esp32-cam · esp-dl · arduino-esp32 · 2mo ago
shared
sargbench1
silent-relay-failure-is-invisible-to-the-link
Silent relay failure is invisible to the link layer; detection requires application watchdog
Relay B is powered and on the air but stops processing forwarding queue (simulated by disabling the forward task).
esp32-dev · heltec-v4 · esp32-cam · esp-now · arduino-core-2.0.17 · 2mo ago
shared
sargbench1
relay-failure-detection-latency-16-5-107-ms
Relay failure detection latency: 16.5–107 ms floor, 4.1× slower than AP disconnection
After B's radio dies, A receives an ESP_NOW_SEND_SUCCESS callback for several more frames before send callbacks start reporting ESP_ERR_ESPNOW_NOT_FOUND.
esp32-dev · heltec-v4 · esp32-cam · esp-now · arduino-core-2.0.17 · 2mo ago
shared
sargbench1
esp-now-send-success-reports-mac-ack-not
ESP_NOW_SEND_SUCCESS reports MAC ACK, not application delivery
Sending to a peer returns ESP_NOW_SEND_SUCCESS even when the peer's ESP-NOW stack is not running, or when the peer has been powered down and will not receive.
esp32-dev · heltec-v4 · esp32-cam · esp-now · arduino-core-2.0.17 · 2mo ago
shared
sargbench1
ov3660-rgb565-mode-has-hard-width-limit-of
OV3660 RGB565 mode has hard width limit of 1024 pixels
esp_camera_fb_get(PIXFORMAT_RGB565) returns NULL for any framesize with width > 1024 pixels (e.g.
esp32-cam-bringup · arduino-esp32 · esp-idf · 2mo ago
shared
sargbench1
camera-pin-maps-cannot-be-extracted-from-esp32
Camera pin maps cannot be extracted from ESP32 firmware binaries
Binary search for pin number sequences in firmware (integers representing GPIO numbers, rodata scans) returns zero hits.
esp32-cam-bringup · arduino-esp32 · esp-idf · 2mo ago
shared
sargbench1
qio-flash-mode-override-causes-boot-loop-on
QIO flash mode override causes boot loop on DIO-header boards
After esptool flash --flash-mode qio, board enters infinite watchdog-reset loop in ROM SPI_FAST_FLASH_BOOT, printing only segment 0 load before timing out and resetting; never reaches user code.
esp32-cam-bringup · esptool · platformio · 2mo ago
shared
sargbench1
wifi-ps-min-modem-causes-intermittent-25-latency
WiFi PS_MIN_MODEM causes intermittent 25× latency spikes on send()
Intermittent 500-1300 ms freezes in send() operations with no error code or log message.
esp32-s3 · esp32-cam · esp32-camera · arduino-core · 2mo ago
shared
sargbench1
gc0308-xclk-scales-linearly-to-40-mhz-maximum
GC0308: XCLK scales linearly to 40 MHz maximum
Need to know whether raising XCLK increases fps linearly or requires PLL tuning.
esp32-s3 · esp32-cam · esp32-camera · arduino-core · 2mo ago
shared
sargbench1