Cameras for Raspberry Pi

  1. Home
  2. Docs
  3. Cameras for Raspberry Pi
  4. Synchronized Stereo Camera HAT
  5. Camarray – Arducam 16MP / 64MP Quad-Camera Bundle Kit

Camarray – Arducam 16MP / 64MP Quad-Camera Bundle Kit

Introduction

Arducam quadrascopic camera bundle kits incorporate four 16MP / 64MP autofocus cameras, and the cutting-edge MIPI stereo camera breakthrough from Arducam – The Arducam Camarray HAT.

As the upgraded version of Arducam Synched Stereo Camera HAT, the Camarray further pushes the multi-camera limits and doubles the interfacing capabilities to allow 4 synchronized MIPI camera modules to be interfaced to a single MIPI CSI-2 slot on prevailing single-board computers like Raspberry Pi, Jetson Nano, and Jetson Xavier NX.

This Bundle kit adopts the Variable Baseline Extension solution. Compared to the fixed stereo camera module, this stereo camera bundle has higher flexibility. The separated cameras can be used with a variable baseline device and controlled through the computer control system to achieve rapid and dynamic interactive adjustment of the moving parts for multi-degree-of-freedom stereo quadrascopic vision.

What is Camarray

Camarray is a series of embedded stereo cameras and multiple camera solutions from Arducam. Upgraded from Arducam Sync Stereo Camera HAT, the Camarry can disguise up to 4 synched camera modules as a single camera slot connection to embedded systems like the Raspberry Pi, and Jetson nano, and Xavier NX. With Arducam camarray, your camera connectivities are no longer limited to the camera connectors on the motherboard or the carrier board. Along with Arducam-provided camera drivers, more flexibility can be added to your multi-camera applications.

Note:

1. The Camarray HAT does not support digital pan in half resolution combined and programmable pan speed control.
2. The Camarray HAT is not a crop and a half (halving the horizontal resolution of each camera and halving the field of view) but a compressed half (halving the horizontal resolution of each camera but leaving the field of view unchanged), so it does not need to support scan mode.

Product

Arducam 16MP Autofocus Quad-Camera Kit for Raspberry Pi, 16MP IMX519 Autofocus Synchronized Raspberry Pi Camera, Compatible with Nvidia Jetson Nano/Xavier NX
B0388 – 16MP Quad-Camera Bundle Kit
B0402 Quad camera kit 64MP 2
B0402 – 64MP Quad-Camera Bundle Kit

Common Specifications

-Camarray HAT

Support PlatformRaspberry Pi
Inputs4x CSI-2 2-lane Input Ports
Outputs1x CSI-2 2-lane Output Port
CSI-2 Speed1.0 Gbps/Lane
Camera ControlI2C Broadcasting for all cameras, no individual control
ISP SupportSupports
External Trigger SupportNot support
Multiple HAT SyncNot support
Aggregate modeSide-by-Side, Camera 0 only, Camera 1 only
HAT Size65 x 56 mm

-Camera

SensorSony 16MP IMX51964MP
Shutter TypeRolling ShutterRolling Shutter
Pixel Size1.22 µm × 1.22 µm/
Active Pixels4656 (H) × 3496 (V)9152 (H) x 6944 (V)
Optical Size1/2.53″1/1.7”
Output Interface2-lane MIPI serial output2-lane MIPI serial output
Board Size25mm x 24mm25mm x 24mm

-Lens

Optical Format1/2.53”1/1.7”
ApertureF/1.75F/1.8
Focus typeAutofocusAutofocus
EFL4.28 mm5.1mm
Field of View (FOV)80 ° (H)84 ° (D)
MountStock lens auto motorStock lens auto motor
Focus Range10 cm ~ infinite8 cm ~ infinite
IR SensitiveIntegral IR filter, visible light onlyIntegral IR filter, visible light only
Tripod mount1/4”-201/4”-20

Demo

Hardware Connection

b0388 05
b0388 04
B0402 Quad camera kit 64MP 3

How to Access the Camera

Before you Start

Note
Please avoid using our 16MP autofocus camera module with the official PoE HAT or touchscreen.

These camera bundle kits are developed and designed for the Bullseye OS. Please ensure that you are using the Raspberry Pi Bullseye OS before you start to run the camera. Please make sure your Raspberry Pi OS is downloaded from this official source:
Raspberry Pi Bullseye >

Driver installation

If you are using the Arducam Autofocus Camera for the first time, please follow these steps:

Step 1. Download the bash scripts

wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh

Step 2. Install libcamera-dev

./install_pivariety_pkgs.sh -p libcamera_dev

