Arducam 12MP*2 Synchronized Stereo Camera Bundle with RPi 4 camera not detected

No response from Arducam, but posting this in case anyone else needs to know. On RaspberryPi 4B, if you cannot get your 12MP*2 Synchronized Stereo Camera Bundle working, you need to use i2cset. A couple of minutes of trial and error today got me to the answer I needed. i2cset -y 0x24 0x24 0x00 puts the camera hat in stereo mode with the feed from both cameras passed to the operating system as if from a single camera.

Hi @lloydtravissmith,
I am wondering if everything is fine with you working simultaneously with multiple cameras now. For me, cameras are detected but the preview window is like this:

I used this POST and installed low speed kernel, and now I have this error:

pi@raspberrypi:~/RaspberryPi/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2_python $ sudo ./init_camera.sh
----Test i2c1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –
Error: Write failed
----Detecting the /dev/video0 device
video0 detected!
β€”Start testing each camera
if all of them are normal, after it finished,you will see four image in the current path.
Start testing the camera A
Error: Write failed
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:12:01.736900856] [2437] INFO Camera camera_manager.cpp:299 libcamera v0.0.3+40-9b860a66
[0:12:02.130221974] [2439] INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:12:02.131625008] [2437] INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:12:02.132128037] [2439] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:12:02.209501847] [2443] WARN IPARPI raspberrypi.cpp:799 Could not set AF_MODE - no AF algorithm
Segmentation fault
Start testing the camera B
Error: Write failed
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:12:03.259693483] [2447] INFO Camera camera_manager.cpp:299 libcamera v0.0.3+40-9b860a66
[0:12:03.642140166] [2448] INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:12:03.642932746] [2447] INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:12:03.643237056] [2448] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:12:03.705794234] [2452] WARN IPARPI raspberrypi.cpp:799 Could not set AF_MODE - no AF algorithm
Segmentation fault
Start testing the camera C
Error: Write failed
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:12:04.748975935] [2456] INFO Camera camera_manager.cpp:299 libcamera v0.0.3+40-9b860a66
[0:12:05.130966614] [2457] INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:12:05.131824767] [2456] INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:12:05.132163947] [2457] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:12:05.195827205] [2461] WARN IPARPI raspberrypi.cpp:799 Could not set AF_MODE - no AF algorithm
Segmentation fault
Start testing the camera D
Error: Write failed
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:12:06.234920532] [2465] INFO Camera camera_manager.cpp:299 libcamera v0.0.3+40-9b860a66
[0:12:06.623896148] [2466] INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:12:06.625532975] [2465] INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:12:06.626098115] [2466] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:12:06.708622952] [2470] WARN IPARPI raspberrypi.cpp:799 Could not set AF_MODE - no AF algorithm
Segmentation fault
pi@raspberrypi:~/RaspberryPi/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2_python $ sudo ./init_camera.sh
----Test i2c1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –
Error: Write failed
----Detecting the /dev/video0 device
video0 detected!
β€”Start testing each camera
if all of them are normal, after it finished,you will see four image in the current path.
Start testing the camera A
Error: Write failed
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:12:01.736900856] [2437] INFO Camera camera_manager.cpp:299 libcamera v0.0.3+40-9b860a66
[0:12:02.130221974] [2439] INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:12:02.131625008] [2437] INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:12:02.132128037] [2439] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:12:02.209501847] [2443] WARN IPARPI raspberrypi.cpp:799 Could not set AF_MODE - no AF algorithm
Segmentation fault
Start testing the camera B
Error: Write failed
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:12:03.259693483] [2447] INFO Camera camera_manager.cpp:299 libcamera v0.0.3+40-9b860a66
[0:12:03.642140166] [2448] INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:12:03.642932746] [2447] INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:12:03.643237056] [2448] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:12:03.705794234] [2452] WARN IPARPI raspberrypi.cpp:799 Could not set AF_MODE - no AF algorithm
Segmentation fault
Start testing the camera C
Error: Write failed
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:12:04.748975935] [2456] INFO Camera camera_manager.cpp:299 libcamera v0.0.3+40-9b860a66
[0:12:05.130966614] [2457] INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:12:05.131824767] [2456] INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:12:05.132163947] [2457] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:12:05.195827205] [2461] WARN IPARPI raspberrypi.cpp:799 Could not set AF_MODE - no AF algorithm
Segmentation fault
Start testing the camera D
Error: Write failed
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:12:06.234920532] [2465] INFO Camera camera_manager.cpp:299 libcamera v0.0.3+40-9b860a66
[0:12:06.623896148] [2466] INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx519@1a to Unicam device /dev/media4 and ISP device /dev/media1
[0:12:06.625532975] [2465] INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[0:12:06.626098115] [2466] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/imx519@1a - Selected sensor format: 2328x1748-SRGGB10_1X10 - Selected unicam format: 2328x1748-pRAA
[0:12:06.708622952] [2470] WARN IPARPI raspberrypi.cpp:799 Could not set AF_MODE - no AF algorithm
Segmentation fault

Anyone has any ideas what is the issue?

Hi,
Can you post the product link here?

Hi @Dion
This is the link: Amazon.com

Thanks

@Dion the link brings me back here!

This link is my first issue. Then after installing the low-speed package I got new errors as mentioned above and no preview is available.

Could you please let me know what I need to do for solving the issue?

Thanks.

Hi,
:sweat_smile:
My bad! It should be the link below:

Thanks @Dion Dion.
It works well as shown below.

