🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Paper Camera Sensor

    Scheduled Pinned Locked Moved Modules
    2 Posts 2 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      derhaase
      last edited by

      I recently ordered an M5Paper and I would like to attach a camera to it to be able to scan QR codes.

      Can i use the existing HY2.0-4P Ports to attach a camera module like this via SPI/I2C:
      https://www.arducam.com/product/arducam-5mp-plus-spi-cam-arduino-ov5642/

      I would like to avoid introducing another ESP32 into the project and the existing TTY cameras don't have a sufficient resolution.

      1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue
        last edited by

        Hello @derhaase

        interesting question - which got me curious if this is actually doable on M5Paper or not.

        Using all three ports (A, B and C) available on M5Paper gives you 6 GPIOs of which you can use port A for I2C (SDA and SCL) and port B and C for SPI (SCK, MOSI, MISO and CS).

        I did a quick test with the M5Stack Ethernet module (which uses SPI as well) and I got it working alongside the display. The trick is to properly initialize the SPI peripherals. ESP32 has four of them, two are used internally and one is used for the M5Paper display. This leaves one to connect another SPI slave device.

        Please note: I do not have the camera module, so I cannot test if it works with that camera as well.

        Good luck!

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post