Raspi24
Posts: 7
Joined: Fri Aug 16, 2019 8:17 pm

Arducam boards not working

Mon Sep 02, 2019 3:24 pm

Hi,

Trying to get an Arducam 8Mp autofocus camera and also 18Mp fixed focus working with Raspberry Pi.

Previous attempts with Pi camera worked fine with both Pi 3 B+ and also Pi Zero.

So if I try to connect these cameras they don't seem to work.

I have enabled camera in Interfaces and also I2C.

i2cdetect -y 1 gives an empty list.

With the 8Mp camera, Raspistill commands give error and a red light comes on on the front of the board. No images.
the error is:

Camera control callback cmd=0x4f525245mmal: No data received from sensor. Check all connections, including the Sunny one on the camera board.

I think connections are good, Ribbons right way round. Short connection on camera board seems stable and in place.

The commands that are in their documentation only give me errors.

I have re-flashed the OS to latest Raspbian Buster image. Same results.

The literature gives the following Prerequisites:

Install Python Dependency libraries
sudo apt-get install python opencv (this works okay)

Enable the I2C0 port

chmod +x enable_i2c_vc.sh

./enable_i2c_vc.sh

Alter typing the above script, reboot will be required.
Then click 'y' to allow it.

So the above commands give errors:
chmod: cannot access ‘enable_i2c_vc.sh’: No such file or directory

and for the second line
bash: ./enable No such file or directory

There is a variation of the command in some other documentation chmod +x ./enable_i2c_vc.sh but same result.

There are programs for these cameras at github, but it seems there is something fundamentally awry before I can use them.
Similar issues when I try to use them with Pi Zero.
The 18Mp MIPI camera also gives errors.

Struggling to get manufacturer support on this so any advice/suggestions would be very welcome.

Thank You.

Raspi24
Posts: 7
Joined: Fri Aug 16, 2019 8:17 pm

Re: Arducam boards not working

Mon Sep 02, 2019 3:28 pm

p.s. After getting a red light on 8Mp motorised focus camera (in response to raspistill), the Pi won't shut down.

User avatar
RaTTuS
Posts: 10460
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Arducam boards not working

Mon Sep 02, 2019 3:31 pm

I think you will have to ask the arducam people
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7317
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Arducam boards not working

Mon Sep 02, 2019 4:00 pm

You don't say where you got those instructions from, but one can guess https://github.com/ArduCAM/RaspberryPi/ ... cus_Camera

You'll notice in that directory it includes a list of the Python examples, and one script called enable_i2c_vc.sh. Clone the repository first.

Code: Select all

git clone https://github.com/ArduCAM/RaspberryPi.git
cd RaspberryPi/Motorized_Focus_Camera
chmod +x enable_i2c_vc.sh
./enable_i2c_vc.sh
sudo reboot
The error "No data received from sensor. Check all connections, including the Sunny one on the camera board." means what it says - no image data has been received from the sensor. Sorry, definitely over to Arducam for that one.

The 18MPix camera is not supported by the Pi firmware - it is totally down to Arducam software. You need to be looking at https://github.com/ArduCAM/MIPI_Camera/tree/master/RPI for their driver and SDK. All support requests need to go to them.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
HermannSW
Posts: 1510
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Arducam boards not working

Tue Sep 03, 2019 7:41 am

On the 8MP motorized focus camera, that should behave like normal Raspberry v2 camera.
If you connect it, then start the Pi, what does "vcgencmd get_camera" say?


The 13/16/18MP color rolling shutter Arducam cameras, as well as the 0.3/1.0/2.0MP monochrome global shutter cameras run only with the Arducam software in the repo, you cannot use raspistill/raspivid with them.

On the 18MP camera, I don't have such, but I have similar 13MP IMX135 color rolling shutter camera:
https://www.uctronics.com/index.php/ard ... odule.html

Just connect the camera, then clone the Arducam MIPI repo:
https://github.com/ArduCAM/MIPI_Camera

Change into "MIPI_Camera/RPI" directory and follow the instructions for installing needed packages and how to build:
https://github.com/ArduCAM/MIPI_Camera/ ... /README.md

After you did run make, run "./preview" and you should see happily changing images from the camera on connected monitor.
Run "./capture" and an 18MP image should be written for you.
For my 13MP camera, file 3264x2464.jpg gets written.
Here you can see the 3.51MB 3264x2464 sample I just captured:
(right click, open in new tab, press magnifying icon and then right-click and press "Inspect" to verify)
Image
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://gitlab.freedesktop.org/HermannSW/gst-template
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

Raspi24
Posts: 7
Joined: Fri Aug 16, 2019 8:17 pm

Re: Arducam boards not working

Tue Sep 03, 2019 8:48 pm

