Problems getting IMX327 low light/starvis camera working on raspberry pi zero 2

Trying a few things thinking that my rpiz2w problem is either hardware (i2c), cable, or csi connector. Again, my camera works great on my rpi4 but not on my rpiz2w. And after you asked me about other cameras, am noticing that my autofocus on my 16mp arducam doens’t work but once did. So, this seems like I/O.

pi@raspberrypi:~ $ vcgencmd get_camera
supported=0 detected=0, libcamera interfaces=0

And

pi@raspberrypi:~ $ i2cdetect 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0.
I will probe address range 0x08-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Am going to try switching back to Arducam 16mp autofocus to see if I can get the AF working again. Anything else to try?

@Edward I’m indeed stuck. I think I have now confirmed my autofocus doesn’t work on my ardcucam 16mp but it did earlier. I did this to try to see if I’m having some i2c problems on this rpiz2. Have also tried reloading drivers for autofocus following this guide. I note that the name of the low speed driver seems to have changed since this quick start was published.

Quick Start - Arducam Wiki

I installed the one I marked with ** plus libcamera and libcamera-apps

Supported packages:
       ** imx519_kernel_driver_low_speed
        imx708_kernel_driver
        libcamera
        64mp_pi_hawk_eye_kernel_driver
        libcamera_apps
        imx708_b0311_kernel_driver
        libcamera_dev
        imx519_kernel_driver
        kernel_driver

I’m now going to try to the 16mp on the rpi4 to see if autofocus works on that one.

@lprevost

This operation is correct.

Autofocus cannot be used. Maybe the driver failed to load, the device tree is incorrect, or there is a problem with the motor itself.

Yes. You can try it on pi4 first to confirm whether there is a problem with the camera itself.

@edward, jumping back on this. I’ve now confirmed by rpi2z with an arducam 16mp. My earlier problem was indeed a cable. Have confirmed operation including AF so I don’t see to have an I/O problems as suspected earlier. I am now going to try to get my Starvis low light working. I have the IMX327 version and have also received a B044 version which is unopened. Just to summarize:

  • RPIZ2 confirmed works with Arducam 16mp
  • Starvis IMX327 works with RPI4 but not with rpiz2 (v4l2 errors)

One thing that has been nagging me is the quick start shows clearly an “adapter board.”
https://docs.arducam.com/Raspberry-Pi-Camera/Low-Light/quick-start/

I do not have an adapter board. My starvis camera has a single PCB with UC-788 Rev. B on the back of the PCB. I don’t see any guides similar to the other cameras that show hardware/cable setup for RPIZero2.

Here is my error:

Made X/EGL preview window
[0:06:04.879057385] [1199] e[1;32m INFO e[1;37mCamera e[1;34mcamera_manager.cpp:299 e[0mlibcamera v0.0.0+4226-8689dd6b
[0:06:04.956695556] [1202] e[1;32m INFO e[1;37mRPI e[1;34mraspberrypi.cpp:1485 e[0mRegistered camera /base/soc/i2c0mux/i2c@1/imx290@1a to Unicam device /dev/media3 and ISP device /dev/media1
[0:06:04.959795578] [1199] e[1;32m INFO e[1;37mCamera e[1;34mcamera.cpp:1028 e[0mconfiguring streams: (0) 960x540-YUV420
[0:06:04.960519774] [1202] e[1;32m INFO e[1;37mRPI e[1;34mraspberrypi.cpp:851 e[0mSensor: /base/soc/i2c0mux/i2c@1/imx290@1a - Selected sensor format: 1280x720-SRGGB12_1X12 - Selected unicam format: 1280x720-pRCC
[0:06:05.022629542] [1202] e[1;31mERROR e[1;37mV4L2 e[1;34mv4l2_videodevice.cpp:1906 e[0;32m/dev/video0[17:cap]: e[0mFailed to start streaming: Remote I/O error
ERROR: *** failed to start camera ***

Hardware configuration:
RPIZ2 → ribbon cable (silver pins up to front of pi) ------------------ (silver pins down to backside of camera pcb) > camera

Also, update 8/26 – cannot get B044 version of the low light starvis working either. Either “camera not found” or the same V4L2 errors. Went back to Arducam 16mp and got AF mode errors. reinstalled libcamera-apps and libcamera via your install routine and its now working with overlay = imx519. Cannot seem to get starvis camera working with RPIZero2 in any configuration. And not sure if I should be using pivariety drivers or native pi quick starts.

And, can you point me to correct settings in config.txt? specicifally, I wonder if my dtparam settings are correct with the V4L2 errors.

@Edward any ideas here? I’ve now got a new RPIzero2 and will try this but I now have two low light cameras that do not work – both with the same error code. Arducam autofocus 16mp works great. Can you help me with some things to try here?

Don’t worry about this, if it is a new version, it has been merged into the camera board.

At present, pi4 is still normal, but pi zero 2W cannot work, right?

That is right. And I’m trying to get around to trying it on another new pi zero 2w. But both of my starlight cams seem to produce the same V4L2 errors.