Month: September 2024

It picks up a building brick!

Hier klicken, um den Inhalt von YouTube anzuzeigen.
Learn more in YouTube’s privacy policy.

Esp32-Camera timing issue

Discovered a timing issue when using the esp32-camera. The error indication is simple: with certain camera configuration, esp_camera_fb_get returns null_ptr. This is definitely a timing mismatch in the hardware and controller code. As far as I can see, the hardware is supposed to check the camera status and fill in the frame buffers in the PSRAM in an ISR in some constant frequency (related to config.xclk_freq_hz) and I fetch (and return) the frame buffer in the working loop. If one side is too slow or too fast, there will be no enough / too much events and the working queue became empty or full, etc.

I got some working combinations after quite some trial and error.

xclk_freq_hzframe_sizejpeg_quality
8FRAMESIZE_VGA12
12FRAMESIZE_VGA2
16FRAMESIZE_QQVGA12

© 2025 Folding recursively

Theme by Anders NorenUp ↑