AutoFocus Module on Compute Module

Published by GuiP on

Home Forums Cameras Modules for Raspberry Pi 8MP IMX219 V2 Cameras AutoFocus Module on Compute Module

Viewing 17 reply threads
  • Author
    Posts
    • #20205
      GuiP
      Participant

      Hello,

      I purchased recently a Autofocus module to use with my Raspberry Compute Module CM3+ and I am having trouble in getting the module to work.

      I am working with 2 cameras, 1 raspberry camera and the arducam module and both are working fine when taking pictures/preview images.

      When I run the scripts to autofocus or manual focus and press the key ‘UP’ or ‘DOWN’ I get erros like ‘Failed to write’.

      What can I do to make it work? Is it a I2C problem?

      Thanks in advance,

      Guilherme Paulo

      Error

    • #20219
      bin
      Keymaster

      Hi,

      It seems the i2c bus exist problem. For the CM3+, you should config the i2c bus information in the dts file.  Are you sure you are using the i2c0 bus? For our focus demo, we default use thei2c0, You can see the test code here, https://github.com/ArduCAM/RaspberryPi/blob/master/Motorized_Focus_Camera/C/manualFocusPreview.c

      Some suggestions:

      1. Please ensure which iwc bus you have connected to your camera?

      2. Please ensure you have enabled the i2c0 bus.

    • #20229
      GuiP
      Participant

      I am using the dt-blob-dualcam.dts provided by Raspberry in order to get both cameras working, I modified the /boot/config.txt to enable i2c0, as you were doing with the file enable_i2c_vc.sh and still can’t seem to get it working…

      I’ve included some images to show you the different files and setup that I have

      config.txt

    • #20241
      bin
      Keymaster

      Hi, It can’t detected the camera’s i2c and motor driver i2c address. Please attach me your hardware connection and I will help you check it.

       

    • #20327
      GuiP
      Participant

      The hardware connection is the same as the one on here: https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md

      Sorry for the long time

       

    • #20328
      bin
      Keymaster

      Hi,

      Thanks for your hardware diagram. Now we are in Chinese New Year’s holiday.

      After we come back to company, I will help you test it and reply you as soon as possible.

      It still does not detect the sensor’s i2c address.

    • #20365
      GuiP
      Participant

      Any clue on how to fix the problem?

    • #20375
      bin
      Keymaster

      Hi,

      I advice you test the camera on Raspberrypi Mode 3 platform firstly to ensure the camera’s hardware is normal.

      We are still on holiday now. Sorry for help you later.

       

    • #20437
      GuiP
      Participant

      Hi,

      I tried the camera on a RaspberryPi 3B+ today and I get the same results as the Compute Module, I can preview and take pictures but when I run the focus script I get an error saying Write Failed.

      When running the i2cdetect -y 1 I can only detect on the adress 64, the same as on Compute Module

      Thank you in advance

    • #20516
      bin
      Keymaster

      Hi,

      You should use i2cdetect -y 0 to check it the focus motor exist .

    • #20614
      GuiP
      Participant

      i2cdetect -y 0 detects nothing, no adresses found

    • #20706
      bin
      Keymaster

      Hi,

      It seems the focus motor is defective, Please contact our [email protected] for replacement.

       

    • #20714
      GuiP
      Participant

      I’m getting this error when I try to do so

    • #20884
      bin
      Keymaster

      Hi,

      Sorry for our error address which should be [email protected]

      Don’t worry and I have  copied your requirement to our sales and he will process it as soon as possible.

       

    • #20934

      Hi ,could  you please send your email address to us , if you cannot send email to us, we will conatct  you

    • #21029
      GuiP
      Participant
    • #21386
      Anonymous
      Inactive

      Hello,

      i seem to have been run in the same problem, what to do?

       

      kind regards

      hk

    • #21990
      bin
      Keymaster

      Hello,

      The CM3 module is different from the pi3 module B. We have provide preview-camera0 demo for CM3. I advise you try to test our demo firstly to ensure the hardware is normal.

       

Viewing 17 reply threads
  • You must be logged in to reply to this topic.