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

    M5Paper Camera Sensor

    Modules
    2
    2
    2.6k
    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
      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
        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
        • First post
          Last post