Hi everyone, I’m stuck with an Arducam IMX477 motorized focus camera on a Raspberry Pi 4B. The camera opens and previews normally, but I2C can’t find the device and the motorized focus doesn’t respond at all. It actually worked before, then it just stopped working one day. I followed the online documentation for setup. Anyone seen this?
Thanks for the report. Let’s start with some basics. Can you post photos of the physical connections - one at the Raspberry Pi end and one at the camera end? Then reboot the Pi and run our bug report tool so I can see the state of the system:
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 will create an arducam-bug-report.txt in the current directory. Please share that file with me.
Attached the connection photos - one from the Pi side, one from the camera side. To restate the symptoms: i2c can’t find the device, the electronic focus doesn’t work, but the camera itself opens normally. It did work at some point before.
Quick clarification: the bug report script has to be executed on the Raspberry Pi itself. It will automatically generate the report file for you. I need that report file to dig into the problem.
Here are the connection images again in case they didn’t come through on my end.
Let’s make sure we get the report generated on the Pi. Please:
- Reboot your device.
- Download the tool:
wget -O arducam-camera-bug-report https://github.com/Dion4cen/arducam-camera-bug-report/releases/download/Tool/arducam-camera-bug-report - Set executable permissions:
chmod +x ./arducam-camera-bug-report - Run it:
./arducam-camera-bug-report
Then send me the arducam-bug-report.txt it produces.
Okay, I re-ran the bug report script in the terminal again. Could you take a look at the output and see if something’s wrong?
Can you tell me the exact command you’re using to drive the focus motor? That will help me narrow down whether it’s the driving method, the I2C detection, or the hardware itself.
I’ve been using the focusing software that was provided on GitHub earlier. It used to work fine, but now it just won’t focus.
That older GitHub method has been deprecated. Please switch to the currently recommended method in the documentation:
Try that and let me know the result.
I tried the Manual Focus commands from that documentation page, and they don’t work either.
Since both the old method and the manual focus commands have failed on your side, I’d like to check the device directly. I’ve sent you the remote support details in a private message - please set it up on the Raspberry Pi.
I’ve sent the remote access ID in a private message, but I haven’t set a password yet.
Got the ID, but I’ll need a password to log in. Please set one for the session and send it to me privately.
Done - I’ve sent you the updated credentials in a private message.
Thanks, I was able to connect. Good news: I tested the motor remotely and it’s working normally. I used these two commands:
Manual focus mode:
libcamera-still -t 0 --autofocus-mode manual -k --tuning-file /usr/share/libcamera/ipa/rpi/vc4/imx477_af.json
Continuous focus mode:
libcamera-still -t 0 --autofocus-mode continuous --tuning-file /usr/share/libcamera/ipa/rpi/vc4/imx477_af.json
Both work, so the motor hardware itself is fine. Please use these commands with the IMX477 autofocus tuning file to control focus.
I’m still having trouble with FocuserExample.py from the GitHub repository. Could you test it for me? Here’s the file and repo:
I’ve also sent new remote access credentials privately.
That ArduCAM/RaspberryPi Motorized_Focus_Camera repository is deprecated and no longer maintained. We don’t invest time in that old example code anymore. For this camera, the only supported way to control the focus motor is the documentation method:
Got it, thanks for clearing that up.
To summarize where we landed: the motor hardware is confirmed working - I verified it remotely using the libcamera-still commands with the imx477_af.json tuning file in both manual and continuous focus modes. The old FocuserExample.py from the ArduCAM/RaspberryPi repo is deprecated, so don’t rely on it. Please stick to the documentation method and the two libcamera-still commands I posted. If the manual focus steps on the docs page still fail for you, run those exact commands and share the output and I’ll take another look.