Arducam IMX477 camera not found on Raspberry Pi Zero 2 W and 4B

Hi everyone, I’m stuck. I’ve got an Arducam IMX477 camera and it won’t get detected on either a Raspberry Pi Zero 2 W or a Pi 4B. libcamera just keeps saying ‘camera not found’. I’ve already edited config.txt and enabled glamor on the Zero 2 W, but nothing changed. Has anyone seen this before?

Thanks for the details. Let’s grab a proper diagnostic first instead of guessing. Can you connect the camera to the Pi 4 and run the following commands?

wget -O arducam-camera-bug-report https://github.com/ketai-dhr/arducam-camera-bug-report/releases/download/tools/arducam-camera-bug-report
chmod +x ./arducam-camera-bug-report
./arducam-camera-bug-report

That will generate an arducam-bug-report.txt file in the current directory. Attach it to your next reply (or send it over in a private message) so we can see what the camera is reporting.

Okay so I ran the bug report tool and sent you the txt file. While I was double checking the hardware I also noticed the ribbon cable was actually inserted the wrong way around. After fixing that, the camera is now detected and video capture works fine. But now when I try to take a still photo I get an ‘allocate memory error’. This is on the Pi Zero 2 W.

Good progress. That ‘allocate memory’ error on the Zero 2 W is usually down to the preview window being enabled during still capture, the Zero 2 W just runs out of memory. Try capturing without a preview:

libcamera-still -t 5000 -o test.jpg -n

That waits 5 seconds and saves to test.jpg with no preview window rendered.

That worked! The photo saved fine with the -n flag and I’m not seeing the memory error anymore. Thanks for the help.

Glad it’s sorted. Just to wrap this up for anyone else reading: the original ‘camera not found’ turned out to be the ribbon cable inserted the wrong way around, and the allocate memory error was the Pi Zero 2 W running out of memory when libcamera renders a preview window during still capture. Using -n to skip the preview is the workaround for stills on the Zero 2 W.