Arducam 12MP*2 Synchronized Stereo Camera Kit setup not working on Raspberry Pi / Pi Zero

Hi, I’ve been stuck on this for a few days with my Arducam 12MP*2 Synchronized Stereo Camera Bundle Kit for Raspberry Pi and Pi Zero (SKU B0265R) - the one with two 12.3MP 477P camera modules with CS lens and the Camarray Stereo Camera HAT. I bought it about a month ago. I followed the setup video and the manual from the quick-start guide, but I just can’t get it working.

Guide: Quick Start Guide for Arducam CamArray HAT Kit - Arducam Wiki
Video: https://www.youtube.com/watch?v=UN4ZBttQwdI

Has anyone got this kit running? What am I missing?

Sorry to hear that. This kit (B0265R) actually works like a normal imx477 camera module once it’s configured correctly, so let’s start there.

Can you check your boot config? Run:

sudo nano /boot/config.txt

and add this line under the [all] section at the bottom:

dtoverlay=imx477

Then reboot the Pi. The B0265R is functionally equivalent to a standard imx477 camera module once that overlay is enabled, so this should get it recognized.

Thanks, I added dtoverlay=imx477 under [all] and rebooted, but it’s still not working. I’ve attached a screenshot of what I’m seeing now.

image0.jpeg

Same result as before basically.

Got it, thanks for the screenshot. I can’t tell the exact cause from that alone, so let’s grab a proper bug report to see how the system and the camera are configured.

Please reboot the device first, then run these in order:

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

This will generate an arducam-bug-report.txt file in the current directory. Attach that file here so I can dig into it.

Here’s the bug report file and a picture of my setup while testing.

arducam-bug-report.txt

arducam-test.jpeg

Thanks, that’s helpful. Looking at the report, the camera module is actually working - the remaining issue is focus adjustment. The image is there, but the lens isn’t focused.

One more thing: you’re using raspistill, which is outdated. Please use libcamera commands instead, for example:

libcamera-still -t 0

This gives you a live preview so you can screw the lens to focus properly. raspistill should be avoided at this point.

Thanks, switching to libcamera worked better. But now I’m trying to find documentation for libcamera settings for the imx477 stereo camera - resolutions, exposure, gain, etc. I can’t seem to find anything specific for this stereo bundle.

Are you on the legacy Bullseye OS? On Bullseye the command prefix is different from the newer Raspberry Pi OS releases - you need libcamera- prefixed commands, not rpicam-.

So use:

libcamera-still -t 0

rather than:

rpicam-still -t 0

For all the control options, run:

libcamera-still --help

That lists resolution, exposure, gain and everything else. The official doc is here too:
https://www.raspberrypi.com/documentation/computers/camera_software.html#rpicam-hello

Okay, I can preview now, but I can’t get the video source to display full screen wide. It’s the side-by-side stereo image, but the stream only fills about “half of the half” of the screen, with black bars on both sides. I’m on a FullHD display (1920x1080). Screenshot attached.

image0.jpeg

Right, this kit runs two 12MP camera modules simultaneously through a single MIPI CSI-2 camera slot on the Pi. The Camarray HAT (ArduChip) makes the dual-camera connection look like a single camera to the RPi, so each camera only gets half the resolution compared to a single imx477 camera. That’s expected with the side-by-side output.

For a full screen preview, add -f after the command:

libcamera-still -t 0 -f

Hmm, if the global resolution is 1920x1080, the whole screen should be covered by the video source when using -f, but it’s still not. I compared two frames from the Arducam tutorial video: the narrow view at 2:22 is what I’m getting now, but I want the larger/wider view shown at 2:30.

image0.png

image1.png

Ah, I see the difference now. The video showing that full-width display was recorded on Buster OS, but you’re on Bullseye, and the preview sizing behavior changed between those OS versions.

Try forcing the viewfinder dimensions explicitly:

libcamera-still -t 0 --viewfinder-width 4056 --viewfinder-height 3040

Setting --viewfinder-width and --viewfinder-height should force the larger preview you’re looking for.

That did it! The --viewfinder-width 4056 --viewfinder-height 3040 setting fixed the display - it now shows the full wide view like in the tutorial. Thanks a lot for walking me through this.