Skip to content

esp32-cam failing to init camera #9356

Open
@aguaviva

Description

@aguaviva

CircuitPython version

CircuitPython 9.1.0-beta.3 (https://circuitpython.org/board/ai-thinker-esp32-cam/)

Code/REPL

import espcamera
import board

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,
    pixel_format=espcamera.PixelFormat.JPEG,
    frame_size=espcamera.FrameSize.SVGA,
    i2c=board.I2C(),
    external_clock_frequency=20_000_000,
    grab_mode=espcamera.GrabMode.WHEN_EMPTY)

f = cam.take()

print(len(f))

Behavior

Traceback (most recent call last):
  File "<stdin>", line 14, in <module>
espidf.IDFError: Requested resource not found

Description

I am trying to take a picture but fails

Additional information

  • I haven't found any sample code to take a picture on a ESP32-CAM
  • I just switched from Micropython

Metadata

Metadata

Assignees

No one assigned

    Labels

    boardNew board or update to a single boardbugespressifapplies to multiple Espressif chips

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions