I want to connect 2 IMX296 global shutter camera(https://www.waveshare.com/product/raspb ... camera.htm) using a Multi-Camera Array v2.2(https://www.arducam.com/multi-camera-v2 ... ry-pi.html).
Also i want to connect 1 ToF camera(https://www.arducam.com/time-of-flight- ... ry-pi.html) in the other free csi port of the PI 5.
I have a AI+2 HAT also connected.
Now if I the ToF camera, and use this in config it works:If I connect 2 IMX296 in 2 ports, and use this in config.txt, it works:But I can't get the multi cam array to work, have tried all the possible permutations, changing ports and configs. Here's the complete config to see other settings: (this one not working)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
relevant GPIO info:
----------------------------------------------------------------------------------------
so the mux is getting detected
----------------------------------------------------------------------------------------
I2C info:----------------------------------------------------------------------------------------
tried https://github.com/ArduCAM/RaspberryPi/tree/master
also changing the legacy gpio to modern, nothing works.
----------------------------------------------------------------------------------------
rpicam-still results:----------------------------------------------------------------------------------------
GPIO error when using the github repo:-----------------------------------------------------------
CAN ANYONE HELP PLEASE
Also i want to connect 1 ToF camera(https://www.arducam.com/time-of-flight- ... ry-pi.html) in the other free csi port of the PI 5.
I have a AI+2 HAT also connected.
Now if I the ToF camera, and use this in config it works:
Code:
dtoverlay=arducam-pivariety,cam0Code:
dtoverlay=imx296,cam0dtoverlay=imx296,cam1----------------------------------------------------------------------------------------
Code:
dtparam=i2c_arm=on#dtparam=i2s=on#dtparam=spi=ondtparam=i2c_vc=on# Enable audio (loads snd_bcm2835)dtparam=audio=on# Additional overlays and parameters are documented# /boot/firmware/overlays/README# Automatically load overlays for detected camerascamera_auto_detect=0# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3dmax_framebuffers=2# Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscandisable_overscan=1# Run as fast as firmware / board allowsarm_boost=1[cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.otg_mode=1[cm5]dtoverlay=dwc2,dr_mode=host[all]dtparam=pciex1dtparam=pciex1_gen=3#dtparam=cam0#dtparam=cam1# ToF on CAM0# dtoverlay=arducam-pivariety,cam0# 4-port mux on CAM1dtoverlay=camera-mux-4port,cam1-imx296# dtoverlay=imx296,cam0# dtoverlay=imx296,cam1# dtoverlay=arducam-pivariety,cam2relevant GPIO info:
Code:
gpiochip0 - 54 lines: line 0: "ID_SDA" input line 1: "ID_SCL" input line 2: "GPIO2" input line 3: "GPIO3" input line 4: "GPIO4" output consumer="mux" line 5: "GPIO5" input line 6: "GPIO6" input line 7: "GPIO7" input line 8: "GPIO8" input line 9: "GPIO9" input line 10: "GPIO10" input line 11: "GPIO11" input line 12: "GPIO12" input line 13: "GPIO13" input line 14: "GPIO14" input line 15: "GPIO15" input line 16: "GPIO16" input line 17: "GPIO17" output consumer="mux" line 18: "GPIO18" output consumer="mux" line 19: "GPIO19" input line 20: "GPIO20" input line 21: "GPIO21" input line 22: "GPIO22" input line 23: "GPIO23" input line 24: "GPIO24" input line 25: "GPIO25" inputso the mux is getting detected
----------------------------------------------------------------------------------------
I2C info:
Code:
(base) anurag@anurag:~/codes/3rdparty/Arducam_tof_camera $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: 70 -- -- -- -- -- -- -- (base) anurag@anurag:~/codes/3rdparty/Arducam_tof_camera $ i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- 51 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- (base) anurag@anurag:~/codes/3rdparty/Arducam_tof_camera $ i2cdetect -y 10Error: Could not open file `/dev/i2c-10' or `/dev/i2c/10': No such file or directory(base) anurag@anurag:~/codes/3rdparty/Arducam_tof_camera $ i2cdetect -y 11 0 1 2 3 4 5 6 7 8 9 a b c d e f00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: UU -- -- -- -- -- -- -- tried https://github.com/ArduCAM/RaspberryPi/tree/master
also changing the legacy gpio to modern, nothing works.
----------------------------------------------------------------------------------------
rpicam-still results:
Code:
(base) anurag@anurag:~/codes/3rdparty/Arducam_tof_camera $ rpicam-still -t 0 --camera 0[0:15:37.255290101] [2475] INFO Camera camera_manager.cpp:340 libcamera v0.7.0+rpt20260205WARNING: Capture will not make use of temporal denoise Consider using the --zsl option for best results, for example: rpicam-still --zsl -o Made X/EGL preview windowMade DRM preview windowPreview window unavailableERROR: *** no cameras available ***GPIO error when using the github repo:
Code:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gpiozero/pins/pi.py", line 411, in pin pin = self.pins[info] ~~~~~~~~~^^^^^^KeyError: PinInfo(number=7, name='GPIO4', names=frozenset({'BOARD7', 'BCM4', 4, 'WPI7', 'GPIO4', 'J8:7', '4'}), pull='', row=4, col=1, interfaces=frozenset({'', 'gpio', 'dpi', 'uart', 'i2c', 'spi'}))During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/home/anurag/codes/3rdparty/Arducam_tof_camera/demo_gpio.py", line 23, in <module> pin7 = OutputDevice(4) File "/usr/lib/python3/dist-packages/gpiozero/devices.py", line 108, in __call__ self = super().__call__(*args, **kwargs) File "/usr/lib/python3/dist-packages/gpiozero/output_devices.py", line 74, in __init__ super().__init__(pin, pin_factory=pin_factory) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/gpiozero/mixins.py", line 75, in __init__ super().__init__(*args, **kwargs) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/gpiozero/devices.py", line 553, in __init__ pin = self.pin_factory.pin(pin) File "/usr/lib/python3/dist-packages/gpiozero/pins/pi.py", line 413, in pin pin = self.pin_class(self, info) File "/usr/lib/python3/dist-packages/gpiozero/pins/lgpio.py", line 126, in __init__ lgpio.gpio_claim_input( ~~~~~~~~~~~~~~~~~~~~~~^ self.factory._handle, self._number, lgpio.SET_PULL_NONE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/lgpio.py", line 755, in gpio_claim_input return _u2i(_lgpio._gpio_claim_input(handle&0xffff, lFlags, gpio)) File "/usr/lib/python3/dist-packages/lgpio.py", line 458, in _u2i raise error(error_text(v))lgpio.error: 'GPIO busy'CAN ANYONE HELP PLEASE
Statistics: Posted by anuragdalal — Sat Feb 28, 2026 6:20 pm — Replies 1 — Views 46