Arducam TOF UC-981 revb preview_depth.py fails to open camera on Raspberry Pi 3B bookworm

Hi everyone, I’m stuck trying to get my Arducam TOF camera working on a Raspberry Pi 3B. Running preview_depth.py keeps failing with:

Failed to open camera. Error code: TOFErrorCode.ArducamSystemError

I’ve followed all the installation instructions with no errors and went through the troubleshooting section. The camera is seated in the CSI port and appears to be powered correctly. One odd thing I noticed: ls /dev/video* only shows video10 and up, no video0 at all.

Setup:

  • TOF camera: UC-981 revb
  • Raspberry Pi 3B, 64-bit bookworm
  • arducam-tof-sdk-dev 0.1.15 arm64
  • Script: preview_depth.py

Any idea what could cause this?

Thanks for the details. Could you send a couple of pictures of the physical setup — one at the Raspberry Pi end and one at the camera end? That will help me check the seating and connection. I’d also like a diagnostic report to dig into this further. After a reboot, please 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 should create an arducam-bug-report.txt file in the current directory. Please attach it here so I can take a look.

Quick update: I set up a clean install of the latest bookworm on a Raspberry Pi 4 instead of the 3B, just to rule out anything specific to that board. Same result though — preview_depth.py still can’t open the camera. I’ve attached the bug report file and a photo of the setup.

Thanks, I’ve gone through the report and the photo. Could you post a picture of the cable connection on the back of the camera board specifically? Also, if you have another 15-15 pin white cable available, it would be worth swapping it in to test. I’m starting to suspect the cable itself — a poor or slightly off connection there would match the symptoms you’re seeing.

That was it. The original cable was the one that came folded up in the Arducam box. I swapped it out and now preview_depth.py runs without any issues — the camera opens and I’m getting a depth preview. Thanks for pointing me toward the cable!

Great to hear it’s working now. So the conclusion is that the 15-15 pin cable was the culprit — either a poor connection or the cable itself was damaged from being folded in the box. If you ever see that ‘Failed to open camera’ / ArducamSystemError again, the cable connection on the back of the camera board is the first thing I’d check.