- Hardware connection
- Software operation
- Access the camera with libcamera
- How to use Gstreamer, OpenCV to access the camera
A 64-megapixel ultra-high resolution autofocus camera module exclusively built for the latest and future generations of Raspberry Pis.
By bringing a sensor inside modern-day flagship phones to Raspberry Pi. you can take DSLR like still images at the maximum resolution of 9152 x 6944. And with an autofocus lens, the ePTZ, and the upcoming continuous-autofocus features.
You now get more horsepower to build more applications, to cover more industries, to unlock more fields, at a much lower cost.
For seasoned makers, Pi Hawk-eye is designed to ensure you a smooth yograde, it is compatible with everything you already have: the v1/v2 form-factor, the MIPI CSI-2 connection, the latest libcamera software, the standard tripod mount, etc.
Even if you are using Raspberry Pi for the first time, you can follow the hands-on guide without hassle.
|Sensor:||Sony back-illuminated sensor 64 megapixels 0.8 µm x 0.8 µm pixel size support 2×2 binning to 1.6µm Super Pixel. 9.25 mm diagonal (Type 1/1.7″ )|
|Optical Size:||Type 1/1.7”9.25mm Diagonal(7.4×5.55cm)|
|Shutter Type:||Rolling Shutter|
|Max Sensor Resolution:||9152X6944|
|Video Mode:(on Raspberry Pi)||1080p30,720p60 and 640X480p60/90|
|Supported Platform:(Full Resolution-64MP)||Pi 4B/CM4|
|Supported Platform:(Superpixel Resolution-16MP)||Pi 2/3/CM3/Zero W/Zero 2W|
|Color Filter:||Quad Bayer Coding(QBC)|
|Lens:||Autofocus, f/1.8 EFL: 5.1 FoV: 84°|
|IR cut filter:||Integrated|
|Enclosure (optional):||ABS, also compatible with camera module v1 & v2.|
|Ribbon Cable Length:||150mm|
The arducam 64MP cameras can only get maximum resolution and video streaming on Pi4 and CM4 platforms. The resolution and video streaming of the camera will be limited on other Raspberry Pi platforms.
For Pi 4
For Pi zero
Please make sure your Raspberry Pi OS is downloaded from official sources:
– Raspberry Pi Bullseye >
How to install the driver
You can use our auto-install script to install the driver for arducam 64MP camera:
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 ./install_pivariety_pkgs.sh -p 64mp_pi_hawk_eye_kernel_driver
After installing the driver, you will see a message telling you the driver has been installed correctly.
- Detect the driver
dmesg | grep arducam
If you can see the arducam 64mp has been found, then the driver installed successfully.
- Detect the camera
If you can see the /dev/video0, then the camera has been detected.
Configure the buffer
For Pi 4:
sudo nano /boot/config.txt #find the line [pi4] #manually add dtoverlay=vc4-kms-v3d,cma-512 under it, like this: [pi4] # Run as fast as firmware / board allows arm_boost=1 dtoverlay=vc4-kms-v3d,cma-512
For other Pi:
sudo nano /boot/config.txt #find the line [all] #manually add dtoverlay=vc4-kms-v3d,cma-512 under it, like this: [all] # Run as fast as firmware / board allows arm_boost=1 dtoverlay=vc4-kms-v3d,cma-512
How to install libcamera
You need to install our libcamera dev to use some additional functions such as autofocus, continue autofocus, and so on.
wget -O https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh chmod +x install_pivariety_pkgs.sh ./install_pivariety_pkgs.sh -p libcamera_dev ./install_pivariety_pkgs.sh -p libcamera_apps
Access the camera with libcamera
libcamera-still -t 0
List all cameras:
Save a jpg file after 5s preview:
libcamera-still -t 5000 -o 64mp.jpg
Autofocus(example as 2312*1736 resolution):
libcamera-still -t 0 --viewfinder-width 2312 --viewfinder-height 1736 --autofocus
Continue autofocus(example as 2312*1736 resolution):
libcamera-still -t 0 --viewfinder-width 2312 --viewfinder-height 1736 --continue-autofocus
Manual focus adjustment:
You need to open the camera with the command using the preview above, and then use this command.
Press the Up/Down Arrow for focus adjustment, press “ctrl + c” to save, or “r” to reset.
git clone https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver.git cd Arducam-Pivariety-V4L2-Driver/focus python3 FocuserExample.py -d /dev/v4l-subdev1
While you are trying manual focus control, you can use –focus-step [number] to configure
how many steps the motor in the lens should move when the Up/Down key is pressed.
By default, it’s set to 50, and you can change it to any value between 1 ~ 1023.
python3 FocuserExample.py -d /dev/v4l-subdev1 --focus-step 10
For more options of using libcamera, please refer to:
How to use Gstreamer, OpenCV to access the camera
You can refer to the following link for more options:
If you encounter any problems, please contact [email protected] for more help.