Raspberry Pi Camera B0184 lens superglued, intermittent and won't focus on Pi 4B

Bought a UCTRONICS B0184 Raspberry Pi camera for my Pi 4B. Picture quality is honestly way better than the stock camera I had, but I can’t focus it at all. The lens won’t turn no matter what - it honestly looks like it may have been returned by someone else who superglued the threads. On top of that, the camera works intermittently and keeps dropping out. Anyone seen this before?

Let’s split this into two separate issues: the lens and the intermittent connection. First, what OS are you running and have you tried any troubleshooting so far? Also, is the ribbon cable seated fully in both the camera module and the Pi’s CSI connector with the little latch locked down?

I’m running Raspberry Pi OS Bookworm on a Pi 4B. Haven’t really tried anything yet, honestly - this is my first camera module. I checked the ribbon cable just now and reseated it, but it still drops out. As for the lens, it really won’t budge. I can actually see what looks like glue residue around the threads at the base of the lens barrel.

For the lens: don’t force it. If someone glued the threads, cranking on it could crack the barrel or damage the sensor board underneath. If you can see residue, it likely won’t come off safely without damaging something. For the intermittent issue, can you run vcgencmd get_camera a few times - especially right when it drops out - and also check dmesg | grep -i camera for errors?

Ran it. When it’s working, it shows detected=1, supported=1. Then after a bit it goes detected=0 and the preview freezes. dmesg shows repeated messages like ov5647 10-0036: ov5647_read: i2c read failed whenever it drops. Does that point to anything specific?

Those i2c read failures usually point to a connection problem between the camera module and the Pi - so the ribbon cable, the small flex connection on the module itself, or the CSI connector. Does it recover on its own or only after a reboot? Also, what power supply are you running on the Pi 4B?

Sometimes it recovers if I wiggle the ribbon cable, but usually I have to reboot. Power supply is the official 5.1V 3A one. Wiggling the cable at the camera end seems to help for a little while, then it drops again.

If wiggling the cable helps even temporarily, that strongly suggests the camera-side connector or the flex is the weak point. If you have a spare ribbon cable, it’s worth swapping it out and making sure the contacts are clean and the latch is fully pressed down. But honestly, between the glued lens and the dropouts, it sounds like this unit has two separate hardware faults.

I don’t have a spare cable to test with. I’m trying not to force the lens since it’s clearly stuck, but that means it’s permanently out of focus. Between that and the connection dropouts I’m kind of stuck with it as-is.

Here’s where this landed: 1) The lens appears to have adhesive on the threads - I’d leave it alone, forcing it will likely damage the module. 2) The intermittent detected=0 and ov5647 i2c read failures point to a bad connection (ribbon/flex/connector), especially since wiggling temporarily helps. The next step would be testing with a known-good ribbon cable and, if possible, another Pi 4B to isolate whether the fault is on the Pi side or the module side. If the flex on the module itself is the problem, there isn’t much you can safely fix at home.