Arducam not detected

  1. Where did you get the camera module(s)?

  2. Model number of the product(s)?

  3. What hardware/platform were you working on?
    Arducam IMX316 ToF, RP4, Ubuntu 20.04 (focal), ros2 galactic.

  4. Instructions you have followed. (link/manual/etc.)

https://docs.arducam.com/Raspberry-Pi-Camera/Tof-camera/Getting-Started/

  1. Problems you were having?
    after making sure that the physical connection is correct i followed the instructions in the Getting-Started manual :
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    Step 1. Pull the repository.

git clone GitHub - ArduCAM/Arducam_tof_camera
Step 2. Change the directory to Arducam_tof_camera

cd Arducam_tof_camera
Step 3. Installation (Driver, Dependencies, SDK, OpenCV)

./Install_dependencies.sh
When you see the reboot prompt, enter y. Raspberry Pi will automatically reboot.

Step 4. Compile & run

./compile.sh
Once it’s successfully compiled, live camera previews will automatically pop up.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

the problem is in step 4:
ubuntu@pi25:~/Arducam_tof_camera$ sudo ./compile.sh
– Configuring done
– Generating done
– Build files have been written to: /home/ubuntu/Arducam_tof_camera/example/build
[ 20%] Built target test_c
[ 40%] Built target preview_usb
[ 60%] Built target capture_raw
[ 80%] Built target select_video_preview
[100%] Built target preview_depth
open WARNING Could not open device node /dev/video0. Please check for permissions.
initialization failed

i also cant see my /dev/video0 when i run $ls /dev/video*

  1. The dmesg log from your hardware?
    the command &dmesg | grep -E “imx316|arducam” shows nothing.
  2. Troubleshooting attempts you’ve made?
    double check physical connection, checking camera detection on ubuntu 22.04
  3. What help do you need?
    how can i detect my Arducam ToF camera with my current hardware and software?

Thanks

On Ubuntu, first do: ls /boot/firmware/overlays/imx*
On Raspian, the path is ls /boot/overlays/imx*

If your overlay driver is not there - you’ll need to find/build an imx316.dtbo

I note that the rpi libcamera repo does not list it:

Once you have your driver file, you’ll need to enable it in your /boot/[firmware/]config.txt file:
dtoverlay=imx316