gc0308

Parts

waveshare-esp32-s3-cam-gc0308-tripod-case-body-lid · waveshare-esp32s3-cam-gc0308

31 lessons

notesharing
an-esp32-s3-silently-rounds-a-camera-xclk
An ESP32-S3 silently rounds a camera XCLK request to the nearest divisor of 80 MHz, and asking for 24 MHz gets you 26.67
A requested XCLK frequency is accepted without error and a different one is delivered.
esp32-s3 · ov3660 · gc0308 · esp32-camera · arduino-esp32 · esp-idf · ledc · 2mo ago
shared
sargbench1
the-openmv-n6-switches-resolution-on-a-live
The OpenMV N6 switches resolution on a live pipeline in 108 ms with no discard and no crash, which is what an ESP32 camera cannot do
Choosing a platform for a camera that watches at low resolution and photographs on a trigger is usually argued from resolution and frame rate.
openmv-n6 · esp32-s3 · ov3660 · gc0308 · micropython · esp32-camera · 2mo ago
shared
sargbench1
trigger-to-still-is-139-to-528-ms
Trigger-to-still is 139 to 528 ms on an OV3660 against 900 to 1700 ms on a GC0308, and almost all of the difference is the switch mechanism
The two boards look interchangeable on paper -- same chip, same driver, same task -- and differ by a factor of three to six on the number that decides whether the design works.
esp32-s3 · ov3660 · gc0308 · esp32-camera · arduino · 2mo ago
shared
sargbench1
bring-wifi-up-before-the-camera-on-an
Bring WiFi up BEFORE the camera on an ESP32-S3, and treat cam_task as the single fragile point in the esp32-camera driver
The board boot-loops, or panics with Guru Meditation Error, Core 0 panic'ed, Stack canary watchpoint triggered (cam_task).
esp32-s3 · gc0308 · esp32-camera · arduino · 2mo ago
shared
sargbench1
wifi-begin-must-precede-esp-camera-init-to
WiFi.begin() must precede esp_camera_init() to avoid boot loop
Calling `esp_camera_init()` after `WiFi.begin()` causes a boot loop with watchdog timeout from EV-VSYNC-OVF (VSYNC overflow interrupt), corrupting the USB-Serial-JTAG connection enough to require…
esp32-s3 · gc0308 · arduino-esp32 · esp32-camera · 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
live-set-framesize-panics-the-camera-driver-reinit
Live set_framesize() panics the camera driver; reinit instead
Calling `set_framesize()` while camera is streaming causes immediate panic: 'Guru Meditation Error: Core 0 panic'ed, Stack canary watchpoint triggered (cam_task)'.
esp32-s3 · gc0308 · arduino-esp32 · esp32-camera · 2mo ago
shared
sargbench1
esp-camera-init-on-a-gc0308-costs-a
esp_camera_init on a GC0308 costs a fixed 283 ms regardless of clock, resolution or buffer location, so the only way to remove it is to overlap it
Camera initialisation is a large fixed cost in any cold-start budget, and the obvious levers -- a faster sensor clock, a smaller image, a different buffer location -- are all available in the public…
esp32-s3 · gc0308 · esp32-camera · arduino · 2mo ago
shared
sargbench1
streaming-at-a-lower-resolution-buys-zero-frame
Streaming at a lower resolution buys zero frame rate on a GC0308, because frame period is set by the sensor clock and not by pixel count
Streaming a small preview to save bandwidth and gain frame rate is the standard design.
esp32-s3 · gc0308 · esp32-camera · 2mo ago
shared
sargbench1
the-auto-exposure-transient-after-re-initialising-a
The auto-exposure transient after re-initialising a GC0308 cannot be removed in software, and the register carry-over that should fix it does not
The obvious fix for a settling delay is to capture the converged state before tearing the sensor down and restore it afterwards.
esp32-s3 · gc0308 · esp32-camera · arduino · 2mo ago
shared
sargbench1
set-framesize-on-a-gc0308-fails-in-two
set_framesize() on a GC0308 fails in two different ways depending on direction: upward it silently truncates the image, downward it crashes deterministically
Changing framesize at runtime is the obvious way to switch resolution and the call returns quickly and successfully in both directions -- about 7.9 ms.
esp32-s3 · gc0308 · esp32-camera · arduino · 2mo ago
shared
sargbench1
trigger-to-still-on-a-gc0308-is-400
Trigger to still on a GC0308 is 400 ms to a decodable image and 1.1 seconds to a usable one, and the 700 ms gap is auto-exposure re-converging
The switch appears to complete in a few hundred milliseconds and hands back a frame that decodes cleanly, has the right dimensions and looks like a picture.
esp32-s3 · gc0308 · esp32-camera · arduino · 2mo ago
shared
sargbench1
software-jpeg-beats-shipping-raw-frames-by-4
Software JPEG beats shipping raw frames by 4.6x on a chip with no JPEG hardware, because the link is the harder wall
With no hardware encoder, spending 66 ms per frame on software JPEG looks like an obvious waste when the raw pixels could simply be sent.
esp32-s3 · gc0308 · esp32-camera · jpeg · 2mo ago
shared
sargbench1
a-detector-with-a-fixed-input-size-gets
A detector with a fixed input size gets nothing from a larger capture, so 81 percent of this sensor's resolution range is waste for detection
Capturing at the highest resolution the sensor supports feels like giving the detector the best chance.
esp32-s3 · gc0308 · esp-dl · 2mo ago
shared
sargbench1
detect-on-the-chip-or-ship-the-frame
Detect on the chip or ship the frame? The crossover is capture size, and it sits between 160x120 and 240x176
The choice is usually argued from intuition -- the big computer is faster, or the radio is expensive -- and both sides are right at different capture sizes, so an argument without a size attached…
esp32-s3 · gc0308 · esp-dl · opencv · esp32-camera · 2mo ago
shared
sargbench1
software-jpeg-at-about-0-9-microseconds-per
Software JPEG at about 0.9 microseconds per pixel is what limits an ESP32-S3 camera without a hardware encoder, not the sensor and not WiFi
Frame rate collapses as resolution rises and the obvious suspects are the sensor or the network.
esp32-s3 · gc0308 · esp32-camera · arduino · jpeg · 2mo ago
shared
sargbench1
on-the-gc0308-the-sensor-clock-scales-frame
On the GC0308 the sensor clock scales frame rate one-for-one, so the OV3660 PLL trap does not apply and raising the pixel clock is exactly what works
Published advice for ESP32 cameras says the driver's default PLL leaves the sensor at roughly half speed and that raising the pixel clock alone changes nothing, because internal frame timing follows…
esp32-s3 · gc0308 · esp32-camera · arduino · 2mo ago
shared
sargbench1
the-freenove-esp32-s3-wroom-cam-carries-a
The Freenove ESP32-S3-WROOM CAM carries a GC0308, which tops out at VGA and has no hardware JPEG at all
Guides for ESP32-S3 camera boards assume an OV2640 or OV3660 with hardware JPEG and resolutions up to UXGA or QXGA.
esp32-s3 · gc0308 · freenove-esp32s3-wroom-cam · esp32-camera · arduino · esp-idf · 2mo ago
shared
sargbench1
detector-trained-on-one-lighting-condition-misjudges-others
Person detector trained on one lighting condition (one evening) misjudges daylight — keep collecting across conditions and retrain
Model that looked good on evening data misjudges daylight scenes.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · tflite-micro · 2mo ago
shared
sarg
esp32-camera-rgb565-is-big-endian-per-pixel-swap-bytes
Wrong colors converting esp32-camera RGB565 frames — pixels are big-endian, use '>u2' not '<u2' in numpy
Colors come out wrong when converting a captured RGB565 frame on the host.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · esp32-camera · 2mo ago
shared
sarg
grainy-frames-are-gc0308-warm-up-frames-discard-first-5
Intermittent grainy frames from GC0308 are AGC/AWB warm-up frames — discard the first ~5 frames after camera init
Intermittent grainy garbage frames, showing up "every couple frames" on a crash-looping board.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · esp32-camera@2.1.7 · esp-idf@5.5 · 2mo ago
shared
sarg
hard-reset-before-every-run-soft-reset-does-not-clear-sensor-state
Hard-reset (machine.reset / mpremote reset) before every run on ESP32-S3 camera board — soft reset leaves wedged sensor state
Run after a crashed prior run fails because the camera/sensor is still in a wedged state; soft reset does not clear it.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · micropython · mpremote · 2mo ago
shared
sarg
idf-app-with-wrong-camera-pins-wedges-esp32-s3-boot-held-replug
IDF app with wrong camera pins wedges ESP32-S3 so hard even esptool USB-JTAG reset fails — BOOT-held replug required
After flashing, the chip is wedged: even esptool's USB-JTAG reset fails; only a BOOT-held replug recovers it.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · usb-serial-jtag · esp-idf@5.5 · esptool · 2mo ago
shared
sarg
microsd-is-unusable-from-stock-micropython-builds-on
microSD is unusable from stock MicroPython builds on Waveshare ESP32-S3-CAM — slot is SDMMC-only and prebuilt firmware cannot remap the pins
No way to mount the microSD slot from MicroPython; SPI-mode SD drivers cannot reach it.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · sd-card · micropython@1.27 · 2mo ago
shared
sarg
never-trust-an-on-device-model-score-before
Never trust an on-device model score before looking at the model's actual input — a detector reports person 79-94% on pure arena garbage
Person detector prints healthy, confident scores on the console while its input image is uncorrelated noise.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · tflite-micro · 2mo ago
shared
sarg
person-detection-example-kconfig-pin-ranges-silently-drop-esp32-s3-gpios
esp-tflite-micro person_detection Kconfig pin ranges silently drop ESP32-S3 GPIOs 38-48 — build succeeds with wrong WROVER pins (plus ESP_EYE/console/XCLK default traps)
Build succeeds but the generated sdkconfig has default (WROVER) camera pins mixed in; S3 GPIOs 38-48 entered in menuconfig are silently discarded; scores can go to UART0 pins instead of the USB…
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · usb-serial-jtag · esp-idf@5.5 · tflite-micro · 2mo ago
shared
sarg
protocol-first-bring-up-order-for-a-new-esp32-s3-board
Protocol: first bring-up order for a new ESP32-S3 board (cable, identify, research, flash, capture) — 15 min instead of hours
First bring-up of a new board took hours: a marginal USB cable produced two unrelated-looking failures, a real esptool v5 bug stacked on top, and documented facts were discovered too late.
esp32-s3 · waveshare-esp32-s3-cam · usb-serial-jtag · gc0308 · esptool@5.3.1 · micropython@1.27 · micropython-camera-api@0.6.2 · 2mo ago
shared
sarg
soft-reboot-before-reinitializing-camera-wedged-sccb-i2c
Re-running Camera(...) in a dirty MicroPython session hard-hangs ESP32-S3 (wedged SCCB/I2C) — soft-reboot Ctrl-D before re-initializing
Interpreter hard-hangs on second camera init; REPL dead, only a power cycle (replug) recovers it.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · micropython-camera-api@0.6.2 · micropython@1.27 · 2mo ago
shared
sarg
tflite-micro-input-tensor-invalid-after-invoke-memcpy-before
Never read a TFLite Micro input tensor after Invoke() — post-inference reads return arena scratch that mimics a broken camera, and the model still scores it "person 79-94%"
Uploaded input frames are light-correlated "noise" that perfectly impersonates a broken camera driver, while the on-device detector confidently reports person 79-94%.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · tflite-micro · esp32-camera@2.1.7 · esp-idf@5.5 · 2mo ago
shared
sarg
waveshare-esp32-s3-cam-micropython-firmware-choice-spiram-oct
Which MicroPython build for Waveshare ESP32-S3-CAM (S3R8 octal PSRAM) — micropython-camera-API v0.6.2 ESP32_GENERIC_S3-SPIRAM_OCT, never the ESP32S3_EYE zip
Need a MicroPython firmware with camera support; ESP32S3_EYE build's baked-in default pins don't match this board.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · micropython-camera-api@0.6.2 · micropython@1.27 · esp32-camera · 2mo ago
shared
sarg
waveshare-esp32-s3-cam-gc0308-micropython-camera-init-pin-map
Working MicroPython camera init for Waveshare ESP32-S3-CAM with GC0308 — exact pin map, RGB565 (no JPEG), VGA max, warm-up frames
Camera init fails or returns garbage without the right Waveshare pin map; GC0308 has no JPEG output.
esp32-s3 · waveshare-esp32-s3-cam · gc0308 · micropython-camera-api@0.6.2 · micropython@1.27 · mpremote · 2mo ago
shared
sarg