IMX519 Cannot Set Manual Focus Mode

I tried setting manual focus mode and it is not working.

I tried:
libcamera-still -t 0 --autofocus-mode manual

In a separate command prompt, I did:
cd IMX519_Drive/opencam-V4L2-Driver/focus
sudo python3 FocuserExample.py -d /dev/v4l-subdev

It seems the focus is still fixed to autofocus mode and I am unsure if there is some setting I have on that I should disable in order to properly use the FocuserExample.py

Hi,
Oh, you followed an out-of-date guide for the manual focus mode of imx519. To some extent, it would not work as expected for now.
You can try the steps outlined in the link below.
https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/Libcamera-User-Guide/#for-arducam-16mp64mp-autofocus-camera

I went to the website and it still had the same instructions under For Arducam 16MP/64MP Autofocus camera:
libcamera-still -t 0 --autofocus-mode manual

Am I supposed to use the FocuserExample.py to adjust the focus? On the instructions , it said that I’m supposed to use keyboard buttons to adjust the focus, but I’m not sure what buttons to press. I want to be able to adjust the focus of the camera and set it as the default focus number for future imaging.

Hi,
You need to run this command.

libcamera-still -t 0 --autofocus-mode manual -k

image

Here is a g-drive link to my output photo–I cannot upload a photo directly onto Arducam’s forums (it keeps throwing an error). I now have the camera definitely out of focus because it is in manual mode. How do I adjust the focus now? Is there a keyboard button I have to press to do this or do I have to enter a command in the command prompt?

Hi @Hollywood
Please refer to the link below.
Here you go. Manual_focus_guide.mp4 - Google Drive

1 Like

You need to tap the A/D/F keys to control the lensposition.

1 Like