Hey everyone, I’m having trouble with my Arducam Mega 5MP SPI Camera Module (the one with the M12 lens). I’ve got it hooked up to my microcontroller, made all the connections as per the documentation, and successfully uploaded the required programs — but I’m getting absolutely no video stream. Just nothing.
At first I thought it might be a compatibility issue between the library and my board, so I tweaked a few things, double-checked pin mappings, but still no luck. The sketch compiles and uploads fine, the board seems to be running, but the camera just doesn’t output anything. I’m starting to suspect a hardware fault with the camera module itself.
Here are a couple of short videos showing what’s happening (or rather, what’s not happening):
Thanks for the detailed report and the videos. Before we jump to any hardware conclusions, let’s narrow things down a bit.
A few questions:
Which microcontroller are you using exactly? (ESP32, STM32, Arduino Mega, etc.)
What example sketch or library are you currently running? Are you using the official Arducam Mega library or something else?
Can you double-check your SPI wiring? Sometimes the CS pin assignment trips people up with these modules.
If you can share the code you’re trying to run (or at least which example it’s based on), that would help a lot. The Mega 5MP over SPI can be a bit particular about initialization order and register settings.
I’m using an ESP32 board. I followed the wiring diagram from one of the tutorials I found — SPI pins are connected as per the standard VSPI pins on the ESP32 (MISO, MOSI, SCLK, CS). I’ve tried a couple of different example sketches I had lying around, but honestly I’m not 100% sure they were the right ones for this specific camera module.
Any update on what I should try next? I’ve been stuck on this for a bit now.
Alright, I think the issue might be that you’re not using the correct example code for this specific module. The Arducam Mega series has its own dedicated library and examples that handle all the SPI initialization and register configuration properly — generic OV5640/OV2640 examples won’t work out of the box.
Please head over to the official Arducam Mega GitHub repository and use the examples from there:
Since you’re on an ESP32, the ArduinoESP32 directory is exactly what you need. Start with a basic streaming or capture example from that folder — those sketches are verified to work with the Mega 5MP SPI module and handle all the sensor initialization correctly.
Give that a shot and let us know if the camera is detected at all after the upload (check the serial monitor output — it should report whether the sensor ACK was received during initialization).