-
Where did you get the camera module(s)? uctronics
-
Model number of the product(s)? UC-517 revD.3
-
What hardware/platform were you working on? Raspberry Pi CM4 running 32bit Bullseye. CM4 mounted to Compute Module IO board. Camera connected to CM1 camera lane. I think the i2c device appear on i2c bus 10 and be position 10a based on reviewing i2cdetect when camera plugged in or out.
-
Instructions you have followed. (link/manual/etc.)
For original installation
For 12MP IMX477 Motorized Focus Camera - Arducam Wiki
To run the python demo script
https://docs.arducam.com/Raspberry-Pi-Camera/Motorized-Focus-Camera/quick-start/#focus-control
- Problems you were having?
When I run the following autofocus or single manual focus position I have no problems, the camer is working and focusing
libcamera-still -t 0 --autofocus-mode continuous --tuning-file /usr/share/libcamera/ipa/rpi/vc4/imx477_af.json
libcamera-still -t 0 --autofocus-mode manual --lens-position 5 --tuning-file /usr/share/libcamera/ipa/rpi/vc4/imx477_af.json
But when I try to control position with the keyboard (focus on or out) on demand it does not move the lens. The image appears, but it is retaining whatever position the lens was last in
libcamera-still -t 0 --autofocus-mode manual -k --tuning-file /usr/share/libcamera/ipa/rpi/vc4/imx477_af.json
When I try to run the Python script to move the lens with up/down keys it is also not working. The image comes up on the screens, the arrows are working I can see the numbers incrementing or decreasing by 50, but no focus adjustment. Also when I take the picture the shades or red appear to be missing when taken through the Python script, but are normal when command line commands are used.
-
The dmesg log from your hardware?
-
Troubleshooting attempts you’ve made?
-
What help do you need?
Please let me know some things I can try. I have tried modifying various aspects of the python script but nothing seems to work so it is obviously not correct.