Manual

QUICK START GUIDE
Pivariety Low Light Camera
Module for Raspberry Pi
(SKU: B0333)
2MP IMX462
SPECS
Image Sensor 2MP IMX462
Max. Resoluon 1920H×1080V
Pixel Size 2.9um x 2.9um
Opcal Format 1/2.8”
Mount: M16
Lens Spec
Focal length: 4mm±5%
F.NO: 0.95±5%
FOV: 92.23deg (H)
Minimum Illuminaon 0.01Lux
IR Sensivity
Integral IR lter, visible light
only
Frame Rate Adjustable, 5-60fps@1080P
Sensor Output Format RAW10
ISP Output Format
Output image format of
JPG, YUV420, RAW, DNG;
output video format of
MJPEG, H.264
Interface Type 2-Lane MIPI
Board Size 38mm×38mm
View the Status of Driver and Camera
It will display arducam-pivariety if driver installed success-
fully and rmware version if the camera can be detected.
The display should be probe failed if the camera cant be
detected, you might have to check the ribbon connecon,
then reboot the Raspberry Pi.
View the Video Node
The Pivariety camera modules are emulated as the stand-
ard video device under /dev/video* node, so you can use
the ls command for lisng the contents in the /dev folder.
Since the camera module is V4L2 compliant, you can use
the V4l2 controls to list the supported color space, resolu-
ons, and frame rates.
NOTE: Although V4L2 interface is supported, only RAW
format images can be obtained, without ISP support.
3. Official Libcamera App Installation
dmesg | grep arducam
v4l2-ctl --list-formats-ext
ls /dev/video* -l
./install_pivariety_pkgs.sh -p libcamera_dev
./install_pivariety_pkgs.sh -p libcamera_apps
1. Cannot Allocate Memory
Edit /boot/cmdline.txt and add cma=400M at the end
More details: hps://lists.libcamera.org/pipermail/
libcamera-devel/2020-December/015838.html
2. The Image Displays Color Dots
Add code --denoise cdn_o at the end of command
./libcamera-sll -t 5000 -o test.jpg --denoise cdn_o
[3:45:35.833744413] [6019] INFO RPI raspberrypi.cpp:611 Sensor: /
base/soc/i2c0mux/i2c@1/arducam@0c – Selected mode:
5344×4012-pRAA
[3:45:35.948442507] [6019] ERROR V4L2
v4l2_videodevice.cpp:1126 /dev/video14[17:cap]: Unable to request
4 buers: Cannot allocate memory
[3:45:35.948551358] [6019] ERROR RPI raspberrypi.cpp:808 Failed to
allocate buers
ERROR: *** failed to start camera ***
TROUBLESHOOT
INTRODUCTION
About Arducam
Arducam has been a professional designer and
manufacturer of SPI, MIPI, DVP and USB cameras
since 2012. We also oer customized turnkey
design and manufacturing soluon services for
customers who want their products to be unique.
About Pivariety Camera
Arducam Pivariety is a Raspberry Pi camera solu-
on to take the advantage of using its hardware
ISP funcons. Using Arducam Pivariety camera
modules, users can get beer performance and a
wider variety of camera, lens opons. For a long
me, Raspberry Pi users are limited to use the
closed-source ocial supported camera driver and
camera modules (V1/V2/HQ).
Now Arducam made it possible to provide well-
tuned ISP for Pivariety camera modules with Auto
Exposure, Auto White Balance, Auto Gain Control,
Lens Shading Correcon, etc.This series of cameras
use the libcamera framework, they can't be sup-
ported by Raspisll, and the way to access the
camera is libcamera SDK(for C++)/libcamera-sll/
libcamera-vid/Gstreamer.
If you want to know more about other models of
Pivariety Camera, please visit: hps://
www.arducam.com/docs/cameras-for-raspberry-
pi/pivariety/
1. Driver Installation
press y to reboot
NOTE: The kernel driver installaon only supported
by the latest version 5.10. For other kernel versions,
please go to our Doc page: hps://
www.arducam.com/docs/cameras-for-raspberry-pi/
pivariety/how-to-install-kernel-driver-for-pivariety-
camera/#2-how-to-build-raspberry-pi-kernel-driver-
for-arducam-pivariety-camera
You can also visit this doc page to refer to the hard-
ware connecon: hps://www.arducam.com/docs/
cameras-for-raspberry-pi/pivariety/2mp-imx462-
pivariety-low-light-camera-module/
2. Test the Driver and Camera
Aer youve nished the hardware assembly and driver
installaon, you can test whether the camera is detected
and working.
wget -O install_pivariety_pkgs.sh hps://github.com/
ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/
download/install_script/install_pivariety_pkgs.sh
SOFTWARE
./install_pivariety_pkgs.sh -p kernel_driver
chmod +x install_pivariety_pkgs.sh
4. Capture Image and Record Video
Capture image
For example, preview for 5s and save the image named
test.jpg
Record video
For example, record a H.264 10s video with the frame size
1920W × 1080H
NOTE: H.264 format only supports 1920×1080 and below
resoluon.
Plugin gstreamer installation
Install gstreamer
Preview
libcamera-sll -t 5000 -o test.jpg
libcamera-vid -t 10000 --width 1920 --height 1080 -o
test.h264
sudo apt update
sudo apt install -y gstreamer1.0-tools
gst-launch-1.0 libcamerasrc ! 'video/x-
raw,width=1920,height=1080' ! videoconvert ! autovide-
osink
More details: hps://github.com/raspberrypi/libcamera-
apps/issues/19
3. Failed to Install the Driver
Please check the kernel version, we only provide the driver
for the latest ocial kernel version image when this Pivarie-
ty camera released.
Note: If you want to compile the kernel driver by yourself,
please refer to Doc page: https://www.arducam.com/
docs/cameras-for-raspberry-pi/pivariety/how-to-install-
kernel-driver-for-pivariety-camera/
4. Failed to import fd 18
If you nd the same error, you may make the wrong
selecon about the graphics driver. Please follow Ar-
ducam Doc page to select the correct graphics driver.
5. Switch to the native camera
(raspistill etc.)
Edit the file of /boot/config.txt, make dtover-
lay=arducam change to # dtoverlay=arducam
Aer the modicaon is completed, you need to reboot
the Raspberry Pi.
If you need our help or want to customize other models
of Pi cameras, feel free to contact us.
Email: support@arducam.com
Website: www.arducam.com
Skype: Arducam
sudo reboot
CONTACT US
terminate called aer throwing an instance of 'std : : runme_error'
what( ): failed to import fd 18
Aborted

Summary of content (1 pages)