Having trouble with an ArduCAM Mini 2MP OV2640 camera shield on an Arduino Mega 2560. The camera won’t turn on and won’t connect, even when I follow what should be the correct wiring and power steps. I’ve tried multiple Mega 2560 boards and several different approaches from these links, but I never got it to work:
Welcome to the forum. To narrow this down, can you post which sketch you’re currently running and the exact error you see? Also, when you say it won’t turn on, do you mean the camera LED stays off, or the board is detected but you just get no image? If you can share the serial monitor output too, that would help.
I’m using the ArduCAM_Mini_Video_Streaming sketch from the library examples. At first it wouldn’t compile. Here’s the exact error:
ArduCAM_Mini_Video_Streaming.ino:26:4: error: #error Please select the hardware platform and camera module in the ../libraries/ArduCAM/memorysaver.h file
#error Please select the hardware platform and camera module in the ../libraries/ArduCAM/memorysaver.h file
^~~~~
exit status 1
Compilation error: #error Please select the hardware platform and camera module in the ../libraries/ArduCAM/memorysaver.h file
Environment: Arduino Mega 2560 (I’ve tried more than one), Arduino IDE, sketch opened from a temp unsaved IDE folder. I’ve attached my memorysaver.h. Even when it does compile, there’s no image.
That #error is coming from memorysaver.h. For a Mega 2560 + OV2640 Mini, open the ArduCAM library’s memorysaver.h and make sure the hardware platform and camera module lines that match your setup are uncommented, and the others are commented out. Can you post the relevant section of your memorysaver.h? If the wrong platform is selected, the sketch throws exactly that error.
I already tried that last week and it didn’t help. I’ve never gotten this camera to work. I’ve tried every approach in those links, used several different Mega 2560 boards, and it’s always the same. Screenshot attached.
Understood. One thing that catches people with that sketch is a stale library cache in the IDE. Try closing the Arduino IDE completely, reopen it, and upload the sketch again after the memorysaver.h changes. If the upload succeeds, open the serial monitor and let us know what it prints.
Update: after restarting the Arduino IDE, the upload now succeeds. But the camera still produces no image. I’ve attached a screenshot of what I’m seeing. I’m stuck at this point and hoping for a reply.
If you still can’t get an image, post a screenshot of the error log or serial output so we can debug further.
Current summary: the memorysaver.h compile issue is resolved after restarting the IDE, but image output is still not confirmed, so we’re treating this as unresolved until the tutorial test result comes back.