UnitCamS3 Trouble programming in Arduino IDE and getting 2mp image
-
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? -
@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! -
can you post the link?
-
@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/CameraWebServerYou 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#L21Also 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