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

    UnitCamS3 Trouble programming in Arduino IDE and getting 2mp image

    Units
    2
    4
    1.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.
    • teastainT
      teastain
      last edited by teastain

      I just received my new UnitCamS3 and I was dissatisfied with the built in app, so I tried to program it in Arduino IDE.
      (The camera only showed a series of lo-res images of an increasingly perplexed and annoyed old man)
      The specs say 2 megapixel, but the supplied app is only 640x480 (0.3 megapixel).
      I cannot find an Arduino sketch that will compile and run and output a 2mp image.
      The demo firmware is written for Platformio and I am not interested in installing that and the learning curve.
      Is it possible to program with Arduino IDE and achieve 2mp?

      Cheers, Terry!

      100% M5Stack addict with several drawers full of product!

      teastainT 1 Reply Last reply Reply Quote 0
      • teastainT
        teastain @teastain
        last edited by

        @teastain I made an #Issue on the GitHub repository and got patient, expert advice on how to edit the libraries and select the options in the .ino sketch!
        Got it working!

        Cheers, Terry!

        100% M5Stack addict with several drawers full of product!

        1 Reply Last reply Reply Quote 0
        • ajb2k3A
          ajb2k3
          last edited by

          can you post the link?

          UIFlow, so easy an adult can learn it!
          If I don't know it, be patient!
          I've ether not learned it or am too drunk to remember it!
          Author of the WIP UIFlow Handbook!
          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

          teastainT 1 Reply Last reply Reply Quote 0
          • teastainT
            teastain @ajb2k3
            last edited by teastain

            @ajb2k3 Sure, here it is:

            Here is the full example for all ESP32s using the OV2640 camera in Arduino IDE
            (in the IDE board selection choose M5Stack UnitCamS3)
            Remember to edit the .ino file to include your WiFi credentials!

            The full sketch is here:
             https://github.com/espressif/arduino-esp32/tree/cf448906b3836fbe9368934713b697469254c62f/libraries/ESP32/examples/Camera/CameraWebServer

            You can choose CAMERA_MODEL_ESP_EYE, and apply a little tweak in camera_pins.h like this: 
            https://github.com/m5stack/UnitCamS3-UserDemo/blob/main/firmware/src/hal/cam/camera_pins.h#L21

            Also in the library used in your sketch
            app_httpd.cpp
            I had to change Line 77 from ('1" enabled) to ('0' not enabled )

            #define CONFIG_LED_ILLUMINATOR_ENABLED 0   
            

            Successful upload serial output reads like this:

            20:48:24.952 -> E (516) esp_core_dump_flash: No core dump partition found!
            20:48:24.952 -> 
            20:48:24.952 -> ......
            20:48:24.952 -> WiFi connected
            20:48:24.952 -> Camera Ready! Use 'http://192.168.0.37' to connect
            

            Cheers, Terry!

            100% M5Stack addict with several drawers full of product!

            1 Reply Last reply Reply Quote 2
            • First post
              Last post