lemariva / micropython-camera-driver

add camera support to MicroPython
https://lemariva.com
Apache License 2.0
460 stars 99 forks source link

Camera does not initialize: M5Stack PoECam #93

Open NicklasMatzulla opened 8 months ago

NicklasMatzulla commented 8 months ago

Hey, I would like to initialize my PoECam from M5Stack. Please note that the PinMap differs from the normal M5Cam. Unfortunately, I get the error that the camera cannot be initialized.

I have used the official examples from PoECam as a guide for the configuration, I think these could be helpful.

Micropython code:

import camera

cam = camera.init(0, sioc=12, siod=14, xclk=27, vsync=22, href=26, pclk=21,
                  d0=32, d1=35, d2=34, d3=5, d4=39, d5=18, d6=36, d7=19,
                  format=camera.JPEG, framesize=camera.FRAME_UXGA, xclk_freq=camera.XCLK_20MHz,
                  fb_location=camera.PSRAM, reset=15, pwdn=-1)

# noinspection PyUnresolvedReferences
def get_frame():
    return cam.capture()

Kind regards

Angrite commented 8 months ago

Did you tried to lower frequency to 10MHz (xclk_freq)?