Hi All,

Thank you for your advise and support.

I have managed to get i2c working and finding the camera. We had to modify the boot/config.txt file

sudo nano /boot/config.txt

and add

dtparam=i2c_vc=on

The camera is now identified on

i2cdetect -y 0

However we get no image using the Autofocus routine etc. so we think we have a hardware issue. New camera is ordered.

On the 18Mp camera (MIPI), I managed to get this working from Pi 3 B+ basically following your comments.
Downloaded all the git-hub material.

I did get an error when executing

make clean && make

(see attachment). opencv issue. Not sure how significant this is?

Even after this I was able to execute some basic ./preview and ./capture routines.
However I think it captured at 1920 x 1080.
I would like to use full resolution 4912 x 3684

typing

./list_format

reveals a mode 3 which appears to be full resolution.

Do you know if it is possible to select this somehow?
Ideally I would like to get preview and capture from this camera making use of the max resolution
(in a suitable format). Also stream to pc

Managed to do this with Pi Cam but not sure how easy it is to do similar things with the Arducam.
Can't seem to get any support from Arducam.

Thanks and any further help appreciated.
Attachments
make && make return.png
make && make return.png (119.83 KiB) Viewed 419 times

User avatar
HermannSW
Posts: 1510
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Arducam boards not working

Wed Sep 04, 2019 7:32 am

Raspi24 wrote:
Tue Sep 03, 2019 8:48 pm
On the 18Mp camera (MIPI), I managed to get this working from Pi 3 B+ basically following your comments.
Downloaded all the git-hub material.

I did get an error when executing

make clean && make

(see attachment). opencv issue. Not sure how significant this is?
You do get that error because you did not install "sudo apt-get install libopencv-dev" per "Install support package" section on the doc.

Please run this in addition in order to not run into zbar error:

Code: Select all

sudo apt-get install libzbar-dev
Now "make clean && make" should complete without error.
Even after this I was able to execute some basic ./preview and ./capture routines.
However I think it captured at 1920 x 1080.
I would like to use full resolution 4912 x 3684
Now I see that capture.c has capturing 1920x1080 and 3280x2464 hard coded.
That is the reason I was able to capture two images yesterday, because I have 13MP camera sample.
https://www.uctronics.com/index.php/ard ... odule.html

Please change the two lines specifying with/height
https://github.com/ArduCAM/MIPI_Camera/ ... ture.c#L60

to 4912/3684 if you have this camera, then files 1920x1080.jpg and 4912x3684.jpg should be written:
https://www.uctronics.com/index.php/ard ... odule.html
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://gitlab.freedesktop.org/HermannSW/gst-template
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

ScorpionVision
Posts: 1
Joined: Wed Sep 04, 2019 3:02 pm

Re: Arducam boards not working

Wed Sep 04, 2019 3:23 pm

Hi @Raspi24, as the UK distributor for Arducam I thought I should reply in defence of Arducam in this matter as you state that you have struggled to get support from them. We replicated the issue here at Scorpion Vision and then requested some help from Arducam on your behalf. They have been very diligent in this matter and went as far as accessing our setup via Teamviewer to investigate the issue. In the end it was simply a line missing from the configuration file and the problem was resolved.
I'm sorry you don't feel you were given the support you needed but both Arducam and ourselves spent many hours looking at this problem before the solution was found.

Please feel free to contact us directly if you have any complaints about our services or our principles' service and support.

Many thanks!

Scorpion Vision Ltd
shop.scorpionvision.co.uk/arducam

Raspi24
Posts: 7
Joined: Fri Aug 16, 2019 8:17 pm

Re: Arducam boards not working

Fri Sep 06, 2019 2:09 pm

Thank you. Scorpion Vision have provided good support. Dialogue with Arducam now also.
Just trying to get system working in a tight timescale.

Thank you HermannSW
Now capturing at higher res (also required increase of gpu_mem=200 in config.txt following Arducam guidance).

User avatar
HermannSW
Posts: 1510
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Arducam boards not working

Fri Sep 06, 2019 3:56 pm

Raspi24 wrote:
Fri Sep 06, 2019 2:09 pm
Thank you. Scorpion Vision have provided good support. Dialogue with Arducam now also.
Just trying to get system working in a tight timescale.

Thank you HermannSW
Now capturing at higher res (also required increase of gpu_mem=200 in config.txt following Arducam guidance).
Interesting, "Optional Settings" section states gpu_mem=180 should be good enough:
https://github.com/ArduCAM/MIPI_Camera/ ... l-settings
gpu_mem=160 for 13MP camera board,
gpu_mem=180 for 16MP or higher camera board.
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://gitlab.freedesktop.org/HermannSW/gst-template
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

Return to “Camera board”