Arducam IMX519 NOIR camera not working on Raspberry Pi, multiple Pis and cables tried

Hi, hoping someone here can help. I picked up an Arducam IMX519 fixed focus camera module (NOIR), product code B0386, and I can’t get it to work on a Raspberry Pi at all.

Stuff I’ve already tried:

  • Several different Raspberry Pis
  • Several different ribbon cables, including ones that work fine with my other cameras, and the cable that came with the camera

Nothing shows up. The camera doesn’t seem to be detected at all. Any ideas?

Hi, sorry to hear that. Before we go further I need some info about your setup. Can you reboot the Pi and run the diagnostic tool below?

wget -O arducam-camera-bug-report https://github.com/ketai-dhr/arducam-camera-bug-report/releases/download/tools/arducam-camera-bug-report
chmod +x ./arducam-camera-bug-report
./arducam-camera-bug-report

This will output an arducam-bug-report.txt in the current directory. Please attach that file here so we can look at how the Pi is configured.

Ran the tool, and also raspistill -v. Honestly I don’t think the camera is being electrically initialized at all.

libcamera just reports no cameras available:

[2:14:41.550704913] [1173]  INFO Camera camera_manager.cpp:293 libcamera v0.0.1+54-d528119f
ERROR: *** no cameras available ***

And the bug report was generated:

Bug report generated to arducam-bug-report.txt
Please upload this file when you contact [email protected]

raspistill says it’s not detected:

mmal: Cannot read camera info, keeping the defaults for OV5647
"raspistill" Camera App (commit )
Camera Name OV5647
Width 2592, Height 1944, filename (null)
Using camera 0, sensor mode 0
GPS output Disabled
Quality 85, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Time delay 5000, Timelapse 0
Link to latest frame enabled  no
Full resolution preview No
Capture method : Single capture
Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly

Host is a Raspberry Pi (hostname raspberrypi, user alias), libcamera v0.0.1+54-d528119f.

Thanks, that helps. What OS is the Pi running — Bullseye or Buster? The driver setup for the IMX519 depends on which one you’re on.

Please burn Raspberry Pi OS Bullseye and follow the setup guide here:
https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/Quick-Start-Guide/#imx519hawkeye-64mp-cameras

Let me know which OS you’re on.

I attached the requested information.

Thanks, I can see the problem now. You only need the imx519 driver. It looks like you also installed the 64mp camera driver, and that overwrites the imx519 entry in the config file — that’s why the camera isn’t working.

Please do this:

  1. Run sudo nano /boot/config.txt and delete the line dtoverlay=arducam_64mp under [all] at the bottom of the file.
  2. Then reinstall the correct driver:
./install_pivariety_pkgs.sh -p imx519_kernel_driver_low_speed
  1. Reboot the Pi for it to take effect.

Only the imx519 driver should be installed — having both is what broke it.

OK, big improvement. I rebuilt the Pi system and fully updated it, then installed the driver you said, and the camera is now reading — that made a considerable difference. But now I’m getting a memory error when I try to save a picture. Please see attached.

Good progress. Before we dig into the memory error I need the bug report again. Reboot and run:

wget -O arducam-camera-bug-report https://github.com/ketai-dhr/arducam-camera-bug-report/releases/download/tools/arducam-camera-bug-report
chmod +x ./arducam-camera-bug-report
./arducam-camera-bug-report

This will output arducam-bug-report.txt in the current directory. Please send that file as an attachment.

Alright, will do.

No rush — I can actually see there’s already an arducam-bug-report.txt sitting on the path ~. Just send that one over so I can read your Pi’s config and continue.

Here it is.

Got it, thanks. This one comes down to the hardware. The Pi Zero can’t handle the big resolution, so capturing at high resolution runs out of memory.

Try lowering the viewfinder/preview resolution:

libcamera-still -t 0 --viewfinder-width 1920 --viewfinder-height 1080

That should keep you within what the Pi 0 can handle while capturing.

Hmm, still running into trouble — looks like it has something to do with memory allocation.