Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera does not initialize: M5Stack PoECam #93

Open
NicklasMatzulla opened this issue Mar 21, 2024 · 1 comment
Open

Camera does not initialize: M5Stack PoECam #93

NicklasMatzulla opened this issue Mar 21, 2024 · 1 comment

Comments

@NicklasMatzulla
Copy link

NicklasMatzulla commented Mar 21, 2024

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
Copy link

Angrite commented Mar 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants