Imx519 with native libcamera tools and direct i2c focus motor

  1. Where did you get the camera module(s)?
    uctronic

  2. Model number of the product(s)?
    imx519

  3. What hardware/platform were you working on?
    raspi bullseye

  4. Instructions you have followed. (link/manual/etc.)
    not installed any arducam apps/driver

  5. Problems you were having?
    i2c focus motor does not work with imx519 autofocus camera

  6. The dmesg log from your hardware?

  7. Troubleshooting attempts you’ve made?

  8. What help do you need?
    using native libcamera, the imx519 sensor works fine and gives images.
    the autofocus implementation is not yet there, so I would like to use custom python scripts for autofocus like here for jetson: Jetson_IMX519_Focus_Example/Focuser.py at master · ArduCAM/Jetson_IMX519_Focus_Example · GitHub

now I tried every available i2c bus on the rapsberry pi 4 (0,10,11,20,21) but the motor is not detected nor does it move.
i2cwrite gives back error write on bus.

Why doesn’t it work? Is there anything I miss or is it not possible to access the motor directly on RPI (but on jetson it is?!)

somebody any idea? :face_with_peeking_eye:

@mgrl

On Raspberry Pi, you can refer to the following

But if you want to use i2c control, you can refer to another repository (not recommended)