I’ve got an Arducam B0399 64MP Hawkeye camera connected to a Raspberry Pi 3, and every image I take comes out blurry. I’ve tried a bunch of autofocus and manual focus settings, but they all produce the exact same level of blurriness — nothing seems to change. I’ve been following the Arducam website instructions for the 64MP Hawkeye, and honestly the camera has never worked properly since I got it.
Sorry you’re hitting this. Can you run the arducam-camera-bug-report tool and PM me the resulting file? That’ll give me a clearer picture of your driver and OS setup. Also, which OS image and kernel are you running on the Pi 3?
Sure, I’ll generate the bug report and send it over. For the environment: it’s a Raspberry Pi 3, and I’m following the Arducam quick-start guide for the 64MP Hawkeye. I’ve already tried different autofocus and manual focus settings and checked the software settings, but every shot looks identically blurry.
Thanks for the report. Before we dig further — have you installed the 64MP camera driver? On the quick-start guide there’s a marked command for the Arducam Pi Hawk Eye 64MP cameras. A missing or incorrectly installed 64MP driver is a common cause of this kind of blurriness. Please follow the guide and run the marked driver install command:
https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/Quick-Start-Guide/#arducam-pi-hawk-eye-64mp-cameras
Okay, after installing the 64MP driver, manual focus now works — I get a focused image with:
libcamera-jpeg -v 1 -t 1 -n --autofocus-mode manual --lens-position 5.7 -o 64_image.jpg
But autofocus still comes out blurry:
libcamera-jpeg -v 1 -t 1 -n -o 64_image.jpg
My OS is: Linux pi3-home-wx 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
One thing — I originally skipped the driver install because the website note said ‘Before Raspberry Pi Bullseye OS 6.1.21’ and my OS is already 6.1.21. Also, do I need something like -t 2000 to give autofocus a couple of seconds to lock?
Good progress — manual focus working tells us the sensor and driver are basically fine. The blurry autofocus is down to PDAF compatibility: the 64MP driver still needs to be installed via that marked command even on kernel 6.1.21 (that website note is easy to misread). Now that the driver is in, autofocus just needs more time to lock. Try giving it around 5 seconds, for example:
libcamera-jpeg -t 5000 -n -o 64_image.jpg
Thanks. I’ve also been trying to get this same camera working on a Raspberry Pi 5 now, and no luck there either. I’ve PM’d the bug report file and a photo of the cable connection.
I checked your bug report and everything looks fine on the driver side. For the Pi 5 though, Bullseye OS won’t be detected at all — you need Bookworm. Flash a fresh Bookworm OS onto an SD card and then configure the Pi using the quick-start guide here:
https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/Quick-Start-Guide/#arducam-pi-hawk-eye-64mp-cameras
Flashed Bookworm on the Pi 5. Here are the OS and kernel details:
cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux 12 (bookworm)”
NAME=“Debian GNU/Linux”
VERSION_ID=“12”
VERSION=“12 (bookworm)”
VERSION_CODENAME=bookworm
ID=debian
HOME_URL=“https://www.debian.org/”
SUPPORT_URL=“Debian -- User Support”
BUG_REPORT_URL=“https://bugs.debian.org/”
uname -a
Linux Pi5Cam 6.6.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux
I’ve also posted a screenshot with additional OS info.
Thanks. To narrow this down, can you send me pictures of the hardware connection on the Pi 5 and a fresh bug-report file? Please reboot, then run:
wget -O arducam-camera-bug-report https://github.com/Dion4cen/arducam-camera-bug-report/releases/download/Tool/arducam-camera-bug-report
chmod +x ./arducam-camera-bug-report
./arducam-camera-bug-report
That writes arducam-bug-report.txt in the current directory — PM it over along with the photos.
I actually already sent that in my first email — do you want me to send it again?
Please check the screenshot I’ve PM’d you…
Okay, I’ve re-sent the bug report file and added close-up cable connection photos (Pi5_Cam64_2.jpg and Pi5_Cam64MP_1.jpg).
Thanks, we’re getting closer to the answer. This looks like a libcamera IPA / libcamera apps issue on the Pi 5 setup. Try one of these two methods:
Method 1 — I’ve PM’d you the libcamera IPA package. Once you have it:
sudo dpkg -i libcamera-ipa_0.2.0+rpt20240227-1_arm64.deb
libcamera-still -t 0
Method 2 — install the pivariety packages:
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 libcamera_dev
./install_pivariety_pkgs.sh -p libcamera_apps
libcamera-still -t 0
Method 1 worked on the Pi 5! Captures are now coming out at 8000x6000. For reference, on the Pi 3 I was only getting around 16MP. I’m thinking of moving the 64MP camera over to a Raspberry Pi 4 (4GB) — what’s the right process to install all the software and drivers there?
Glad Method 1 sorted it — full 8000x6000 (64MP) on the Pi 5 is what we expect; the Pi 3 was capping out around 16MP. For the Raspberry Pi 4, follow the software guide for the 64MP camera here:
https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/Quick-Start-Guide/#software-guide-for-64mp-camera
It splits the steps between Bullseye and Bookworm OS, so pick the section that matches what you flash on the Pi 4.