Skip to content

espcamera not working with ESP32-WROVER-DEV-CAM #11094

Description

@wariuccio

CircuitPython version and board name

Adafruit CircuitPython 10.2.1 on 2026-05-13; Freenove ESP32-WROVER-DEV-CAM with ESP32
Board ID:esp32-wrover-dev-cam

Code/REPL

import io
import os
import board
import espcamera
import socketpool

cam = espcamera.Camera(
    data_pins=board.CAMERA_DATA,
    external_clock_pin=board.CAMERA_XCLK,
    pixel_clock_pin=board.CAMERA_PCLK,
    vsync_pin=board.CAMERA_VSYNC,
    href_pin=board.CAMERA_HREF,
    powerdown_pin=board.CAMERA_PWDN,
    reset_pin=None,
    i2c=board.I2C(),
    external_clock_frequency=20_000_000,
    pixel_format=espcamera.PixelFormat.JPEG,
    frame_size=espcamera.FrameSize.SVGA,
    # jpeg_quality=0,
    # framebuffer_count=0,
    # grab_mode=espcamera.GrabMode.WHEN_EMPTYi
    )

if True:
    frame = cam.take(1)
    fn="out.jpg"
    if isinstance(frame, memoryview):
        jpeg = frame
        print(f"Captured {len(jpeg)} bytes of jpeg data")
        with open(fn, 'wb') as f:
            f.write(jpeg)
        print(f"written to {fn}")

Behavior

The camera fails to initialize.

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
  File "code.py", line 18, in <module>
espidf.IDFError: Requested resource not found

Code done running.

Press any key to enter the REPL. Use CTRL-D to reload.

Description

I am using the very same code I have found in #9233 @gitcnd added to the PR as an example of the camera working but it doesn't work for me.

I can exclude this is an hardware issue because using the Arduino example from Feenove I am able to see images from the camera in the web UI.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions