OV5647 camera not detected on Raspberry Pi 4 8GB - no cameras available error

Hey, hoping someone can help me out. I bought an Arducam OV5647 camera for my Raspberry Pi 4 (8GB, 64-bit Raspios Bullseye) and I have NEVER gotten it to work. I followed the paper that came with the camera. Every time I try to use it I get:

*** no cameras available ***

I’ve tried it on 4 different Pis now and all of them say the same thing - not detected. I’ve tried everything on that paper and some stuff I found online. Totally stuck here.

Hi, sorry you’re dealing with this. Let’s go step by step and grab some info so we can see what your system actually sees.

Can you run these one at a time and paste the output?

uname -a
cat /etc/os-release
cat /proc/meminfo
cat /boot/config.txt

Then the system log:
dmesg

And if possible a clear photo of how the camera is connected (both ends of the ribbon cable) would help a lot.

Ok here’s what I got.

vcgencmd get_camera
supported=0 detected=0, libcamera interfaces=0

And then running the camera:

libcamera-still -t 0
Made X/EGL preview window
[0:01:50.060163995] [1505] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
[0:01:50.077376048] [1506] ERROR CameraSensor camera_sensor.cpp:591 ‘ov5647 10-0036’: Camera sensor does not support test pattern modes.
[0:01:50.101355208] [1506] INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media2 and ISP device /dev/media0
[0:01:50.102255538] [1505] INFO Camera camera.cpp:1029 configuring streams: (0) 1296x972-YUV420
[0:01:50.102763925] [1506] INFO RPI raspberrypi.cpp:760 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:01:51.746255648] [1506] WARN V4L2 v4l2_videodevice.cpp:1952 /dev/video0[16:cap]: Dequeue timer of 1520000.00us has expired!
[0:01:51.746407407] [1506] ERROR RPI raspberrypi.cpp:1794 Unicam has timed out!
[0:01:51.746447296] [1506] ERROR RPI raspberrypi.cpp:1795 Please check that your camera sensor connector is attached securely.
[0:01:51.746521647] [1506] ERROR RPI raspberrypi.cpp:1796 Alternatively, try another cable and/or sensor.

dmesg is way too long to send, it’s huge. I put the system info in screenshots though: Screenshot - 53822d979b383e4d201a10c2fe056cbe - Gyazo , Screenshot - c162ab1ac9ebbebd2e2cb36ca8577fe7 - Gyazo , Screenshot - 223cb10d620d4135e755570b2c5941ea - Gyazo

Thanks, that’s actually useful. Two things stand out.

  1. vcgencmd get_camera is a legacy command. It’s built for the old raspistill/raspivid stack. On Bullseye with a Pi 4 you should be using the libcamera apps (libcamera-still, libcamera-hello), so that output being 0 doesn’t mean much on its own.

  2. The libcamera-still log is more telling. It actually DID register the sensor at /base/soc/i2c0mux/i2c@1/ov5647@36 on Unicam /dev/media2 and ISP /dev/media0 - so the sensor was detected. But right after, it says ‘Unicam has timed out’ and no frames come through.

That usually means either a cable/connector problem or a driver conflict. Can you paste your /boot/config.txt? I want to check what overlays are set.

Here’s the config.txt: Screenshot - 2e06bb245452a5ad871c0d3d57a753b1 - Gyazo

I do see dtoverlay=imx519 in there, is that bad? I had a different camera before this one.

That’s the problem. dtoverlay=imx519 is for a completely different sensor (IMX519), not your OV5647. That leftover overlay will conflict and stop the OV5647 driver from doing its job.

Do this:

sudo nano /boot/config.txt

  1. Find the line dtoverlay=imx519 and comment it out (put a # in front of it).
  2. Then add this under the [all] section:

dtoverlay=ov5647,clock-frequency=25000000

Save, reboot, and test with:
libcamera-still -t 0

Ok I made both changes and rebooted. Still the same thing:

supported=0 detected=0, libcamera interfaces=0
ERROR: *** no cameras available ***

And libcamera-still still gives me the Unicam timeout stuff. Ugh. Here’s the new file: Screenshot - 1fea2e1a08aad4690b1a1a3071958b6b - Gyazo

Alright, let’s rule out the software side fully.

Run dmesg and paste it or screenshot it so we can confirm the overlays applied without errors after the reboot.

Also, let’s start from a clean slate. Re-burn the system image and test right away before changing anything else. Please use this one:

https://downloads.raspberrypi.org/raspios_full_arm64/images/raspios_full_arm64-2022-04-07/2022-04-04-raspios-bullseye-arm64-full.img.xz

Flash it, boot, and try libcamera directly. If you can, reseat the ribbon cable at both ends first too.

Re-burned the image and tried again - same result. I also unplugged the ribbon cable and reseated the connector on the sensor a few times. No change, still the Unicam timeout and no data. Here’s another shot of the hardware connected: https://cdn.arducam.com/forum/fb9b090e813d628b7c89848b4d138c4c/received_1072510910311129.jpeg

Ok. I grabbed the same OV5647 and tested it on a Pi4B and a Pi 3, including on the 64-bit Bullseye image, and it works normally on all of them. So the driver/config path is fine when the hardware cooperates.

Given what we’re seeing - the sensor registers (ov5647@36 shows up) but then ‘Unicam has timed out’ and no frames ever come through, even after reseating the cable and re-burning from scratch - this really points at a problem with the camera module itself. So we’ll arrange a replacement for you. I’ve sent you the details through private message - please check there.

Appreciate it. Quick question before that - could I upgrade to something higher res instead? I was looking at the 64MP / 65MP cameras, is that an option?

Here’s where we landed on this one:

  • The OV5647 was detected on the bus (registered as /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam /dev/media2, ISP /dev/media0) but the data path failed - ‘Unicam has timed out’, ‘no cameras available’. That stayed the same after reseating the sensor connector and fully re-burning the image, which is why we’re treating it as a faulty module and arranging a replacement.

  • On Bullseye/Pi4 the legacy vcgencmd get_camera (and raspistill/raspivid) tooling isn’t meaningful - use the libcamera apps like libcamera-still and libcamera-hello instead.

  • A leftover dtoverlay=imx519 in /boot/config.txt will conflict with an OV5647. Comment it out, then add dtoverlay=ov5647,clock-frequency=25000000 under the [all] section.

  • ‘Camera sensor does not support test pattern modes’ together with ‘Unicam has timed out’ / ‘no cameras available’ means the sensor is detected but the data path fails - reseat the connector/cable first, and replace if it still won’t stream.

For order, return, or upgrade questions (including the 64MP/65MP option), email [email protected] and they’ll sort it out with you.

Docs: https://www.arducam.com/documents/ | Forums: https://www.arducam.com/forums/