Now, I have another issue and am not sure what is causing it. I wanted to capture pictures with different exposures. Here is the code I use:

import picamera
from time import sleep
from fractions import Fraction
with picamera.PiCamera() as camera:
    
    camera.framerate = Fraction(1, 2)
    camera.rotation = 0
    camera.iso = 100
    camera.exposure_mode = 'auto'
    camera.awb_mode = 'off'
    camera.awb_gains = (2.9,1.7)
    # detect camera version so that it resolution can be set
    if (camera.revision).upper() == "IMX519":
        try:
                camera.resolution = (4056,3040)
        except:
                print("Review readme for change in memory split to get full support for Camera v2")
                print("Resolution kept at 2592x1944")
                camera.resolution = (4056,3040)
    else:
        camera.resolution = (4056,3040)
        
    exposures = [250000, 125000, 66667,33333, 16667, 8000, 4000,
2000]
    
        
    i = 1
    for exp in exposures:
        camera.shutter_speed = exp        
        camera.capture('ldr_{:02d}.jpg'.format(i))
        i += 1

but I got this error:

python exposurebracket.py
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 456, in _init_camera
    self._camera = mo.MMALCamera()
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2279, in init
    super(MMALCamera, self).__init__()
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 631, in init
    mmal_check(
  File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
    raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.camera': Out of memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/exposurebracket.py", line 4, in <module>
    with picamera.PiCamera() as camera:
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 431, in init
    self._init_camera(camera_num, stereo_mode, stereo_decimate)
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 459, in _init_camera
    raise PiCameraError(
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.

Seems the code works with legacy camera which is not compatible with quad camera. Any idea how to capture different exposure pictures with libcamera and quad camera without any issue?

Thanks

Hi, Dion. I have same problem.
I have:

  1. 4 Arducam 5MP OV5647 1080p Mini Camera Module for Raspberry Pi 4
  2. Raspberry Pi 4
  3. Raspberry Pi Multi CameraAdapter Module V2.2

I followed steps from RaspberryPi/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel at master Β· ArduCAM/RaspberryPi Β· GitHub
and alsow i modified the Config.txt with

dtoverlay=camera-mux-4port,cam0-,cam1-,cam2-,cam3-

link:
https://docs.arducam.com/Raspberry-Pi-Camera/Multi-Camera-CamArray/Quick-Start-Guide-for-Multi-Adapter-Board/

On β€œtest” step all 4 cameras displayed one by one.
terminal output

sudo ./init_camera.sh
----Test i2c1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – 36 – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: 70 – – – – – – –
----Detecting the /dev/video0 device
video0 detected!
β€”Start testing each camera
if all of them are normal, after it finished,you will see four image in the current path.
Start testing the camera A
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:08:02.461021881] [3538] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:02.508095883] [3539] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:02.523819069] [3539] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@1/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:02.538351000] [3539] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@2/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:02.551806249] [3539] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@3/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:02.560924125] [3538] INFO Camera camera.cpp:1028 configuring streams: (0) 1296x972-YUV420
[0:08:02.561339808] [3539] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:08:07.701918692] [3538] INFO Camera camera.cpp:1028 configuring streams: (0) 2592x1944-YUV420 (1) 2592x1944-SGBRG10_CSI2P
[0:08:07.703520431] [3539] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
Still capture image received
Start testing the camera B
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:08:09.163307096] [3582] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:09.213969694] [3594] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:09.228622657] [3594] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@1/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:09.241992743] [3594] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@2/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:09.254838342] [3594] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@3/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:09.256254197] [3582] INFO Camera camera.cpp:1028 configuring streams: (0) 1296x972-YUV420
[0:08:09.256769685] [3594] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:08:09.466475074] [3594] INFO V4L2 v4l2_videodevice.cpp:1820 /dev/video0[18:cap]: Zero sequence expected for first frame (got 3)
[0:08:14.396069389] [3582] INFO Camera camera.cpp:1028 configuring streams: (0) 2592x1944-YUV420 (1) 2592x1944-SGBRG10_CSI2P
[0:08:14.398089416] [3594] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
Still capture image received
Start testing the camera C
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:08:15.823688655] [3635] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:15.867881193] [3636] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:15.881762114] [3636] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@1/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:15.895443781] [3636] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@2/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:15.907161641] [3636] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@3/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:15.908971821] [3635] INFO Camera camera.cpp:1028 configuring streams: (0) 1296x972-YUV420
[0:08:15.909420311] [3636] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:08:21.049962947] [3635] INFO Camera camera.cpp:1028 configuring streams: (0) 2592x1944-YUV420 (1) 2592x1944-SGBRG10_CSI2P
[0:08:21.051697353] [3636] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
Still capture image received
Start testing the camera D
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:08:22.480131003] [3677] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:22.526690079] [3678] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:22.540585882] [3678] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@1/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:22.554819066] [3678] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@2/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:22.567859517] [3678] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/pca@70/i2c@3/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media3
[0:08:22.569121415] [3677] INFO Camera camera.cpp:1028 configuring streams: (0) 1296x972-YUV420
[0:08:22.569573886] [3678] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:08:27.700708507] [3677] INFO Camera camera.cpp:1028 configuring streams: (0) 2592x1944-YUV420 (1) 2592x1944-SGBRG10_CSI2P
[0:08:27.701584489] [3678] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/pca@70/i2c@0/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA
Still capture image received

But " Running your RPiCameras with ArduCam" step still failed

Can you help me please

@sashalager

This thread is closed, I see you have asked in another thread, we can communicate there.