Hello, all,
I’m having trouble with “image_transfer_jpg_as_the_controller_device.ino”. I’m running this code on my Adafruit Feather 32u4 with an onboard SD card and I’m running “image_transfer_jpg_as_the_remote_device_for_your_computer.py” on my OpenMV H7 plus. The boards are connected via UART. My end goal is to run this code with a Raspberry Pico 2040 by establishing LittleFS for file storage, but I’m using the Feather to prove that the code can work. I’ve gotten the “popular features” code working between these devices just fine.
The code runs fine, but I’m running into terrible reliability when it comes to initiating the snapshot and file save sequence. 99% of the time while the code is running, my Arduino IDE shows me “Taking a pic…Failed!” VERY occasionally it’ll move on to “Creating jpg file…Reading bytes” and then usually errors out. A couple times, the file saved completely, and I could view it from the SD card. Is there a way I can improve the reliability of this code?
I can successfully save an image once after pressing the “Play” button in the OpenMV IDE. After that completes, the Arduino gets stuck in the “Taking a pic…Failed!” cycle. I can capture another image by pressing the OpenMV “Play” button again.