AutoFocus Module on Compute Module
Published by GuiP on
- January 14, 2020 at 2:08 am #20205
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,
- January 15, 2020 at 9:52 pm #20219
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
1. Please ensure which iwc bus you have connected to your camera?
2. Please ensure you have enabled the i2c0 bus.
- January 16, 2020 at 6:11 am #20229
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
- January 17, 2020 at 5:49 pm #20241
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.
- January 29, 2020 at 10:00 am #20327
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
- January 29, 2020 at 6:11 pm #20328
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.
- February 5, 2020 at 10:19 am #20365
Any clue on how to fix the problem?
- February 8, 2020 at 4:32 am #20375
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.
- February 11, 2020 at 7:22 am #20437
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
- February 13, 2020 at 6:18 pm #20516
You should use i2cdetect -y 0 to check it the focus motor exist .
- February 17, 2020 at 7:43 am #20614
i2cdetect -y 0 detects nothing, no adresses found
- February 19, 2020 at 11:31 pm #20706
- February 20, 2020 at 8:07 am #20714
I’m getting this error when I try to do so
- February 23, 2020 at 4:58 am #20884
- February 23, 2020 at 11:51 pm #20934Arducam Support TeamModerator
Hi ，could you please send your email address to us , if you cannot send email to us, we will conatct you
- February 25, 2020 at 5:59 am #21029
- March 15, 2020 at 4:16 pm #21386AnonymousInactive
i seem to have been run in the same problem, what to do?
- April 24, 2020 at 6:29 pm #21990
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.
- You must be logged in to reply to this topic.