Step 3. Install libcamera-apps

./install_pivariety_pkgs.sh -p libcamera_apps

Step 4. Install the kernel driver

For IMX519 camera:
./install_pivariety_pkgs.sh -p imx519_kernel_driver_low_speed
For 64MP camera:
./install_pivariety_pkgs.sh -p 64mp_pi_hawk_eye_kernel_driver

Step 5. Install the focus adjustment software

git clone https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver.git

Step 6. Configuration

Open /boot/config.txt, under [all], add the following line:

For Raspberry Pi 4

dtoverlay=vc4-kms-v3d, cma-512

#16MP Quad-camera bundle kit:

dtoverlay=imx519

#64MP Quad-camera bundle kit:

dtoverlay=arducam_64mp

For Raspberry Pi 0 ~ 3:

dtoverlay=vc4-kms-v3d, cma-256

#16MP Quad-camera bundle kit:

dtoverlay=imx519

#64MP Quad-camera bundle kit:

dtoverlay=arducam_64mp

For Raspberry Pi Compute Module 3/4

dtoverlay=vc4-kms-v3d, cma-512

#16MP Quad-camera bundle kit:

dtoverlay=imx519
dtoverlay=imx519, cam0

#64MP Quad-camera bundle kit:

dtoverlay=arducam_64mp
dtoverlay=arducam_64mp, cam0

Step 7. Reboot your Pi

For Raspbian Bullseye users running on Pi Zero ~ Pi 3, please also execute the follows:

1. Open a terminal
2. Run sudo raspi-config
3. Navigate to Advanced Options
4. Enable Glamor graphic acceleration
5. Go back to Advanced Options
6. Navigate to GL Driver
7. Select GL (Full KMS)
8. Reboot your Pi

For more details, please refer to the official forum guide on how to configure the camera module >>

List all cameras:

libcamera-still --list-cameras

Specify camera:

libcamera-still -t 0 --camera 0
libcamera-still -t 0 --camera 1

Note:

These camera modules are exclusively built for the quad-camera adapter HAT for accurate synchronization, they can only be used with the HAT connected to a Pi, connecting them directly to a Raspberry Pi will not work.

Run the Camera Bundle Kit

Using libcamera apps

Preview:

libcamera-still -t 0

Save a test picture after 5 seconds preview:

libcamera-still -t 5000 -o test.jpg

Record video:

For example, record an H.264 10s video with a frame size 1920W × 1080H.

libcamera-vid -t 10000 --width 1920 --height 1080 -o test.h264

For more usage of libcamera apps, please refer to the libcamera command.

Switch Composition Mode

Check I2C node:

[email protected]:~ $ i2cdetect -l
i2c-1	i2c       	bcm2835 ([email protected])          	I2C adapter
i2c-22	i2c       	bcm2835 ([email protected])          	I2C adapter
i2c-0	i2c       	i2c-22-mux (chan_id 0)          	I2C adapter
i2c-10	i2c       	i2c-22-mux (chan_id 1)          	I2C adapter

Detect I2C signal:

Take i2c 10 node as an example

image 3

Select the Channel:

aa82b8ce15d49117b3d46d0b3c8a57cfa047d8de_2_690x380

Example:

# Set to single channel 0
i2cset -y 10 0x24 0x24 0x02
# Set to single channel 1
i2cset -y 10 0x24 0x24 0x12
# Set to single channel 2
i2cset -y 10 0x24 0x24 0x22
# Set to single channel 3
i2cset -y 10 0x24 0x24 0x32
# Set to double channel (single channel 0 and single channel 1)
i2cset -y 10 0x24 0x24 0x01
# Set to double channel (single channel 2 and single channel 3)
i2cset -y 10 0x24 0x24 0x11
# Set to four in one mode (Default)
i2cset -y 10 0x24 0x24 0x00

Test:

Single-channel test:

#Single channel test
[email protected]:~ $ i2cset -y 10 0x24 0x24 0x02
[email protected]:~ $ libcamera-still -t 0

After setting the channel, you can directly use the libcamera command to capture images.

Dual-channels test:

#Dual channels test
[email protected]:~ $ i2cset -y 10 0x24 0x24 0x01
[email protected]:~ $ libcamera-still -t 0

Notice:

By default, the quad-camera kit works in synchronized 4-channel mode, and Raspberry Pi recognizes the whole kit as one camera.
Any manual focus or camera control adjustments (exposure/gain/white balance/etc.) will also be applied to 4 cameras at the same time.

If you encounter any problems when using the camera, please directly contact [email protected] for help.

Was this article helpful to you? Yes No